@comet/admin-rte 9.0.0-beta.2 → 9.0.0-beta.4
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/lib/core/BlockElement.d.ts +2 -2
- package/lib/core/BlockElement.d.ts.map +1 -1
- package/lib/core/Controls/BlockTypesControls.d.ts +1 -1
- package/lib/core/Controls/BlockTypesControls.d.ts.map +1 -1
- package/lib/core/Controls/ControlButton.d.ts +3 -3
- package/lib/core/Controls/ControlButton.d.ts.map +1 -1
- package/lib/core/Controls/Controls.d.ts +1 -1
- package/lib/core/Controls/Controls.d.ts.map +1 -1
- package/lib/core/Controls/CustomControls.d.ts +1 -1
- package/lib/core/Controls/CustomControls.d.ts.map +1 -1
- package/lib/core/Controls/FeaturesButtonGroup.d.ts +2 -2
- package/lib/core/Controls/FeaturesButtonGroup.d.ts.map +1 -1
- package/lib/core/Controls/HistoryContols.d.ts +1 -1
- package/lib/core/Controls/HistoryContols.d.ts.map +1 -1
- package/lib/core/Controls/InlineStyleTypeControls.d.ts +1 -1
- package/lib/core/Controls/InlineStyleTypeControls.d.ts.map +1 -1
- package/lib/core/Controls/LinkControls.d.ts +1 -1
- package/lib/core/Controls/LinkControls.d.ts.map +1 -1
- package/lib/core/Controls/ListsControls.d.ts +1 -1
- package/lib/core/Controls/ListsControls.d.ts.map +1 -1
- package/lib/core/Controls/ListsIndentControls.d.ts +1 -1
- package/lib/core/Controls/ListsIndentControls.d.ts.map +1 -1
- package/lib/core/Controls/SpecialCharactersControls.d.ts +1 -1
- package/lib/core/Controls/SpecialCharactersControls.d.ts.map +1 -1
- package/lib/core/Controls/Toolbar/Toolbar.d.ts +3 -3
- package/lib/core/Controls/Toolbar/Toolbar.d.ts.map +1 -1
- package/lib/core/Controls/TranslationControls.d.ts +1 -1
- package/lib/core/Controls/TranslationControls.d.ts.map +1 -1
- package/lib/core/Controls/useBlockTypes.d.ts +3 -3
- package/lib/core/Controls/useBlockTypes.d.ts.map +1 -1
- package/lib/core/Controls/useHistory.d.ts +2 -2
- package/lib/core/Controls/useHistory.d.ts.map +1 -1
- package/lib/core/Controls/useInlineStyleType.d.ts +2 -2
- package/lib/core/Controls/useInlineStyleType.d.ts.map +1 -1
- package/lib/core/Controls/useListIndent.d.ts +2 -2
- package/lib/core/Controls/useListIndent.d.ts.map +1 -1
- package/lib/core/Rte.d.ts +1 -1
- package/lib/core/Rte.d.ts.map +1 -1
- package/lib/core/RteReadOnly.d.ts +1 -1
- package/lib/core/RteReadOnly.d.ts.map +1 -1
- package/lib/core/defaultBlocktypeMap.d.ts +1 -1
- package/lib/core/defaultBlocktypeMap.d.ts.map +1 -1
- package/lib/core/extension/Link/Decorator.d.ts +1 -1
- package/lib/core/extension/Link/Decorator.d.ts.map +1 -1
- package/lib/core/extension/Link/EditorComponent.d.ts +2 -2
- package/lib/core/extension/Link/EditorComponent.d.ts.map +1 -1
- package/lib/core/extension/Link/ToolbarButton.d.ts +1 -1
- package/lib/core/extension/Link/ToolbarButton.d.ts.map +1 -1
- package/lib/core/extension/LinksRemove/ToolbarButton.d.ts +1 -1
- package/lib/core/extension/LinksRemove/ToolbarButton.d.ts.map +1 -1
- package/lib/core/extension/NonBreakingSpace/Decorator.d.ts +1 -1
- package/lib/core/extension/NonBreakingSpace/Decorator.d.ts.map +1 -1
- package/lib/core/extension/NonBreakingSpace/EditorComponent.d.ts +2 -2
- package/lib/core/extension/NonBreakingSpace/EditorComponent.d.ts.map +1 -1
- package/lib/core/extension/NonBreakingSpace/EditorComponent.js +2 -2
- package/lib/core/extension/NonBreakingSpace/ToolbarButton.d.ts +1 -1
- package/lib/core/extension/NonBreakingSpace/ToolbarButton.d.ts.map +1 -1
- package/lib/core/extension/SoftHyphen/Decorator.d.ts +1 -1
- package/lib/core/extension/SoftHyphen/Decorator.d.ts.map +1 -1
- package/lib/core/extension/SoftHyphen/EditorComponent.d.ts +2 -2
- package/lib/core/extension/SoftHyphen/EditorComponent.d.ts.map +1 -1
- package/lib/core/extension/SoftHyphen/EditorComponent.js +1 -1
- package/lib/core/extension/SoftHyphen/ToolbarButton.d.ts +1 -1
- package/lib/core/extension/SoftHyphen/ToolbarButton.d.ts.map +1 -1
- package/lib/core/filterEditor/composeFilterEditorFns.d.ts +1 -1
- package/lib/core/filterEditor/composeFilterEditorFns.d.ts.map +1 -1
- package/lib/core/filterEditor/default.d.ts +1 -1
- package/lib/core/filterEditor/default.d.ts.map +1 -1
- package/lib/core/filterEditor/manageStandardBlockType.d.ts +1 -1
- package/lib/core/filterEditor/manageStandardBlockType.d.ts.map +1 -1
- package/lib/core/filterEditor/removeBlocksExceedingBlockLimit.d.ts +1 -1
- package/lib/core/filterEditor/removeBlocksExceedingBlockLimit.d.ts.map +1 -1
- package/lib/core/filterEditor/removeUnsupportedBlockTypes.d.ts +1 -1
- package/lib/core/filterEditor/removeUnsupportedBlockTypes.d.ts.map +1 -1
- package/lib/core/filterEditor/removeUnsupportedEntities.d.ts +1 -1
- package/lib/core/filterEditor/removeUnsupportedEntities.d.ts.map +1 -1
- package/lib/core/filterEditor/removeUnsupportedInlineStyles.d.ts +1 -1
- package/lib/core/filterEditor/removeUnsupportedInlineStyles.d.ts.map +1 -1
- package/lib/core/filterEditor/removeUnsupportedListLevels.d.ts +1 -1
- package/lib/core/filterEditor/removeUnsupportedListLevels.d.ts.map +1 -1
- package/lib/core/filterEditor/utils/changeBlockType.d.ts +1 -1
- package/lib/core/filterEditor/utils/changeBlockType.d.ts.map +1 -1
- package/lib/core/filterEditor/utils/manipulateEntityData.d.ts +1 -1
- package/lib/core/filterEditor/utils/manipulateEntityData.d.ts.map +1 -1
- package/lib/core/filterEditor/utils/removeEntities.d.ts +1 -1
- package/lib/core/filterEditor/utils/removeEntities.d.ts.map +1 -1
- package/lib/core/filterEditor/utils/removeInlineStyles.d.ts +1 -1
- package/lib/core/filterEditor/utils/removeInlineStyles.d.ts.map +1 -1
- package/lib/core/translation/EditorStateTranslationDialog.d.ts +1 -1
- package/lib/core/translation/EditorStateTranslationDialog.d.ts.map +1 -1
- package/lib/core/translation/ToolbarButton.d.ts +1 -1
- package/lib/core/translation/ToolbarButton.d.ts.map +1 -1
- package/lib/core/translation/stateToHtml.d.ts +2 -2
- package/lib/core/translation/stateToHtml.d.ts.map +1 -1
- package/lib/core/types.d.ts +4 -4
- package/lib/core/types.d.ts.map +1 -1
- package/lib/core/utils/createBlockRenderMap.d.ts +1 -1
- package/lib/core/utils/createBlockRenderMap.d.ts.map +1 -1
- package/lib/core/utils/findEntityDataInCurrentSelection.d.ts +1 -1
- package/lib/core/utils/findEntityDataInCurrentSelection.d.ts.map +1 -1
- package/lib/core/utils/findTextInCurrentSelection.d.ts +1 -1
- package/lib/core/utils/findTextInCurrentSelection.d.ts.map +1 -1
- package/lib/core/utils/getCurrentBlock.d.ts +1 -1
- package/lib/core/utils/getCurrentBlock.d.ts.map +1 -1
- package/lib/core/utils/getRteTheme.d.ts +2 -2
- package/lib/core/utils/getRteTheme.d.ts.map +1 -1
- package/lib/core/utils/pasteAndFilterText.d.ts +1 -1
- package/lib/core/utils/pasteAndFilterText.d.ts.map +1 -1
- package/lib/core/utils/selectionIsInOneBlock.d.ts +1 -1
- package/lib/core/utils/selectionIsInOneBlock.d.ts.map +1 -1
- package/lib/field/createFinalFormRte.d.ts +1 -1
- package/lib/field/createFinalFormRte.d.ts.map +1 -1
- package/lib/field/createRteField.d.ts +2 -2
- package/lib/field/createRteField.d.ts.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/utils/requiredValidator.d.ts +1 -1
- package/lib/utils/requiredValidator.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeBlocksExceedingBlockLimit.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeBlocksExceedingBlockLimit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"removeBlocksExceedingBlockLimit.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeBlocksExceedingBlockLimit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,QAAQ,CAAC;AAI9D,QAAA,MAAM,+BAA+B,EAAE,+BAmBtC,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FilterEditorStateBeforeUpdateFn } from "../Rte";
|
|
2
2
|
declare const removeUnsupportedBlockTypes: FilterEditorStateBeforeUpdateFn;
|
|
3
3
|
export default removeUnsupportedBlockTypes;
|
|
4
4
|
//# sourceMappingURL=removeUnsupportedBlockTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeUnsupportedBlockTypes.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeUnsupportedBlockTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"removeUnsupportedBlockTypes.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeUnsupportedBlockTypes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,+BAA+B,EAAmB,MAAM,QAAQ,CAAC;AAG/E,QAAA,MAAM,2BAA2B,EAAE,+BA8BlC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FilterEditorStateBeforeUpdateFn } from "../Rte";
|
|
2
2
|
declare const removeUnsupportedEntities: FilterEditorStateBeforeUpdateFn;
|
|
3
3
|
export default removeUnsupportedEntities;
|
|
4
4
|
//# sourceMappingURL=removeUnsupportedEntities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeUnsupportedEntities.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeUnsupportedEntities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"removeUnsupportedEntities.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeUnsupportedEntities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,QAAQ,CAAC;AAG9D,QAAA,MAAM,yBAAyB,EAAE,+BAehC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FilterEditorStateBeforeUpdateFn } from "../Rte";
|
|
2
2
|
declare const removeUnsupportedInlineStyles: FilterEditorStateBeforeUpdateFn;
|
|
3
3
|
export default removeUnsupportedInlineStyles;
|
|
4
4
|
//# sourceMappingURL=removeUnsupportedInlineStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeUnsupportedInlineStyles.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeUnsupportedInlineStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"removeUnsupportedInlineStyles.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeUnsupportedInlineStyles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAmB,MAAM,QAAQ,CAAC;AAI/E,QAAA,MAAM,6BAA6B,EAAE,+BAuBpC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FilterEditorStateBeforeUpdateFn } from "../Rte";
|
|
2
2
|
declare const removeUnsupportedListLevels: FilterEditorStateBeforeUpdateFn;
|
|
3
3
|
export default removeUnsupportedListLevels;
|
|
4
4
|
//# sourceMappingURL=removeUnsupportedListLevels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeUnsupportedListLevels.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeUnsupportedListLevels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"removeUnsupportedListLevels.d.ts","sourceRoot":"","sources":["../../../src/core/filterEditor/removeUnsupportedListLevels.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,QAAQ,CAAC;AAE9D,QAAA,MAAM,2BAA2B,EAAE,+BASlC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeBlockType.d.ts","sourceRoot":"","sources":["../../../../src/core/filterEditor/utils/changeBlockType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,UAAU,CAAC;AAE5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"changeBlockType.d.ts","sourceRoot":"","sources":["../../../../src/core/filterEditor/utils/changeBlockType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,UAAU,CAAC;AAE5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,KAAK,aAAa,GAAG,cAAc,EAAE,CAAC;AAEtC,UAAU,QAAQ;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,QAAA,MAAM,eAAe,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,QAAQ,KAAK,mBAkCnG,CAAC;AAEN,eAAe,eAAe,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type EntityInstance } from "draft-js";
|
|
2
|
-
import {
|
|
2
|
+
import type { FilterEditorStateFn } from "../../types";
|
|
3
3
|
type UpdateEntityDataFn = (entity: EntityInstance) => Record<string, any> | undefined;
|
|
4
4
|
declare const manipulateEntityData: (updateEntityDataFn: UpdateEntityDataFn) => FilterEditorStateFn;
|
|
5
5
|
export default manipulateEntityData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manipulateEntityData.d.ts","sourceRoot":"","sources":["../../../../src/core/filterEditor/utils/manipulateEntityData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"manipulateEntityData.d.ts","sourceRoot":"","sources":["../../../../src/core/filterEditor/utils/manipulateEntityData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,KAAK,kBAAkB,GAAG,CAAC,MAAM,EAAE,cAAc,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;AAGtF,QAAA,MAAM,oBAAoB,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,KAAK,mBAgCvE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type EntityInstance } from "draft-js";
|
|
2
|
-
import {
|
|
2
|
+
import type { FilterEditorStateFn } from "../../types";
|
|
3
3
|
type FilterFn = (entity: EntityInstance) => boolean;
|
|
4
4
|
declare const removeEntities: (filterFn: FilterFn) => FilterEditorStateFn;
|
|
5
5
|
export default removeEntities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeEntities.d.ts","sourceRoot":"","sources":["../../../../src/core/filterEditor/utils/removeEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"removeEntities.d.ts","sourceRoot":"","sources":["../../../../src/core/filterEditor/utils/removeEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,KAAK,QAAQ,GAAG,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC;AAGpD,QAAA,MAAM,cAAc,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,mBA4B7C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FilterEditorStateFn, InlineStyleType } from "../../types";
|
|
2
2
|
type StyleBlacklist = InlineStyleType[];
|
|
3
3
|
declare const removeInlineStyles: (blockBlacklist: StyleBlacklist) => FilterEditorStateFn;
|
|
4
4
|
export default removeInlineStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeInlineStyles.d.ts","sourceRoot":"","sources":["../../../../src/core/filterEditor/utils/removeInlineStyles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"removeInlineStyles.d.ts","sourceRoot":"","sources":["../../../../src/core/filterEditor/utils/removeInlineStyles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAExE,KAAK,cAAc,GAAG,eAAe,EAAE,CAAC;AAGxC,QAAA,MAAM,kBAAkB,EAAE,CAAC,cAAc,EAAE,cAAc,KAAK,mBA6B7D,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorStateTranslationDialog.d.ts","sourceRoot":"","sources":["../../../src/core/translation/EditorStateTranslationDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"EditorStateTranslationDialog.d.ts","sourceRoot":"","sources":["../../../src/core/translation/EditorStateTranslationDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK5C,UAAU,iCAAiC;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,WAAW,CAAC;IAC1B,cAAc,EAAE,WAAW,CAAC;IAC5B,kBAAkB,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,4BAA4B,GAAI,OAAO,iCAAiC,4CAcpF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IControlProps } from "../types";
|
|
2
2
|
declare function ToolbarButton({ editorState, setEditorState, options }: IControlProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ToolbarButton;
|
|
4
4
|
//# sourceMappingURL=ToolbarButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../src/core/translation/ToolbarButton.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../src/core/translation/ToolbarButton.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,iBAAS,aAAa,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,aAAa,2CA6C7E;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { EditorState } from "draft-js";
|
|
2
|
+
import type { IOptions } from "../Rte";
|
|
3
3
|
export declare function stateToHtml({ editorState, options }: {
|
|
4
4
|
editorState: EditorState;
|
|
5
5
|
options: IOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stateToHtml.d.ts","sourceRoot":"","sources":["../../../src/core/translation/stateToHtml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"stateToHtml.d.ts","sourceRoot":"","sources":["../../../src/core/translation/stateToHtml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAI5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,wBAAgB,WAAW,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE;;;YAc3E,MAAM;cAAQ,GAAG;;EA0B1C"}
|
package/lib/core/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { SvgIconProps } from "@mui/material/SvgIcon";
|
|
2
|
+
import type { DraftInlineStyleType, Editor, EditorState } from "draft-js";
|
|
3
|
+
import type { ComponentType, CSSProperties, ForwardRefExoticComponent, JSX, MouseEvent, ReactNode, RefAttributes, RefObject } from "react";
|
|
4
|
+
import type { IRteOptions, SupportedThings } from "./Rte";
|
|
5
5
|
interface DraftBlockRenderConfig {
|
|
6
6
|
element: string | ComponentType;
|
|
7
7
|
wrapper?: ReactNode;
|
package/lib/core/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,yBAAyB,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,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qB,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAE3E,MAAM,WAAW,aAAa;IAC1B,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IACnD,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,sBAAsB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,GAAG,CAAC,OAAO,CAAC;AAE3E,MAAM,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,WAAW,KAAK,WAAW,CAAC;AAE1E;;GAEG;AACH,UAAU,2BAA2B;IACjC,YAAY,EAAE,sBAAsB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAAC;CAC9C;AAED,MAAM,WAAW,kBAAkB;IAC/B,CAAC,IAAI,EAAE,MAAM,GAAG;QACZ,KAAK,EAAE,SAAS,CAAC;QACjB,IAAI,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;QAC3F,WAAW,CAAC,EAAE,SAAS,CAAC;QACxB,KAAK,EAAE,aAAa,CAAC;KACxB,CAAC;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBlockRenderMap.d.ts","sourceRoot":"","sources":["../../../src/core/utils/createBlockRenderMap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AAEvC,OAAO,
|
|
1
|
+
{"version":3,"file":"createBlockRenderMap.d.ts","sourceRoot":"","sources":["../../../src/core/utils/createBlockRenderMap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AAEvC,OAAO,KAAK,EAAoB,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhE,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,YAAY,EAAE,EAAE;IAAE,YAAY,EAAE,aAAa,CAAA;CAAE,2BAY7F"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EditorState } from "draft-js";
|
|
2
2
|
export default function findEntityDataInCurrentSelection<T extends Record<string, any> = Record<string, any>>(editorState: EditorState, entityType: string): T | null;
|
|
3
3
|
//# sourceMappingURL=findEntityDataInCurrentSelection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findEntityDataInCurrentSelection.d.ts","sourceRoot":"","sources":["../../../src/core/utils/findEntityDataInCurrentSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"findEntityDataInCurrentSelection.d.ts","sourceRoot":"","sources":["../../../src/core/utils/findEntityDataInCurrentSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK5C,MAAM,CAAC,OAAO,UAAU,gCAAgC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxG,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,MAAM,GACnB,CAAC,GAAG,IAAI,CASV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findTextInCurrentSelection.d.ts","sourceRoot":"","sources":["../../../src/core/utils/findTextInCurrentSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"findTextInCurrentSelection.d.ts","sourceRoot":"","sources":["../../../src/core/utils/findTextInCurrentSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK5C,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAanF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentBlock.d.ts","sourceRoot":"","sources":["../../../src/core/utils/getCurrentBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getCurrentBlock.d.ts","sourceRoot":"","sources":["../../../src/core/utils/getCurrentBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,WAAW,EAAE,WAAW,iDAM/D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import type { RteProps } from "../Rte";
|
|
3
3
|
export type RteThemeColors = {
|
|
4
4
|
border: CSSProperties["color"];
|
|
5
5
|
outerBorderOnHover: CSSProperties["color"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRteTheme.d.ts","sourceRoot":"","sources":["../../../src/core/utils/getRteTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getRteTheme.d.ts","sourceRoot":"","sources":["../../../src/core/utils/getRteTheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG;IACzB,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,kBAAkB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC3C,kBAAkB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC3C,iBAAiB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC1C,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACnC,kBAAkB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC3C,qBAAqB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9C,iBAAiB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC1C,oBAAoB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CAChD,CAAC;AAEF,UAAU,QAAQ;IACd,MAAM,EAAE,cAAc,CAAC;CAC1B;yBAEe,YAAY,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,KAAG,QAAQ;AAApE,wBAcE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EditorState } from "draft-js";
|
|
2
2
|
import { type IOptions } from "../Rte";
|
|
3
3
|
declare function pasteAndFilterText(html: string | undefined, editorState: EditorState, options: Pick<IOptions, "supports" | "listLevelMax" | "maxBlocks" | "standardBlockType">): false | EditorState;
|
|
4
4
|
export { pasteAndFilterText };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pasteAndFilterText.d.ts","sourceRoot":"","sources":["../../../src/core/utils/pasteAndFilterText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"pasteAndFilterText.d.ts","sourceRoot":"","sources":["../../../src/core/utils/pasteAndFilterText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAI5C,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvD,iBAAS,kBAAkB,CACvB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,mBAAmB,CAAC,GACzF,KAAK,GAAG,WAAW,CAQrB;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectionIsInOneBlock.d.ts","sourceRoot":"","sources":["../../../src/core/utils/selectionIsInOneBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"selectionIsInOneBlock.d.ts","sourceRoot":"","sources":["../../../src/core/utils/selectionIsInOneBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAM/E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FunctionComponent } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import type { FieldRenderProps } from "react-final-form";
|
|
3
3
|
import { type IMakeRteApiProps } from "../core/makeRteApi";
|
|
4
4
|
import { type IOptions as RteOptions, type RteProps } from "../core/Rte";
|
|
5
5
|
export interface IConfig<T = any> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFinalFormRte.d.ts","sourceRoot":"","sources":["../../src/field/createFinalFormRte.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,iBAAiB,EAAU,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createFinalFormRte.d.ts","sourceRoot":"","sources":["../../src/field/createFinalFormRte.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,iBAAiB,EAAU,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAmB,EAAE,KAAK,gBAAgB,EAAmC,MAAM,oBAAoB,CAAC;AACxG,OAAO,EAAE,KAAK,QAAQ,IAAI,UAAU,EAAO,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG9E,MAAM,WAAW,OAAO,CAAC,CAAC,GAAG,GAAG;IAC5B,aAAa,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B;AAID;;;;GAIG;AACH,iBAAS,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,GAAE,OAAO,CAAC,CAAC,CAAiB;;;kBAmClB,CAAC;wBAAkB,OAAO;;EAiB9E;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FieldProps } from "@comet/admin";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { FunctionComponent } from "react";
|
|
3
|
+
import type { RteProps } from "../core/Rte";
|
|
4
4
|
import { type IConfig } from "./createFinalFormRte";
|
|
5
5
|
export type RteFieldProps = FieldProps<string, HTMLInputElement> & Partial<RteProps>;
|
|
6
6
|
export declare const createRteField: (config?: IConfig) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRteField.d.ts","sourceRoot":"","sources":["../../src/field/createRteField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createRteField.d.ts","sourceRoot":"","sources":["../../src/field/createRteField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,OAA2B,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAQrF,eAAO,MAAM,cAAc,GAAI,SAAS,OAAO;;;;;;CAQ9C,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { default as filterEditorUtilsRemoveInlineStyles } from "./core/filterEdi
|
|
|
19
19
|
export { type IMakeRteApiProps, type IRteApiProps, default as makeRteApi, type OnDebouncedContentChangeFn } from "./core/makeRteApi";
|
|
20
20
|
export { type FilterEditorStateBeforeUpdateFn, type IOptions as IRteOptions, type IRteRef, Rte, type RteClassKey, type RteProps } from "./core/Rte";
|
|
21
21
|
export { type IOptions as IRteReadOnlyOptions, type IProps as IRteReadOnlyProps, default as RteReadOnly } from "./core/RteReadOnly";
|
|
22
|
+
export { htmlToState } from "./core/translation/htmlToState";
|
|
22
23
|
export { stateToHtml } from "./core/translation/stateToHtml";
|
|
23
24
|
export { default as findEntityInCurrentSelection } from "./core/utils/findEntityInCurrentSelection";
|
|
24
25
|
export { default as findTextInCurrentSelection } from "./core/utils/findTextInCurrentSelection";
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC5G,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,KAAK,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACtH,OAAO,EAAE,aAAa,EAAE,KAAK,MAAM,IAAI,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACjI,OAAO,EAAE,mBAAmB,EAAE,KAAK,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC/G,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,KAAK,uBAAuB,EAAE,KAAK,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAChI,OAAO,EAAE,OAAO,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AAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export { default as filterEditorUtilsRemoveInlineStyles } from "./core/filterEdi
|
|
|
18
18
|
export { default as makeRteApi } from "./core/makeRteApi";
|
|
19
19
|
export { Rte } from "./core/Rte";
|
|
20
20
|
export { default as RteReadOnly } from "./core/RteReadOnly";
|
|
21
|
+
export { htmlToState } from "./core/translation/htmlToState";
|
|
21
22
|
export { stateToHtml } from "./core/translation/stateToHtml";
|
|
22
23
|
export { default as findEntityInCurrentSelection } from "./core/utils/findEntityInCurrentSelection";
|
|
23
24
|
export { default as findTextInCurrentSelection } from "./core/utils/findTextInCurrentSelection";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type RawDraftContentState } from "draft-js";
|
|
2
|
-
import {
|
|
2
|
+
import type { FieldValidator } from "final-form";
|
|
3
3
|
export declare const requiredValidator: FieldValidator<string | RawDraftContentState | undefined>;
|
|
4
4
|
//# sourceMappingURL=requiredValidator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requiredValidator.d.ts","sourceRoot":"","sources":["../../src/utils/requiredValidator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"requiredValidator.d.ts","sourceRoot":"","sources":["../../src/utils/requiredValidator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKjD,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,MAAM,GAAG,oBAAoB,GAAG,SAAS,CASvF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/admin-rte",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.4",
|
|
4
4
|
"description": "Comet Admin Rich Text Editor component",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/admin/admin-rte",
|
|
@@ -28,31 +28,31 @@
|
|
|
28
28
|
"draft-js-import-html": "^1.4.1",
|
|
29
29
|
"draftjs-conductor": "^3.0.0",
|
|
30
30
|
"immutable": "~3.8.2",
|
|
31
|
-
"@comet/admin": "9.0.0-beta.
|
|
32
|
-
"@comet/admin-icons": "9.0.0-beta.
|
|
31
|
+
"@comet/admin": "9.0.0-beta.4",
|
|
32
|
+
"@comet/admin-icons": "9.0.0-beta.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@babel/cli": "^7.28.6",
|
|
36
|
-
"@babel/core": "^7.
|
|
37
|
-
"@mui/material": "^7.3.
|
|
36
|
+
"@babel/core": "^7.29.0",
|
|
37
|
+
"@mui/material": "^7.3.11",
|
|
38
38
|
"@types/draft-js": "^0.11.20",
|
|
39
|
-
"@types/react": "^19.2.
|
|
39
|
+
"@types/react": "^19.2.14",
|
|
40
40
|
"@types/react-dom": "^19.2.3",
|
|
41
41
|
"draft-js": "^0.11.7",
|
|
42
|
-
"eslint": "^9.39.
|
|
42
|
+
"eslint": "^9.39.4",
|
|
43
43
|
"final-form": "^4.20.10",
|
|
44
|
-
"jsdom": "^28.
|
|
44
|
+
"jsdom": "^28.1.0",
|
|
45
45
|
"npm-run-all2": "^8.0.4",
|
|
46
46
|
"prettier": "^3.6.2",
|
|
47
|
-
"react": "^19.2.
|
|
48
|
-
"react-dom": "^19.2.
|
|
47
|
+
"react": "^19.2.6",
|
|
48
|
+
"react-dom": "^19.2.6",
|
|
49
49
|
"react-final-form": "^6.5.9",
|
|
50
50
|
"react-intl": "^7.1.11",
|
|
51
51
|
"rimraf": "^6.1.2",
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vitest": "^4.0.16",
|
|
54
|
-
"@comet/
|
|
55
|
-
"@comet/
|
|
54
|
+
"@comet/admin-babel-preset": "9.0.0-beta.4",
|
|
55
|
+
"@comet/eslint-config": "9.0.0-beta.4"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@mui/material": "^7.0.0",
|