From 9bd3e412dc6374b94f06fa9d1981281107476fcf Mon Sep 17 00:00:00 2001 From: Claudia Tejos Date: Fri, 15 Dec 2023 11:28:01 -0300 Subject: [PATCH] fix(CodeEditor): export CodeEditor component (#3834) * fix(codeeditor): export codeeditor component * chore(snapshots): snapshots update --- .../__snapshots__/Welcome.story.storyshot | 15 ++++ packages/react/src/index.js | 1 + .../__snapshots__/publicAPI.test.js.snap | 70 +++++++++++++++++++ 3 files changed, 86 insertions(+) diff --git a/packages/react/.storybook/__snapshots__/Welcome.story.storyshot b/packages/react/.storybook/__snapshots__/Welcome.story.storyshot index e9134d5786..937c1d8a3b 100644 --- a/packages/react/.storybook/__snapshots__/Welcome.story.storyshot +++ b/packages/react/.storybook/__snapshots__/Welcome.story.storyshot @@ -3879,6 +3879,21 @@ exports[`Storybook Snapshot tests and console checks Storyshots 0 - Overview/Get CardCodeEditor +
+
+
+ CodeEditor +
+
Object { + "defaultProps": Object { + "accept": Array [ + ".css", + ], + "disabled": false, + "hasUpload": false, + "i18n": Object { + "copyBtnDescription": "Copy content", + "copyBtnFeedBack": "Copied", + "uploadBtnDescription": "Upload your file", + }, + "initialValue": null, + "language": "css", + "light": false, + "onCodeEditorChange": null, + "onCopy": null, + "testId": "code-editor", + }, + "propTypes": Object { + "accept": Object { + "args": Array [ + Object { + "type": "string", + }, + ], + "type": "arrayOf", + }, + "disabled": Object { + "type": "bool", + }, + "hasUpload": Object { + "type": "bool", + }, + "i18n": Object { + "args": Array [ + Object { + "copyBtnDescription": Object { + "type": "string", + }, + "copyBtnFeedBack": Object { + "type": "string", + }, + "uploadBtnDescription": Object { + "type": "string", + }, + }, + ], + "type": "shape", + }, + "initialValue": Object { + "type": "string", + }, + "language": Object { + "type": "string", + }, + "light": Object { + "type": "bool", + }, + "onCodeEditorChange": Object { + "type": "func", + }, + "onCopy": Object { + "type": "func", + }, + "testId": Object { + "type": "string", + }, + }, + }, "EmptyTable" => Object { "defaultProps": Object { "id": "EmptyTable",