@os-design/editor 1.0.139 → 1.0.142
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/dist/cjs/Editor/BlockToolbar.js.map +1 -1
- package/dist/cjs/Editor/StyleToolbar.js.map +1 -1
- package/dist/cjs/Editor/Toolbar.js.map +1 -1
- package/dist/cjs/Editor/ToolbarButton.js +1 -1
- package/dist/cjs/Editor/ToolbarButton.js.map +1 -1
- package/dist/cjs/Editor/blocks/Figure.js.map +1 -1
- package/dist/cjs/Editor/blocks/FigureCaption.js.map +1 -1
- package/dist/cjs/Editor/blocks/imageBlock.js +4 -2
- package/dist/cjs/Editor/blocks/imageBlock.js.map +1 -1
- package/dist/cjs/Editor/blocks/types.js.map +1 -1
- package/dist/cjs/Editor/blocks/youTubeBlock.js.map +1 -1
- package/dist/cjs/Editor/decorators/linkDecorator.js.map +1 -1
- package/dist/cjs/Editor/hooks/useBlockToolbarProps.js.map +1 -1
- package/dist/cjs/Editor/hooks/usePastedTextHandler.js.map +1 -1
- package/dist/cjs/Editor/hooks/useReturnHandler.js.map +1 -1
- package/dist/cjs/Editor/hooks/useStyleToolbarProps.js.map +1 -1
- package/dist/cjs/Editor/index.js +1 -1
- package/dist/cjs/Editor/index.js.map +1 -1
- package/dist/cjs/Editor/styles/defaultDraftJsStyles.js.map +1 -1
- package/dist/cjs/Editor/styles/overrideDraftJsStyles.js.map +1 -1
- package/dist/cjs/Editor/utils/addNewBlockAt.js.map +1 -1
- package/dist/cjs/Editor/utils/changeBlock.js.map +1 -1
- package/dist/cjs/Editor/utils/createContentEditorState.js.map +1 -1
- package/dist/cjs/Editor/utils/createDecorator.js.map +1 -1
- package/dist/cjs/Editor/utils/createEmptyEditorState.js.map +1 -1
- package/dist/cjs/Editor/utils/defaultStyleToolbarItems.js.map +1 -1
- package/dist/cjs/Editor/utils/getCurrentBlock.js.map +1 -1
- package/dist/cjs/Editor/utils/getSelectedBlockElement.js.map +1 -1
- package/dist/cjs/Editor/utils/getSelectionRange.js.map +1 -1
- package/dist/cjs/Editor/utils/setLink.js.map +1 -1
- package/dist/cjs/Editor/utils/transformers.js.map +1 -1
- package/dist/cjs/Editor/utils/unsetLink.js.map +1 -1
- package/dist/cjs/EditorSkeleton/index.js +1 -1
- package/dist/cjs/EditorSkeleton/index.js.map +1 -1
- package/dist/cjs/emotion.d.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/Editor/BlockToolbar.js.map +1 -1
- package/dist/esm/Editor/StyleToolbar.js.map +1 -1
- package/dist/esm/Editor/Toolbar.js.map +1 -1
- package/dist/esm/Editor/ToolbarButton.js +1 -1
- package/dist/esm/Editor/ToolbarButton.js.map +1 -1
- package/dist/esm/Editor/blocks/Figure.js.map +1 -1
- package/dist/esm/Editor/blocks/FigureCaption.js.map +1 -1
- package/dist/esm/Editor/blocks/imageBlock.js.map +1 -1
- package/dist/esm/Editor/blocks/types.js.map +1 -1
- package/dist/esm/Editor/blocks/youTubeBlock.js.map +1 -1
- package/dist/esm/Editor/decorators/linkDecorator.js.map +1 -1
- package/dist/esm/Editor/hooks/useBlockToolbarProps.js.map +1 -1
- package/dist/esm/Editor/hooks/usePastedTextHandler.js.map +1 -1
- package/dist/esm/Editor/hooks/useReturnHandler.js.map +1 -1
- package/dist/esm/Editor/hooks/useStyleToolbarProps.js.map +1 -1
- package/dist/esm/Editor/index.js +1 -1
- package/dist/esm/Editor/index.js.map +1 -1
- package/dist/esm/Editor/styles/defaultDraftJsStyles.js.map +1 -1
- package/dist/esm/Editor/styles/overrideDraftJsStyles.js.map +1 -1
- package/dist/esm/Editor/utils/addNewBlockAt.js.map +1 -1
- package/dist/esm/Editor/utils/changeBlock.js.map +1 -1
- package/dist/esm/Editor/utils/createContentEditorState.js.map +1 -1
- package/dist/esm/Editor/utils/createDecorator.js.map +1 -1
- package/dist/esm/Editor/utils/createEmptyEditorState.js.map +1 -1
- package/dist/esm/Editor/utils/defaultStyleToolbarItems.js.map +1 -1
- package/dist/esm/Editor/utils/getCurrentBlock.js.map +1 -1
- package/dist/esm/Editor/utils/getSelectedBlockElement.js.map +1 -1
- package/dist/esm/Editor/utils/getSelectionRange.js.map +1 -1
- package/dist/esm/Editor/utils/setLink.js.map +1 -1
- package/dist/esm/Editor/utils/transformers.js.map +1 -1
- package/dist/esm/Editor/utils/unsetLink.js.map +1 -1
- package/dist/esm/EditorSkeleton/index.js +1 -1
- package/dist/esm/EditorSkeleton/index.js.map +1 -1
- package/dist/esm/emotion.d.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/Editor/blocks/Figure.d.ts +1 -1
- package/dist/types/Editor/blocks/FigureCaption.d.ts +1 -1
- package/dist/types/Editor/styles/defaultDraftJsStyles.d.ts +1 -1
- package/dist/types/Editor/styles/overrideDraftJsStyles.d.ts +1 -1
- package/dist/types/EditorSkeleton/index.d.ts +1 -1
- package/dist/types/EditorSkeleton/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["styled","React","forwardRef","InputSkeleton","StyledEditorSkeleton","p","theme","editorMinHeight","EditorSkeleton","props","ref","displayName"],"sources":["../../../src/EditorSkeleton/index.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport React, { forwardRef } from 'react';\nimport { InputSkeleton, InputSkeletonProps } from '@os-design/core';\n\nexport type EditorSkeletonProps = InputSkeletonProps;\n\nconst StyledEditorSkeleton = styled(InputSkeleton)`\n height: ${(p) => p.theme.editorMinHeight}em;\n`;\n\n/**\n * Provides an editor placeholder while a user waits for the content to load.\n */\nconst EditorSkeleton = forwardRef<HTMLDivElement, EditorSkeletonProps>(\n (props, ref) => <StyledEditorSkeleton {...props} ref={ref} />\n);\n\nEditorSkeleton.displayName = 'EditorSkeleton';\n\nexport default EditorSkeleton;\n"],"mappings":";;AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AACA,OAAOC,KAAP,IAAgBC,UAAhB,QAAkC,OAAlC;AACA,SAASC,aAAT,QAAkD,iBAAlD;AAIA,MAAMC,oBAAoB,GAAGJ,MAAM,CAACG,aAAD,CAAgB;AACnD,YAAaE,CAAD,IAAOA,CAAC,CAACC,KAAF,CAAQC,eAAgB;AAC3C,CAFA;AAIA;AACA;AACA;;AACA,MAAMC,cAAc,gBAAGN,UAAU,CAC/B,CAACO,KAAD,EAAQC,GAAR,kBAAgB,oBAAC,oBAAD,eAA0BD,KAA1B;EAAiC,GAAG,EAAEC;AAAtC,GADe,CAAjC;AAIAF,cAAc,CAACG,WAAf,GAA6B,gBAA7B;AAEA,eAAeH,cAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"emotion.d.js","names":[],"sources":["../../src/emotion.d.ts"],"sourcesContent":["import '@emotion/react';\nimport { Theme as BaseTheme } from '@os-design/theming';\n\ndeclare module '@emotion/react' {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n export interface Theme extends BaseTheme {}\n}\n"],"mappings":"AAAA,OAAO,gBAAP"}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","Editor","addNewBlockAt","changeBlock","createContentEditorState","createDecorator","createEmptyEditorState","defaultStyleToolbarItems","getCurrentBlock","imageBlock","youTubeBlock","EditorSkeleton"],"sources":["../../src/index.ts"],"sourcesContent":["export { default as Editor } from './Editor';\nexport { default as addNewBlockAt } from './Editor/utils/addNewBlockAt';\nexport { default as changeBlock } from './Editor/utils/changeBlock';\nexport { default as createContentEditorState } from './Editor/utils/createContentEditorState';\nexport { default as createDecorator } from './Editor/utils/createDecorator';\nexport { default as createEmptyEditorState } from './Editor/utils/createEmptyEditorState';\nexport { default as defaultStyleToolbarItems } from './Editor/utils/defaultStyleToolbarItems';\nexport { default as getCurrentBlock } from './Editor/utils/getCurrentBlock';\nexport { default as imageBlock } from './Editor/blocks/imageBlock';\nexport { default as youTubeBlock } from './Editor/blocks/youTubeBlock';\nexport { default as EditorSkeleton } from './EditorSkeleton';\n\nexport * from './Editor';\nexport * from './Editor/utils/transformers';\nexport * from './Editor/blocks/types';\nexport * from './EditorSkeleton';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,MAApB,QAAkC,UAAlC;AACA,SAASD,OAAO,IAAIE,aAApB,QAAyC,8BAAzC;AACA,SAASF,OAAO,IAAIG,WAApB,QAAuC,4BAAvC;AACA,SAASH,OAAO,IAAII,wBAApB,QAAoD,yCAApD;AACA,SAASJ,OAAO,IAAIK,eAApB,QAA2C,gCAA3C;AACA,SAASL,OAAO,IAAIM,sBAApB,QAAkD,uCAAlD;AACA,SAASN,OAAO,IAAIO,wBAApB,QAAoD,yCAApD;AACA,SAASP,OAAO,IAAIQ,eAApB,QAA2C,gCAA3C;AACA,SAASR,OAAO,IAAIS,UAApB,QAAsC,4BAAtC;AACA,SAAST,OAAO,IAAIU,YAApB,QAAwC,8BAAxC;AACA,SAASV,OAAO,IAAIW,cAApB,QAA0C,kBAA1C;AAEA,cAAc,UAAd;AACA,cAAc,6BAAd;AACA,cAAc,uBAAd;AACA,cAAc,kBAAd"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const Figure: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?:
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
6
6
|
export default Figure;
|
|
7
7
|
//# sourceMappingURL=Figure.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const FigureCaption: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?:
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
6
6
|
export default FigureCaption;
|
|
7
7
|
//# sourceMappingURL=FigureCaption.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const overrideDraftJsStyles: (p: any) => import("@emotion/
|
|
1
|
+
declare const overrideDraftJsStyles: (p: any) => import("@emotion/utils").SerializedStyles;
|
|
2
2
|
export default overrideDraftJsStyles;
|
|
3
3
|
//# sourceMappingURL=overrideDraftJsStyles.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InputSkeletonProps } from '@os-design/core';
|
|
3
3
|
export declare type EditorSkeletonProps = InputSkeletonProps;
|
|
4
|
-
declare const EditorSkeleton: React.ForwardRefExoticComponent<
|
|
4
|
+
declare const EditorSkeleton: React.ForwardRefExoticComponent<Omit<import("@os-design/core").SkeletonProps, "width"> & import("@os-design/styles").WithSize & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default EditorSkeleton;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/EditorSkeleton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAiB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,oBAAY,mBAAmB,GAAG,kBAAkB,CAAC;AASrD,QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/EditorSkeleton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAiB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,oBAAY,mBAAmB,GAAG,kBAAkB,CAAC;AASrD,QAAA,MAAM,cAAc,sKAEnB,CAAC;AAIF,eAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@os-design/editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.142",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": "git@gitlab.com:os-team/libs/os-design.git",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@os-design/core": "^1.0.
|
|
31
|
+
"@os-design/core": "^1.0.138",
|
|
32
32
|
"@os-design/icons": "^1.0.34",
|
|
33
33
|
"@os-design/styles": "^1.0.32",
|
|
34
34
|
"@os-design/theming": "^1.0.30",
|
|
35
|
-
"@os-design/utils": "^1.0.
|
|
35
|
+
"@os-design/utils": "^1.0.47",
|
|
36
36
|
"draft-js": "^0.11.7"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"react": ">=18",
|
|
49
49
|
"react-dom": ">=18"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "f8ca9a29bb4131d35eff737da2c6b3bcb594c3b3"
|
|
52
52
|
}
|