@ethberry/mui-lexical 3.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/common/hooks/index.d.ts +1 -1
- package/dist/common/hooks/index.d.ts.map +1 -1
- package/dist/common/hooks/index.js +1 -1
- package/dist/common/hooks/index.js.map +1 -1
- package/dist/common/hooks/useModal.js +1 -1
- package/dist/common/hooks/useModal.js.map +1 -1
- package/dist/common/index.d.ts +2 -2
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +2 -2
- package/dist/common/index.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.js.map +1 -1
- package/dist/config/lexicalEditorConfig.d.ts.map +1 -1
- package/dist/config/lexicalEditorConfig.js +2 -11
- package/dist/config/lexicalEditorConfig.js.map +1 -1
- package/dist/display/index.js +3 -3
- package/dist/display/index.js.map +1 -1
- package/dist/editor/Editor.d.ts +1 -1
- package/dist/editor/Editor.d.ts.map +1 -1
- package/dist/editor/Editor.js +5 -5
- package/dist/editor/Editor.js.map +1 -1
- package/dist/editor/constants/index.d.ts +1 -1
- package/dist/editor/constants/index.d.ts.map +1 -1
- package/dist/editor/context/index.d.ts +2 -2
- package/dist/editor/context/index.d.ts.map +1 -1
- package/dist/editor/context/index.js +2 -2
- package/dist/editor/context/index.js.map +1 -1
- package/dist/editor/hooks/index.d.ts +1 -1
- package/dist/editor/hooks/index.d.ts.map +1 -1
- package/dist/editor/hooks/index.js +1 -1
- package/dist/editor/hooks/index.js.map +1 -1
- package/dist/editor/hooks/useModal.js +1 -1
- package/dist/editor/hooks/useModal.js.map +1 -1
- package/dist/editor/images/icons/index.d.ts +88 -88
- package/dist/editor/images/icons/index.d.ts.map +1 -1
- package/dist/editor/images/icons/index.js +88 -88
- package/dist/editor/images/icons/index.js.map +1 -1
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/index.js +2 -2
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/nodes/Image/ImageComponent.js +5 -5
- package/dist/editor/nodes/Image/ImageComponent.js.map +1 -1
- package/dist/editor/nodes/Image/ImageNode.js +1 -1
- package/dist/editor/nodes/Image/ImageNode.js.map +1 -1
- package/dist/editor/nodes/Image/index.d.ts +3 -3
- package/dist/editor/nodes/Image/index.d.ts.map +1 -1
- package/dist/editor/nodes/Image/index.js +3 -3
- package/dist/editor/nodes/Image/index.js.map +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageComponent.d.ts +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageComponent.d.ts.map +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageComponent.js +4 -4
- package/dist/editor/nodes/InlineImage/InlineImageComponent.js.map +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageNode.js +1 -1
- package/dist/editor/nodes/InlineImage/InlineImageNode.js.map +1 -1
- package/dist/editor/nodes/InlineImage/index.d.ts +3 -3
- package/dist/editor/nodes/InlineImage/index.d.ts.map +1 -1
- package/dist/editor/nodes/InlineImage/index.js +3 -3
- package/dist/editor/nodes/InlineImage/index.js.map +1 -1
- package/dist/editor/nodes/MuiLexicalNodes.js +3 -3
- package/dist/editor/nodes/MuiLexicalNodes.js.map +1 -1
- package/dist/editor/nodes/Video/VideoComponent.d.ts +1 -1
- package/dist/editor/nodes/Video/VideoComponent.d.ts.map +1 -1
- package/dist/editor/nodes/Video/VideoComponent.js +1 -5
- package/dist/editor/nodes/Video/VideoComponent.js.map +1 -1
- package/dist/editor/nodes/Video/VideoNode.d.ts +2 -2
- package/dist/editor/nodes/Video/VideoNode.d.ts.map +1 -1
- package/dist/editor/nodes/Video/VideoNode.js +4 -4
- package/dist/editor/nodes/Video/VideoNode.js.map +1 -1
- package/dist/editor/nodes/Video/index.d.ts +3 -3
- package/dist/editor/nodes/Video/index.d.ts.map +1 -1
- package/dist/editor/nodes/Video/index.js +3 -3
- package/dist/editor/nodes/Video/index.js.map +1 -1
- package/dist/editor/nodes/index.d.ts +4 -4
- package/dist/editor/nodes/index.d.ts.map +1 -1
- package/dist/editor/nodes/index.js +4 -4
- package/dist/editor/nodes/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.d.ts +2 -2
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.d.ts.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js +2 -2
- package/dist/editor/plugins/CodeActionMenuPlugin/components/index.js.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/index.d.ts +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/CodeActionMenuPlugin/index.js +3 -3
- package/dist/editor/plugins/CodeActionMenuPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ComponentPickerPlugin/index.js +4 -4
- package/dist/editor/plugins/ComponentPickerPlugin/index.js.map +1 -1
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.d.ts +1 -1
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js +5 -5
- package/dist/editor/plugins/FloatingLinkEditorPlugin/index.js.map +1 -1
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +3 -3
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js +7 -7
- package/dist/editor/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ImagesPlugin/index.d.ts +1 -1
- package/dist/editor/plugins/ImagesPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/ImagesPlugin/index.js +14 -7
- package/dist/editor/plugins/ImagesPlugin/index.js.map +1 -1
- package/dist/editor/plugins/LinkPlugin/index.js +1 -1
- package/dist/editor/plugins/LinkPlugin/index.js.map +1 -1
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.js +1 -1
- package/dist/editor/plugins/MarkdownShortcutPlugin/index.js.map +1 -1
- package/dist/editor/plugins/MarkdownTransformers/index.js +1 -1
- package/dist/editor/plugins/MarkdownTransformers/index.js.map +1 -1
- package/dist/editor/plugins/ShortcutsPlugin/index.js +4 -4
- package/dist/editor/plugins/ShortcutsPlugin/index.js.map +1 -1
- package/dist/editor/plugins/TableActionMenuPlugin/index.js +2 -2
- package/dist/editor/plugins/TableActionMenuPlugin/index.js.map +1 -1
- package/dist/editor/plugins/TableCellResizer/index.d.ts +1 -1
- package/dist/editor/plugins/TableCellResizer/index.d.ts.map +1 -1
- package/dist/editor/plugins/TableCellResizer/index.js +4 -2
- package/dist/editor/plugins/TableCellResizer/index.js.map +1 -1
- package/dist/editor/plugins/TableHoverActionsPlugin/index.js +2 -2
- package/dist/editor/plugins/TableHoverActionsPlugin/index.js.map +1 -1
- package/dist/editor/plugins/TablePlugin.js +3 -3
- package/dist/editor/plugins/TablePlugin.js.map +1 -1
- package/dist/editor/plugins/ToolbarPlugin/index.d.ts +1 -1
- package/dist/editor/plugins/ToolbarPlugin/index.d.ts.map +1 -1
- package/dist/editor/plugins/ToolbarPlugin/index.js +14 -11
- package/dist/editor/plugins/ToolbarPlugin/index.js.map +1 -1
- package/dist/editor/plugins/ToolbarPlugin/utils.js +1 -1
- package/dist/editor/plugins/ToolbarPlugin/utils.js.map +1 -1
- package/dist/editor/plugins/VideoPlugin/index.js +6 -6
- package/dist/editor/plugins/VideoPlugin/index.js.map +1 -1
- package/dist/editor/plugins/index.d.ts +19 -19
- package/dist/editor/plugins/index.d.ts.map +1 -1
- package/dist/editor/plugins/index.js +19 -19
- package/dist/editor/plugins/index.js.map +1 -1
- package/dist/editor/themes/index.d.ts +1 -1
- package/dist/editor/themes/index.d.ts.map +1 -1
- package/dist/editor/themes/index.js +1 -1
- package/dist/editor/themes/index.js.map +1 -1
- package/dist/editor/types/index.d.ts +1 -1
- package/dist/editor/types/index.d.ts.map +1 -1
- package/dist/editor/ui/BlockFormatDropdown/index.d.ts +3 -3
- package/dist/editor/ui/BlockFormatDropdown/index.d.ts.map +1 -1
- package/dist/editor/ui/BlockFormatDropdown/index.js +6 -6
- package/dist/editor/ui/BlockFormatDropdown/index.js.map +1 -1
- package/dist/editor/ui/BoldButton/index.d.ts +1 -1
- package/dist/editor/ui/BoldButton/index.d.ts.map +1 -1
- package/dist/editor/ui/BoldButton/index.js +2 -2
- package/dist/editor/ui/BoldButton/index.js.map +1 -1
- package/dist/editor/ui/Button.js +1 -1
- package/dist/editor/ui/Button.js.map +1 -1
- package/dist/editor/ui/CenterAlignButton/index.d.ts +1 -1
- package/dist/editor/ui/CenterAlignButton/index.d.ts.map +1 -1
- package/dist/editor/ui/CenterAlignButton/index.js +2 -2
- package/dist/editor/ui/CenterAlignButton/index.js.map +1 -1
- package/dist/editor/ui/ClearEditorButton/index.d.ts +1 -1
- package/dist/editor/ui/ClearEditorButton/index.d.ts.map +1 -1
- package/dist/editor/ui/ClearEditorButton/index.js +1 -1
- package/dist/editor/ui/ClearEditorButton/index.js.map +1 -1
- package/dist/editor/ui/ClearFormattingButton/index.d.ts +1 -1
- package/dist/editor/ui/ClearFormattingButton/index.d.ts.map +1 -1
- package/dist/editor/ui/ClearFormattingButton/index.js +1 -1
- package/dist/editor/ui/ClearFormattingButton/index.js.map +1 -1
- package/dist/editor/ui/CodeButton/index.d.ts +1 -1
- package/dist/editor/ui/CodeButton/index.d.ts.map +1 -1
- package/dist/editor/ui/CodeButton/index.js +2 -2
- package/dist/editor/ui/CodeButton/index.js.map +1 -1
- package/dist/editor/ui/CodeLanguageDropdown/index.d.ts +2 -2
- package/dist/editor/ui/CodeLanguageDropdown/index.d.ts.map +1 -1
- package/dist/editor/ui/CodeLanguageDropdown/index.js +2 -2
- package/dist/editor/ui/CodeLanguageDropdown/index.js.map +1 -1
- package/dist/editor/ui/HorizontalRuleButton/index.d.ts +1 -1
- package/dist/editor/ui/HorizontalRuleButton/index.d.ts.map +1 -1
- package/dist/editor/ui/HorizontalRuleButton/index.js +1 -1
- package/dist/editor/ui/HorizontalRuleButton/index.js.map +1 -1
- package/dist/editor/ui/ImageButton/index.d.ts +2 -2
- package/dist/editor/ui/ImageButton/index.d.ts.map +1 -1
- package/dist/editor/ui/ImageButton/index.js +2 -2
- package/dist/editor/ui/ImageButton/index.js.map +1 -1
- package/dist/editor/ui/ItalicButton/index.d.ts +1 -1
- package/dist/editor/ui/ItalicButton/index.d.ts.map +1 -1
- package/dist/editor/ui/ItalicButton/index.js +2 -2
- package/dist/editor/ui/ItalicButton/index.js.map +1 -1
- package/dist/editor/ui/LeftAlignButton/index.d.ts +1 -1
- package/dist/editor/ui/LeftAlignButton/index.d.ts.map +1 -1
- package/dist/editor/ui/LeftAlignButton/index.js +2 -2
- package/dist/editor/ui/LeftAlignButton/index.js.map +1 -1
- package/dist/editor/ui/LinkButton/index.d.ts +1 -1
- package/dist/editor/ui/LinkButton/index.d.ts.map +1 -1
- package/dist/editor/ui/LinkButton/index.js +2 -2
- package/dist/editor/ui/LinkButton/index.js.map +1 -1
- package/dist/editor/ui/RedoButton/index.d.ts +1 -1
- package/dist/editor/ui/RedoButton/index.d.ts.map +1 -1
- package/dist/editor/ui/RedoButton/index.js +1 -1
- package/dist/editor/ui/RedoButton/index.js.map +1 -1
- package/dist/editor/ui/RightAlignButton/index.d.ts +1 -1
- package/dist/editor/ui/RightAlignButton/index.d.ts.map +1 -1
- package/dist/editor/ui/RightAlignButton/index.js +2 -2
- package/dist/editor/ui/RightAlignButton/index.js.map +1 -1
- package/dist/editor/ui/StrikethroughButton/index.d.ts +1 -1
- package/dist/editor/ui/StrikethroughButton/index.d.ts.map +1 -1
- package/dist/editor/ui/StrikethroughButton/index.js +2 -2
- package/dist/editor/ui/StrikethroughButton/index.js.map +1 -1
- package/dist/editor/ui/TableButton/index.d.ts +2 -2
- package/dist/editor/ui/TableButton/index.d.ts.map +1 -1
- package/dist/editor/ui/TableButton/index.js +2 -2
- package/dist/editor/ui/TableButton/index.js.map +1 -1
- package/dist/editor/ui/UnderlineButton/index.d.ts +1 -1
- package/dist/editor/ui/UnderlineButton/index.d.ts.map +1 -1
- package/dist/editor/ui/UnderlineButton/index.js +2 -2
- package/dist/editor/ui/UnderlineButton/index.js.map +1 -1
- package/dist/editor/ui/UndoButton/index.d.ts +1 -1
- package/dist/editor/ui/UndoButton/index.d.ts.map +1 -1
- package/dist/editor/ui/UndoButton/index.js +1 -1
- package/dist/editor/ui/UndoButton/index.js.map +1 -1
- package/dist/editor/ui/VideoButton/index.d.ts +2 -2
- package/dist/editor/ui/VideoButton/index.d.ts.map +1 -1
- package/dist/editor/ui/VideoButton/index.js +2 -2
- package/dist/editor/ui/VideoButton/index.js.map +1 -1
- package/dist/editor/ui/index.d.ts +29 -29
- package/dist/editor/ui/index.d.ts.map +1 -1
- package/dist/editor/ui/index.js +36 -36
- package/dist/editor/ui/index.js.map +1 -1
- package/dist/editor/utils/index.d.ts +9 -9
- package/dist/editor/utils/index.d.ts.map +1 -1
- package/dist/editor/utils/index.js +9 -9
- package/dist/editor/utils/index.js.map +1 -1
- package/dist/editor/utils/useIsClient.d.ts +2 -0
- package/dist/editor/utils/useIsClient.d.ts.map +1 -0
- package/dist/editor/utils/useIsClient.js +6 -0
- package/dist/editor/utils/useIsClient.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +10 -5
- package/eslint.config.mjs +0 -37
- package/jest.config.json +0 -39
- package/jest.setup.cjs +0 -31
- package/tsconfig.eslint.json +0 -10
- package/tsconfig.jest.json +0 -11
package/eslint.config.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import storybook from "eslint-plugin-storybook";
|
|
2
|
-
|
|
3
|
-
import typescriptRules from "@ethberry/eslint-config/presets/tsx.mjs";
|
|
4
|
-
|
|
5
|
-
// DON'T ADD ANY RULES!
|
|
6
|
-
// FIX YOUR SHIT!!!
|
|
7
|
-
|
|
8
|
-
export default [
|
|
9
|
-
{
|
|
10
|
-
ignores: [
|
|
11
|
-
"**/dist",
|
|
12
|
-
"**/storybook-static",
|
|
13
|
-
"eslint.config.mjs",
|
|
14
|
-
"jest.config.json",
|
|
15
|
-
"jest.setup.cjs",
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
languageOptions: {
|
|
21
|
-
parserOptions: {
|
|
22
|
-
project: ["./tsconfig.eslint.json"],
|
|
23
|
-
tsconfigRootDir: import.meta.dirname,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
settings: {
|
|
27
|
-
"import/resolver": {
|
|
28
|
-
typescript: {
|
|
29
|
-
project: ["./tsconfig.eslint.json"],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
...typescriptRules,
|
|
36
|
-
...storybook.configs["flat/recommended"],
|
|
37
|
-
];
|
package/jest.config.json
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"clearMocks": true,
|
|
3
|
-
"moduleFileExtensions": [
|
|
4
|
-
"ts",
|
|
5
|
-
"tsx",
|
|
6
|
-
"js",
|
|
7
|
-
"jsx",
|
|
8
|
-
"json"
|
|
9
|
-
],
|
|
10
|
-
"moduleNameMapper": {
|
|
11
|
-
"^(\\.{1,2}/.*)\\.js$": "$1",
|
|
12
|
-
"^lodash-es$": "lodash"
|
|
13
|
-
},
|
|
14
|
-
"preset": "ts-jest/presets/default-esm",
|
|
15
|
-
"restoreMocks": true,
|
|
16
|
-
"roots": [
|
|
17
|
-
"<rootDir>/src"
|
|
18
|
-
],
|
|
19
|
-
"setupFilesAfterEnv": [
|
|
20
|
-
"<rootDir>/jest.setup.cjs"
|
|
21
|
-
],
|
|
22
|
-
"testEnvironment": "jsdom",
|
|
23
|
-
"testMatch": [
|
|
24
|
-
"**/*.test.ts",
|
|
25
|
-
"**/*.test.tsx"
|
|
26
|
-
],
|
|
27
|
-
"transform": {
|
|
28
|
-
"^.+\\.tsx?$": [
|
|
29
|
-
"ts-jest",
|
|
30
|
-
{
|
|
31
|
-
"tsconfig": "tsconfig.jest.json",
|
|
32
|
-
"useESM": true
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"transformIgnorePatterns": [
|
|
37
|
-
"/node_modules/(?!(@lexical/|lexical)/)"
|
|
38
|
-
]
|
|
39
|
-
}
|
package/jest.setup.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
require("@testing-library/jest-dom");
|
|
2
|
-
|
|
3
|
-
jest.mock("@lexical/react/LexicalErrorBoundary", () => {
|
|
4
|
-
const React = require("react");
|
|
5
|
-
return {
|
|
6
|
-
LexicalErrorBoundary: ({ children }) =>
|
|
7
|
-
React.createElement(React.Fragment, null, children),
|
|
8
|
-
};
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(window, "matchMedia", {
|
|
12
|
-
writable: true,
|
|
13
|
-
value: (query) => ({
|
|
14
|
-
matches: false,
|
|
15
|
-
media: query,
|
|
16
|
-
onchange: null,
|
|
17
|
-
addListener: jest.fn(),
|
|
18
|
-
removeListener: jest.fn(),
|
|
19
|
-
addEventListener: jest.fn(),
|
|
20
|
-
removeEventListener: jest.fn(),
|
|
21
|
-
dispatchEvent: jest.fn(),
|
|
22
|
-
}),
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
globalThis.ResizeObserver = class ResizeObserver {
|
|
26
|
-
observe() {
|
|
27
|
-
/* Lexical / MUI may call this in tests */
|
|
28
|
-
}
|
|
29
|
-
unobserve() {}
|
|
30
|
-
disconnect() {}
|
|
31
|
-
};
|
package/tsconfig.eslint.json
DELETED
package/tsconfig.jest.json
DELETED