@wrdagency/blockout 0.1.10 → 1.0.1
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/2NBKRL7C-Cug3TzgR.js +85 -0
- package/dist/{2RSXSRCN-qt84MtKs.js → 2RSXSRCN-Bc3g-z-i.js} +12 -12
- package/dist/{4CMBR7SL-BAGv8IL2.js → 4CMBR7SL-xNGezbCB.js} +31 -31
- package/dist/{5JTVDSTH-CG1NL6Fw.js → 5JTVDSTH-CIreO5bC.js} +26 -26
- package/dist/{5VQZOHHZ-CscZGerP.js → 5VQZOHHZ-CNzYHc1X.js} +1 -1
- package/dist/{6VRAQV3D-2rb_aClP.js → 6VRAQV3D-BoLhl3hf.js} +19 -19
- package/dist/A3WPL2ZJ-D0Eh1dEB.js +11 -0
- package/dist/ArrowBendDownRight.es-mejk84um.js +32 -0
- package/dist/BM6PGYQY-Bhr7peim.js +17 -0
- package/dist/{CaretDown.es-eySGHzTJ.js → CaretDown.es-BKFnosGJ.js} +3 -5
- package/dist/CaretDown.es-eyr5AnCc.js +8 -0
- package/dist/CaretLeft.es-C1wX08tw.js +32 -0
- package/dist/CaretRight.es-vnr78BGI.js +32 -0
- package/dist/DG5U6ZEL-C7eLVyh-.js +17 -0
- package/dist/DotsSixVertical.es-Ixbhxg7Z.js +38 -0
- package/dist/DotsThreeVertical.es-uadrGk3y.js +36 -0
- package/dist/EM5CXX6A-DKxCXPnz.js +14 -0
- package/dist/{F5MUBM3I-87B2_4WK.js → F5MUBM3I-_HauDyEF.js} +11 -11
- package/dist/G7GW6PWC-Crp1Jn-8.js +1236 -0
- package/dist/J2LQO3EC-CcHJqN0I.js +39 -0
- package/dist/KFH4SEIX-D-fCkpQv.js +120 -0
- package/dist/{LMDWO4NN--KEvZePp.js → LMDWO4NN-DdLnHzru.js} +47 -47
- package/dist/MR26YJYP-yD1_RvCA.js +283 -0
- package/dist/MTZPJQMC-RLG1q394.js +12 -0
- package/dist/MagnifyingGlass.es-CLstwG_v.js +32 -0
- package/dist/O2PQ2652-THp22K4G.js +51 -0
- package/dist/P7GR5CS5-Dub2zqTX.js +22 -0
- package/dist/{PFRGBC2K-BEg8ahbY.js → PFRGBC2K-DUhGSIey.js} +83 -83
- package/dist/{RS7LB2H4-D0fWv5qu.js → RS7LB2H4-C0kmTjy8.js} +3 -3
- package/dist/{RZ4GPYOB-13-5LlEb.js → RZ4GPYOB-c8s_KHUk.js} +6 -6
- package/dist/RadioButton.es-D3QVjfF9.js +36 -0
- package/dist/{S43UC3DV-Dn8EFLaT.js → S43UC3DV-erT1ucAd.js} +5 -5
- package/dist/{T7VMP3TM-DeRMoW8g.js → T7VMP3TM-C-Aesx9K.js} +10 -10
- package/dist/TP7N7UIH-mdk33dnV.js +34 -0
- package/dist/{UQQRIHDV-Bu8e1bYU.js → UQQRIHDV-DIXH69U3.js} +8 -8
- package/dist/{UYGDZTLQ-DcCmv5SE.js → UYGDZTLQ-fOwUiOjI.js} +4 -4
- package/dist/VIIRIBF3-DylpToFV.js +18 -0
- package/dist/WMYDSCNQ-D43V-JUe.js +62 -0
- package/dist/WYCIER3C-S-jsj0wy.js +59 -0
- package/dist/X.es-TbGOnXOO.js +38 -0
- package/dist/{YV4JVR4I-kvospPUa.js → YV4JVR4I-BXEaRiAN.js} +33 -33
- package/dist/assets/button.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/prosemirror.css +1 -0
- package/dist/assets/root.css +1 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/style10.css +1 -0
- package/dist/assets/style11.css +1 -0
- package/dist/assets/style12.css +1 -0
- package/dist/assets/style13.css +1 -0
- package/dist/assets/style14.css +1 -0
- package/dist/assets/style15.css +1 -0
- package/dist/assets/style16.css +1 -0
- package/dist/assets/style17.css +1 -0
- package/dist/assets/style18.css +1 -0
- package/dist/assets/style19.css +1 -0
- package/dist/assets/style2.css +1 -1
- package/dist/assets/style20.css +1 -0
- package/dist/assets/style21.css +1 -0
- package/dist/assets/style22.css +1 -0
- package/dist/assets/style23.css +1 -0
- package/dist/assets/style24.css +1 -0
- package/dist/assets/style25.css +1 -0
- package/dist/assets/style3.css +1 -1
- package/dist/assets/style4.css +1 -1
- package/dist/assets/style5.css +1 -0
- package/dist/assets/style6.css +1 -0
- package/dist/assets/style7.css +1 -0
- package/dist/assets/style8.css +1 -0
- package/dist/assets/style9.css +1 -0
- package/dist/assets/styles2.css +1 -0
- package/dist/assets/styles3.css +1 -0
- package/dist/assets/styles4.css +1 -0
- package/dist/assets/styles5.css +1 -0
- package/dist/base-jB1DIMnz.js +559 -0
- package/dist/commands-IQnqt4xL.js +5937 -0
- package/dist/components/avatar/index.d.ts +10 -0
- package/dist/components/avatar/index.js +42 -0
- package/dist/components/badge/index.d.ts +7 -0
- package/dist/components/badge/index.js +24 -0
- package/dist/components/breadcrumbs/index.d.ts +2 -1
- package/dist/components/breadcrumbs/index.js +31 -63
- package/dist/components/breadcrumbs/types.d.ts +2 -1
- package/dist/components/button/button.d.ts +1 -0
- package/dist/components/button/icon.js +31 -10
- package/dist/components/button/index.js +7 -5
- package/dist/components/button/row.d.ts +7 -0
- package/dist/components/button/row.js +14 -0
- package/dist/components/controls/base-control/affix.d.ts +1 -1
- package/dist/components/controls/base-control/index.js +35 -23
- package/dist/components/controls/base-control/props.d.ts +9 -1
- package/dist/components/controls/base-control/props.js +31 -12
- package/dist/components/controls/base-popover-control/index.js +41 -27
- package/dist/components/controls/card-number-control/cards/index.d.ts +0 -1
- package/dist/components/controls/card-number-control/cards/index.js +6 -8
- package/dist/components/controls/card-number-control/index.js +39 -435
- package/dist/components/controls/checkbox-control/index.d.ts +2 -0
- package/dist/components/controls/checkbox-control/index.js +80 -46
- package/dist/components/controls/choice-control/choice.js +30 -23
- package/dist/components/controls/choice-control/index.js +6 -5
- package/dist/components/controls/date-control/component.d.ts +8 -7
- package/dist/components/controls/date-control/component.js +27 -28
- package/dist/components/controls/date-control/index.d.ts +5 -9
- package/dist/components/controls/date-control/index.js +131 -35
- package/dist/components/controls/date-control/picker.d.ts +8 -0
- package/dist/components/controls/date-control/picker.js +18 -0
- package/dist/components/controls/date-control/types.d.ts +10 -13
- package/dist/components/controls/date-control/types.js +75 -52
- package/dist/components/controls/date-control/util.d.ts +1 -0
- package/dist/components/controls/date-control/util.js +1608 -0
- package/dist/components/controls/index.d.ts +3 -1
- package/dist/components/controls/index.js +32 -27
- package/dist/components/controls/list-control/index.d.ts +9 -0
- package/dist/components/controls/list-control/index.js +42 -0
- package/dist/components/controls/list-control/item.d.ts +10 -0
- package/dist/components/controls/list-control/item.js +108 -0
- package/dist/components/controls/list-control/list.d.ts +10 -0
- package/dist/components/controls/list-control/list.js +89 -0
- package/dist/components/controls/list-control/types.d.ts +6 -0
- package/dist/components/controls/markdown-control/commands.d.ts +1 -0
- package/dist/components/controls/markdown-control/commands.js +5 -0
- package/dist/components/controls/markdown-control/editor.d.ts +8 -0
- package/dist/components/controls/markdown-control/editor.js +807 -0
- package/dist/components/controls/markdown-control/index.d.ts +7 -0
- package/dist/components/controls/markdown-control/index.js +20 -0
- package/dist/components/controls/markdown-control/slash/base.d.ts +14 -0
- package/dist/components/controls/markdown-control/slash/base.js +9 -0
- package/dist/components/controls/markdown-control/slash/mentions.d.ts +6 -0
- package/dist/components/controls/markdown-control/slash/mentions.js +14 -0
- package/dist/components/controls/markdown-control/toolbar.d.ts +6 -0
- package/dist/components/controls/markdown-control/toolbar.js +10 -0
- package/dist/components/controls/number-control/index.js +8 -7
- package/dist/components/controls/password-control/index.js +4 -3
- package/dist/components/controls/recurrence-control/index.js +81 -100
- package/dist/components/controls/select-control/control.d.ts +3 -0
- package/dist/components/controls/select-control/control.js +53 -0
- package/dist/components/controls/select-control/index.d.ts +2 -1
- package/dist/components/controls/select-control/index.js +6 -5
- package/dist/components/controls/select-control/props.d.ts +14 -0
- package/dist/components/controls/select-control/props.js +1 -0
- package/dist/components/controls/select-control/select.d.ts +3 -0
- package/dist/components/controls/select-control/select.js +1186 -0
- package/dist/components/controls/text-control/index.js +11 -10
- package/dist/components/controls/textarea-control/index.js +7 -6
- package/dist/components/controls/toggle-control/index.d.ts +4 -3
- package/dist/components/controls/toggle-control/index.js +73 -53
- package/dist/components/controls/toggle-group-control/index.d.ts +1 -0
- package/dist/components/controls/toggle-group-control/index.js +35 -26
- package/dist/components/data-form/api.d.ts +2 -0
- package/dist/components/data-form/api.js +1826 -0
- package/dist/components/data-form/autosave.d.ts +4 -0
- package/dist/components/data-form/autosave.js +12 -0
- package/dist/components/data-form/context.d.ts +10 -0
- package/dist/components/data-form/context.js +10 -0
- package/dist/components/data-form/form.d.ts +11 -0
- package/dist/components/data-form/form.js +30 -0
- package/dist/components/data-form/index.js +14 -0
- package/dist/components/data-form/row.d.ts +7 -0
- package/dist/components/data-form/row.js +16 -0
- package/dist/components/data-form/status.d.ts +6 -0
- package/dist/components/data-form/status.js +37 -0
- package/dist/components/data-form/submit.d.ts +10 -0
- package/dist/components/data-form/submit.js +37 -0
- package/dist/components/data-form/types.d.ts +37 -0
- package/dist/components/data-form/types.js +1 -0
- package/dist/components/data-view/api.d.ts +24 -0
- package/dist/components/data-view/api.js +31 -0
- package/dist/components/data-view/data/apply.d.ts +10 -0
- package/dist/components/data-view/data/apply.js +346 -0
- package/dist/components/data-view/data/fields.d.ts +4 -0
- package/dist/components/data-view/data/fields.js +26 -0
- package/dist/components/data-view/data/filter.d.ts +8 -0
- package/dist/components/data-view/data/filter.js +48 -0
- package/dist/components/data-view/data/layout.d.ts +2 -0
- package/dist/components/data-view/data/layout.js +19 -0
- package/dist/components/data-view/data/normalize.d.ts +5 -0
- package/dist/components/data-view/data/normalize.js +76 -0
- package/dist/components/data-view/data/options.d.ts +10 -0
- package/dist/components/data-view/data/options.js +297 -0
- package/dist/components/data-view/index.d.ts +5 -0
- package/dist/components/data-view/index.js +9 -0
- package/dist/components/data-view/layouts/grid/empty.d.ts +2 -0
- package/dist/components/data-view/layouts/grid/empty.js +6 -0
- package/dist/components/data-view/layouts/grid/group.d.ts +2 -0
- package/dist/components/data-view/layouts/grid/group.js +57 -0
- package/dist/components/data-view/layouts/grid/index.d.ts +3 -0
- package/dist/components/data-view/layouts/grid/index.js +8 -0
- package/dist/components/data-view/layouts/grid/item.d.ts +2 -0
- package/dist/components/data-view/layouts/grid/item.js +98 -0
- package/dist/components/data-view/layouts/grid/root.d.ts +2 -0
- package/dist/components/data-view/layouts/grid/root.js +6 -0
- package/dist/components/data-view/layouts/kanban/empty.d.ts +2 -0
- package/dist/components/data-view/layouts/kanban/empty.js +6 -0
- package/dist/components/data-view/layouts/kanban/group.d.ts +2 -0
- package/dist/components/data-view/layouts/kanban/group.js +57 -0
- package/dist/components/data-view/layouts/kanban/index.d.ts +3 -0
- package/dist/components/data-view/layouts/kanban/index.js +8 -0
- package/dist/components/data-view/layouts/kanban/item.d.ts +2 -0
- package/dist/components/data-view/layouts/kanban/item.js +98 -0
- package/dist/components/data-view/layouts/kanban/root.d.ts +2 -0
- package/dist/components/data-view/layouts/kanban/root.js +18 -0
- package/dist/components/data-view/layouts/list/empty.d.ts +2 -0
- package/dist/components/data-view/layouts/list/empty.js +6 -0
- package/dist/components/data-view/layouts/list/group.d.ts +2 -0
- package/dist/components/data-view/layouts/list/group.js +57 -0
- package/dist/components/data-view/layouts/list/index.d.ts +3 -0
- package/dist/components/data-view/layouts/list/index.js +8 -0
- package/dist/components/data-view/layouts/list/item.d.ts +2 -0
- package/dist/components/data-view/layouts/list/item.js +77 -0
- package/dist/components/data-view/layouts/list/root.d.ts +2 -0
- package/dist/components/data-view/layouts/list/root.js +6 -0
- package/dist/components/data-view/layouts/table/empty.d.ts +2 -0
- package/dist/components/data-view/layouts/table/empty.js +54 -0
- package/dist/components/data-view/layouts/table/group.d.ts +2 -0
- package/dist/components/data-view/layouts/table/group.js +67 -0
- package/dist/components/data-view/layouts/table/index.d.ts +3 -0
- package/dist/components/data-view/layouts/table/index.js +8 -0
- package/dist/components/data-view/layouts/table/item.d.ts +2 -0
- package/dist/components/data-view/layouts/table/item.js +77 -0
- package/dist/components/data-view/layouts/table/root.d.ts +2 -0
- package/dist/components/data-view/layouts/table/root.js +134 -0
- package/dist/components/data-view/parts/body/empty.d.ts +2 -0
- package/dist/components/data-view/parts/body/empty.js +50 -0
- package/dist/components/data-view/parts/body/index.d.ts +2 -0
- package/dist/components/data-view/parts/body/index.js +64 -0
- package/dist/components/data-view/parts/controls/index.d.ts +5 -0
- package/dist/components/data-view/parts/controls/index.js +139 -0
- package/dist/components/data-view/parts/controls/search.d.ts +5 -0
- package/dist/components/data-view/parts/controls/search.js +77 -0
- package/dist/components/data-view/parts/filters/chip.d.ts +13 -0
- package/dist/components/data-view/parts/filters/chip.js +53 -0
- package/dist/components/data-view/parts/filters/editor.d.ts +10 -0
- package/dist/components/data-view/parts/filters/editor.js +89 -0
- package/dist/components/data-view/parts/filters/index.js +9 -0
- package/dist/components/data-view/parts/filters/list.d.ts +11 -0
- package/dist/components/data-view/parts/filters/list.js +108 -0
- package/dist/components/data-view/parts/filters/utils.d.ts +2 -0
- package/dist/components/data-view/parts/filters/utils.js +13 -0
- package/dist/components/data-view/parts/footer/actions.d.ts +2 -0
- package/dist/components/data-view/parts/footer/actions.js +104 -0
- package/dist/components/data-view/parts/footer/index.js +68 -0
- package/dist/components/data-view/parts/footer/selection.d.ts +2 -0
- package/dist/components/data-view/parts/footer/selection.js +61 -0
- package/dist/components/data-view/parts/index.d.ts +5 -0
- package/dist/components/data-view/parts/index.js +12 -0
- package/dist/components/data-view/parts/view-control/index.d.ts +6 -0
- package/dist/components/data-view/parts/view-control/index.js +215 -0
- package/dist/components/data-view/root.d.ts +18 -0
- package/dist/components/data-view/root.js +105 -0
- package/dist/components/data-view/slots/group/checkbox.d.ts +7 -0
- package/dist/components/data-view/slots/group/checkbox.js +41 -0
- package/dist/components/data-view/slots/group/context.d.ts +12 -0
- package/dist/components/data-view/slots/group/context.js +23 -0
- package/dist/components/data-view/slots/group/icon.d.ts +1 -0
- package/dist/components/data-view/slots/group/icon.js +4 -0
- package/dist/components/data-view/slots/group/index.js +5 -0
- package/dist/components/data-view/slots/group/label.d.ts +3 -0
- package/dist/components/data-view/slots/group/label.js +5 -0
- package/dist/components/data-view/slots/index.d.ts +4 -0
- package/dist/components/data-view/slots/index.js +9 -0
- package/dist/components/data-view/slots/item/actions.d.ts +6 -0
- package/dist/components/data-view/slots/item/actions.js +44 -0
- package/dist/components/data-view/slots/item/checkbox.d.ts +7 -0
- package/dist/components/data-view/slots/item/checkbox.js +87 -0
- package/dist/components/data-view/slots/item/context.d.ts +8 -0
- package/dist/components/data-view/slots/item/context.js +10 -0
- package/dist/components/data-view/slots/item/depth.d.ts +3 -0
- package/dist/components/data-view/slots/item/depth.js +9 -0
- package/dist/components/data-view/slots/item/description.d.ts +3 -0
- package/dist/components/data-view/slots/item/description.js +6 -0
- package/dist/components/data-view/slots/item/index.js +8 -0
- package/dist/components/data-view/slots/item/properties.d.ts +13 -0
- package/dist/components/data-view/slots/item/properties.js +8 -0
- package/dist/components/data-view/slots/item/relations.d.ts +7 -0
- package/dist/components/data-view/slots/item/relations.js +21 -0
- package/dist/components/data-view/slots/item/tags.d.ts +6 -0
- package/dist/components/data-view/slots/item/tags.js +7 -0
- package/dist/components/data-view/slots/item/thumbnail.d.ts +6 -0
- package/dist/components/data-view/slots/item/thumbnail.js +6 -0
- package/dist/components/data-view/slots/item/title.d.ts +3 -0
- package/dist/components/data-view/slots/item/title.js +17 -0
- package/dist/components/data-view/slots/item/util.d.ts +6 -0
- package/dist/components/data-view/slots/item/util.js +6 -0
- package/dist/components/data-view/slots/property/context.d.ts +8 -0
- package/dist/components/data-view/slots/property/context.js +10 -0
- package/dist/components/data-view/slots/property/field/editable.d.ts +3 -0
- package/dist/components/data-view/slots/property/field/editable.js +42 -0
- package/dist/components/data-view/slots/property/field/index.d.ts +3 -0
- package/dist/components/data-view/slots/property/field/index.js +7 -0
- package/dist/components/data-view/slots/property/field/static.d.ts +8 -0
- package/dist/components/data-view/slots/property/field/static.js +7 -0
- package/dist/components/data-view/slots/property/field/types.d.ts +5 -0
- package/dist/components/data-view/slots/property/field/types.js +1 -0
- package/dist/components/data-view/slots/property/index.js +5 -0
- package/dist/components/data-view/slots/property/label.d.ts +7 -0
- package/dist/components/data-view/slots/property/label.js +5 -0
- package/dist/components/data-view/slots/root/checkbox.d.ts +7 -0
- package/dist/components/data-view/slots/root/checkbox.js +40 -0
- package/dist/components/data-view/slots/root/context.d.ts +25 -0
- package/dist/components/data-view/slots/root/context.js +11 -0
- package/dist/components/data-view/slots/root/index.js +5 -0
- package/dist/components/data-view/types/actions.d.ts +15 -0
- package/dist/components/data-view/types/actions.js +1 -0
- package/dist/components/data-view/types/fields.d.ts +64 -0
- package/dist/components/data-view/types/fields.js +1 -0
- package/dist/components/data-view/types/filters.d.ts +19 -0
- package/dist/components/data-view/types/filters.js +1 -0
- package/dist/components/data-view/types/hierarchy.d.ts +13 -0
- package/dist/components/data-view/types/hierarchy.js +1 -0
- package/dist/components/data-view/types/index.d.ts +3 -0
- package/dist/components/data-view/types/index.js +1 -0
- package/dist/components/data-view/types/view.d.ts +47 -0
- package/dist/components/data-view/types/view.js +1 -0
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +30 -29
- package/dist/components/filesystem/index.js +1 -1
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/form/components/pagination.js +72 -17
- package/dist/components/index.d.ts +7 -2
- package/dist/components/index.js +69 -50
- package/dist/components/menu/index.d.ts +4 -0
- package/dist/components/menu/index.js +40 -129
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +2 -1
- package/dist/components/menu/items/spacer.js +3 -3
- package/dist/components/menu/items/submenu.js +4 -3
- package/dist/components/menu/items/toggle.js +11 -10
- package/dist/components/menu/types.d.ts +1 -0
- package/dist/components/pagination/index.d.ts +10 -0
- package/dist/components/pagination/index.js +63 -0
- package/dist/components/progress/index.d.ts +2 -1
- package/dist/components/progress/index.js +29 -20
- package/dist/components/shell/index.js +12 -0
- package/dist/components/shell/navigation.d.ts +6 -0
- package/dist/components/shell/navigation.js +6 -0
- package/dist/components/shell/pane.d.ts +9 -0
- package/dist/components/shell/pane.js +38 -0
- package/dist/components/shell/root.d.ts +7 -0
- package/dist/components/shell/root.js +31 -0
- package/dist/components/shell/sidebar.d.ts +6 -0
- package/dist/components/shell/sidebar.js +6 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/list.js +3 -3
- package/dist/components/tabs/panel.js +11 -10
- package/dist/components/tabs/root.js +42 -42
- package/dist/components/tabs/tab.js +4 -4
- package/dist/components/tag/index.js +8 -0
- package/dist/components/tag/list.d.ts +8 -0
- package/dist/components/tag/list.js +10 -0
- package/dist/components/tag/tag.d.ts +8 -0
- package/dist/components/tag/tag.js +26 -0
- package/dist/components/tag/types.d.ts +6 -0
- package/dist/components/tag/types.js +1 -0
- package/dist/components/toolbar/divider.d.ts +6 -0
- package/dist/components/toolbar/divider.js +24 -0
- package/dist/components/toolbar/index.js +19 -15
- package/dist/components/toolbar/root.js +67 -4
- package/dist/components/window/index.d.ts +8 -0
- package/dist/components/window/index.js +54 -0
- package/dist/{composite-provider-DNftbE5U.js → composite-provider-R5SnRc_G.js} +4 -4
- package/dist/filter-HYEwffYa.js +133 -0
- package/dist/floating-ui.dom-2MezWvgs.js +1070 -0
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.js +10 -4
- package/dist/hooks/input.js +13 -13
- package/dist/hooks/keyboard.d.ts +7 -0
- package/dist/hooks/keyboard.js +40 -0
- package/dist/hooks/selection.d.ts +19 -0
- package/dist/hooks/selection.js +57 -0
- package/dist/hooks/state.js +3 -3
- package/dist/hooks/temporary.d.ts +7 -0
- package/dist/hooks/temporary.js +12 -0
- package/dist/index-C2R91pmO.js +251 -0
- package/dist/index-CwFPDtaz.js +172 -0
- package/dist/index-D7vLJIGX.js +90 -0
- package/dist/index-DgyEPQBp.js +55 -0
- package/dist/index-EPj3dCzl.js +16324 -0
- package/dist/index-EQOyE9yF.js +73 -0
- package/dist/index.js +112 -63
- package/dist/item-C5GtZF5t.js +470 -0
- package/dist/picker-HwuTWxQw.js +858 -0
- package/dist/primitives/colourway/index.d.ts +9 -0
- package/dist/primitives/colourway/index.js +26 -0
- package/dist/primitives/colourway/util.d.ts +2 -0
- package/dist/primitives/colourway/util.js +146 -0
- package/dist/primitives/icon-label/index.d.ts +8 -0
- package/dist/primitives/icon-label/index.js +23 -0
- package/dist/primitives/index.d.ts +7 -0
- package/dist/primitives/index.js +34 -10
- package/dist/primitives/link/index.d.ts +5 -0
- package/dist/primitives/link/index.js +24 -0
- package/dist/primitives/popover/index.js +10 -0
- package/dist/primitives/popover/root.d.ts +10 -0
- package/dist/primitives/popover/root.js +5 -0
- package/dist/primitives/popover/target.d.ts +7 -0
- package/dist/primitives/popover/target.js +18 -0
- package/dist/primitives/popover/window.d.ts +6 -0
- package/dist/primitives/popover/window.js +38 -0
- package/dist/primitives/resizable/index.js +43 -32
- package/dist/primitives/scroll-area/index.js +4 -5
- package/dist/primitives/symbol/danger.d.ts +6 -0
- package/dist/primitives/symbol/danger.js +83 -0
- package/dist/primitives/symbol/index.d.ts +5 -0
- package/dist/primitives/symbol/index.js +12 -0
- package/dist/primitives/symbol/progress.d.ts +6 -0
- package/dist/primitives/symbol/progress.js +162 -0
- package/dist/primitives/symbol/types.d.ts +5 -0
- package/dist/primitives/symbol/types.js +1 -0
- package/dist/primitives/tooltip/index.d.ts +7 -0
- package/dist/primitives/tooltip/index.js +178 -0
- package/dist/primitives/truncate/index.js +14 -13
- package/dist/primitives/typography/heading.d.ts +16 -0
- package/dist/primitives/typography/heading.js +50 -0
- package/dist/primitives/typography/index.d.ts +2 -0
- package/dist/primitives/typography/index.js +12 -0
- package/dist/primitives/typography/paragraph.d.ts +9 -0
- package/dist/primitives/typography/paragraph.js +25 -0
- package/dist/protectedTokens-DdjZoCxO.js +587 -0
- package/dist/root-C7IYlG1s.js +20 -0
- package/dist/sortable.esm-De3H-_AA.js +3009 -0
- package/dist/style-A7_0w2WD.js +397 -0
- package/dist/style-Bp4uISf6.js +670 -0
- package/dist/toolbar-j1SJvq8D.js +6283 -0
- package/dist/types/component.d.ts +1 -0
- package/dist/types/options.d.ts +1 -0
- package/dist/types/options.js +8 -2
- package/dist/types/util.d.ts +1 -0
- package/dist/types/util.js +1 -0
- package/dist/utils/array.d.ts +1 -0
- package/dist/utils/array.js +9 -0
- package/dist/utils/components.d.ts +2 -1
- package/dist/utils/components.js +11 -7
- package/dist/utils/object.d.ts +1 -0
- package/dist/utils/object.js +8 -0
- package/dist/utils/url.d.ts +1 -0
- package/dist/utils/url.js +10 -0
- package/package.json +23 -3
- package/dist/2NBKRL7C-BAzCMGOw.js +0 -85
- package/dist/ArrowRight.es-xyNbtVOa.js +0 -60
- package/dist/DG5U6ZEL-CVj-Czp2.js +0 -17
- package/dist/MTZPJQMC-DyCWBG18.js +0 -14
- package/dist/P7GR5CS5-BoOYUfSQ.js +0 -19
- package/dist/TP7N7UIH-BHb1rEeb.js +0 -34
- package/dist/VIIRIBF3-D5DmZNtI.js +0 -26
- package/dist/WMYDSCNQ-Dy1O-Kdl.js +0 -2405
- package/dist/WYCIER3C-DRn904Gy.js +0 -175
- package/dist/components/block-editor/editor.d.ts +0 -5
- package/dist/components/block-editor/editor.js +0 -6
- package/dist/components/block-editor/index.d.ts +0 -1
- package/dist/components/block-editor/index.js +0 -4
- package/dist/components/button/index.d.ts +0 -4
- package/dist/components/controls/card-number-control/cards/generic.d.ts +0 -2
- package/dist/components/controls/card-number-control/cards/generic.js +0 -19
- package/dist/components/controls/select-control/component.d.ts +0 -12
- package/dist/components/controls/select-control/component.js +0 -1898
- package/dist/components/data-table/column.d.ts +0 -4
- package/dist/components/data-table/column.js +0 -874
- package/dist/components/data-table/context.d.ts +0 -7
- package/dist/components/data-table/context.js +0 -36
- package/dist/components/data-table/example.d.ts +0 -1
- package/dist/components/data-table/example.js +0 -5
- package/dist/components/data-table/footer.js +0 -23
- package/dist/components/data-table/header.d.ts +0 -7
- package/dist/components/data-table/header.js +0 -358
- package/dist/components/data-table/index.d.ts +0 -10
- package/dist/components/data-table/index.js +0 -86
- package/dist/components/data-table/types.d.ts +0 -75
- package/dist/hooks/theme.d.ts +0 -8
- package/dist/hooks/theme.js +0 -14
- package/dist/index-1AjPIqTN.js +0 -73
- package/dist/item-B1ugJ7YQ.js +0 -764
- package/dist/root-CaKPdqzv.js +0 -73
- /package/dist/components/{data-table → controls/list-control}/types.js +0 -0
- /package/dist/components/{data-table/footer.d.ts → data-view/parts/footer/index.d.ts} +0 -0
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
var st = (t) => {
|
|
2
|
+
throw TypeError(t);
|
|
3
|
+
};
|
|
4
|
+
var Q = (t, e, s) => e.has(t) || st("Cannot " + s);
|
|
5
|
+
var u = (t, e, s) => (Q(t, e, "read from private field"), s ? s.call(t) : e.get(t)), d = (t, e, s) => e.has(t) ? st("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), g = (t, e, s, i) => (Q(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), O = (t, e, s) => (Q(t, e, "access private method"), s);
|
|
6
|
+
import { jsx as p, jsxs as X } from "react/jsx-runtime";
|
|
7
|
+
import { normalizeOption as wt } from "./types/options.js";
|
|
8
|
+
import { d as gt, u as vt } from "./index-CwFPDtaz.js";
|
|
9
|
+
import { useContext as ct, useMemo as q, createContext as P, useState as yt, useRef as Y, useLayoutEffect as xt, useCallback as b, useEffect as nt } from "react";
|
|
10
|
+
import { r as F } from "./index-Cgx3BqdJ.js";
|
|
11
|
+
import { D as Mt, $ as Pt, a as Ct, T as kt, f as Ot, P as Dt, b as bt, p as Vt, e as Et, c as _t } from "./index-EPj3dCzl.js";
|
|
12
|
+
import { c as Nt, f as At, o as St } from "./floating-ui.dom-2MezWvgs.js";
|
|
13
|
+
var S, Z, ot, It = (ot = class {
|
|
14
|
+
constructor({ mark: t, view: e, inline: s, options: i }) {
|
|
15
|
+
d(this, S);
|
|
16
|
+
this.shouldIgnoreMutation = (o) => !this.dom || !this.contentDOM ? !0 : o.type === "selection" ? !1 : this.contentDOM === o.target && o.type === "attributes" ? !0 : !this.contentDOM.contains(o.target), this.ignoreMutation = (o) => {
|
|
17
|
+
if (!this.dom || !this.contentDOM) return !0;
|
|
18
|
+
let r;
|
|
19
|
+
const n = this.options.ignoreMutation;
|
|
20
|
+
return n && (r = n(o)), typeof r != "boolean" && (r = this.shouldIgnoreMutation(o)), r;
|
|
21
|
+
}, this.destroy = () => {
|
|
22
|
+
var o, r;
|
|
23
|
+
(r = (o = this.options).destroy) == null || r.call(o), this.dom.remove(), this.contentDOM.remove();
|
|
24
|
+
}, this.mark = t, this.view = e, this.inline = s, this.options = i, this.dom = this.createDOM(i.as), this.contentDOM = this.createContentDOM(i.contentAs), this.dom.setAttribute("data-mark-view-root", "true"), this.contentDOM.setAttribute("data-mark-view-content", "true"), this.contentDOM.style.whiteSpace = "inherit";
|
|
25
|
+
}
|
|
26
|
+
createDOM(t) {
|
|
27
|
+
return O(this, S, Z).call(this, t);
|
|
28
|
+
}
|
|
29
|
+
createContentDOM(t) {
|
|
30
|
+
return O(this, S, Z).call(this, t);
|
|
31
|
+
}
|
|
32
|
+
get component() {
|
|
33
|
+
return this.options.component;
|
|
34
|
+
}
|
|
35
|
+
}, S = new WeakSet(), Z = function(t) {
|
|
36
|
+
const { inline: e, mark: s } = this;
|
|
37
|
+
return t == null ? document.createElement(e ? "span" : "div") : t instanceof HTMLElement ? t : typeof t == "function" ? t(s) : document.createElement(t);
|
|
38
|
+
}, ot), I, tt, it, Ut = (it = class {
|
|
39
|
+
constructor({ node: t, view: e, getPos: s, decorations: i, innerDecorations: o, options: r }) {
|
|
40
|
+
d(this, I);
|
|
41
|
+
this.selected = !1, this.selectNode = () => {
|
|
42
|
+
var n, c;
|
|
43
|
+
this.selected = !0, (c = (n = this.options).selectNode) == null || c.call(n);
|
|
44
|
+
}, this.deselectNode = () => {
|
|
45
|
+
var n, c;
|
|
46
|
+
this.selected = !1, (c = (n = this.options).deselectNode) == null || c.call(n);
|
|
47
|
+
}, this.shouldUpdate = (n) => n.type === this.node.type, this.update = (n, c, a) => {
|
|
48
|
+
var m, y, C, f;
|
|
49
|
+
const h = ((y = (m = this.options).update) == null ? void 0 : y.call(m, n, c, a)) ?? this.shouldUpdate(n);
|
|
50
|
+
return this.node = n, this.decorations = c, this.innerDecorations = a, h && ((f = (C = this.options).onUpdate) == null || f.call(C)), h;
|
|
51
|
+
}, this.shouldIgnoreMutation = (n) => !this.dom || !this.contentDOM || this.node.isLeaf || this.node.isAtom ? !0 : n.type === "selection" ? !1 : this.contentDOM === n.target && n.type === "attributes" ? !0 : !this.contentDOM.contains(n.target), this.ignoreMutation = (n) => {
|
|
52
|
+
if (!this.dom || !this.contentDOM) return !0;
|
|
53
|
+
let c;
|
|
54
|
+
const a = this.options.ignoreMutation;
|
|
55
|
+
return a && (c = a(n)), typeof c != "boolean" && (c = this.shouldIgnoreMutation(n)), c;
|
|
56
|
+
}, this.destroy = () => {
|
|
57
|
+
var n, c, a;
|
|
58
|
+
(c = (n = this.options).destroy) == null || c.call(n), this.dom.remove(), (a = this.contentDOM) == null || a.remove();
|
|
59
|
+
}, this.setAttrs = (n) => {
|
|
60
|
+
const c = this.getPos();
|
|
61
|
+
if (typeof c == "number")
|
|
62
|
+
return this.view.dispatch(this.view.state.tr.setNodeMarkup(c, void 0, {
|
|
63
|
+
...this.node.attrs,
|
|
64
|
+
...n
|
|
65
|
+
}));
|
|
66
|
+
}, this.node = t, this.view = e, this.getPos = s, this.decorations = i, this.innerDecorations = o, this.options = r, this.dom = this.createDOM(r.as), this.contentDOM = t.isLeaf ? null : this.createContentDOM(r.contentAs), this.dom.setAttribute("data-node-view-root", "true"), this.contentDOM && (this.contentDOM.setAttribute("data-node-view-content", "true"), this.contentDOM.style.whiteSpace = "inherit"), this.setSelection = r.setSelection, this.stopEvent = r.stopEvent;
|
|
67
|
+
}
|
|
68
|
+
createDOM(t) {
|
|
69
|
+
return O(this, I, tt).call(this, t);
|
|
70
|
+
}
|
|
71
|
+
createContentDOM(t) {
|
|
72
|
+
return O(this, I, tt).call(this, t);
|
|
73
|
+
}
|
|
74
|
+
get component() {
|
|
75
|
+
return this.options.component;
|
|
76
|
+
}
|
|
77
|
+
}, I = new WeakSet(), tt = function(t) {
|
|
78
|
+
const { node: e } = this;
|
|
79
|
+
return t == null ? document.createElement(e.isInline ? "span" : "div") : t instanceof HTMLElement ? t : typeof t == "function" ? t(e) : document.createElement(t);
|
|
80
|
+
}, it), Lt = class {
|
|
81
|
+
constructor(t) {
|
|
82
|
+
this.view = t.view, this.options = t.options;
|
|
83
|
+
}
|
|
84
|
+
get component() {
|
|
85
|
+
return this.options.component;
|
|
86
|
+
}
|
|
87
|
+
get root() {
|
|
88
|
+
var e, s;
|
|
89
|
+
let t = (s = (e = this.options).root) == null ? void 0 : s.call(e, this.view.dom);
|
|
90
|
+
return t || (t = this.view.dom.parentElement ?? document.body), t;
|
|
91
|
+
}
|
|
92
|
+
update(t, e) {
|
|
93
|
+
var s, i;
|
|
94
|
+
this.view = t, this.prevState = e, (i = (s = this.options).update) == null || i.call(s, t, e);
|
|
95
|
+
}
|
|
96
|
+
destroy() {
|
|
97
|
+
var t, e;
|
|
98
|
+
(e = (t = this.options).destroy) == null || e.call(t);
|
|
99
|
+
}
|
|
100
|
+
}, K, at, rt, Tt = (rt = class {
|
|
101
|
+
constructor({ pos: t, spec: e, options: s }) {
|
|
102
|
+
d(this, K);
|
|
103
|
+
this.pos = t, this.options = s, this.spec = e, this.dom = O(this, K, at).call(this, s.as), this.dom.setAttribute("data-widget-view-root", "true");
|
|
104
|
+
}
|
|
105
|
+
bind(t, e) {
|
|
106
|
+
this.view = t, this.getPos = e;
|
|
107
|
+
}
|
|
108
|
+
get component() {
|
|
109
|
+
return this.options.component;
|
|
110
|
+
}
|
|
111
|
+
}, K = new WeakSet(), at = function(t) {
|
|
112
|
+
return t instanceof HTMLElement ? t : document.createElement(t);
|
|
113
|
+
}, rt);
|
|
114
|
+
const Ht = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
115
|
+
let G = (t = 21) => {
|
|
116
|
+
let e = "", s = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
117
|
+
for (; t--; )
|
|
118
|
+
e += Ht[s[t] & 63];
|
|
119
|
+
return e;
|
|
120
|
+
};
|
|
121
|
+
const Rt = P({
|
|
122
|
+
contentRef: () => {
|
|
123
|
+
},
|
|
124
|
+
view: null,
|
|
125
|
+
mark: null
|
|
126
|
+
}), $t = P((t) => {
|
|
127
|
+
throw new Error("No ProsemirrorAdapterProvider detected, maybe you need to wrap the component with the Editor with ProsemirrorAdapterProvider?");
|
|
128
|
+
});
|
|
129
|
+
var jt = class extends It {
|
|
130
|
+
constructor(...t) {
|
|
131
|
+
super(...t), this.key = G(), this.context = {
|
|
132
|
+
contentRef: (e) => {
|
|
133
|
+
e && this.contentDOM && e.firstChild !== this.contentDOM && e.appendChild(this.contentDOM);
|
|
134
|
+
},
|
|
135
|
+
view: this.view,
|
|
136
|
+
mark: this.mark
|
|
137
|
+
}, this.updateContext = () => {
|
|
138
|
+
Object.assign(this.context, { mark: this.mark });
|
|
139
|
+
}, this.render = () => {
|
|
140
|
+
const e = this.component;
|
|
141
|
+
return F.createPortal(/* @__PURE__ */ p(Rt.Provider, {
|
|
142
|
+
value: this.context,
|
|
143
|
+
children: /* @__PURE__ */ p(e, {})
|
|
144
|
+
}), this.dom, this.key);
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
const Ft = P({
|
|
149
|
+
contentRef: () => {
|
|
150
|
+
},
|
|
151
|
+
view: null,
|
|
152
|
+
getPos: () => 0,
|
|
153
|
+
setAttrs: () => {
|
|
154
|
+
},
|
|
155
|
+
node: null,
|
|
156
|
+
selected: !1,
|
|
157
|
+
decorations: [],
|
|
158
|
+
innerDecorations: null
|
|
159
|
+
}), Wt = P((t) => {
|
|
160
|
+
throw new Error("No ProsemirrorAdapterProvider detected, maybe you need to wrap the component with the Editor with ProsemirrorAdapterProvider?");
|
|
161
|
+
});
|
|
162
|
+
var Bt = class extends Ut {
|
|
163
|
+
constructor(...t) {
|
|
164
|
+
super(...t), this.key = G(), this.context = {
|
|
165
|
+
contentRef: (e) => {
|
|
166
|
+
e && this.contentDOM && e.firstChild !== this.contentDOM && e.appendChild(this.contentDOM);
|
|
167
|
+
},
|
|
168
|
+
view: this.view,
|
|
169
|
+
getPos: this.getPos,
|
|
170
|
+
setAttrs: this.setAttrs,
|
|
171
|
+
node: this.node,
|
|
172
|
+
selected: this.selected,
|
|
173
|
+
decorations: this.decorations,
|
|
174
|
+
innerDecorations: this.innerDecorations
|
|
175
|
+
}, this.updateContext = () => {
|
|
176
|
+
Object.assign(this.context, {
|
|
177
|
+
node: this.node,
|
|
178
|
+
selected: this.selected,
|
|
179
|
+
decorations: this.decorations,
|
|
180
|
+
innerDecorations: this.innerDecorations
|
|
181
|
+
});
|
|
182
|
+
}, this.render = () => {
|
|
183
|
+
const e = this.component;
|
|
184
|
+
return F.createPortal(/* @__PURE__ */ p(Ft.Provider, {
|
|
185
|
+
value: this.context,
|
|
186
|
+
children: /* @__PURE__ */ p(e, {})
|
|
187
|
+
}), this.dom, this.key);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
const ht = P({ view: null }), qt = () => ct(ht), lt = P((t) => {
|
|
192
|
+
throw new Error("out of scope");
|
|
193
|
+
}), Kt = () => ct(lt);
|
|
194
|
+
var zt = class extends Lt {
|
|
195
|
+
constructor(...t) {
|
|
196
|
+
super(...t), this.key = G(), this.context = {
|
|
197
|
+
view: this.view,
|
|
198
|
+
prevState: this.prevState
|
|
199
|
+
}, this.updateContext = () => {
|
|
200
|
+
Object.assign(this.context, {
|
|
201
|
+
view: this.view,
|
|
202
|
+
prevState: this.prevState
|
|
203
|
+
});
|
|
204
|
+
}, this.render = () => {
|
|
205
|
+
const e = this.component;
|
|
206
|
+
return F.createPortal(/* @__PURE__ */ p(ht.Provider, {
|
|
207
|
+
value: this.context,
|
|
208
|
+
children: /* @__PURE__ */ p(e, {})
|
|
209
|
+
}), this.root, this.key);
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
function Gt() {
|
|
214
|
+
const [t, e] = yt({}), s = Y(!1);
|
|
215
|
+
xt(() => (s.current = !0, () => {
|
|
216
|
+
s.current = !1;
|
|
217
|
+
}), []);
|
|
218
|
+
const i = b((o) => {
|
|
219
|
+
s.current ? F.flushSync(o) : o();
|
|
220
|
+
}, []);
|
|
221
|
+
return {
|
|
222
|
+
portals: t,
|
|
223
|
+
renderReactRenderer: b((o, r = !0) => {
|
|
224
|
+
i(() => {
|
|
225
|
+
r && o.updateContext(), e((n) => ({
|
|
226
|
+
...n,
|
|
227
|
+
[o.key]: o.render()
|
|
228
|
+
}));
|
|
229
|
+
});
|
|
230
|
+
}, [i]),
|
|
231
|
+
removeReactRenderer: b((o) => {
|
|
232
|
+
i(() => {
|
|
233
|
+
e((r) => {
|
|
234
|
+
const n = { ...r };
|
|
235
|
+
return delete n[o.key], n;
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
}, [i])
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
function Jt(t, e) {
|
|
242
|
+
return b((s) => (i, o, r) => {
|
|
243
|
+
const n = new jt({
|
|
244
|
+
mark: i,
|
|
245
|
+
view: o,
|
|
246
|
+
inline: r,
|
|
247
|
+
options: {
|
|
248
|
+
...s,
|
|
249
|
+
destroy() {
|
|
250
|
+
var c;
|
|
251
|
+
(c = s.destroy) == null || c.call(s), e(n);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
return t(n, !1), n;
|
|
256
|
+
}, [e, t]);
|
|
257
|
+
}
|
|
258
|
+
function Qt(t, e) {
|
|
259
|
+
return b((s) => (i, o, r, n, c) => {
|
|
260
|
+
const a = new Bt({
|
|
261
|
+
node: i,
|
|
262
|
+
view: o,
|
|
263
|
+
getPos: r,
|
|
264
|
+
decorations: n,
|
|
265
|
+
innerDecorations: c,
|
|
266
|
+
options: {
|
|
267
|
+
...s,
|
|
268
|
+
onUpdate() {
|
|
269
|
+
var h;
|
|
270
|
+
(h = s.onUpdate) == null || h.call(s), t(a);
|
|
271
|
+
},
|
|
272
|
+
selectNode() {
|
|
273
|
+
var h;
|
|
274
|
+
(h = s.selectNode) == null || h.call(s), t(a);
|
|
275
|
+
},
|
|
276
|
+
deselectNode() {
|
|
277
|
+
var h;
|
|
278
|
+
(h = s.deselectNode) == null || h.call(s), t(a);
|
|
279
|
+
},
|
|
280
|
+
destroy() {
|
|
281
|
+
var h;
|
|
282
|
+
(h = s.destroy) == null || h.call(s), e(a);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
return t(a, !1), a;
|
|
287
|
+
}, [e, t]);
|
|
288
|
+
}
|
|
289
|
+
function Xt(t, e) {
|
|
290
|
+
return b((s) => (i) => {
|
|
291
|
+
const o = new zt({
|
|
292
|
+
view: i,
|
|
293
|
+
options: {
|
|
294
|
+
...s,
|
|
295
|
+
update: (r, n) => {
|
|
296
|
+
var c;
|
|
297
|
+
(c = s.update) == null || c.call(s, r, n), t(o);
|
|
298
|
+
},
|
|
299
|
+
destroy: () => {
|
|
300
|
+
var r;
|
|
301
|
+
(r = s.destroy) == null || r.call(s), e(o);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
return t(o, !1), o;
|
|
306
|
+
}, [e, t]);
|
|
307
|
+
}
|
|
308
|
+
const Yt = P({
|
|
309
|
+
view: null,
|
|
310
|
+
getPos: () => {
|
|
311
|
+
}
|
|
312
|
+
}), Zt = P((t) => {
|
|
313
|
+
throw new Error("out of scope");
|
|
314
|
+
});
|
|
315
|
+
var te = class extends Tt {
|
|
316
|
+
constructor(...t) {
|
|
317
|
+
super(...t), this.key = G(), this.context = {
|
|
318
|
+
view: this.view,
|
|
319
|
+
getPos: this.getPos,
|
|
320
|
+
spec: this.spec
|
|
321
|
+
}, this.updateContext = () => {
|
|
322
|
+
Object.assign(this.context, {
|
|
323
|
+
view: this.view,
|
|
324
|
+
getPos: this.getPos,
|
|
325
|
+
spec: this.spec
|
|
326
|
+
});
|
|
327
|
+
}, this.render = () => {
|
|
328
|
+
const e = this.component;
|
|
329
|
+
return F.createPortal(/* @__PURE__ */ p(Yt.Provider, {
|
|
330
|
+
value: this.context,
|
|
331
|
+
children: /* @__PURE__ */ p(e, {})
|
|
332
|
+
}), this.dom, this.key);
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
function ee(t, e) {
|
|
337
|
+
return b((s) => (i, o = {}) => {
|
|
338
|
+
const r = new te({
|
|
339
|
+
pos: i,
|
|
340
|
+
options: s
|
|
341
|
+
}), n = {
|
|
342
|
+
...o,
|
|
343
|
+
destroy: (c) => {
|
|
344
|
+
var a;
|
|
345
|
+
(a = o.destroy) == null || a.call(o, c), e(r);
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
return r.spec = n, Mt.widget(i, (c, a) => (r.bind(c, a), t(r), r.dom), n);
|
|
349
|
+
}, [e, t]);
|
|
350
|
+
}
|
|
351
|
+
const ue = ({ children: t }) => {
|
|
352
|
+
const { renderReactRenderer: e, removeReactRenderer: s, portals: i } = Gt(), o = Qt(e, s), r = Jt(e, s), n = Xt(e, s), c = ee(e, s), a = q(() => Object.values(i), [i]);
|
|
353
|
+
return /* @__PURE__ */ p(Wt.Provider, {
|
|
354
|
+
value: o,
|
|
355
|
+
children: /* @__PURE__ */ p($t.Provider, {
|
|
356
|
+
value: r,
|
|
357
|
+
children: /* @__PURE__ */ p(lt.Provider, {
|
|
358
|
+
value: n,
|
|
359
|
+
children: /* @__PURE__ */ X(Zt.Provider, {
|
|
360
|
+
value: c,
|
|
361
|
+
children: [t, a]
|
|
362
|
+
})
|
|
363
|
+
})
|
|
364
|
+
})
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
function se(t) {
|
|
368
|
+
const e = Pt(
|
|
369
|
+
{},
|
|
370
|
+
`${t}_SLASH_SPEC`
|
|
371
|
+
), s = Ct((o) => {
|
|
372
|
+
const r = o.get(e.key);
|
|
373
|
+
return new Dt({
|
|
374
|
+
key: new bt(`${t}_SLASH`),
|
|
375
|
+
...r
|
|
376
|
+
});
|
|
377
|
+
}), i = [e, s];
|
|
378
|
+
return i.key = e.key, i.pluginKey = s.key, e.meta = {
|
|
379
|
+
package: "@milkdown/plugin-slash",
|
|
380
|
+
displayName: `Ctx<slashSpec>|${t}`
|
|
381
|
+
}, s.meta = {
|
|
382
|
+
package: "@milkdown/plugin-slash",
|
|
383
|
+
displayName: `Prose<slash>|${t}`
|
|
384
|
+
}, i;
|
|
385
|
+
}
|
|
386
|
+
var E, U, L, T, H, D, R, _, $, j, z, dt;
|
|
387
|
+
class ne {
|
|
388
|
+
constructor(e) {
|
|
389
|
+
d(this, z);
|
|
390
|
+
d(this, E);
|
|
391
|
+
/// @internal
|
|
392
|
+
d(this, U);
|
|
393
|
+
/// @internal
|
|
394
|
+
d(this, L);
|
|
395
|
+
/// @internal
|
|
396
|
+
d(this, T);
|
|
397
|
+
/// @internal
|
|
398
|
+
d(this, H);
|
|
399
|
+
/// @internal
|
|
400
|
+
d(this, D);
|
|
401
|
+
/// @internal
|
|
402
|
+
d(this, R);
|
|
403
|
+
/// @internal
|
|
404
|
+
d(this, _);
|
|
405
|
+
/// The offset to get the block. Default is 0.
|
|
406
|
+
d(this, $);
|
|
407
|
+
d(this, j);
|
|
408
|
+
g(this, E, !1), this.onShow = () => {
|
|
409
|
+
}, this.onHide = () => {
|
|
410
|
+
}, g(this, j, (s, i) => {
|
|
411
|
+
const { state: o, composing: r } = s, { selection: n, doc: c } = o, { ranges: a } = n, h = Math.min(...a.map((f) => f.$from.pos)), m = Math.max(...a.map((f) => f.$to.pos)), y = i && i.doc.eq(c) && i.selection.eq(n);
|
|
412
|
+
if (u(this, E) || ((u(this, T) ?? s.dom.parentElement ?? document.body).appendChild(this.element), g(this, E, !0)), r || y) return;
|
|
413
|
+
if (!u(this, R).call(this, s, i)) {
|
|
414
|
+
this.hide();
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
Nt({
|
|
418
|
+
getBoundingClientRect: () => Vt(s, h, m)
|
|
419
|
+
}, this.element, {
|
|
420
|
+
placement: "bottom-start",
|
|
421
|
+
middleware: [At(), St(u(this, $)), ...u(this, U)],
|
|
422
|
+
...u(this, L)
|
|
423
|
+
}).then(({ x: f, y: W }) => {
|
|
424
|
+
Object.assign(this.element.style, {
|
|
425
|
+
left: `${f}px`,
|
|
426
|
+
top: `${W}px`
|
|
427
|
+
});
|
|
428
|
+
}).catch(console.error), this.show();
|
|
429
|
+
}), this.update = (s, i) => {
|
|
430
|
+
u(this, _).call(this, s, i);
|
|
431
|
+
}, this.getContent = (s, i = (o) => o.type.name === "paragraph") => {
|
|
432
|
+
const { selection: o } = s.state, { empty: r, $from: n } = o, c = s.state.selection instanceof kt;
|
|
433
|
+
if (typeof document > "u") return;
|
|
434
|
+
const a = this.element.contains(document.activeElement), h = !s.hasFocus() && !a, m = !s.editable, C = !Ot(i)(s.state.selection);
|
|
435
|
+
if (!(h || m || !r || !c || C))
|
|
436
|
+
return n.parent.textBetween(
|
|
437
|
+
Math.max(0, n.parentOffset - 500),
|
|
438
|
+
n.parentOffset,
|
|
439
|
+
void 0,
|
|
440
|
+
""
|
|
441
|
+
);
|
|
442
|
+
}, this.destroy = () => {
|
|
443
|
+
u(this, _).cancel();
|
|
444
|
+
}, this.show = () => {
|
|
445
|
+
this.element.dataset.show = "true", this.onShow();
|
|
446
|
+
}, this.hide = () => {
|
|
447
|
+
this.element.dataset.show = "false", this.onHide();
|
|
448
|
+
}, this.element = e.content, g(this, H, e.debounce ?? 200), g(this, R, e.shouldShow ?? O(this, z, dt)), g(this, D, e.trigger ?? "/"), g(this, $, e.offset), g(this, U, e.middleware ?? []), g(this, L, e.floatingUIOptions ?? {}), g(this, T, e.root), g(this, _, gt(u(this, j), u(this, H)));
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
E = new WeakMap(), U = new WeakMap(), L = new WeakMap(), T = new WeakMap(), H = new WeakMap(), D = new WeakMap(), R = new WeakMap(), _ = new WeakMap(), $ = new WeakMap(), j = new WeakMap(), z = new WeakSet(), /// @internal
|
|
452
|
+
dt = function(e) {
|
|
453
|
+
const s = this.getContent(e);
|
|
454
|
+
if (!s) return !1;
|
|
455
|
+
const i = s.at(-1);
|
|
456
|
+
return i ? Array.isArray(u(this, D)) ? u(this, D).includes(i) : u(this, D) === i : !1;
|
|
457
|
+
};
|
|
458
|
+
function me(t) {
|
|
459
|
+
const { trigger: e = "/", options: s, command: i } = t, o = q(() => s.map(wt), [s]), r = se("Commands"), n = () => {
|
|
460
|
+
const h = Y(null), m = Y(null), { view: y, prevState: C } = qt(), [f, W] = vt(), J = (l) => {
|
|
461
|
+
const v = l.$from.parentOffset, w = l.$from.node().textContent, k = w.lastIndexOf(" ", v - 1);
|
|
462
|
+
let M = w.indexOf(" ", v);
|
|
463
|
+
M < 0 && (M = w.length);
|
|
464
|
+
const x = w.slice(k + 1, M), N = x.slice(0, v), V = x.slice(v + 1), B = x.slice(e.length), A = o.filter((pt) => pt.value.includes(B)), ft = A.length === 1 && A[0].value === x;
|
|
465
|
+
return {
|
|
466
|
+
startIndex: k,
|
|
467
|
+
endIndex: M,
|
|
468
|
+
content: x,
|
|
469
|
+
leadingContent: N,
|
|
470
|
+
trailingContent: V,
|
|
471
|
+
matches: A,
|
|
472
|
+
isExactMatch: ft
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
nt(() => {
|
|
476
|
+
const l = h.current;
|
|
477
|
+
if (f || !l)
|
|
478
|
+
return;
|
|
479
|
+
m.current = new ne({
|
|
480
|
+
content: l,
|
|
481
|
+
debounce: 0,
|
|
482
|
+
trigger: e,
|
|
483
|
+
shouldShow: (w) => {
|
|
484
|
+
const { state: k } = w, { selection: M } = k, { content: x, matches: N, isExactMatch: V } = J(M);
|
|
485
|
+
return !x.startsWith(e) || V ? !1 : N.length > 0;
|
|
486
|
+
},
|
|
487
|
+
floatingUIOptions: {
|
|
488
|
+
strategy: "absolute"
|
|
489
|
+
}
|
|
490
|
+
}), m.current.hide();
|
|
491
|
+
const v = W();
|
|
492
|
+
return m.current.onShow = () => v.ctx.get(r.key).opened = !0, m.current.onHide = () => v.ctx.get(r.key).opened = !1, () => {
|
|
493
|
+
var w;
|
|
494
|
+
(w = m.current) == null || w.destroy();
|
|
495
|
+
};
|
|
496
|
+
}, [f]), nt(() => {
|
|
497
|
+
var l;
|
|
498
|
+
(l = m.current) == null || l.update(y, C);
|
|
499
|
+
});
|
|
500
|
+
const { content: et } = q(
|
|
501
|
+
() => J(y.state.selection),
|
|
502
|
+
[y.state.selection]
|
|
503
|
+
), ut = q(
|
|
504
|
+
() => o.filter((l) => l.value.toLowerCase().includes(et)),
|
|
505
|
+
[et, o]
|
|
506
|
+
), mt = (l, v) => {
|
|
507
|
+
l.preventDefault(), !f && W().action((w) => {
|
|
508
|
+
const k = w.get(Et);
|
|
509
|
+
if (k.focus(), i)
|
|
510
|
+
_t(i.key)(w);
|
|
511
|
+
else {
|
|
512
|
+
const { dispatch: M, state: x } = k, { tr: N, selection: V } = x, { from: B } = V, { leadingContent: A } = J(V);
|
|
513
|
+
M(
|
|
514
|
+
N.insertText(
|
|
515
|
+
v.value + " ",
|
|
516
|
+
B - A.length,
|
|
517
|
+
B
|
|
518
|
+
)
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
};
|
|
523
|
+
return /* @__PURE__ */ p(
|
|
524
|
+
"div",
|
|
525
|
+
{
|
|
526
|
+
className: "component-markdown-editor__slash",
|
|
527
|
+
ref: h,
|
|
528
|
+
"aria-expanded": "false",
|
|
529
|
+
children: ut.map((l) => /* @__PURE__ */ X(
|
|
530
|
+
"button",
|
|
531
|
+
{
|
|
532
|
+
className: "component-markdown-editor__slash__option",
|
|
533
|
+
onClick: (v) => mt(v, l),
|
|
534
|
+
disabled: l.disabled,
|
|
535
|
+
children: [
|
|
536
|
+
/* @__PURE__ */ X("div", { className: "component-markdown-editor__slash__option__label", children: [
|
|
537
|
+
l.icon,
|
|
538
|
+
l.label
|
|
539
|
+
] }),
|
|
540
|
+
l.description && /* @__PURE__ */ p("div", { className: "component-markdown-editor__slash__option__description", children: l.description })
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
l.value
|
|
544
|
+
))
|
|
545
|
+
}
|
|
546
|
+
);
|
|
547
|
+
}, c = Kt(), a = (h) => {
|
|
548
|
+
h.set(r.key, {
|
|
549
|
+
view: c({
|
|
550
|
+
component: n
|
|
551
|
+
})
|
|
552
|
+
});
|
|
553
|
+
};
|
|
554
|
+
return { key: r.key, plugin: r, View: n, config: a };
|
|
555
|
+
}
|
|
556
|
+
export {
|
|
557
|
+
ue as P,
|
|
558
|
+
me as u
|
|
559
|
+
};
|