@contentful/field-editor-rich-text 6.6.1 → 6.6.2-canary.11
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 +5 -0
- package/dist/cjs/RichTextEditor.js +4 -3
- package/dist/cjs/internal/__tests__/pluginAdapter.test.js +16 -0
- package/dist/cjs/plugins/createSelectionSyncPlugin.js +90 -0
- package/dist/cjs/plugins/index.js +5 -1
- package/dist/esm/RichTextEditor.js +4 -3
- package/dist/esm/internal/__tests__/pluginAdapter.test.js +16 -0
- package/dist/esm/plugins/createSelectionSyncPlugin.js +75 -0
- package/dist/esm/plugins/index.js +5 -1
- package/dist/types/RichTextEditor.d.ts +3 -0
- package/dist/types/plugins/createSelectionSyncPlugin.d.ts +2 -0
- package/dist/types/plugins/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,6 +10,11 @@ This package contains a React `RichTextEditor` component that is used as the def
|
|
|
10
10
|
import { RichTextEditor } from '@contentful/field-editor-rich-text';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
Pass `withSelectionSync={true}` to opt in to synchronizing the browser caret before editing.
|
|
14
|
+
It defaults to `false`; the plugin is omitted when disabled. Resolve the feature flag before
|
|
15
|
+
mounting the editor. This setting applies when the editor is created, so later changes require
|
|
16
|
+
reopening or remounting the editor.
|
|
17
|
+
|
|
13
18
|
## ⚠️ Important: Package Configuration
|
|
14
19
|
|
|
15
20
|
Plate 53.3.14 pins `slate-react` to 0.126.4. To use the latest Slate React version tested by this package (0.127.1), update existing overrides in your application as shown below. Package-manager overrides in this repository are not inherited by applications that install the published package.
|
|
@@ -84,13 +84,14 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
84
84
|
return newObj;
|
|
85
85
|
}
|
|
86
86
|
const ConnectedRichTextEditor = /*#__PURE__*/ _react.memo(function ConnectedRichTextEditor(props) {
|
|
87
|
-
const { sdk, onAction, restrictedMarks, withCharValidation } = props;
|
|
87
|
+
const { sdk, onAction, restrictedMarks, withCharValidation, withSelectionSync } = props;
|
|
88
88
|
const id = (0, _ContentfulEditorProvider.getContentfulEditorId)(sdk);
|
|
89
|
-
const plugins = _react.useMemo(()=>(0, _plugins.getPlugins)(sdk, onAction ?? _noop.default, restrictedMarks, withCharValidation), [
|
|
89
|
+
const plugins = _react.useMemo(()=>(0, _plugins.getPlugins)(sdk, onAction ?? _noop.default, restrictedMarks, withCharValidation, withSelectionSync), [
|
|
90
90
|
sdk,
|
|
91
91
|
onAction,
|
|
92
92
|
restrictedMarks,
|
|
93
|
-
withCharValidation
|
|
93
|
+
withCharValidation,
|
|
94
|
+
withSelectionSync
|
|
94
95
|
]);
|
|
95
96
|
const initialValue = (0, _usedeepcompare.useDeepCompareMemo)(()=>{
|
|
96
97
|
return (0, _toSlateDoc.toSlateDoc)(props.value);
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
const _richtexttypes = require("@contentful/rich-text-types");
|
|
6
6
|
const _platejs = require("platejs");
|
|
7
7
|
const _vitest = require("vitest");
|
|
8
|
+
const _plugins = require("../../plugins");
|
|
8
9
|
const _Paragraph = require("../../plugins/Paragraph/Paragraph");
|
|
9
10
|
const _sanitizeHTML = require("../../plugins/PasteHTML/utils/sanitizeHTML");
|
|
10
11
|
const _Cell = require("../../plugins/Table/components/Cell");
|
|
@@ -199,3 +200,18 @@ const _createTestEditor = require("../../test-utils/createTestEditor");
|
|
|
199
200
|
_richtexttypes.BLOCKS.PARAGRAPH
|
|
200
201
|
]);
|
|
201
202
|
});
|
|
203
|
+
_vitest.it.each([
|
|
204
|
+
undefined,
|
|
205
|
+
false,
|
|
206
|
+
true
|
|
207
|
+
])('registers caret sync only when explicitly enabled (%s)', (enabled)=>{
|
|
208
|
+
const sdk = {
|
|
209
|
+
field: {
|
|
210
|
+
validation: []
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
const { editor } = (0, _createTestEditor.createTestEditor)({
|
|
214
|
+
plugins: (0, _plugins.getPlugins)(sdk, _vitest.vi.fn(), undefined, undefined, enabled)
|
|
215
|
+
});
|
|
216
|
+
(0, _vitest.expect)(editor.plugins.selectionSync !== undefined).toBe(enabled === true);
|
|
217
|
+
});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "createSelectionSyncPlugin", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return createSelectionSyncPlugin;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _ishotkey = /*#__PURE__*/ _interop_require_default(require("is-hotkey"));
|
|
12
|
+
const _plate = require("../internal/plate");
|
|
13
|
+
const _pluginAdapter = require("../internal/pluginAdapter");
|
|
14
|
+
function _interop_require_default(obj) {
|
|
15
|
+
return obj && obj.__esModule ? obj : {
|
|
16
|
+
default: obj
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const editingKeys = [
|
|
20
|
+
'ArrowLeft',
|
|
21
|
+
'ArrowRight',
|
|
22
|
+
'Backspace',
|
|
23
|
+
'Delete',
|
|
24
|
+
'Enter'
|
|
25
|
+
];
|
|
26
|
+
const hasMatchingCaret = (editor, domSelection)=>{
|
|
27
|
+
const caret = editor.selection;
|
|
28
|
+
if (domSelection.rangeCount !== 1 || !domSelection.isCollapsed || !caret || !(0, _plate.isCollapsed)(caret)) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
const { anchorNode, anchorOffset } = domSelection;
|
|
32
|
+
if (anchorOffset !== caret.anchor.offset) return false;
|
|
33
|
+
if (anchorNode?.nodeType !== Node.TEXT_NODE || !anchorNode.parentElement?.hasAttribute('data-slate-string')) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
const node = editor.api.node(caret.anchor.path)?.[0];
|
|
37
|
+
return !!node && 'text' in node && node.text === anchorNode.textContent && node === editor.api.toSlateNode(anchorNode);
|
|
38
|
+
};
|
|
39
|
+
const shouldSyncBeforeKeyDown = (editor, event)=>{
|
|
40
|
+
if (editingKeys.includes(event.key)) return true;
|
|
41
|
+
if (!event.metaKey && !event.ctrlKey) return false;
|
|
42
|
+
return (0, _pluginAdapter.getContentfulPlugins)(editor).some(({ handlers, options })=>{
|
|
43
|
+
const { hotkey } = options ?? {};
|
|
44
|
+
return handlers?.onKeyDown && hotkey && (0, _ishotkey.default)(hotkey, event);
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
const isUnfocusedCardSelected = (editor)=>!editor.api.isFocused() && !!editor.selection && !!editor.api.void({
|
|
48
|
+
at: editor.selection.focus
|
|
49
|
+
});
|
|
50
|
+
const syncSelectionFromDOM = (editor)=>{
|
|
51
|
+
if (editor.api.isComposing()) return;
|
|
52
|
+
const domSelection = editor.api.getWindow()?.getSelection();
|
|
53
|
+
if (!domSelection) return;
|
|
54
|
+
const { anchorNode, focusNode } = domSelection;
|
|
55
|
+
const isInsideEditor = editor.api.hasTarget(anchorNode) && (focusNode === anchorNode || editor.api.hasTarget(focusNode));
|
|
56
|
+
if (!isInsideEditor || hasMatchingCaret(editor, domSelection)) return;
|
|
57
|
+
const range = editor.api.toSlateRange(domSelection, {
|
|
58
|
+
exactMatch: false,
|
|
59
|
+
suppressThrow: true
|
|
60
|
+
});
|
|
61
|
+
if (!range) return;
|
|
62
|
+
const touchesCard = editor.api.void({
|
|
63
|
+
at: range.anchor
|
|
64
|
+
}) || editor.api.void({
|
|
65
|
+
at: range.focus
|
|
66
|
+
});
|
|
67
|
+
if (touchesCard) return;
|
|
68
|
+
editor.tf.select(range);
|
|
69
|
+
};
|
|
70
|
+
const createSelectionSyncPlugin = ()=>({
|
|
71
|
+
key: 'selectionSync',
|
|
72
|
+
handlers: {
|
|
73
|
+
onMouseUp: (editor)=>()=>syncSelectionFromDOM(editor),
|
|
74
|
+
onKeyDown: (editor)=>(event)=>{
|
|
75
|
+
if (!shouldSyncBeforeKeyDown(editor, event)) return;
|
|
76
|
+
if (isUnfocusedCardSelected(editor) || event.nativeEvent.isComposing) return;
|
|
77
|
+
syncSelectionFromDOM(editor);
|
|
78
|
+
},
|
|
79
|
+
onCompositionStart: (editor)=>()=>syncSelectionFromDOM(editor),
|
|
80
|
+
onDOMBeforeInput: (editor)=>(event)=>{
|
|
81
|
+
const input = 'nativeEvent' in event ? event.nativeEvent : event;
|
|
82
|
+
const changesContent = [
|
|
83
|
+
'insertText',
|
|
84
|
+
'insertParagraph',
|
|
85
|
+
'insertLineBreak'
|
|
86
|
+
].includes(input.inputType) || input.inputType.startsWith('delete');
|
|
87
|
+
if (changesContent && !input.isComposing) syncSelectionFromDOM(editor);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
@@ -12,6 +12,7 @@ const _Break = require("./Break");
|
|
|
12
12
|
const _CharCounter = require("./CharCounter");
|
|
13
13
|
const _CommandPalette = require("./CommandPalette");
|
|
14
14
|
const _useCommands = require("./CommandPalette/useCommands");
|
|
15
|
+
const _createSelectionSyncPlugin = require("./createSelectionSyncPlugin");
|
|
15
16
|
const _DeserializeDocx = require("./DeserializeDocx");
|
|
16
17
|
const _DragAndDrop = require("./DragAndDrop");
|
|
17
18
|
const _EmbeddedEntityBlock = require("./EmbeddedEntityBlock");
|
|
@@ -33,9 +34,12 @@ const _Text = require("./Text");
|
|
|
33
34
|
const _Tracking = require("./Tracking");
|
|
34
35
|
const _TrailingParagraph = require("./TrailingParagraph");
|
|
35
36
|
const _Voids = require("./Voids");
|
|
36
|
-
const getPlugins = (sdk, onAction, restrictedMarks, withCharValidation)=>[
|
|
37
|
+
const getPlugins = (sdk, onAction, restrictedMarks, withCharValidation, withSelectionSync = false)=>[
|
|
37
38
|
(0, _DeserializeDocx.createDeserializeDocxPlugin)(),
|
|
38
39
|
(0, _Tracking.createTrackingPlugin)(onAction),
|
|
40
|
+
...withSelectionSync ? [
|
|
41
|
+
(0, _createSelectionSyncPlugin.createSelectionSyncPlugin)()
|
|
42
|
+
] : [],
|
|
39
43
|
(0, _DragAndDrop.createDragAndDropPlugin)(),
|
|
40
44
|
...Object.values((0, _useCommands.isCommandPromptPluginEnabled)(sdk)).some(Boolean) ? [
|
|
41
45
|
(0, _CommandPalette.createCommandPalettePlugin)()
|
|
@@ -20,13 +20,14 @@ import { SyncEditorChanges } from './SyncEditorChanges';
|
|
|
20
20
|
import Toolbar from './Toolbar';
|
|
21
21
|
import StickyToolbarWrapper from './Toolbar/components/StickyToolbarWrapper';
|
|
22
22
|
export const ConnectedRichTextEditor = /*#__PURE__*/ React.memo(function ConnectedRichTextEditor(props) {
|
|
23
|
-
const { sdk, onAction, restrictedMarks, withCharValidation } = props;
|
|
23
|
+
const { sdk, onAction, restrictedMarks, withCharValidation, withSelectionSync } = props;
|
|
24
24
|
const id = getContentfulEditorId(sdk);
|
|
25
|
-
const plugins = React.useMemo(()=>getPlugins(sdk, onAction ?? noop, restrictedMarks, withCharValidation), [
|
|
25
|
+
const plugins = React.useMemo(()=>getPlugins(sdk, onAction ?? noop, restrictedMarks, withCharValidation, withSelectionSync), [
|
|
26
26
|
sdk,
|
|
27
27
|
onAction,
|
|
28
28
|
restrictedMarks,
|
|
29
|
-
withCharValidation
|
|
29
|
+
withCharValidation,
|
|
30
|
+
withSelectionSync
|
|
30
31
|
]);
|
|
31
32
|
const initialValue = useDeepCompareMemo(()=>{
|
|
32
33
|
return toSlateDoc(props.value);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BLOCKS } from '@contentful/rich-text-types';
|
|
2
2
|
import { getPluginByType, KEYS } from 'platejs';
|
|
3
3
|
import { expect, it, vi } from 'vitest';
|
|
4
|
+
import { getPlugins } from '../../plugins';
|
|
4
5
|
import { Paragraph } from '../../plugins/Paragraph/Paragraph';
|
|
5
6
|
import { sanitizeHTML } from '../../plugins/PasteHTML/utils/sanitizeHTML';
|
|
6
7
|
import { Cell } from '../../plugins/Table/components/Cell';
|
|
@@ -195,3 +196,18 @@ it('unwraps an empty quote on Backspace', ()=>{
|
|
|
195
196
|
BLOCKS.PARAGRAPH
|
|
196
197
|
]);
|
|
197
198
|
});
|
|
199
|
+
it.each([
|
|
200
|
+
undefined,
|
|
201
|
+
false,
|
|
202
|
+
true
|
|
203
|
+
])('registers caret sync only when explicitly enabled (%s)', (enabled)=>{
|
|
204
|
+
const sdk = {
|
|
205
|
+
field: {
|
|
206
|
+
validation: []
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const { editor } = createTestEditor({
|
|
210
|
+
plugins: getPlugins(sdk, vi.fn(), undefined, undefined, enabled)
|
|
211
|
+
});
|
|
212
|
+
expect(editor.plugins.selectionSync !== undefined).toBe(enabled === true);
|
|
213
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import isHotkey from 'is-hotkey';
|
|
2
|
+
import { isCollapsed } from '../internal/plate';
|
|
3
|
+
import { getContentfulPlugins } from '../internal/pluginAdapter';
|
|
4
|
+
const editingKeys = [
|
|
5
|
+
'ArrowLeft',
|
|
6
|
+
'ArrowRight',
|
|
7
|
+
'Backspace',
|
|
8
|
+
'Delete',
|
|
9
|
+
'Enter'
|
|
10
|
+
];
|
|
11
|
+
const hasMatchingCaret = (editor, domSelection)=>{
|
|
12
|
+
const caret = editor.selection;
|
|
13
|
+
if (domSelection.rangeCount !== 1 || !domSelection.isCollapsed || !caret || !isCollapsed(caret)) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
const { anchorNode, anchorOffset } = domSelection;
|
|
17
|
+
if (anchorOffset !== caret.anchor.offset) return false;
|
|
18
|
+
if (anchorNode?.nodeType !== Node.TEXT_NODE || !anchorNode.parentElement?.hasAttribute('data-slate-string')) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
const node = editor.api.node(caret.anchor.path)?.[0];
|
|
22
|
+
return !!node && 'text' in node && node.text === anchorNode.textContent && node === editor.api.toSlateNode(anchorNode);
|
|
23
|
+
};
|
|
24
|
+
const shouldSyncBeforeKeyDown = (editor, event)=>{
|
|
25
|
+
if (editingKeys.includes(event.key)) return true;
|
|
26
|
+
if (!event.metaKey && !event.ctrlKey) return false;
|
|
27
|
+
return getContentfulPlugins(editor).some(({ handlers, options })=>{
|
|
28
|
+
const { hotkey } = options ?? {};
|
|
29
|
+
return handlers?.onKeyDown && hotkey && isHotkey(hotkey, event);
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
const isUnfocusedCardSelected = (editor)=>!editor.api.isFocused() && !!editor.selection && !!editor.api.void({
|
|
33
|
+
at: editor.selection.focus
|
|
34
|
+
});
|
|
35
|
+
const syncSelectionFromDOM = (editor)=>{
|
|
36
|
+
if (editor.api.isComposing()) return;
|
|
37
|
+
const domSelection = editor.api.getWindow()?.getSelection();
|
|
38
|
+
if (!domSelection) return;
|
|
39
|
+
const { anchorNode, focusNode } = domSelection;
|
|
40
|
+
const isInsideEditor = editor.api.hasTarget(anchorNode) && (focusNode === anchorNode || editor.api.hasTarget(focusNode));
|
|
41
|
+
if (!isInsideEditor || hasMatchingCaret(editor, domSelection)) return;
|
|
42
|
+
const range = editor.api.toSlateRange(domSelection, {
|
|
43
|
+
exactMatch: false,
|
|
44
|
+
suppressThrow: true
|
|
45
|
+
});
|
|
46
|
+
if (!range) return;
|
|
47
|
+
const touchesCard = editor.api.void({
|
|
48
|
+
at: range.anchor
|
|
49
|
+
}) || editor.api.void({
|
|
50
|
+
at: range.focus
|
|
51
|
+
});
|
|
52
|
+
if (touchesCard) return;
|
|
53
|
+
editor.tf.select(range);
|
|
54
|
+
};
|
|
55
|
+
export const createSelectionSyncPlugin = ()=>({
|
|
56
|
+
key: 'selectionSync',
|
|
57
|
+
handlers: {
|
|
58
|
+
onMouseUp: (editor)=>()=>syncSelectionFromDOM(editor),
|
|
59
|
+
onKeyDown: (editor)=>(event)=>{
|
|
60
|
+
if (!shouldSyncBeforeKeyDown(editor, event)) return;
|
|
61
|
+
if (isUnfocusedCardSelected(editor) || event.nativeEvent.isComposing) return;
|
|
62
|
+
syncSelectionFromDOM(editor);
|
|
63
|
+
},
|
|
64
|
+
onCompositionStart: (editor)=>()=>syncSelectionFromDOM(editor),
|
|
65
|
+
onDOMBeforeInput: (editor)=>(event)=>{
|
|
66
|
+
const input = 'nativeEvent' in event ? event.nativeEvent : event;
|
|
67
|
+
const changesContent = [
|
|
68
|
+
'insertText',
|
|
69
|
+
'insertParagraph',
|
|
70
|
+
'insertLineBreak'
|
|
71
|
+
].includes(input.inputType) || input.inputType.startsWith('delete');
|
|
72
|
+
if (changesContent && !input.isComposing) syncSelectionFromDOM(editor);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
@@ -2,6 +2,7 @@ import { createSoftBreakPlugin, createExitBreakPlugin, createResetNodePlugin } f
|
|
|
2
2
|
import { createCharCounterPlugin } from './CharCounter';
|
|
3
3
|
import { createCommandPalettePlugin } from './CommandPalette';
|
|
4
4
|
import { isCommandPromptPluginEnabled } from './CommandPalette/useCommands';
|
|
5
|
+
import { createSelectionSyncPlugin } from './createSelectionSyncPlugin';
|
|
5
6
|
import { createDeserializeDocxPlugin } from './DeserializeDocx';
|
|
6
7
|
import { createDragAndDropPlugin } from './DragAndDrop';
|
|
7
8
|
import { createEmbeddedAssetBlockPlugin, createEmbeddedEntryBlockPlugin } from './EmbeddedEntityBlock';
|
|
@@ -23,9 +24,12 @@ import { createTextPlugin } from './Text';
|
|
|
23
24
|
import { createTrackingPlugin } from './Tracking';
|
|
24
25
|
import { createTrailingParagraphPlugin } from './TrailingParagraph';
|
|
25
26
|
import { createVoidsPlugin } from './Voids';
|
|
26
|
-
export const getPlugins = (sdk, onAction, restrictedMarks, withCharValidation)=>[
|
|
27
|
+
export const getPlugins = (sdk, onAction, restrictedMarks, withCharValidation, withSelectionSync = false)=>[
|
|
27
28
|
createDeserializeDocxPlugin(),
|
|
28
29
|
createTrackingPlugin(onAction),
|
|
30
|
+
...withSelectionSync ? [
|
|
31
|
+
createSelectionSyncPlugin()
|
|
32
|
+
] : [],
|
|
29
33
|
createDragAndDropPlugin(),
|
|
30
34
|
...Object.values(isCommandPromptPluginEnabled(sdk)).some(Boolean) ? [
|
|
31
35
|
createCommandPalettePlugin()
|
|
@@ -19,6 +19,8 @@ type RichTextProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
onChange?: (doc: Contentful.Document) => unknown;
|
|
21
21
|
withCharValidation?: boolean;
|
|
22
|
+
/** Enable caret syncing at editor creation. Defaults to false; remount to change it. */
|
|
23
|
+
withSelectionSync?: boolean;
|
|
22
24
|
queryClient?: QueryClient;
|
|
23
25
|
};
|
|
24
26
|
type ConnectedRichTextProps = {
|
|
@@ -34,6 +36,7 @@ type ConnectedRichTextProps = {
|
|
|
34
36
|
actionsDisabled?: boolean;
|
|
35
37
|
stickyToolbarOffset?: number;
|
|
36
38
|
withCharValidation?: boolean;
|
|
39
|
+
withSelectionSync?: boolean;
|
|
37
40
|
queryClient?: QueryClient;
|
|
38
41
|
};
|
|
39
42
|
export declare const ConnectedRichTextEditor: React.NamedExoticComponent<ConnectedRichTextProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FieldAppSDK } from '@contentful/app-sdk';
|
|
2
2
|
import { PlatePlugin } from '../internal/types';
|
|
3
3
|
import { RichTextTrackingActionHandler } from './Tracking';
|
|
4
|
-
export declare const getPlugins: (sdk: FieldAppSDK, onAction: RichTextTrackingActionHandler, restrictedMarks?: string[], withCharValidation?: boolean) => PlatePlugin[];
|
|
4
|
+
export declare const getPlugins: (sdk: FieldAppSDK, onAction: RichTextTrackingActionHandler, restrictedMarks?: string[], withCharValidation?: boolean, withSelectionSync?: boolean) => PlatePlugin[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.2-canary.11+5fdd1d2d",
|
|
4
4
|
"source": "./src/index.tsx",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"prettier --write"
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "5fdd1d2d6ec0854387a444da12ab40a46733f265"
|
|
100
100
|
}
|