sanity 6.6.0-next.118 → 6.6.0-next.121
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/_chunks-es/index2.js +54 -43
- package/lib/_chunks-es/index2.js.map +1 -1
- package/lib/_chunks-es/version.js +2 -2
- package/package.json +11 -11
package/lib/_chunks-es/index2.js
CHANGED
|
@@ -48,7 +48,7 @@ import { isIndexSegment, isKeySegment, isIndexTuple, isKeyedObject, isTypedObjec
|
|
|
48
48
|
import { observableCallback } from "observable-callback";
|
|
49
49
|
import { useTelemetry, TelemetryProvider, DeferredTelemetryProvider } from "@sanity/telemetry/react";
|
|
50
50
|
import { ClipboardIcon } from "@sanity/icons/Clipboard";
|
|
51
|
-
import { usePortableTextEditor, PortableTextEditor,
|
|
51
|
+
import { usePortableTextEditor, PortableTextEditor, useEditor, useEditorSelector, usePortableTextEditorSelection, PortableTextEditable, defineTextBlock, defineBlockObject, defineInlineObject, EditorProvider, defineSchema, keyGenerator as keyGenerator$1 } from "@portabletext/editor";
|
|
52
52
|
import { fromUrl } from "@sanity/bifur-client";
|
|
53
53
|
import debug$c from "debug";
|
|
54
54
|
import startCase from "lodash-es/startCase.js";
|
|
@@ -250,7 +250,7 @@ import { createRoot } from "react-dom/client";
|
|
|
250
250
|
import { addWeeks } from "date-fns/addWeeks";
|
|
251
251
|
import { isAfter } from "date-fns/isAfter";
|
|
252
252
|
import { isBefore } from "date-fns/isBefore";
|
|
253
|
-
import { getSelectionStartBlock, getSelectionEndBlock, getValue as getValue$1 } from "@portabletext/editor/selectors";
|
|
253
|
+
import { getApplicableSchema, compareApplicableSchema, getSelectionStartBlock, getSelectionEndBlock, getValue as getValue$1 } from "@portabletext/editor/selectors";
|
|
254
254
|
import { getLuminance, parseToRgb, rgb, mix } from "polished";
|
|
255
255
|
import findIndex$1 from "lodash-es/findIndex.js";
|
|
256
256
|
import { ChevronUpIcon } from "@sanity/icons/ChevronUp";
|
|
@@ -29736,13 +29736,13 @@ function CustomIcon(props2) {
|
|
|
29736
29736
|
let t3;
|
|
29737
29737
|
return $[3] !== inlineStyle ? (t3 = /* @__PURE__ */ jsx(CustomIconDiv, { style: inlineStyle }), $[3] = inlineStyle, $[4] = t3) : t3 = $[4], t3;
|
|
29738
29738
|
}
|
|
29739
|
-
function getPTEFormatActions(editor2, schemaTypes, disabled, hotkeyOpts, t) {
|
|
29739
|
+
function getPTEFormatActions(editor2, schemaTypes, disabled, applicable, hotkeyOpts, t) {
|
|
29740
29740
|
return schemaTypes.decorators.map((decorator) => {
|
|
29741
29741
|
const shortCutKey = Object.keys(hotkeyOpts.marks || {}).find((key) => hotkeyOpts.marks?.[key] === decorator.value);
|
|
29742
29742
|
let hotkeys = [];
|
|
29743
29743
|
return shortCutKey && (hotkeys = [shortCutKey]), {
|
|
29744
29744
|
type: "format",
|
|
29745
|
-
disabled,
|
|
29745
|
+
disabled: disabled || !applicable.decorators.has(decorator.value),
|
|
29746
29746
|
icon: decorator?.icon,
|
|
29747
29747
|
key: decorator.value,
|
|
29748
29748
|
handle: () => {
|
|
@@ -29753,11 +29753,11 @@ function getPTEFormatActions(editor2, schemaTypes, disabled, hotkeyOpts, t) {
|
|
|
29753
29753
|
};
|
|
29754
29754
|
});
|
|
29755
29755
|
}
|
|
29756
|
-
function getPTEListActions(editor2, schemaTypes, disabled, t) {
|
|
29756
|
+
function getPTEListActions(editor2, schemaTypes, disabled, applicable, t) {
|
|
29757
29757
|
return schemaTypes.lists.map((listItem) => ({
|
|
29758
29758
|
type: "listStyle",
|
|
29759
29759
|
key: listItem.value,
|
|
29760
|
-
disabled,
|
|
29760
|
+
disabled: disabled || !applicable.lists.has(listItem.value),
|
|
29761
29761
|
icon: listItem?.icon,
|
|
29762
29762
|
handle: () => {
|
|
29763
29763
|
PortableTextEditor.toggleList(editor2, listItem.value);
|
|
@@ -29768,11 +29768,13 @@ function getPTEListActions(editor2, schemaTypes, disabled, t) {
|
|
|
29768
29768
|
function getAnnotationIcon(type) {
|
|
29769
29769
|
return get(type, "icon") || get(type, "type.icon") || get(type, "type.to.icon") || get(type, "type.to[0].icon");
|
|
29770
29770
|
}
|
|
29771
|
-
function getPTEAnnotationActions(editor2, schemaTypes, disabled, onInsert, t) {
|
|
29772
|
-
const focusChild = PortableTextEditor.focusChild(editor2), hasText = focusChild && focusChild.text;
|
|
29771
|
+
function getPTEAnnotationActions(editor2, schemaTypes, disabled, applicable, onInsert, t) {
|
|
29773
29772
|
return schemaTypes.annotations.map((aType) => ({
|
|
29774
29773
|
type: "annotation",
|
|
29775
|
-
|
|
29774
|
+
// Empty-block and cross-block disabling live at the render site
|
|
29775
|
+
// (`ActionMenu`), which re-renders with the focused block; anything
|
|
29776
|
+
// read here is frozen until the memoized action groups rebuild.
|
|
29777
|
+
disabled: disabled || !applicable.annotations.has(aType.name),
|
|
29776
29778
|
icon: getAnnotationIcon(aType),
|
|
29777
29779
|
key: aType.name,
|
|
29778
29780
|
handle: (active) => {
|
|
@@ -29785,19 +29787,20 @@ function getPTEToolbarActionGroups(editor2, options) {
|
|
|
29785
29787
|
const {
|
|
29786
29788
|
schemaTypes,
|
|
29787
29789
|
disabled,
|
|
29790
|
+
applicable,
|
|
29788
29791
|
onInsertAnnotation,
|
|
29789
29792
|
hotkeyOpts,
|
|
29790
29793
|
t
|
|
29791
29794
|
} = options;
|
|
29792
29795
|
return [{
|
|
29793
29796
|
name: "format",
|
|
29794
|
-
actions: getPTEFormatActions(editor2, schemaTypes, disabled, hotkeyOpts, t)
|
|
29797
|
+
actions: getPTEFormatActions(editor2, schemaTypes, disabled, applicable, hotkeyOpts, t)
|
|
29795
29798
|
}, {
|
|
29796
29799
|
name: "list",
|
|
29797
|
-
actions: getPTEListActions(editor2, schemaTypes, disabled, t)
|
|
29800
|
+
actions: getPTEListActions(editor2, schemaTypes, disabled, applicable, t)
|
|
29798
29801
|
}, {
|
|
29799
29802
|
name: "annotation",
|
|
29800
|
-
actions: getPTEAnnotationActions(editor2, schemaTypes, disabled, onInsertAnnotation, t)
|
|
29803
|
+
actions: getPTEAnnotationActions(editor2, schemaTypes, disabled, applicable, onInsertAnnotation, t)
|
|
29801
29804
|
}];
|
|
29802
29805
|
}
|
|
29803
29806
|
function getBlockStyles(types) {
|
|
@@ -29855,18 +29858,22 @@ function getActionIcon(action, active) {
|
|
|
29855
29858
|
display: "contents"
|
|
29856
29859
|
}, children: /* @__PURE__ */ jsx(ActionIcon, { action }) }) : action.type === "annotation" ? annotationIcons[action.key] || UnknownIcon : action.type === "listStyle" ? listStyleIcons[action.key] || UnknownIcon : formatIcons[action.key] || UnknownIcon;
|
|
29857
29860
|
}
|
|
29861
|
+
function useApplicableSchema() {
|
|
29862
|
+
const editor2 = useEditor();
|
|
29863
|
+
return useEditorSelector(editor2, getApplicableSchema, compareApplicableSchema);
|
|
29864
|
+
}
|
|
29858
29865
|
function useFocusBlock() {
|
|
29859
29866
|
const $ = c(3), editor2 = usePortableTextEditor(), selection = usePortableTextEditorSelection();
|
|
29860
29867
|
let t0;
|
|
29861
29868
|
return $[0] !== editor2 || $[1] !== selection ? (t0 = selection ? PortableTextEditor.focusBlock(editor2) : void 0, $[0] = editor2, $[1] = selection, $[2] = t0) : t0 = $[2], t0;
|
|
29862
29869
|
}
|
|
29863
29870
|
function useActionGroups(t0) {
|
|
29864
|
-
const $ = c(
|
|
29871
|
+
const $ = c(12), {
|
|
29865
29872
|
hotkeys,
|
|
29866
29873
|
onMemberOpen,
|
|
29867
29874
|
resolveInitialValue: resolveInitialValue2,
|
|
29868
29875
|
disabled
|
|
29869
|
-
} = t0, editor2 = usePortableTextEditor(), schemaTypes = usePortableTextMemberSchemaTypes(), {
|
|
29876
|
+
} = t0, editor2 = usePortableTextEditor(), schemaTypes = usePortableTextMemberSchemaTypes(), applicable = useApplicableSchema(), {
|
|
29870
29877
|
t
|
|
29871
29878
|
} = useTranslation();
|
|
29872
29879
|
let t1;
|
|
@@ -29876,13 +29883,14 @@ function useActionGroups(t0) {
|
|
|
29876
29883
|
}, $[0] = editor2, $[1] = onMemberOpen, $[2] = resolveInitialValue2, $[3] = t1) : t1 = $[3];
|
|
29877
29884
|
const handleInsertAnnotation = t1;
|
|
29878
29885
|
let t2;
|
|
29879
|
-
return $[4] !==
|
|
29886
|
+
return $[4] !== applicable || $[5] !== disabled || $[6] !== editor2 || $[7] !== handleInsertAnnotation || $[8] !== hotkeys || $[9] !== schemaTypes || $[10] !== t ? (t2 = editor2 ? getPTEToolbarActionGroups(editor2, {
|
|
29880
29887
|
schemaTypes,
|
|
29881
29888
|
disabled,
|
|
29889
|
+
applicable,
|
|
29882
29890
|
onInsertAnnotation: handleInsertAnnotation,
|
|
29883
29891
|
hotkeyOpts: hotkeys,
|
|
29884
29892
|
t
|
|
29885
|
-
}) : [], $[4] =
|
|
29893
|
+
}) : [], $[4] = applicable, $[5] = disabled, $[6] = editor2, $[7] = handleInsertAnnotation, $[8] = hotkeys, $[9] = schemaTypes, $[10] = t, $[11] = t2) : t2 = $[11], t2;
|
|
29886
29894
|
}
|
|
29887
29895
|
function useActiveActionKeys(t0) {
|
|
29888
29896
|
const $ = c(4), {
|
|
@@ -29940,7 +29948,7 @@ const CollapseMenuMemo$1 = memo(CollapseMenu), MENU_POPOVER_PROPS$3 = {
|
|
|
29940
29948
|
}), active = activeKeys.includes(action_0.key);
|
|
29941
29949
|
return /* @__PURE__ */ jsx(CollapseMenuButton, { "aria-label": t("toolbar.portable-text.action-button-aria-label", {
|
|
29942
29950
|
action: action_0.title || action_0.key
|
|
29943
|
-
}), "data-testid": `action-button-${action_0.key}`, disabled: disabled || annotationDisabled, mode: "bleed", dividerBefore: action_0.firstInGroup, icon: getActionIcon(action_0, active), onClick: () => action_0.handle(active), selected: active, text: action_0.title || action_0.key, tooltipText: annotationDisabled ? annotationDisabledText : action_0.title || action_0.key, tooltipProps: {
|
|
29951
|
+
}), "data-testid": `action-button-${action_0.key}`, disabled: disabled || action_0.disabled || annotationDisabled, mode: "bleed", dividerBefore: action_0.firstInGroup, icon: getActionIcon(action_0, active), onClick: () => action_0.handle(active), selected: active, text: action_0.title || action_0.key, tooltipText: annotationDisabled ? annotationDisabledText : action_0.title || action_0.key, tooltipProps: {
|
|
29944
29952
|
disabled,
|
|
29945
29953
|
placement: tooltipPlacement,
|
|
29946
29954
|
portal: "default"
|
|
@@ -29993,11 +30001,11 @@ const MenuButtonMemo = memo(MenuButton), StyledMenuItem = /* @__PURE__ */ styled
|
|
|
29993
30001
|
title: "No style",
|
|
29994
30002
|
i18nTitleKey: "inputs.portable-text.style.none"
|
|
29995
30003
|
}, BlockStyleSelect = memo(function(props2) {
|
|
29996
|
-
const $ = c(
|
|
30004
|
+
const $ = c(51), {
|
|
29997
30005
|
disabled,
|
|
29998
30006
|
items: itemsProp,
|
|
29999
30007
|
boundaryElement
|
|
30000
|
-
} = props2, editor2 = usePortableTextEditor(), schemaTypes = usePortableTextMemberSchemaTypes(), focusBlock = useFocusBlock(), {
|
|
30008
|
+
} = props2, applicable = useApplicableSchema(), editor2 = usePortableTextEditor(), schemaTypes = usePortableTextMemberSchemaTypes(), focusBlock = useFocusBlock(), {
|
|
30001
30009
|
t
|
|
30002
30010
|
} = useTranslation();
|
|
30003
30011
|
let t0;
|
|
@@ -30066,26 +30074,29 @@ const MenuButtonMemo = memo(MenuButton), StyledMenuItem = /* @__PURE__ */ styled
|
|
|
30066
30074
|
$[28] !== _disabled || $[29] !== menuButtonText ? (t6 = /* @__PURE__ */ jsx(Button$1, { disabled: _disabled, iconRight: ChevronDownIcon, justify: "space-between", mode: "bleed", onClick: preventDefault, text: menuButtonText, width: "fill" }), $[28] = _disabled, $[29] = menuButtonText, $[30] = t6) : t6 = $[30];
|
|
30067
30075
|
const button = t6;
|
|
30068
30076
|
let t7;
|
|
30069
|
-
if ($[31] !== _disabled || $[32] !== activeItems || $[33] !==
|
|
30077
|
+
if ($[31] !== _disabled || $[32] !== activeItems || $[33] !== applicable || $[34] !== handleChange || $[35] !== items || $[36] !== renderOption) {
|
|
30070
30078
|
let t82;
|
|
30071
|
-
$[
|
|
30079
|
+
$[38] !== _disabled || $[39] !== activeItems || $[40] !== applicable || $[41] !== handleChange || $[42] !== renderOption ? (t82 = (item_2) => {
|
|
30080
|
+
const itemDisabled = _disabled || !applicable.styles.has(item_2.style);
|
|
30081
|
+
return /* @__PURE__ */ jsx(StyledMenuItem, { disabled: itemDisabled, pressed: activeItems.includes(item_2), onClick: itemDisabled ? void 0 : () => handleChange(item_2), children: renderOption(item_2) }, item_2.key);
|
|
30082
|
+
}, $[38] = _disabled, $[39] = activeItems, $[40] = applicable, $[41] = handleChange, $[42] = renderOption, $[43] = t82) : t82 = $[43], t7 = items.map(t82), $[31] = _disabled, $[32] = activeItems, $[33] = applicable, $[34] = handleChange, $[35] = items, $[36] = renderOption, $[37] = t7;
|
|
30072
30083
|
} else
|
|
30073
|
-
t7 = $[
|
|
30084
|
+
t7 = $[37];
|
|
30074
30085
|
let t8;
|
|
30075
|
-
$[
|
|
30086
|
+
$[44] !== _disabled || $[45] !== t7 ? (t8 = /* @__PURE__ */ jsx(Menu, { disabled: _disabled, children: t7 }), $[44] = _disabled, $[45] = t7, $[46] = t8) : t8 = $[46];
|
|
30076
30087
|
const menu = t8;
|
|
30077
30088
|
let t9;
|
|
30078
|
-
return $[
|
|
30089
|
+
return $[47] !== button || $[48] !== menu || $[49] !== popoverProperties ? (t9 = /* @__PURE__ */ jsx(MenuButtonMemo, { popover: popoverProperties, id: "block-style-select", button, menu }), $[47] = button, $[48] = menu, $[49] = popoverProperties, $[50] = t9) : t9 = $[50], t9;
|
|
30079
30090
|
}), CollapseMenuMemo = memo(CollapseMenu), MENU_POPOVER_PROPS$2 = {
|
|
30080
30091
|
constrainSize: !0,
|
|
30081
30092
|
portal: !0
|
|
30082
30093
|
}, InsertMenu = memo(function(props2) {
|
|
30083
|
-
const $ = c(
|
|
30094
|
+
const $ = c(25), {
|
|
30084
30095
|
disabled,
|
|
30085
30096
|
items,
|
|
30086
30097
|
isFullscreen,
|
|
30087
30098
|
collapsed
|
|
30088
|
-
} = props2, {
|
|
30099
|
+
} = props2, applicable = useApplicableSchema(), {
|
|
30089
30100
|
t
|
|
30090
30101
|
} = useTranslation(), focusBlock = useFocusBlock(), editor2 = usePortableTextEditor(), schemaTypes = usePortableTextMemberSchemaTypes(), isVoidFocus = focusBlock && focusBlock._type !== schemaTypes.block.name;
|
|
30091
30102
|
let t0;
|
|
@@ -30094,35 +30105,35 @@ const MenuButtonMemo = memo(MenuButton), StyledMenuItem = /* @__PURE__ */ styled
|
|
|
30094
30105
|
}, $[0] = editor2, $[1] = t0) : t0 = $[1];
|
|
30095
30106
|
const handleMenuClose = t0, tooltipPlacement = isFullscreen ? "bottom" : "top";
|
|
30096
30107
|
let t1;
|
|
30097
|
-
if ($[2] !==
|
|
30108
|
+
if ($[2] !== applicable || $[3] !== disabled || $[4] !== isVoidFocus || $[5] !== items || $[6] !== t || $[7] !== tooltipPlacement) {
|
|
30098
30109
|
let t22;
|
|
30099
|
-
$[
|
|
30110
|
+
$[9] !== applicable || $[10] !== disabled || $[11] !== isVoidFocus || $[12] !== t || $[13] !== tooltipPlacement ? (t22 = (item) => {
|
|
30100
30111
|
const title = item.type.title || upperFirst(item.type.name);
|
|
30101
30112
|
return /* @__PURE__ */ jsx(CollapseMenuButton, { "aria-label": t(item.inline ? "inputs.portable-text.action.insert-inline-object-aria-label" : "inputs.portable-text.action.insert-block-aria-label", {
|
|
30102
30113
|
typeName: title
|
|
30103
|
-
}), mode: "bleed", disabled: disabled || isVoidFocus && item.inline || !!item.type.deprecated, "data-testid": `${item.type.name}-insert-menu-button`, icon: item.icon, onClick: item.handle, text: title, tooltipText: t(item.type.deprecated ? item.type.deprecated.reason : item.inline ? "inputs.portable-text.action.insert-inline-object" : "inputs.portable-text.action.insert-block", {
|
|
30114
|
+
}), mode: "bleed", disabled: disabled || isVoidFocus && item.inline || !!item.type.deprecated || !applicable[item.inline ? "inlineObjects" : "blockObjects"].has(item.type.name), "data-testid": `${item.type.name}-insert-menu-button`, icon: item.icon, onClick: item.handle, text: title, tooltipText: t(item.type.deprecated ? item.type.deprecated.reason : item.inline ? "inputs.portable-text.action.insert-inline-object" : "inputs.portable-text.action.insert-block", {
|
|
30104
30115
|
typeName: title
|
|
30105
30116
|
}), tooltipProps: {
|
|
30106
30117
|
disabled,
|
|
30107
30118
|
placement: tooltipPlacement,
|
|
30108
30119
|
portal: "default"
|
|
30109
30120
|
} }, item.key);
|
|
30110
|
-
}, $[
|
|
30121
|
+
}, $[9] = applicable, $[10] = disabled, $[11] = isVoidFocus, $[12] = t, $[13] = tooltipPlacement, $[14] = t22) : t22 = $[14], t1 = items.map(t22), $[2] = applicable, $[3] = disabled, $[4] = isVoidFocus, $[5] = items, $[6] = t, $[7] = tooltipPlacement, $[8] = t1;
|
|
30111
30122
|
} else
|
|
30112
|
-
t1 = $[
|
|
30123
|
+
t1 = $[8];
|
|
30113
30124
|
const children = t1;
|
|
30114
30125
|
let t2;
|
|
30115
|
-
$[
|
|
30126
|
+
$[15] !== tooltipPlacement ? (t2 = {
|
|
30116
30127
|
placement: tooltipPlacement
|
|
30117
|
-
}, $[
|
|
30128
|
+
}, $[15] = tooltipPlacement, $[16] = t2) : t2 = $[16];
|
|
30118
30129
|
let t3;
|
|
30119
|
-
$[
|
|
30130
|
+
$[17] !== disabled || $[18] !== t2 ? (t3 = {
|
|
30120
30131
|
button: /* @__PURE__ */ jsx(ContextMenuButton, { "data-testid": "insert-menu-button", disabled, tooltipProps: t2 }),
|
|
30121
30132
|
popover: MENU_POPOVER_PROPS$2
|
|
30122
|
-
}, $[
|
|
30133
|
+
}, $[17] = disabled, $[18] = t2, $[19] = t3) : t3 = $[19];
|
|
30123
30134
|
const menuButtonProps = t3;
|
|
30124
30135
|
let t4;
|
|
30125
|
-
return $[
|
|
30136
|
+
return $[20] !== children || $[21] !== collapsed || $[22] !== handleMenuClose || $[23] !== menuButtonProps ? (t4 = /* @__PURE__ */ jsx(CollapseMenuMemo, { "data-testid": "insert-menu-auto-collapse-menu", collapsed, collapseText: !1, disableRestoreFocusOnClose: !0, gap: 1, menuButtonProps, onMenuClose: handleMenuClose, children }), $[20] = children, $[21] = collapsed, $[22] = handleMenuClose, $[23] = menuButtonProps, $[24] = t4) : t4 = $[24], t4;
|
|
30126
30137
|
}), RootFlex$3 = /* @__PURE__ */ styled(Flex).withConfig({
|
|
30127
30138
|
displayName: "RootFlex",
|
|
30128
30139
|
componentId: "sc-1wan29s-0"
|
|
@@ -30199,7 +30210,7 @@ const MenuButtonMemo = memo(MenuButton), StyledMenuItem = /* @__PURE__ */ styled
|
|
|
30199
30210
|
] }), $[43] = t16, $[44] = t2, $[45] = t5, $[46] = t17) : t17 = $[46], t17;
|
|
30200
30211
|
});
|
|
30201
30212
|
function Toolbar(props2) {
|
|
30202
|
-
const $ = c(
|
|
30213
|
+
const $ = c(31), {
|
|
30203
30214
|
collapsible,
|
|
30204
30215
|
hotkeys,
|
|
30205
30216
|
isFullscreen,
|
|
@@ -30247,21 +30258,21 @@ function Toolbar(props2) {
|
|
|
30247
30258
|
}, $[7] = editor2, $[8] = onMemberOpen, $[9] = resolveInitialValue2, $[10] = t2) : t2 = $[10];
|
|
30248
30259
|
const handleInsertInline = t2;
|
|
30249
30260
|
let t3;
|
|
30250
|
-
$[11] !==
|
|
30261
|
+
$[11] !== disabled || $[12] !== hotkeys || $[13] !== onMemberOpen || $[14] !== resolveInitialValue2 ? (t3 = {
|
|
30251
30262
|
hotkeys,
|
|
30252
30263
|
onMemberOpen,
|
|
30253
30264
|
resolveInitialValue: resolveInitialValue2,
|
|
30254
|
-
disabled
|
|
30255
|
-
}, $[11] =
|
|
30265
|
+
disabled
|
|
30266
|
+
}, $[11] = disabled, $[12] = hotkeys, $[13] = onMemberOpen, $[14] = resolveInitialValue2, $[15] = t3) : t3 = $[15];
|
|
30256
30267
|
const actionGroups = useActionGroups(t3);
|
|
30257
30268
|
let t4;
|
|
30258
|
-
$[
|
|
30269
|
+
$[16] !== schemaTypes ? (t4 = getBlockStyles(schemaTypes), $[16] = schemaTypes, $[17] = t4) : t4 = $[17];
|
|
30259
30270
|
const blockStyles = t4;
|
|
30260
30271
|
let t5;
|
|
30261
|
-
$[
|
|
30272
|
+
$[18] !== disabled || $[19] !== handleInsertBlock || $[20] !== handleInsertInline || $[21] !== schemaTypes ? (t5 = getInsertMenuItems(schemaTypes, disabled, handleInsertBlock, handleInsertInline), $[18] = disabled, $[19] = handleInsertBlock, $[20] = handleInsertInline, $[21] = schemaTypes, $[22] = t5) : t5 = $[22];
|
|
30262
30273
|
const insertMenuItems = t5;
|
|
30263
30274
|
let t6;
|
|
30264
|
-
return $[
|
|
30275
|
+
return $[23] !== actionGroups || $[24] !== blockStyles || $[25] !== collapsible || $[26] !== disabled || $[27] !== insertMenuItems || $[28] !== isFullscreen || $[29] !== onToggleFullscreen ? (t6 = /* @__PURE__ */ jsx(InnerToolbar, { actionGroups, blockStyles, collapsible, disabled, insertMenuItems, isFullscreen, onToggleFullscreen }), $[23] = actionGroups, $[24] = blockStyles, $[25] = collapsible, $[26] = disabled, $[27] = insertMenuItems, $[28] = isFullscreen, $[29] = onToggleFullscreen, $[30] = t6) : t6 = $[30], t6;
|
|
30265
30276
|
}
|
|
30266
30277
|
function _temp$2x(acc, x) {
|
|
30267
30278
|
return acc + x.actions.length;
|