diff --git a/.yarn/cache/@serlo-editor-npm-0.14.0-6e72467b7f-63f04aa6a6.zip b/.yarn/cache/@serlo-editor-npm-0.14.0-6e72467b7f-63f04aa6a6.zip deleted file mode 100644 index fee1c63d36..0000000000 Binary files a/.yarn/cache/@serlo-editor-npm-0.14.0-6e72467b7f-63f04aa6a6.zip and /dev/null differ diff --git a/.yarn/cache/@serlo-editor-npm-0.15.3-b7aa78d3c2-6992e62583.zip b/.yarn/cache/@serlo-editor-npm-0.15.3-b7aa78d3c2-6992e62583.zip new file mode 100644 index 0000000000..98fdf5ba8d Binary files /dev/null and b/.yarn/cache/@serlo-editor-npm-0.15.3-b7aa78d3c2-6992e62583.zip differ diff --git a/packages/editor-web-component/README.md b/packages/editor-web-component/README.md index 5939f23978..0396b91eee 100644 --- a/packages/editor-web-component/README.md +++ b/packages/editor-web-component/README.md @@ -71,13 +71,13 @@ export default defineComponent({ To familiarize yourself with our JSON structure, for each plugin, you can look at example JSONs [here](https://github.com/serlo/documentation/wiki/Serlo-Editor-Initial-State-of-Plugins). You can also go to our editor [preview page](https://de.serlo-staging.dev/___editor_preview), enter any plugin and through the menu in the top right corner, click "copy plugin". If you paste it in your code editor, you will see the JSON structure of the plugin you selected through the toolbar. -If you want to display a certain plugin as an initial state of the Serlo Editor, we recommend importing the `plugins` and `Plugin` constant/enum. Check out the [documentation](https://github.com/serlo/frontend/tree/staging/packages/editor#plugins-constant-and-plugin-enum) for more information. +If you want to display a certain plugin as an initial state of the Serlo Editor, we recommend importing the `pluginMenuEn` / `pluginMenuDe` object and `Plugin` enum. Check out the [documentation](https://github.com/serlo/frontend/tree/staging/packages/editor#pluginmenuen--pluginmenude-constant-and-plugin-enum) for more information. ```typescript -import { plugins, Plugin } from '@serlo/editor' +import { pluginMenuEn, Plugin } from '@serlo/editor' const singleChoiceKey = Plugin.SingleChoiceExercise -const initialStateOfSingleChoice = plugin[singleChoiceKey].initialState +const initialStateOfSingleChoice = pluginMenuEn[singleChoiceKey].initialState ``` ## Shadow DOM vs. normal DOM diff --git a/packages/editor-web-component/package.json b/packages/editor-web-component/package.json index 9c50d51ad9..a8fed06e93 100644 --- a/packages/editor-web-component/package.json +++ b/packages/editor-web-component/package.json @@ -1,6 +1,6 @@ { "name": "@serlo/editor-web-component", - "version": "0.7.0", + "version": "0.8.0", "homepage": "https://de.serlo.org/editor", "bugs": { "url": "https://github.com/serlo/frontend/issues" @@ -39,11 +39,11 @@ "yalc:publish": "yarn build && yalc publish --push --sig" }, "resolutions": { - "@serlo/editor": "0.14.0" + "@serlo/editor": "0.15.3" }, "devDependencies": { "@rollup/plugin-replace": "^5.0.5", - "@serlo/editor": "0.14.0", + "@serlo/editor": "0.15.3", "@serlo/typescript-config": "workspace:*", "@types/escodegen": "^0.0.10", "@types/estraverse": "^5.1.7", diff --git a/packages/editor-web-component/src/index.tsx b/packages/editor-web-component/src/index.tsx index 2b502c3c96..7418ccbf45 100644 --- a/packages/editor-web-component/src/index.tsx +++ b/packages/editor-web-component/src/index.tsx @@ -1,2 +1,2 @@ -export { Plugin, plugins } from '@serlo/editor' +export { type Plugin, pluginMenuDe, pluginMenuEn } from '@serlo/editor' export { EditorWebComponent } from './editor-web-component' diff --git a/yarn.lock b/yarn.lock index 51e99b8aa6..93f113e8ac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5899,7 +5899,7 @@ __metadata: resolution: "@serlo/editor-web-component@workspace:packages/editor-web-component" dependencies: "@rollup/plugin-replace": ^5.0.5 - "@serlo/editor": 0.14.0 + "@serlo/editor": 0.15.3 "@serlo/typescript-config": "workspace:*" "@types/escodegen": ^0.0.10 "@types/estraverse": ^5.1.7 @@ -5934,15 +5934,16 @@ __metadata: languageName: unknown linkType: soft -"@serlo/editor@npm:0.14.0": - version: 0.14.0 - resolution: "@serlo/editor@npm:0.14.0" +"@serlo/editor@npm:0.15.3": + version: 0.15.3 + resolution: "@serlo/editor@npm:0.15.3" dependencies: "@serlo/katex-styles": 1.0.1 react: ^18.2.0 react-dom: ^18.2.0 + react-hot-toast: ^2.4.1 react-resizable: ^3.0.5 - checksum: 63f04aa6a6bc1450a67a1cbca5e5c9563c601667eaad191f5111ea32a110e33a6c0cd9798f79b0b979a50a1afe2571e54f979c635d0e51f4f3995117e58a879a + checksum: 6992e6258335d68e64b9269f9d628707130d146c1a35aa9578835f8094af9cdf306c8a02cbfc2647004a75e618549c04d4dad5861d278b66186bb25fcc2fcdee languageName: node linkType: hard