@namroodinc/liquid-editorial 0.13.5 → 0.15.0
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 +2 -2
- package/UPGRADING.md +94 -0
- package/dist/chunks/{Avatar-BY0dAItT.cjs → Avatar-BZGFSE6C.cjs} +2 -2
- package/dist/chunks/{Avatar-BY0dAItT.cjs.map → Avatar-BZGFSE6C.cjs.map} +1 -1
- package/dist/chunks/{Avatar-UjhjcHh5.js → Avatar-C4W-g8nU.js} +2 -2
- package/dist/chunks/{Avatar-UjhjcHh5.js.map → Avatar-C4W-g8nU.js.map} +1 -1
- package/dist/chunks/{Board-DUX76d2R.js → Board-Cbi5FMW-.js} +2 -2
- package/dist/chunks/{Board-DUX76d2R.js.map → Board-Cbi5FMW-.js.map} +1 -1
- package/dist/chunks/{Board-CQ1GTuRB.cjs → Board-_agEjTy8.cjs} +2 -2
- package/dist/chunks/{Board-CQ1GTuRB.cjs.map → Board-_agEjTy8.cjs.map} +1 -1
- package/dist/chunks/{CollectionView-CIJdNwcq.cjs → CollectionView-BfX2Lxre.cjs} +2 -2
- package/dist/chunks/{CollectionView-CIJdNwcq.cjs.map → CollectionView-BfX2Lxre.cjs.map} +1 -1
- package/dist/chunks/{CollectionView-JRNdXHti.js → CollectionView-DPJGtSP5.js} +2 -2
- package/dist/chunks/{CollectionView-JRNdXHti.js.map → CollectionView-DPJGtSP5.js.map} +1 -1
- package/dist/chunks/{ColourField-DFvRASVe.cjs → ColourField-BVGnW8Wh.cjs} +2 -2
- package/dist/chunks/{ColourField-DFvRASVe.cjs.map → ColourField-BVGnW8Wh.cjs.map} +1 -1
- package/dist/chunks/{ColourField-BG5oGj9f.js → ColourField-BcuARZY4.js} +6 -6
- package/dist/chunks/{ColourField-BG5oGj9f.js.map → ColourField-BcuARZY4.js.map} +1 -1
- package/dist/chunks/{DatePicker-LqaePc57.js → DatePicker-VQUsbYdo.js} +3 -3
- package/dist/chunks/{DatePicker-LqaePc57.js.map → DatePicker-VQUsbYdo.js.map} +1 -1
- package/dist/chunks/{DatePicker-ClOqS6oH.cjs → DatePicker-zA0bWVBp.cjs} +2 -2
- package/dist/chunks/{DatePicker-ClOqS6oH.cjs.map → DatePicker-zA0bWVBp.cjs.map} +1 -1
- package/dist/chunks/{Drawer-Ck5XKT_V.js → Drawer-2cf0SaG4.js} +3 -3
- package/dist/chunks/{Drawer-Ck5XKT_V.js.map → Drawer-2cf0SaG4.js.map} +1 -1
- package/dist/chunks/{Drawer-DdIH9jpe.cjs → Drawer-BzvSfkCL.cjs} +2 -2
- package/dist/chunks/{Drawer-DdIH9jpe.cjs.map → Drawer-BzvSfkCL.cjs.map} +1 -1
- package/dist/chunks/EntryPicker-BGWxiLJ_.js +877 -0
- package/dist/chunks/EntryPicker-BGWxiLJ_.js.map +1 -0
- package/dist/chunks/EntryPicker-wVjzdlAO.cjs +2 -0
- package/dist/chunks/EntryPicker-wVjzdlAO.cjs.map +1 -0
- package/dist/chunks/FormEditor-BHVJG23r.js +30 -0
- package/dist/chunks/FormEditor-BHVJG23r.js.map +1 -0
- package/dist/chunks/FormEditor-DjUz7qQo.cjs +2 -0
- package/dist/chunks/FormEditor-DjUz7qQo.cjs.map +1 -0
- package/dist/chunks/Icon-QLZH31JA.cjs +2 -0
- package/dist/chunks/Icon-QLZH31JA.cjs.map +1 -0
- package/dist/chunks/Icon-kLLQC54Z.js +107 -0
- package/dist/chunks/Icon-kLLQC54Z.js.map +1 -0
- package/dist/chunks/{Message-d6lqiMQ6.js → Message-DM6pTq7N.js} +2 -2
- package/dist/chunks/{Message-d6lqiMQ6.js.map → Message-DM6pTq7N.js.map} +1 -1
- package/dist/chunks/{Message-yhdaBpaz.cjs → Message-yZJDVzb8.cjs} +2 -2
- package/dist/chunks/{Message-yhdaBpaz.cjs.map → Message-yZJDVzb8.cjs.map} +1 -1
- package/dist/chunks/RichTextEditor-BgfeOrEe.cjs +2 -0
- package/dist/chunks/RichTextEditor-BgfeOrEe.cjs.map +1 -0
- package/dist/chunks/RichTextEditor-CS2ED0HP.js +2702 -0
- package/dist/chunks/RichTextEditor-CS2ED0HP.js.map +1 -0
- package/dist/chunks/dialogLabel-Dx-WEEzI.cjs +2 -0
- package/dist/chunks/dialogLabel-Dx-WEEzI.cjs.map +1 -0
- package/dist/chunks/dialogLabel-nB1gwKz0.js +157 -0
- package/dist/chunks/dialogLabel-nB1gwKz0.js.map +1 -0
- package/dist/chunks/overlayLayer-CPd3zj_u.cjs +2 -0
- package/dist/chunks/overlayLayer-CPd3zj_u.cjs.map +1 -0
- package/dist/chunks/overlayLayer-Dv1vmfaI.js +199 -0
- package/dist/chunks/overlayLayer-Dv1vmfaI.js.map +1 -0
- package/dist/chunks/{useTooltip-DnJEFBLg.js → useTooltip-COyAcujL.js} +2 -2
- package/dist/chunks/{useTooltip-DnJEFBLg.js.map → useTooltip-COyAcujL.js.map} +1 -1
- package/dist/chunks/{useTooltip-C7ON4nkV.cjs → useTooltip-nEDN0ObI.cjs} +2 -2
- package/dist/chunks/{useTooltip-C7ON4nkV.cjs.map → useTooltip-nEDN0ObI.cjs.map} +1 -1
- package/dist/components/AppShell/index.cjs +1 -1
- package/dist/components/AppShell/index.js +1 -1
- package/dist/components/AssetCard/index.cjs +1 -1
- package/dist/components/AssetCard/index.js +1 -1
- package/dist/components/AssetGrid/index.cjs +1 -1
- package/dist/components/AssetGrid/index.js +1 -1
- package/dist/components/Avatar/index.cjs +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Banner/index.cjs +1 -1
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/Board/index.cjs +1 -1
- package/dist/components/Board/index.js +1 -1
- package/dist/components/Button/index.cjs +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Choice/index.cjs +1 -1
- package/dist/components/Choice/index.cjs.map +1 -1
- package/dist/components/Choice/index.js +5 -5
- package/dist/components/CollectionView/index.cjs +1 -1
- package/dist/components/CollectionView/index.js +1 -1
- package/dist/components/ColourField/index.cjs +1 -1
- package/dist/components/ColourField/index.js +1 -1
- package/dist/components/DatePicker/index.cjs +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Drawer/index.cjs +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/EditLayout/index.cjs +1 -1
- package/dist/components/EditLayout/index.cjs.map +1 -1
- package/dist/components/EditLayout/index.js +6 -7
- package/dist/components/EditLayout/index.js.map +1 -1
- package/dist/components/EntryPicker/dialog.d.cts +11 -1
- package/dist/components/EntryPicker/dialog.d.cts.map +1 -1
- package/dist/components/EntryPicker/dialog.d.ts +11 -1
- package/dist/components/EntryPicker/dialog.d.ts.map +1 -1
- package/dist/components/EntryPicker/index.cjs +1 -1
- package/dist/components/EntryPicker/index.js +1 -1
- package/dist/components/EntryPicker/style.css +1 -1
- package/dist/components/EntryPicker/use-picker-data.d.cts +1 -1
- package/dist/components/EntryPicker/use-picker-data.d.cts.map +1 -1
- package/dist/components/EntryPicker/use-picker-data.d.ts +1 -1
- package/dist/components/EntryPicker/use-picker-data.d.ts.map +1 -1
- package/dist/components/EntryPicker/use-picker-session.d.cts +4 -1
- package/dist/components/EntryPicker/use-picker-session.d.cts.map +1 -1
- package/dist/components/EntryPicker/use-picker-session.d.ts +4 -1
- package/dist/components/EntryPicker/use-picker-session.d.ts.map +1 -1
- package/dist/components/EntryPicker/use-selected-items.d.cts +2 -0
- package/dist/components/EntryPicker/use-selected-items.d.cts.map +1 -1
- package/dist/components/EntryPicker/use-selected-items.d.ts +2 -0
- package/dist/components/EntryPicker/use-selected-items.d.ts.map +1 -1
- package/dist/components/FormEditor/README.md +197 -28
- package/dist/components/FormEditor/control.d.cts +11 -2
- package/dist/components/FormEditor/control.d.cts.map +1 -1
- package/dist/components/FormEditor/control.d.ts +11 -2
- package/dist/components/FormEditor/control.d.ts.map +1 -1
- package/dist/components/FormEditor/form.d.cts +33 -0
- package/dist/components/FormEditor/form.d.cts.map +1 -0
- package/dist/components/FormEditor/form.d.ts +33 -0
- package/dist/components/FormEditor/form.d.ts.map +1 -0
- package/dist/components/FormEditor/index.cjs +1 -1
- package/dist/components/FormEditor/index.d.cts +3 -27
- package/dist/components/FormEditor/index.d.cts.map +1 -1
- package/dist/components/FormEditor/index.d.ts +3 -27
- package/dist/components/FormEditor/index.d.ts.map +1 -1
- package/dist/components/FormEditor/index.js +3 -3
- package/dist/components/FormEditor/model.d.cts +2 -0
- package/dist/components/FormEditor/model.d.cts.map +1 -1
- package/dist/components/FormEditor/model.d.ts +2 -0
- package/dist/components/FormEditor/model.d.ts.map +1 -1
- package/dist/components/FormEditor/rich-text-control.d.cts +4 -0
- package/dist/components/FormEditor/rich-text-control.d.cts.map +1 -0
- package/dist/components/FormEditor/rich-text-control.d.ts +4 -0
- package/dist/components/FormEditor/rich-text-control.d.ts.map +1 -0
- package/dist/components/Icon/icons.d.cts +16 -0
- package/dist/components/Icon/icons.d.cts.map +1 -1
- package/dist/components/Icon/icons.d.ts +16 -0
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.cjs +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/ImageCropper/index.cjs +1 -1
- package/dist/components/ImageCropper/index.cjs.map +1 -1
- package/dist/components/ImageCropper/index.js +6 -6
- package/dist/components/Menu/index.cjs +1 -1
- package/dist/components/Menu/index.cjs.map +1 -1
- package/dist/components/Menu/index.d.cts +3 -2
- package/dist/components/Menu/index.d.cts.map +1 -1
- package/dist/components/Menu/index.d.ts +3 -2
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +65 -52
- package/dist/components/Menu/index.js.map +1 -1
- package/dist/components/Modal/index.cjs +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Popover/index.cjs +1 -1
- package/dist/components/Popover/index.cjs.map +1 -1
- package/dist/components/Popover/index.d.cts.map +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +67 -64
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/RichTextEditor/content-block-frame.d.cts +32 -0
- package/dist/components/RichTextEditor/content-block-frame.d.cts.map +1 -0
- package/dist/components/RichTextEditor/content-block-frame.d.ts +32 -0
- package/dist/components/RichTextEditor/content-block-frame.d.ts.map +1 -0
- package/dist/components/RichTextEditor/content-block-view.d.cts +3 -0
- package/dist/components/RichTextEditor/content-block-view.d.cts.map +1 -0
- package/dist/components/RichTextEditor/content-block-view.d.ts +3 -0
- package/dist/components/RichTextEditor/content-block-view.d.ts.map +1 -0
- package/dist/components/RichTextEditor/content-block.d.cts +24 -0
- package/dist/components/RichTextEditor/content-block.d.cts.map +1 -0
- package/dist/components/RichTextEditor/content-block.d.ts +24 -0
- package/dist/components/RichTextEditor/content-block.d.ts.map +1 -0
- package/dist/components/RichTextEditor/document.d.cts +15 -8
- package/dist/components/RichTextEditor/document.d.cts.map +1 -1
- package/dist/components/RichTextEditor/document.d.ts +15 -8
- package/dist/components/RichTextEditor/document.d.ts.map +1 -1
- package/dist/components/RichTextEditor/embed-context.d.cts +5 -0
- package/dist/components/RichTextEditor/embed-context.d.cts.map +1 -1
- package/dist/components/RichTextEditor/embed-context.d.ts +5 -0
- package/dist/components/RichTextEditor/embed-context.d.ts.map +1 -1
- package/dist/components/RichTextEditor/embed-types.d.cts +6 -4
- package/dist/components/RichTextEditor/embed-types.d.cts.map +1 -1
- package/dist/components/RichTextEditor/embed-types.d.ts +6 -4
- package/dist/components/RichTextEditor/embed-types.d.ts.map +1 -1
- package/dist/components/RichTextEditor/index.cjs +1 -1
- package/dist/components/RichTextEditor/index.d.cts +9 -1
- package/dist/components/RichTextEditor/index.d.cts.map +1 -1
- package/dist/components/RichTextEditor/index.d.ts +9 -1
- package/dist/components/RichTextEditor/index.d.ts.map +1 -1
- package/dist/components/RichTextEditor/index.js +1 -2
- package/dist/components/RichTextEditor/style.css +161 -86
- package/dist/components/RichTextEditor/table-actions.d.cts +11 -0
- package/dist/components/RichTextEditor/table-actions.d.cts.map +1 -0
- package/dist/components/RichTextEditor/table-actions.d.ts +11 -0
- package/dist/components/RichTextEditor/table-actions.d.ts.map +1 -0
- package/dist/components/RichTextEditor/table-bands.d.cts +19 -0
- package/dist/components/RichTextEditor/table-bands.d.cts.map +1 -0
- package/dist/components/RichTextEditor/table-bands.d.ts +19 -0
- package/dist/components/RichTextEditor/table-bands.d.ts.map +1 -0
- package/dist/components/RichTextEditor/table-view.d.cts +4 -0
- package/dist/components/RichTextEditor/table-view.d.cts.map +1 -0
- package/dist/components/RichTextEditor/table-view.d.ts +4 -0
- package/dist/components/RichTextEditor/table-view.d.ts.map +1 -0
- package/dist/components/RichTextEditor/tables.d.cts +7 -0
- package/dist/components/RichTextEditor/tables.d.cts.map +1 -0
- package/dist/components/RichTextEditor/tables.d.ts +7 -0
- package/dist/components/RichTextEditor/tables.d.ts.map +1 -0
- package/dist/components/RichTextEditor/use-embeds.d.cts.map +1 -1
- package/dist/components/RichTextEditor/use-embeds.d.ts.map +1 -1
- package/dist/components/SearchField/index.cjs +1 -1
- package/dist/components/SearchField/index.js +1 -1
- package/dist/components/Select/index.cjs +1 -1
- package/dist/components/Select/index.js +2 -2
- package/dist/components/SelectionCard/index.cjs +1 -1
- package/dist/components/SelectionCard/index.cjs.map +1 -1
- package/dist/components/SelectionCard/index.js +4 -4
- package/dist/components/SelectionCard/index.js.map +1 -1
- package/dist/components/SideNav/index.cjs +1 -1
- package/dist/components/SideNav/index.js +1 -1
- package/dist/components/SortableList/index.cjs +1 -1
- package/dist/components/SortableList/index.js +1 -1
- package/dist/components/Stepper/index.cjs +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/SubNav/index.cjs +1 -1
- package/dist/components/SubNav/index.js +1 -1
- package/dist/components/Switch/style.css +2 -6
- package/dist/components/Table/index.cjs +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Time/index.cjs +1 -1
- package/dist/components/Time/index.js +1 -1
- package/dist/components/Toast/index.cjs +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/TopNav/index.cjs +1 -1
- package/dist/components/TopNav/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -28
- package/dist/internal/dialogFocus.d.cts +6 -1
- package/dist/internal/dialogFocus.d.cts.map +1 -1
- package/dist/internal/dialogFocus.d.ts +6 -1
- package/dist/internal/dialogFocus.d.ts.map +1 -1
- package/package.json +8 -6
- package/dist/chunks/EntryPicker-B4dAsObz.cjs +0 -2
- package/dist/chunks/EntryPicker-B4dAsObz.cjs.map +0 -1
- package/dist/chunks/EntryPicker-DDXHytMN.js +0 -160
- package/dist/chunks/EntryPicker-DDXHytMN.js.map +0 -1
- package/dist/chunks/FormEditor-BGzE-rqk.cjs +0 -2
- package/dist/chunks/FormEditor-BGzE-rqk.cjs.map +0 -1
- package/dist/chunks/FormEditor-ChH4e5sB.js +0 -693
- package/dist/chunks/FormEditor-ChH4e5sB.js.map +0 -1
- package/dist/chunks/Icon-3ucBRgrd.cjs +0 -2
- package/dist/chunks/Icon-3ucBRgrd.cjs.map +0 -1
- package/dist/chunks/Icon-dPXyBYe5.js +0 -91
- package/dist/chunks/Icon-dPXyBYe5.js.map +0 -1
- package/dist/chunks/RichTextEditor-BFblqw8m.js +0 -1144
- package/dist/chunks/RichTextEditor-BFblqw8m.js.map +0 -1
- package/dist/chunks/RichTextEditor-DU9CVeRD.cjs +0 -2
- package/dist/chunks/RichTextEditor-DU9CVeRD.cjs.map +0 -1
- package/dist/chunks/dialogLabel-DT7rCr3_.js +0 -176
- package/dist/chunks/dialogLabel-DT7rCr3_.js.map +0 -1
- package/dist/chunks/dialogLabel-_-MTckE_.cjs +0 -2
- package/dist/chunks/dialogLabel-_-MTckE_.cjs.map +0 -1
- package/dist/chunks/overlayLayer-iGhuAByk.cjs +0 -2
- package/dist/chunks/overlayLayer-iGhuAByk.cjs.map +0 -1
- package/dist/chunks/overlayLayer-lU4iWSjO.js +0 -162
- package/dist/chunks/overlayLayer-lU4iWSjO.js.map +0 -1
- package/dist/chunks/use-picker-session-BSpOwnQ-.js +0 -712
- package/dist/chunks/use-picker-session-BSpOwnQ-.js.map +0 -1
- package/dist/chunks/use-picker-session-ouqHBmVA.cjs +0 -2
- package/dist/chunks/use-picker-session-ouqHBmVA.cjs.map +0 -1
- package/dist/components/RichTextEditor/storyblock-view.d.cts +0 -3
- package/dist/components/RichTextEditor/storyblock-view.d.cts.map +0 -1
- package/dist/components/RichTextEditor/storyblock-view.d.ts +0 -3
- package/dist/components/RichTextEditor/storyblock-view.d.ts.map +0 -1
- package/dist/components/RichTextEditor/storyblock.d.cts +0 -19
- package/dist/components/RichTextEditor/storyblock.d.cts.map +0 -1
- package/dist/components/RichTextEditor/storyblock.d.ts +0 -19
- package/dist/components/RichTextEditor/storyblock.d.ts.map +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IconName } from "../Icon/icons.cjs";
|
|
2
|
+
export declare const contentBlockFrameClass = "ds-content-block ds-field-surface";
|
|
3
|
+
export interface ContentBlockAction {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: IconName;
|
|
6
|
+
run: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
description?: string;
|
|
9
|
+
tone?: "danger";
|
|
10
|
+
inlineIcon?: boolean;
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ContentBlockActionGroup {
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Shown under the label and read with the group's disabled actions. */
|
|
16
|
+
description?: string;
|
|
17
|
+
choices?: boolean;
|
|
18
|
+
keepOpen?: boolean;
|
|
19
|
+
separate?: boolean;
|
|
20
|
+
actions: readonly ContentBlockAction[];
|
|
21
|
+
}
|
|
22
|
+
export declare function ContentBlockBar({ kind, meta, isSelected, isDisabled, isLocked, menuLabel, actions, onSelect, }: {
|
|
23
|
+
kind: string;
|
|
24
|
+
meta?: string;
|
|
25
|
+
isSelected: boolean;
|
|
26
|
+
isDisabled: boolean;
|
|
27
|
+
isLocked?: boolean;
|
|
28
|
+
menuLabel: string;
|
|
29
|
+
actions: readonly ContentBlockActionGroup[] | ((rtl: boolean) => readonly ContentBlockActionGroup[]);
|
|
30
|
+
onSelect: () => void;
|
|
31
|
+
}): import("react").JSX.Element;
|
|
32
|
+
//# sourceMappingURL=content-block-frame.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-block-frame.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block-frame.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,eAAO,MAAM,sBAAsB,sCAAsC,CAAC;AAE1E,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACxC;AAkJD,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,UAAU,EACV,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EACL,SAAS,uBAAuB,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,SAAS,uBAAuB,EAAE,CAAC,CAAC;IAC9F,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,+BA0EA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IconName } from "../Icon/icons.js";
|
|
2
|
+
export declare const contentBlockFrameClass = "ds-content-block ds-field-surface";
|
|
3
|
+
export interface ContentBlockAction {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: IconName;
|
|
6
|
+
run: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
description?: string;
|
|
9
|
+
tone?: "danger";
|
|
10
|
+
inlineIcon?: boolean;
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ContentBlockActionGroup {
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Shown under the label and read with the group's disabled actions. */
|
|
16
|
+
description?: string;
|
|
17
|
+
choices?: boolean;
|
|
18
|
+
keepOpen?: boolean;
|
|
19
|
+
separate?: boolean;
|
|
20
|
+
actions: readonly ContentBlockAction[];
|
|
21
|
+
}
|
|
22
|
+
export declare function ContentBlockBar({ kind, meta, isSelected, isDisabled, isLocked, menuLabel, actions, onSelect, }: {
|
|
23
|
+
kind: string;
|
|
24
|
+
meta?: string;
|
|
25
|
+
isSelected: boolean;
|
|
26
|
+
isDisabled: boolean;
|
|
27
|
+
isLocked?: boolean;
|
|
28
|
+
menuLabel: string;
|
|
29
|
+
actions: readonly ContentBlockActionGroup[] | ((rtl: boolean) => readonly ContentBlockActionGroup[]);
|
|
30
|
+
onSelect: () => void;
|
|
31
|
+
}): import("react").JSX.Element;
|
|
32
|
+
//# sourceMappingURL=content-block-frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-block-frame.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block-frame.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,eAAO,MAAM,sBAAsB,sCAAsC,CAAC;AAE1E,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACxC;AAkJD,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,UAAU,EACV,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EACL,SAAS,uBAAuB,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,SAAS,uBAAuB,EAAE,CAAC,CAAC;IAC9F,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,+BA0EA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-block-view.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAqGpE,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,MAAM,EACN,gBAAgB,GACjB,EAAE,aAAa,+BA6Gf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-block-view.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAqGpE,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,MAAM,EACN,gBAAgB,GACjB,EAAE,aAAa,+BA6Gf"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Node, type JSONContent } from "@tiptap/react";
|
|
2
|
+
export type ContentBlockAlignment = "left" | "full" | "right";
|
|
3
|
+
export type ContentBlockIdentity = {
|
|
4
|
+
type: "entry";
|
|
5
|
+
id: string;
|
|
6
|
+
entryId: string;
|
|
7
|
+
} | {
|
|
8
|
+
type: "asset";
|
|
9
|
+
assetId: string;
|
|
10
|
+
};
|
|
11
|
+
export type ContentBlockAttributes = ContentBlockIdentity & {
|
|
12
|
+
align: ContentBlockAlignment;
|
|
13
|
+
};
|
|
14
|
+
export declare function validContentBlock(attrs: Record<string, unknown>): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Rename legacy `storyblock` nodes to `contentBlock`. Their attributes are
|
|
17
|
+
* unchanged. Returns the same object when nothing needed renaming.
|
|
18
|
+
*/
|
|
19
|
+
export declare function upgradeLegacyBlocks<T extends JSONContent>(node: T): T;
|
|
20
|
+
/** Strip schema defaults belonging to the other kind from the external document. */
|
|
21
|
+
export declare function contentBlockDocument<T extends JSONContent>(node: T): T;
|
|
22
|
+
/** Schema and HTML representation contain references only, never resolved item data. */
|
|
23
|
+
export declare const ContentBlock: Node<any, any>;
|
|
24
|
+
//# sourceMappingURL=content-block.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-block.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAExE,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AACtF,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,GAAG;IAAE,KAAK,EAAE,qBAAqB,CAAA;CAAE,CAAC;AAO7F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAQzE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAYrE;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAgBtE;AAWD,wFAAwF;AACxF,eAAO,MAAM,YAAY,gBA8CvB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Node, type JSONContent } from "@tiptap/react";
|
|
2
|
+
export type ContentBlockAlignment = "left" | "full" | "right";
|
|
3
|
+
export type ContentBlockIdentity = {
|
|
4
|
+
type: "entry";
|
|
5
|
+
id: string;
|
|
6
|
+
entryId: string;
|
|
7
|
+
} | {
|
|
8
|
+
type: "asset";
|
|
9
|
+
assetId: string;
|
|
10
|
+
};
|
|
11
|
+
export type ContentBlockAttributes = ContentBlockIdentity & {
|
|
12
|
+
align: ContentBlockAlignment;
|
|
13
|
+
};
|
|
14
|
+
export declare function validContentBlock(attrs: Record<string, unknown>): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Rename legacy `storyblock` nodes to `contentBlock`. Their attributes are
|
|
17
|
+
* unchanged. Returns the same object when nothing needed renaming.
|
|
18
|
+
*/
|
|
19
|
+
export declare function upgradeLegacyBlocks<T extends JSONContent>(node: T): T;
|
|
20
|
+
/** Strip schema defaults belonging to the other kind from the external document. */
|
|
21
|
+
export declare function contentBlockDocument<T extends JSONContent>(node: T): T;
|
|
22
|
+
/** Schema and HTML representation contain references only, never resolved item data. */
|
|
23
|
+
export declare const ContentBlock: Node<any, any>;
|
|
24
|
+
//# sourceMappingURL=content-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-block.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAExE,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AACtF,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,GAAG;IAAE,KAAK,EAAE,qBAAqB,CAAA;CAAE,CAAC;AAO7F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAQzE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAYrE;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAgBtE;AAWD,wFAAwF;AACxF,eAAO,MAAM,YAAY,gBA8CvB,CAAC"}
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { type JSONContent } from "@tiptap/react";
|
|
2
|
-
import {
|
|
2
|
+
import { ContentBlock } from "./content-block.cjs";
|
|
3
3
|
export type RichTextDocument = JSONContent & {
|
|
4
4
|
type: "doc";
|
|
5
5
|
};
|
|
6
6
|
export declare const emptyDocument: RichTextDocument;
|
|
7
|
+
export declare const documentTable: import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any>;
|
|
8
|
+
export interface RichTextSchemaOptions {
|
|
9
|
+
/** Include table nodes. Defaults to true. */
|
|
10
|
+
tables?: boolean;
|
|
11
|
+
}
|
|
7
12
|
/**
|
|
8
|
-
* The shared schema's extensions. The editor passes its node-view
|
|
9
|
-
*
|
|
10
|
-
* keeps the same extension identities across renders.
|
|
13
|
+
* The shared schema's extensions. The editor passes its node-view variants;
|
|
14
|
+
* validation and serialization can use the same schema without editor chrome.
|
|
11
15
|
*/
|
|
12
|
-
export declare function richTextExtensions(
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
export declare function richTextExtensions(embedBlock?: typeof ContentBlock, { tables }?: RichTextSchemaOptions, table?: import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any>): (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-table").TableKitOptions, any>)[];
|
|
17
|
+
/**
|
|
18
|
+
* The editor's reading of a stored document: legacy `storyblock` nodes become
|
|
19
|
+
* content blocks, and an empty writing surface holds one empty paragraph.
|
|
20
|
+
*/
|
|
21
|
+
export declare function normalizeDocument(stored: RichTextDocument): RichTextDocument;
|
|
22
|
+
export declare function documentError(value: unknown, { tables }?: RichTextSchemaOptions): string | undefined;
|
|
16
23
|
//# sourceMappingURL=document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/document.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"document.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAO7E,OAAO,EAAE,YAAY,EAA0C,MAAM,iBAAiB,CAAC;AAEvF,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAE7D,eAAO,MAAM,aAAa,EAAE,gBAAoE,CAAC;AA0DjG,eAAO,MAAM,aAAa,kFAgBQ,CAAC;AAGnC,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,GAAE,OAAO,YAA2B,EAC9C,EAAE,MAAa,EAAE,GAAE,qBAA0B,EAC7C,KAAK,mFAAgB,qYAKtB;AAOD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAG5E;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE,OAAO,EACd,EAAE,MAAa,EAAE,GAAE,qBAA0B,GAC5C,MAAM,GAAG,SAAS,CA6CpB"}
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { type JSONContent } from "@tiptap/react";
|
|
2
|
-
import {
|
|
2
|
+
import { ContentBlock } from "./content-block.js";
|
|
3
3
|
export type RichTextDocument = JSONContent & {
|
|
4
4
|
type: "doc";
|
|
5
5
|
};
|
|
6
6
|
export declare const emptyDocument: RichTextDocument;
|
|
7
|
+
export declare const documentTable: import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any>;
|
|
8
|
+
export interface RichTextSchemaOptions {
|
|
9
|
+
/** Include table nodes. Defaults to true. */
|
|
10
|
+
tables?: boolean;
|
|
11
|
+
}
|
|
7
12
|
/**
|
|
8
|
-
* The shared schema's extensions. The editor passes its node-view
|
|
9
|
-
*
|
|
10
|
-
* keeps the same extension identities across renders.
|
|
13
|
+
* The shared schema's extensions. The editor passes its node-view variants;
|
|
14
|
+
* validation and serialization can use the same schema without editor chrome.
|
|
11
15
|
*/
|
|
12
|
-
export declare function richTextExtensions(
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
export declare function richTextExtensions(embedBlock?: typeof ContentBlock, { tables }?: RichTextSchemaOptions, table?: import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any>): (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-table").TableKitOptions, any>)[];
|
|
17
|
+
/**
|
|
18
|
+
* The editor's reading of a stored document: legacy `storyblock` nodes become
|
|
19
|
+
* content blocks, and an empty writing surface holds one empty paragraph.
|
|
20
|
+
*/
|
|
21
|
+
export declare function normalizeDocument(stored: RichTextDocument): RichTextDocument;
|
|
22
|
+
export declare function documentError(value: unknown, { tables }?: RichTextSchemaOptions): string | undefined;
|
|
16
23
|
//# sourceMappingURL=document.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/document.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAO7E,OAAO,EAAE,YAAY,EAA0C,MAAM,iBAAiB,CAAC;AAEvF,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAE7D,eAAO,MAAM,aAAa,EAAE,gBAAoE,CAAC;AA0DjG,eAAO,MAAM,aAAa,kFAgBQ,CAAC;AAGnC,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,GAAE,OAAO,YAA2B,EAC9C,EAAE,MAAa,EAAE,GAAE,qBAA0B,EAC7C,KAAK,mFAAgB,qYAKtB;AAOD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAG5E;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE,OAAO,EACd,EAAE,MAAa,EAAE,GAAE,qBAA0B,GAC5C,MAAM,GAAG,SAAS,CA6CpB"}
|
|
@@ -3,6 +3,11 @@ import type { SeedCopy } from "../EntryPicker/use-selected-items.cjs";
|
|
|
3
3
|
import type { RichTextEmbedKind, RichTextEmbedSource } from "./embed-types.cjs";
|
|
4
4
|
/** Whether a source can offer something to embed: choices to list, or one to create. */
|
|
5
5
|
export declare function canEmbed(source: RichTextEmbedSource | undefined): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Whether a source's insertion stages a batch: always, when it has choices to
|
|
8
|
+
* list. A source that can only create offers one item, so it stays single.
|
|
9
|
+
*/
|
|
10
|
+
export declare function canBatch(source: RichTextEmbedSource | undefined): boolean;
|
|
6
11
|
/**
|
|
7
12
|
* What a block's node view reads from its source. Callbacks are stable wrappers
|
|
8
13
|
* over the latest source and the rest are plain values, so an application that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed-context.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE5E,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,WAE/D;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAC3E,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,YAAY;WAChB,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;cAChD,OAAO;IACjB,mFAAmF;UAC7E,OAAO;aACJ,CAAC,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAA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,CAAC,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI;IAC5D;;;OAGG;eACQ,MAAM;IACjB,qFAAqF;UAC/E,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,KAAK,QAAQ,GAAG,SAAS;IACnE,gFAAgF;gBACpE,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI;EASzE,CAAC"}
|
|
@@ -3,6 +3,11 @@ import type { SeedCopy } from "../EntryPicker/use-selected-items.js";
|
|
|
3
3
|
import type { RichTextEmbedKind, RichTextEmbedSource } from "./embed-types.js";
|
|
4
4
|
/** Whether a source can offer something to embed: choices to list, or one to create. */
|
|
5
5
|
export declare function canEmbed(source: RichTextEmbedSource | undefined): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Whether a source's insertion stages a batch: always, when it has choices to
|
|
8
|
+
* list. A source that can only create offers one item, so it stays single.
|
|
9
|
+
*/
|
|
10
|
+
export declare function canBatch(source: RichTextEmbedSource | undefined): boolean;
|
|
6
11
|
/**
|
|
7
12
|
* What a block's node view reads from its source. Callbacks are stable wrappers
|
|
8
13
|
* over the latest source and the rest are plain values, so an application that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed-context.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE5E,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,WAE/D;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,CAA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AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAC3E,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,YAAY;WAChB,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;cAChD,OAAO;IACjB,mFAAmF;UAC7E,OAAO;aACJ,CAAC,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI;IAC5D;;;OAGG;eACQ,MAAM;IACjB,qFAAqF;UAC/E,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,KAAK,QAAQ,GAAG,SAAS;IACnE,gFAAgF;gBACpE,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI;EASzE,CAAC"}
|
|
@@ -9,10 +9,12 @@ export interface RichTextEmbedTarget {
|
|
|
9
9
|
commit: (item: RichTextEmbedItem) => boolean;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* Embedding is offered when the source can list choices (`loadPage` or `items`)
|
|
13
|
+
* or create one (`onCreate`); a source with only `resolveItem` displays existing blocks.
|
|
14
|
+
* Insertion from listed choices always stages any number of items and inserts
|
|
15
|
+
* them together; replacement and creation choose one. EntryPicker's `mode` and
|
|
16
|
+
* `max` don't apply. Give a remote source `resolveItem`, so a refresh can
|
|
17
|
+
* deselect staged items no longer available.
|
|
16
18
|
*/
|
|
17
19
|
export interface RichTextEmbedSource extends Omit<EntryPickerSource, "onCreate" | "mode" | "max"> {
|
|
18
20
|
/** Static choices, searched by title and keywords, when there is no `loadPage`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed-types.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,6EAA6E;AAC7E,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,iFAAiF;IACjF,MAAM,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC;CAC9C;AAED
|
|
1
|
+
{"version":3,"file":"embed-types.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,6EAA6E;AAC7E,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,iFAAiF;IACjF,MAAM,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC;CAC9C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;IAC/F,mFAAmF;IACnF,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,oBAAoB,CAAC"}
|
|
@@ -9,10 +9,12 @@ export interface RichTextEmbedTarget {
|
|
|
9
9
|
commit: (item: RichTextEmbedItem) => boolean;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* Embedding is offered when the source can list choices (`loadPage` or `items`)
|
|
13
|
+
* or create one (`onCreate`); a source with only `resolveItem` displays existing blocks.
|
|
14
|
+
* Insertion from listed choices always stages any number of items and inserts
|
|
15
|
+
* them together; replacement and creation choose one. EntryPicker's `mode` and
|
|
16
|
+
* `max` don't apply. Give a remote source `resolveItem`, so a refresh can
|
|
17
|
+
* deselect staged items no longer available.
|
|
16
18
|
*/
|
|
17
19
|
export interface RichTextEmbedSource extends Omit<EntryPickerSource, "onCreate" | "mode" | "max"> {
|
|
18
20
|
/** Static choices, searched by title and keywords, when there is no `loadPage`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed-types.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,6EAA6E;AAC7E,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,iFAAiF;IACjF,MAAM,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC;CAC9C;AAED
|
|
1
|
+
{"version":3,"file":"embed-types.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,6EAA6E;AAC7E,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,iFAAiF;IACjF,MAAM,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC;CAC9C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;IAC/F,mFAAmF;IACnF,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`})
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/RichTextEditor-BgfeOrEe.cjs");exports.RichTextEditor=e.t;
|
|
@@ -4,7 +4,7 @@ import { type RichTextDocument } from "./document.cjs";
|
|
|
4
4
|
import type { FieldBinding } from "../Field/index.cjs";
|
|
5
5
|
import type { RichTextEmbedSources } from "./embed-types.cjs";
|
|
6
6
|
export type { RichTextEmbedItem, RichTextEmbedSource, RichTextEmbedSources, RichTextEmbedTarget, } from "./embed-types.cjs";
|
|
7
|
-
export type {
|
|
7
|
+
export type { ContentBlockAlignment, ContentBlockIdentity, ContentBlockAttributes, } from "./content-block.cjs";
|
|
8
8
|
export type RichTextEditorSize = "sm" | "md" | "lg";
|
|
9
9
|
export type { RichTextDocument } from "./document.cjs";
|
|
10
10
|
export type { RichTextEditorExpandedWidth } from "./expansion.cjs";
|
|
@@ -21,6 +21,14 @@ interface RichTextEditorCommonProps extends FieldBinding {
|
|
|
21
21
|
/** Extra controls appended to the toolbar, e.g. a word count. */
|
|
22
22
|
toolbarExtra?: ReactNode;
|
|
23
23
|
embeds?: RichTextEmbedSources;
|
|
24
|
+
/**
|
|
25
|
+
* Offer Insert table and accept table nodes. Defaults to true. With false, a
|
|
26
|
+
* pasted table keeps only its text, and a JSON value with tables is unsupported
|
|
27
|
+
* content. Changing it recreates the editor from its current document,
|
|
28
|
+
* unfocused, and closes an open embed picker. An uncontrolled HTML table is
|
|
29
|
+
* restored when tables are re-enabled if the table-free editor reported no change.
|
|
30
|
+
*/
|
|
31
|
+
tables?: boolean;
|
|
24
32
|
isRequired?: boolean;
|
|
25
33
|
}
|
|
26
34
|
export type RichTextEditorProps = RichTextEditorCommonProps & ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAsB,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AACpB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAsB,KAAK,2BAA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,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GAC7F;IACE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACjD,CACJ,CAAC;AAocJ,eAAO,MAAM,cAAc,gHAiQ1B,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { type RichTextDocument } from "./document.js";
|
|
|
4
4
|
import type { FieldBinding } from "../Field/index.js";
|
|
5
5
|
import type { RichTextEmbedSources } from "./embed-types.js";
|
|
6
6
|
export type { RichTextEmbedItem, RichTextEmbedSource, RichTextEmbedSources, RichTextEmbedTarget, } from "./embed-types.js";
|
|
7
|
-
export type {
|
|
7
|
+
export type { ContentBlockAlignment, ContentBlockIdentity, ContentBlockAttributes, } from "./content-block.js";
|
|
8
8
|
export type RichTextEditorSize = "sm" | "md" | "lg";
|
|
9
9
|
export type { RichTextDocument } from "./document.js";
|
|
10
10
|
export type { RichTextEditorExpandedWidth } from "./expansion.js";
|
|
@@ -21,6 +21,14 @@ interface RichTextEditorCommonProps extends FieldBinding {
|
|
|
21
21
|
/** Extra controls appended to the toolbar, e.g. a word count. */
|
|
22
22
|
toolbarExtra?: ReactNode;
|
|
23
23
|
embeds?: RichTextEmbedSources;
|
|
24
|
+
/**
|
|
25
|
+
* Offer Insert table and accept table nodes. Defaults to true. With false, a
|
|
26
|
+
* pasted table keeps only its text, and a JSON value with tables is unsupported
|
|
27
|
+
* content. Changing it recreates the editor from its current document,
|
|
28
|
+
* unfocused, and closes an open embed picker. An uncontrolled HTML table is
|
|
29
|
+
* restored when tables are re-enabled if the table-free editor reported no change.
|
|
30
|
+
*/
|
|
31
|
+
tables?: boolean;
|
|
24
32
|
isRequired?: boolean;
|
|
25
33
|
}
|
|
26
34
|
export type RichTextEditorProps = RichTextEditorCommonProps & ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAsB,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AACpB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAsB,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AACpB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,aAAa,CAAC;AAOrB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,YAAY,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE/D,UAAU,yBAA0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