@ryuzaki13/react-foundation-ui 3.11.0 → 3.12.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/dist/chunks/{TextEditorLexicalClient-Cj6yjCGm.js → TextEditorLexicalClient-apy-Cugj.js} +101 -101
- package/dist/chunks/{TextEditorLexicalClient-Cj6yjCGm.js.map → TextEditorLexicalClient-apy-Cugj.js.map} +1 -1
- package/dist/styles.css +1 -1
- package/dist/text-editor/TextEditorLexicalViewer.d.ts +10 -0
- package/dist/text-editor/TextEditorLexicalViewer.d.ts.map +1 -0
- package/dist/text-editor/index.d.ts +1 -0
- package/dist/text-editor/index.d.ts.map +1 -1
- package/dist/text-editor/index.js +298 -7
- package/dist/text-editor/index.js.map +1 -1
- package/dist/text-editor/lib/viewer/getTextEditorViewerElementStyle.d.ts +5 -0
- package/dist/text-editor/lib/viewer/getTextEditorViewerElementStyle.d.ts.map +1 -0
- package/dist/text-editor/lib/viewer/parseTextEditorViewerDocument.d.ts +4 -0
- package/dist/text-editor/lib/viewer/parseTextEditorViewerDocument.d.ts.map +1 -0
- package/dist/text-editor/lib/viewer/resolveTextEditorViewerLink.d.ts +3 -0
- package/dist/text-editor/lib/viewer/resolveTextEditorViewerLink.d.ts.map +1 -0
- package/dist/text-editor/model/textEditorViewerTypes.d.ts +58 -0
- package/dist/text-editor/model/textEditorViewerTypes.d.ts.map +1 -0
- package/dist/text-editor/ui/viewer/TextEditorViewerNode.d.ts +7 -0
- package/dist/text-editor/ui/viewer/TextEditorViewerNode.d.ts.map +1 -0
- package/dist/text-editor/ui/viewer/TextEditorViewerText.d.ts +8 -0
- package/dist/text-editor/ui/viewer/TextEditorViewerText.d.ts.map +1 -0
- package/package.json +1 -1
- package/storybook-static/assets/{Badge-CVgLMAJT.js → Badge-Dn4r-dgK.js} +1 -1
- package/storybook-static/assets/{Badge.stories-KeadkKsz.js → Badge.stories-C8jgD6Tm.js} +1 -1
- package/storybook-static/assets/{BadgeList-_jBtMkE3.js → BadgeList-DoZGQ7qG.js} +1 -1
- package/storybook-static/assets/{BarcodeScannerDialog.stories-J9XDExKK.js → BarcodeScannerDialog.stories-SWsYyoae.js} +1 -1
- package/storybook-static/assets/{Button-C-uRygWz.js → Button-BHqigqOj.js} +1 -1
- package/storybook-static/assets/{Button-DegBPiAl.js → Button-DLYgesJU.js} +1 -1
- package/storybook-static/assets/{Button.stories-Ds4zCq_9.js → Button.stories-B-YCCpsv.js} +1 -1
- package/storybook-static/assets/{CalendarView-iyr_ipPy.js → CalendarView-DC9-KqBg.js} +1 -1
- package/storybook-static/assets/{CheckBox-nBqHJGY9.js → CheckBox-A1DE9OKH.js} +1 -1
- package/storybook-static/assets/{CheckBox-B0zrARHA.js → CheckBox-BhDEikPn.js} +1 -1
- package/storybook-static/assets/{CheckBox.stories-CxO9FwA7.js → CheckBox.stories-CCwPabOj.js} +1 -1
- package/storybook-static/assets/{Color-6AOWCN3U-Dzuzn5Yr.js → Color-6AOWCN3U-CZ7Lqth4.js} +1 -1
- package/storybook-static/assets/{ContextMenu-BC5OXqVj.js → ContextMenu-C7QDzxj5.js} +1 -1
- package/storybook-static/assets/{ContextMenu-CnZu58rQ.js → ContextMenu-snDFBA5B.js} +1 -1
- package/storybook-static/assets/{ContextMenu.stories-CPdTdVV7.js → ContextMenu.stories-DmQHbLWt.js} +1 -1
- package/storybook-static/assets/{DateInput-B5j7kofa.js → DateInput-BkVJLdmV.js} +1 -1
- package/storybook-static/assets/{DateInput-CuYe4WXO.js → DateInput-DLOTW8zG.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-C4ZaIPUG.js → DateInput.stories-DNMVE7-m.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-Cg6yPY0K.js → DateRangePresetSelect-Aswl3yfO.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-CbDK9t1J.js → DateRangePresetSelect-FZ5Wqp5Q.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect.stories-DPWUHjXu.js → DateRangePresetSelect.stories-D7j1ye-X.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect-DkGsEVRD.js → DeprecatedMultiSelect-BrU5iHiB.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect-DCReLsN-.js → DeprecatedMultiSelect-DZm42dZe.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect.stories-tbYFDSML.js → DeprecatedMultiSelect.stories-DX5gJVg8.js} +1 -1
- package/storybook-static/assets/{Detail-CtVpK6xU.js → Detail-Dm2OB35c.js} +1 -1
- package/storybook-static/assets/{Detail.stories-zAQfXGuT.js → Detail.stories-ChjIDw9R.js} +1 -1
- package/storybook-static/assets/{Dialog-B9ltl4hS.js → Dialog-5Bjs3MIP.js} +1 -1
- package/storybook-static/assets/{Dialog-JetMtpYt.js → Dialog-CppiFu4m.js} +1 -1
- package/storybook-static/assets/{Dialog.stories-tJymN3yq.js → Dialog.stories-DNKVgKJf.js} +1 -1
- package/storybook-static/assets/{Disclosure-j-RCrVFs.js → Disclosure-B_rE1zlW.js} +1 -1
- package/storybook-static/assets/{Disclosure.stories-4Jj2XNlo.js → Disclosure.stories-ATxKR5IU.js} +1 -1
- package/storybook-static/assets/{DisclosureGroup-CM7GlGI4.js → DisclosureGroup-ClweT22a.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-JROSPFPF-DevtpZi5.js → DocsRenderer-JROSPFPF-m7QPTTWT.js} +1 -1
- package/storybook-static/assets/{DropZone-Bwo7NG5D.js → DropZone-C6Qx5YnY.js} +1 -1
- package/storybook-static/assets/{DropZone-CPrhOtX-.js → DropZone-CEnjaRlb.js} +1 -1
- package/storybook-static/assets/{DropZone.stories-VyNhIaxw.js → DropZone.stories-8b7TFwCV.js} +1 -1
- package/storybook-static/assets/{DropdownMenu-DMWZzFK1.js → DropdownMenu-BvqYqsyj.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel-DmKB3xVB.js → ExpandableActionPanel-DfZA1lTx.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel.stories-Kh_OSEIl.js → ExpandableActionPanel.stories-Bq2XMot-.js} +1 -1
- package/storybook-static/assets/{Flex-BZKhuaao.js → Flex-BFGhhseF.js} +1 -1
- package/storybook-static/assets/{Flex.stories-CrHxjVCH.js → Flex.stories-Ct2TXMNG.js} +1 -1
- package/storybook-static/assets/{FlexContainer-DGc37vCr.js → FlexContainer-DNTMFsKB.js} +1 -1
- package/storybook-static/assets/{FlexItem-DYv72TvP.js → FlexItem-DdZg96Tw.js} +1 -1
- package/storybook-static/assets/{FloatingPopover-Bd3b1U8c.js → FloatingPopover-Qm2OYQyi.js} +1 -1
- package/storybook-static/assets/{FloatingWindows.stories-Cs_i092m.js → FloatingWindows.stories-DSXleet4.js} +1 -1
- package/storybook-static/assets/{FormattedTableCell-CdlWquoj.js → FormattedTableCell-Cfdl2sgg.js} +1 -1
- package/storybook-static/assets/{Grid-DUcSdqsI.js → Grid-DF06uQ48.js} +1 -1
- package/storybook-static/assets/{Grid-DIKudfVu.js → Grid-DlctIqYo.js} +1 -1
- package/storybook-static/assets/{Grid.stories-sZUaIp7v.js → Grid.stories-CqMEpZ8C.js} +1 -1
- package/storybook-static/assets/{GridContainer-C5r-VTTG.js → GridContainer-BlkGC1Ti.js} +1 -1
- package/storybook-static/assets/{ImageCropper.stories-Bk3SF90a.js → ImageCropper.stories-GlDzLRHa.js} +1 -1
- package/storybook-static/assets/{ImageRenderer-CM-YetP0.js → ImageRenderer-DKVKzwts.js} +1 -1
- package/storybook-static/assets/{ImageRenderer.stories-CMqKyVuX.js → ImageRenderer.stories-D5Ot_LFG.js} +1 -1
- package/storybook-static/assets/{ImageView.stories-9IjWDUev.js → ImageView.stories-t9WED3jc.js} +1 -1
- package/storybook-static/assets/{ImageViewer.stories-D-Zzvzh3.js → ImageViewer.stories-CTLSla9v.js} +2 -2
- package/storybook-static/assets/{ImageViewerRuntime-BRWmVnG3.js → ImageViewerRuntime-B0a-Sycn.js} +1 -1
- package/storybook-static/assets/{Input-YuUUu0DD.js → Input-C-RwifM5.js} +1 -1
- package/storybook-static/assets/{Input-BaEhNNL0.js → Input-L7KSl95J.js} +1 -1
- package/storybook-static/assets/{Input.stories-CoJY4vR8.js → Input.stories-RZ8DST5q.js} +1 -1
- package/storybook-static/assets/{InputDateTime-CPlDTMTI.js → InputDateTime-C3SMAFaX.js} +1 -1
- package/storybook-static/assets/{InputDateTime.stories-DaOA4pFM.js → InputDateTime.stories-Bo76yqgM.js} +1 -1
- package/storybook-static/assets/{InputFile-D2HPvbt_.js → InputFile-ByiVAcXi.js} +1 -1
- package/storybook-static/assets/{InputFile-7PMO3B4Q.js → InputFile-DeMKgRCz.js} +1 -1
- package/storybook-static/assets/{InputFile.stories-CD4sJtXF.js → InputFile.stories-C2xolZZp.js} +1 -1
- package/storybook-static/assets/{InputFiles-DwgBtqPe.js → InputFiles-D2X5XwMg.js} +1 -1
- package/storybook-static/assets/{InputFiles-DSOs_hpc.js → InputFiles-DW_A7HZQ.js} +1 -1
- package/storybook-static/assets/{InputFiles.stories-B2zPOUXW.js → InputFiles.stories-Cy4lGiDs.js} +1 -1
- package/storybook-static/assets/{InputFilesList-DWtH6HFC.js → InputFilesList-D-T9k_qj.js} +1 -1
- package/storybook-static/assets/{InputImage-Cke0I8XV.js → InputImage-COyE-G8n.js} +1 -1
- package/storybook-static/assets/{InputImage-CnTU-bKF.js → InputImage-VviyVqWs.js} +1 -1
- package/storybook-static/assets/{InputImage.stories-CadyFqUh.js → InputImage.stories-C7PZBPak.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents-cNgymLXT.js → InteractiveComponents-DsXWc2Ba.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents.stories-c5kIdj-d.js → InteractiveComponents.stories-xzIOC6VP.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-u5tv4tmF.js → LayoutPicker-CEe3rtKw.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-BydBdeCh.js → LayoutPicker-DqauomnH.js} +1 -1
- package/storybook-static/assets/{LayoutPicker.stories-ZcTgJxX5.js → LayoutPicker.stories-DZS4nX4W.js} +1 -1
- package/storybook-static/assets/{Listbox-CaBDvhDA.js → Listbox-DMBqQzvF.js} +1 -1
- package/storybook-static/assets/{Listbox-CzmfAAEG.js → Listbox-DcoYj_fu.js} +1 -1
- package/storybook-static/assets/{Listbox.stories-B_tFWmxp.js → Listbox.stories-CiEKNklg.js} +1 -1
- package/storybook-static/assets/{Modal-CIptTLdh.js → Modal-B2NdQSX-.js} +1 -1
- package/storybook-static/assets/{Modal-DIJuHLSp.js → Modal-XzWN4rYg.js} +1 -1
- package/storybook-static/assets/{Modal.stories-BAh1Lzf0.js → Modal.stories-DiO0SJb6.js} +1 -1
- package/storybook-static/assets/{ModalManagerProvider-DH2lt3jw.js → ModalManagerProvider-CXZWFJBk.js} +1 -1
- package/storybook-static/assets/{MultiSelect-CbcU2Cam.js → MultiSelect-Bdo1Sjz8.js} +1 -1
- package/storybook-static/assets/{MultiSelect-OPkS-VFp.js → MultiSelect-CIrw0Nez.js} +1 -1
- package/storybook-static/assets/{MultiSelect.stories-jghnBwe0.js → MultiSelect.stories-DsYsvZRr.js} +1 -1
- package/storybook-static/assets/{MultiSelectCore-AgK9lN-8.js → MultiSelectCore-DVlr9xCh.js} +1 -1
- package/storybook-static/assets/{NoData-CRi9NzcI.js → NoData-D0rf5MW3.js} +1 -1
- package/storybook-static/assets/{NotificationsHost-C8sCDEzY.js → NotificationsHost-BQZaAM-V.js} +1 -1
- package/storybook-static/assets/{NotificationsHost.stories-BxpWtMHl.js → NotificationsHost.stories-DwymJZby.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect-Cjptiw3k.js → ODataMultiSelect-DMSWI6tE.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect.stories-B-tBcHkU.js → ODataMultiSelect.stories-B3zztIBx.js} +1 -1
- package/storybook-static/assets/{ODataSelect-BdVlf2WW.js → ODataSelect-C7HWF4Mk.js} +1 -1
- package/storybook-static/assets/{ODataSelect.stories-DZv8DgW4.js → ODataSelect.stories-BTqluN2n.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect-B83uLKnT.js → ODataTreeMultiSelect-D1C46tO1.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect.stories-k92VjXYz.js → ODataTreeMultiSelect.stories-Cau6yuzj.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect-CkZeBBoA.js → ODataTreeSelect-DjieOI9n.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect.stories-COweaWEr.js → ODataTreeSelect.stories-C2QXdt7d.js} +1 -1
- package/storybook-static/assets/{OneStepScroller-dD9RSWvg.js → OneStepScroller-srOmxRQp.js} +1 -1
- package/storybook-static/assets/{Option-lTkoUcHa.js → Option-7XzYAa1X.js} +1 -1
- package/storybook-static/assets/{OptionButton-Bt6YtqRZ.js → OptionButton-De2RG5bE.js} +1 -1
- package/storybook-static/assets/{OptionContent-C7Zoef1L.js → OptionContent-J_mD8o8Q.js} +1 -1
- package/storybook-static/assets/{OptionContentContainer-xpO-es_t.js → OptionContentContainer-BMe8XiaH.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-CmGjITS0.js → PeriodSelect-BanQI_dT.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-DkGZmPFu.js → PeriodSelect-DffdZHTx.js} +1 -1
- package/storybook-static/assets/{PeriodSelect.stories-BxkZen1s.js → PeriodSelect.stories-D_mZIvPa.js} +1 -1
- package/storybook-static/assets/{PickerField-vwGcXNU3.js → PickerField-BiRCrEVk.js} +1 -1
- package/storybook-static/assets/{PickerTriggerActions-BVO2pwu2.js → PickerTriggerActions-SYQofxvL.js} +1 -1
- package/storybook-static/assets/{Popover-DU0wD6MT.js → Popover-CyFO9TsF.js} +1 -1
- package/storybook-static/assets/{Popover-PRWJVARx.js → Popover-DVLKhPpI.js} +1 -1
- package/storybook-static/assets/{Popover.stories-CXKDCIfT.js → Popover.stories-z-_6ttYX.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-B1oR9Z-A.js → PresetRangeDateInput-CNwYUovX.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-DUcxF5lh.js → PresetRangeDateInput-DusPRYOo.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput.stories-CAPHV6_P.js → PresetRangeDateInput.stories-C_o_VW2j.js} +1 -1
- package/storybook-static/assets/{PresetSelect-Hrow5Qbz.js → PresetSelect-CV3zwYQR.js} +1 -1
- package/storybook-static/assets/{README-DnpmMCNN.js → README-0xXSqDp8.js} +1 -1
- package/storybook-static/assets/{README-AWtoYOeO.js → README-2-1qM_na.js} +1 -1
- package/storybook-static/assets/{README-O1ww7U1S.js → README-4aHWePja.js} +1 -1
- package/storybook-static/assets/{README-C8-H1dVZ.js → README-7eESTN29.js} +1 -1
- package/storybook-static/assets/{README-BLog3wnj.js → README-B5zjJGVN.js} +1 -1
- package/storybook-static/assets/{README-JrppLPED.js → README-BG0ZHFMO.js} +1 -1
- package/storybook-static/assets/{README-CF5B-uBm.js → README-BJ0oZ6IK.js} +1 -1
- package/storybook-static/assets/{README-DUVORqie.js → README-BaVIhvx2.js} +1 -1
- package/storybook-static/assets/{README-BCBBtU0T.js → README-BdSEAONV.js} +1 -1
- package/storybook-static/assets/{README-CDq7upsw.js → README-BgG12pti.js} +1 -1
- package/storybook-static/assets/{README-FJ4JNfan.js → README-BggXgUKF.js} +1 -1
- package/storybook-static/assets/{README-BPOSX1IH.js → README-BjBW3_iS.js} +1 -1
- package/storybook-static/assets/{README-COzEPNJ8.js → README-Bjq-bxH1.js} +1 -1
- package/storybook-static/assets/{README-BIHT1kGT.js → README-BmcSs4kj.js} +1 -1
- package/storybook-static/assets/{README-C_hI3IVn.js → README-Bn7kAPLQ.js} +1 -1
- package/storybook-static/assets/{README-CTbRRHIT.js → README-BoQbGA96.js} +1 -1
- package/storybook-static/assets/{README-DjM1av8U.js → README-BwUFmp9h.js} +1 -1
- package/storybook-static/assets/{README-CxBqJjI3.js → README-BwvDtGJp.js} +1 -1
- package/storybook-static/assets/{README-SkcZXYo1.js → README-BxC_3EeL.js} +1 -1
- package/storybook-static/assets/{README-mq6pyk4G.js → README-C-U-dI9P.js} +1 -1
- package/storybook-static/assets/{README-Cb_U_ZYK.js → README-C-e2RqTI.js} +1 -1
- package/storybook-static/assets/{README-BB_tSzAG.js → README-C3-4o6yH.js} +1 -1
- package/storybook-static/assets/{README-Xu3cmYZg.js → README-CFpsye1R.js} +1 -1
- package/storybook-static/assets/{README-MUzkojYd.js → README-CJG1QnZ8.js} +1 -1
- package/storybook-static/assets/{README-zelg96nd.js → README-Cc67rRzO.js} +1 -1
- package/storybook-static/assets/{README-bcnh89ek.js → README-CgHkf8AZ.js} +1 -1
- package/storybook-static/assets/{README-diVWU6bQ.js → README-CjwjADv4.js} +1 -1
- package/storybook-static/assets/{README-CRfg4Opx.js → README-CtA0tP_V.js} +1 -1
- package/storybook-static/assets/{README-DA8e0atn.js → README-D0SwEPQG.js} +1 -1
- package/storybook-static/assets/{README-De02nG6s.js → README-D0eHrEQF.js} +1 -1
- package/storybook-static/assets/{README-CdDd6nD8.js → README-D8bNkmba.js} +1 -1
- package/storybook-static/assets/{README-UfCsOg0n.js → README-DCP4ywXT.js} +1 -1
- package/storybook-static/assets/{README-CGalXaw7.js → README-DEHjbK77.js} +1 -1
- package/storybook-static/assets/{README-BEUQd7JO.js → README-DHXjeQQR.js} +1 -1
- package/storybook-static/assets/{README-D_iA9J4Q.js → README-DJsEoOXI.js} +1 -1
- package/storybook-static/assets/{README-JqCoy91R.js → README-DWfKideq.js} +1 -1
- package/storybook-static/assets/{README-CbCzYjzO.js → README-DZD6wqGT.js} +1 -1
- package/storybook-static/assets/{README-DYjyXvbd.js → README-D_V-SEnq.js} +1 -1
- package/storybook-static/assets/{README-CF79JAmm.js → README-DkEysBXh.js} +1 -1
- package/storybook-static/assets/{README-BDdhvdKa.js → README-DuB9PiOM.js} +1 -1
- package/storybook-static/assets/{README-CDYORt73.js → README-Duk1AG16.js} +1 -1
- package/storybook-static/assets/{README-DmT1wyUb.js → README-DwC2gAZg.js} +1 -1
- package/storybook-static/assets/{README-Cu3r4RYC.js → README-MX6_MwDQ.js} +1 -1
- package/storybook-static/assets/{README-CHgqsGMV.js → README-TaumiOmj.js} +1 -1
- package/storybook-static/assets/{README-BwSjP1rm.js → README-_ysKMvAx.js} +1 -1
- package/storybook-static/assets/{README-w3_FegOo.js → README-b_q7W3j3.js} +1 -1
- package/storybook-static/assets/{README-CRk_ElRL.js → README-gE_kxplo.js} +1 -1
- package/storybook-static/assets/{README-o-a96Aib.js → README-gjTa9tZ_.js} +1 -1
- package/storybook-static/assets/{README-D0EguYwa.js → README-p62MFS5g.js} +1 -1
- package/storybook-static/assets/{README-ctVjdbq7.js → README-swRdnv1f.js} +1 -1
- package/storybook-static/assets/{README-BCXjh3I1.js → README-x--9qFul.js} +1 -1
- package/storybook-static/assets/{README-BJXCE3us.js → README-xDqMMO8-.js} +1 -1
- package/storybook-static/assets/{README-f5UPnPkY.js → README-xWo3G40o.js} +1 -1
- package/storybook-static/assets/{RadioButton-BztQMLNR.js → RadioButton-B6x2_7or.js} +1 -1
- package/storybook-static/assets/{RadioButton-DUOPHyRt.js → RadioButton-CBABLSvE.js} +1 -1
- package/storybook-static/assets/{RadioButton.stories-BOE5cGej.js → RadioButton.stories-DLd7EmuZ.js} +1 -1
- package/storybook-static/assets/{RadioGroup-CDqbnv4J.js → RadioGroup-CIaXj3zQ.js} +1 -1
- package/storybook-static/assets/{RadioGroup-QICEWbjz.js → RadioGroup-Ce5Irxz3.js} +1 -1
- package/storybook-static/assets/{RadioGroup.stories-f2qU7hhM.js → RadioGroup.stories-DKhMElyC.js} +1 -1
- package/storybook-static/assets/{ResponsiveLayoutPreview-BWBLsr8u.js → ResponsiveLayoutPreview-Bcojizl4.js} +1 -1
- package/storybook-static/assets/{Scrollable-CAnjXb6_.js → Scrollable-B5e-IEe8.js} +1 -1
- package/storybook-static/assets/{Scrollable-Cc641kuG.js → Scrollable-BfCUp0BO.js} +1 -1
- package/storybook-static/assets/{Scrollable.stories-ZQT-1f1f.js → Scrollable.stories-B4IMoipT.js} +1 -1
- package/storybook-static/assets/{Select-D6RLm9D5.js → Select-CdjYSSyG.js} +1 -1
- package/storybook-static/assets/{Select-BeoH_3V4.js → Select-DYHUwcLE.js} +1 -1
- package/storybook-static/assets/{Select.stories-DI6pVDzi.js → Select.stories-BuaXB6qE.js} +1 -1
- package/storybook-static/assets/{Separator-De9vEg4j.js → Separator-CS6gkWSA.js} +1 -1
- package/storybook-static/assets/{Separator-tkZoR8Ft.js → Separator-D45blL6r.js} +1 -1
- package/storybook-static/assets/{Separator.stories-CGZrsdLJ.js → Separator.stories-C2GzCEGW.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-BWgkYLIe.js → SerializableSelect-7raamiuG.js} +1 -1
- package/storybook-static/assets/{SerializableSelect.stories-BfGg_SmN.js → SerializableSelect.stories-CD0e6DQk.js} +1 -1
- package/storybook-static/assets/{ShimmerText-D1ygdKrh.js → ShimmerText-DkiewbBe.js} +1 -1
- package/storybook-static/assets/{ShimmerText.stories-D5AB85Hj.js → ShimmerText.stories-DrXMcGDO.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-C2O-fXgE.js → SingleDateTimeInput-BTIgqxH7.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-Bf2RpSbC.js → SingleDateTimeInput-Dj_VSvfb.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput.stories-BUbSA1UY.js → SingleDateTimeInput.stories-CnYFrOUX.js} +1 -1
- package/storybook-static/assets/{Slider-BhfM7XZ9.js → Slider-CLE5MSJr.js} +1 -1
- package/storybook-static/assets/{Slider-CVPKS3XB.js → Slider-D4wvDQDc.js} +1 -1
- package/storybook-static/assets/{Slider.stories-C6ZUJc4b.js → Slider.stories-Cbz3RilT.js} +1 -1
- package/storybook-static/assets/{SliderInput-MMUGLDDl.js → SliderInput-AC9oLjGF.js} +1 -1
- package/storybook-static/assets/{SliderInput-PwHeDeo2.js → SliderInput-DbyDo3fR.js} +1 -1
- package/storybook-static/assets/{SliderInput.stories-zBDRonPh.js → SliderInput.stories-69pRH0Uk.js} +1 -1
- package/storybook-static/assets/{Sortable-BKNLJGIe.js → Sortable-E3DirII-.js} +1 -1
- package/storybook-static/assets/{Sortable.stories-CLY263mj.js → Sortable.stories-BbmTcem4.js} +1 -1
- package/storybook-static/assets/{Splitter-PyZco_V_.js → Splitter-DbaIQk2G.js} +1 -1
- package/storybook-static/assets/{Splitter.stories-CY3Itq_G.js → Splitter.stories-HntpFa6w.js} +1 -1
- package/storybook-static/assets/{StateSelect-DfUif3cG.js → StateSelect-8r4Qlf4Y.js} +1 -1
- package/storybook-static/assets/{StateSelect-BlEIRWer.js → StateSelect-C7ZIrgDB.js} +1 -1
- package/storybook-static/assets/{StateSelect.stories-ClSYkdz8.js → StateSelect.stories-CfUJCQGE.js} +1 -1
- package/storybook-static/assets/{StatusIndicator-CL-WMBHT.js → StatusIndicator-IqUZ24rN.js} +1 -1
- package/storybook-static/assets/{StatusIndicator.stories-BbpEocDe.js → StatusIndicator.stories-DhKREzk8.js} +1 -1
- package/storybook-static/assets/{StringToggle.stories-0r9TfflS.js → StringToggle.stories-BOC_AuIw.js} +1 -1
- package/storybook-static/assets/{Switch-AoVSoc9P.js → Switch-58npo6H_.js} +1 -1
- package/storybook-static/assets/{Switch-HAWn3D1c.js → Switch-C4wfyH7_.js} +1 -1
- package/storybook-static/assets/{Switch.stories-D1VJIWsC.js → Switch.stories-BpABAFmv.js} +1 -1
- package/storybook-static/assets/{Table-CyX8frK4.js → Table-RAMtWu9C.js} +1 -1
- package/storybook-static/assets/{Table.stories-DoGpFMZB.js → Table.stories-Cth_AbDh.js} +1 -1
- package/storybook-static/assets/{TableEditor.stories-Mh6q2awx.js → TableEditor.stories-IfJyun1v.js} +1 -1
- package/storybook-static/assets/{Tabs-BZfNXmy0.js → Tabs-CX67nGv0.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-C9L4pJDb.js → Tabs.stories-6wO9Pmly.js} +1 -1
- package/storybook-static/assets/{TabsBox-qRCIBtqi.js → TabsBox-QKS_MMQ0.js} +1 -1
- package/storybook-static/assets/{TagInput-CPB6lb2J.js → TagInput-R6ANDdvh.js} +1 -1
- package/storybook-static/assets/{TagInput.stories-CT6B8CVV.js → TagInput.stories-DAyX89-l.js} +1 -1
- package/storybook-static/assets/{Text-AbSWZQO3.js → Text-D3vBpXH0.js} +1 -1
- package/storybook-static/assets/TextEditorLexicalViewer-DRQG2UON.css +1 -0
- package/storybook-static/assets/TextEditorLexicalViewer.stories-RdypWNwx.js +66 -0
- package/storybook-static/assets/{Textarea-Bz9O1y1I.js → Textarea-BPtHeqrt.js} +1 -1
- package/storybook-static/assets/{Textarea-BY51Li7J.js → Textarea-Cio32hA3.js} +1 -1
- package/storybook-static/assets/{Textarea.stories-CJbv3jrK.js → Textarea.stories-DDVaU3Ho.js} +1 -1
- package/storybook-static/assets/{TimePanel-Wn5lUiwx.js → TimePanel-e1drsuDA.js} +1 -1
- package/storybook-static/assets/{TimePanel.stories-dF5kTdp1.js → TimePanel.stories-Dze9jjtv.js} +1 -1
- package/storybook-static/assets/{Toggle-CUO99pvo.js → Toggle-BuLJ3UR_.js} +1 -1
- package/storybook-static/assets/{Toggle-BpDn9f6k.js → Toggle-D8UQ_CuL.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-T1Hk_etn.js → Toggle.stories-0wuia83j.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-DEsECkRj.js → TreeMultiSelect-Ciy9H9Q3.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-bqQExCm8.js → TreeMultiSelect-QWOfniqX.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect.stories-DyK7bWZu.js → TreeMultiSelect.stories-C5bKUKLA.js} +1 -1
- package/storybook-static/assets/{TreePickerBase-BCbV37dL.js → TreePickerBase-DAld1sj1.js} +1 -1
- package/storybook-static/assets/{TreeSelect-Cepr58wS.js → TreeSelect-ANFeSIqw.js} +1 -1
- package/storybook-static/assets/{TreeSelect-CTvlmF81.js → TreeSelect-DKUJycNd.js} +1 -1
- package/storybook-static/assets/{TreeSelect.stories-RVPMBCd_.js → TreeSelect.stories-BJErYrTv.js} +1 -1
- package/storybook-static/assets/{TreeTable-DznOmuAD.js → TreeTable-DcyUjVXj.js} +1 -1
- package/storybook-static/assets/{TreeTable.stories-Lx2ImfgC.js → TreeTable.stories-BnyxdNPz.js} +1 -1
- package/storybook-static/assets/{blocks-u0CCD6I1.js → blocks-Bn1nLfdu.js} +4 -4
- package/storybook-static/assets/{check-CHvYWZD5.js → check-DTcQ3CsH.js} +1 -1
- package/storybook-static/assets/{chevron-down-DqHAghNU.js → chevron-down-CRBjmU7w.js} +1 -1
- package/storybook-static/assets/{chevron-left-Bj7vIyg-.js → chevron-left-CBPOblch.js} +1 -1
- package/storybook-static/assets/{chevron-right-BUqG0v39.js → chevron-right-Bryg2EIf.js} +1 -1
- package/storybook-static/assets/{chunk-W22LQPXL-BSczDjJT.js → chunk-W22LQPXL-44DPZKTZ.js} +1 -1
- package/storybook-static/assets/{circle-alert-DXUFM6uc.js → circle-alert-DviK8puL.js} +1 -1
- package/storybook-static/assets/{circle-check-0x9vHUU_.js → circle-check-B1-l7Oh4.js} +1 -1
- package/storybook-static/assets/{contextMenu-D8PjjiwD.js → contextMenu-DtHQnSjw.js} +1 -1
- package/storybook-static/assets/{download-15Eb3eUj.js → download-BuLQijJq.js} +1 -1
- package/storybook-static/assets/{floating-ui.react-CypKyrM4.js → floating-ui.react-iTaFJp98.js} +1 -1
- package/storybook-static/assets/{foundationApi-dmPNotab.js → foundationApi-Bjw5h-ru.js} +1 -1
- package/storybook-static/assets/{foundationLib-CyrgF87o.js → foundationLib-BcePCYWP.js} +1 -1
- package/storybook-static/assets/{hooks-DM8_3IU2.js → hooks-CiUB_4kG.js} +1 -1
- package/storybook-static/assets/{iframe-BmGorvhi.js → iframe-BvendKJ_.js} +4 -4
- package/storybook-static/assets/iframe-BzGX4Usd.js +1 -0
- package/storybook-static/assets/{info-HMSnCOw2.js → info-Dq-9oYHd.js} +1 -1
- package/storybook-static/assets/{isRecord-DXDTW-jA-DtM9YD3V.js → isRecord-DXDTW-jA-CMenzszF.js} +1 -1
- package/storybook-static/assets/odata-f2MNATrV.js +1 -0
- package/storybook-static/assets/{odataStoryFixtures-DiC-gXoK.js → odataStoryFixtures-BaKh8qyu.js} +1 -1
- package/storybook-static/assets/{react-BLxZ0fqY.js → react-B6cO4JYx.js} +1 -1
- package/storybook-static/assets/{refresh-cw-Obk3FkLO.js → refresh-cw-DmxZlsqm.js} +1 -1
- package/storybook-static/assets/{settings-2-BQ2LYeiA.js → settings-2-CBuqWUWt.js} +1 -1
- package/storybook-static/assets/{sortable-BrLDYUp8.js → sortable-BkTzd-5v.js} +1 -1
- package/storybook-static/assets/{syntaxhighlighter-QEQV7K2Y-JUCJEf5U.js → syntaxhighlighter-QEQV7K2Y-h6bhL7V7.js} +1 -1
- package/storybook-static/assets/{trash-2-CzXfDl_F.js → trash-2-wTK0eWnF.js} +1 -1
- package/storybook-static/assets/{triangle-alert-Ww2Tuzxk.js → triangle-alert-CD0VXyGn.js} +1 -1
- package/storybook-static/assets/{useODataSelectBase-DIZSERuU.js → useODataSelectBase-keqr2Q3a.js} +1 -1
- package/storybook-static/assets/{useODataTreeData-DLgIiNMG.js → useODataTreeData-BLDGoADN.js} +1 -1
- package/storybook-static/assets/{usePickerQuery-BZ1Hrn2J.js → usePickerQuery-BA8NMnw6.js} +1 -1
- package/storybook-static/assets/{usePickerTriggerController-BIarg6M4.js → usePickerTriggerController-Ceb5Hrtf.js} +1 -1
- package/storybook-static/assets/{x-BmlmEU-a.js → x-CsG3nxct.js} +1 -1
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/assets/iframe-WuXBbC_P.js +0 -1
- package/storybook-static/assets/odata-DLogt0PY.js +0 -1
package/dist/chunks/{TextEditorLexicalClient-Cj6yjCGm.js → TextEditorLexicalClient-apy-Cugj.js}
RENAMED
|
@@ -8,21 +8,21 @@ import { a as c, i as l, n as u, r as d, t as f } from "./types-CxXyru6U.js";
|
|
|
8
8
|
import { cn as p } from "@ryuzaki13/react-foundation-lib/utils";
|
|
9
9
|
import { AlignCenter as m, AlignJustify as h, AlignLeft as g, AlignRight as _, AtSign as v, BookType as y, BrushCleaning as b, Clock as x, ExternalLink as S, Languages as C, Link as w, MessageSquareQuote as T, Phone as ee, PictureInPicture as te, Redo as ne, Shredder as re, Undo as ie } from "lucide-react";
|
|
10
10
|
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
11
|
-
import { useCallback as k, useEffect as ae, useMemo as
|
|
12
|
-
import { formatPhone as
|
|
13
|
-
import { isSafe as
|
|
14
|
-
import { $
|
|
15
|
-
import { $
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
11
|
+
import { useCallback as k, useEffect as ae, useMemo as oe, useRef as A, useState as j } from "react";
|
|
12
|
+
import { formatPhone as se, parseDate as ce } from "@ryuzaki13/react-foundation-lib/formatters";
|
|
13
|
+
import { isSafe as M, validateUrl as le } from "@ryuzaki13/react-foundation-lib/validators";
|
|
14
|
+
import { $applyNodeReplacement as ue, $createParagraphNode as N, $createTextNode as P, $getNodeByKey as F, $getRoot as de, $getSelection as I, $isElementNode as fe, $isRangeSelection as L, $isTextNode as pe, $setSelection as me, ElementNode as he, FORMAT_ELEMENT_COMMAND as ge, FORMAT_TEXT_COMMAND as _e, HISTORY_MERGE_TAG as R, HISTORY_PUSH_TAG as z, REDO_COMMAND as ve, SKIP_DOM_SELECTION_TAG as B, UNDO_COMMAND as ye } from "lexical";
|
|
15
|
+
import { $generateHtmlFromNodes as be, $generateNodesFromDOM as xe } from "@lexical/html";
|
|
16
|
+
import { $isListItemNode as Se, $isListNode as Ce, INSERT_ORDERED_LIST_COMMAND as we, INSERT_UNORDERED_LIST_COMMAND as Te, ListItemNode as Ee, ListNode as De, REMOVE_LIST_COMMAND as Oe } from "@lexical/list";
|
|
17
|
+
import { LexicalComposer as ke } from "@lexical/react/LexicalComposer";
|
|
18
|
+
import { ContentEditable as Ae } from "@lexical/react/LexicalContentEditable";
|
|
19
|
+
import { LexicalErrorBoundary as je } from "@lexical/react/LexicalErrorBoundary";
|
|
20
|
+
import { HistoryPlugin as Me } from "@lexical/react/LexicalHistoryPlugin";
|
|
21
|
+
import { ListPlugin as Ne } from "@lexical/react/LexicalListPlugin";
|
|
22
|
+
import { OnChangePlugin as Pe } from "@lexical/react/LexicalOnChangePlugin";
|
|
23
|
+
import { RichTextPlugin as Fe } from "@lexical/react/LexicalRichTextPlugin";
|
|
24
|
+
import { $createHeadingNode as Ie, $createQuoteNode as Le, $isHeadingNode as Re, $isQuoteNode as ze, HeadingNode as Be, QuoteNode as Ve } from "@lexical/rich-text";
|
|
25
|
+
import { useLexicalComposerContext as He } from "@lexical/react/LexicalComposerContext";
|
|
26
26
|
import { $isLinkNode as Ue, LinkNode as We } from "@lexical/link";
|
|
27
27
|
import { $setBlocksType as V } from "@lexical/selection";
|
|
28
28
|
import { $findMatchingParent as Ge } from "@lexical/utils";
|
|
@@ -221,12 +221,12 @@ function Xe({ toolbarComponents: e, state: t, onBlockStyleToggle: n, onInlineSty
|
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region src/text-editor/lexical/plugins/InitialHtmlPlugin.tsx
|
|
223
223
|
function Ze({ initialHTML: e, shouldSkip: t }) {
|
|
224
|
-
let [n] =
|
|
224
|
+
let [n] = He(), r = A(!1);
|
|
225
225
|
return ae(() => {
|
|
226
226
|
t || !e || r.current || typeof window > "u" || (r.current = !0, n.update(() => {
|
|
227
|
-
let t =
|
|
227
|
+
let t = de(), r = new DOMParser().parseFromString(e, "text/html"), i = xe(n, r);
|
|
228
228
|
if (t.clear(), i.length === 0) {
|
|
229
|
-
t.append(
|
|
229
|
+
t.append(N());
|
|
230
230
|
return;
|
|
231
231
|
}
|
|
232
232
|
t.append(...i);
|
|
@@ -278,17 +278,17 @@ var Qe = {
|
|
|
278
278
|
default: return null;
|
|
279
279
|
}
|
|
280
280
|
}, nt = () => {
|
|
281
|
-
let e =
|
|
282
|
-
if (!
|
|
281
|
+
let e = I();
|
|
282
|
+
if (!L(e)) return "unstyled";
|
|
283
283
|
let t = e.anchor.getNode().getTopLevelElementOrThrow();
|
|
284
|
-
if (
|
|
284
|
+
if (Se(t)) {
|
|
285
285
|
let e = t.getParent();
|
|
286
|
-
if (
|
|
286
|
+
if (Ce(e)) return e.getListType() === "bullet" ? "unordered-list-item" : "ordered-list-item";
|
|
287
287
|
}
|
|
288
|
-
return
|
|
288
|
+
return Ce(t) ? t.getListType() === "bullet" ? "unordered-list-item" : "ordered-list-item" : Re(t) ? $e(t.getTag()) : ze(t) ? "blockquote" : t.getType() === "paragraph" ? "unstyled" : t.getType();
|
|
289
289
|
}, rt = () => {
|
|
290
|
-
let e =
|
|
291
|
-
if (!
|
|
290
|
+
let e = I();
|
|
291
|
+
if (!L(e)) return null;
|
|
292
292
|
let t = e.anchor.getNode().getTopLevelElementOrThrow().getFormatType();
|
|
293
293
|
switch (t) {
|
|
294
294
|
case "left":
|
|
@@ -298,8 +298,8 @@ var Qe = {
|
|
|
298
298
|
default: return null;
|
|
299
299
|
}
|
|
300
300
|
}, it = () => {
|
|
301
|
-
let e =
|
|
302
|
-
return
|
|
301
|
+
let e = I();
|
|
302
|
+
return L(e) ? {
|
|
303
303
|
blockType: nt(),
|
|
304
304
|
isTextUnselected: e.isCollapsed(),
|
|
305
305
|
activeInlineStyles: {
|
|
@@ -316,7 +316,7 @@ var Qe = {
|
|
|
316
316
|
//#endregion
|
|
317
317
|
//#region src/text-editor/lexical/plugins/SelectionStatePlugin.tsx
|
|
318
318
|
function at({ onEditorReady: e, onStateChange: t }) {
|
|
319
|
-
let [n] =
|
|
319
|
+
let [n] = He();
|
|
320
320
|
return ae(() => (e(n), n.registerUpdateListener(({ editorState: e }) => {
|
|
321
321
|
e.read(() => {
|
|
322
322
|
t(it());
|
|
@@ -337,8 +337,8 @@ var ot = (e) => ({
|
|
|
337
337
|
//#endregion
|
|
338
338
|
//#region src/text-editor/lib/selection/findSelectedInlineNode.ts
|
|
339
339
|
function W(e) {
|
|
340
|
-
let t =
|
|
341
|
-
if (!
|
|
340
|
+
let t = I();
|
|
341
|
+
if (!L(t)) return null;
|
|
342
342
|
let n = Ge(t.anchor.getNode(), e), r = Ge(t.focus.getNode(), e);
|
|
343
343
|
return n && r && n.is(r) && e(n) ? n : null;
|
|
344
344
|
}
|
|
@@ -346,14 +346,14 @@ function W(e) {
|
|
|
346
346
|
//#region src/text-editor/lib/selection/restoreEditorDialogSelection.ts
|
|
347
347
|
function st(e) {
|
|
348
348
|
if (e && [e.anchor, e.focus].every((e) => {
|
|
349
|
-
let t =
|
|
350
|
-
return !t?.isAttached() || e.offset < 0 ? !1 : e.type === "text" ?
|
|
349
|
+
let t = F(e.key);
|
|
350
|
+
return !t?.isAttached() || e.offset < 0 ? !1 : e.type === "text" ? pe(t) && e.offset <= t.getTextContentSize() : fe(t) && e.offset <= t.getChildrenSize();
|
|
351
351
|
})) {
|
|
352
352
|
let t = e.clone();
|
|
353
|
-
return
|
|
353
|
+
return me(t), t;
|
|
354
354
|
}
|
|
355
|
-
let t =
|
|
356
|
-
return t.isEmpty() && t.append(
|
|
355
|
+
let t = de();
|
|
356
|
+
return t.isEmpty() && t.append(N()), t.selectEnd();
|
|
357
357
|
}
|
|
358
358
|
//#endregion
|
|
359
359
|
//#region src/text-editor/lib/semantic/getSemanticTagDepth.ts
|
|
@@ -471,7 +471,7 @@ var ct = (e) => {
|
|
|
471
471
|
let t = this.getWritable();
|
|
472
472
|
return t.__text = e, this;
|
|
473
473
|
}
|
|
474
|
-
}, K = (e = "", t) =>
|
|
474
|
+
}, K = (e = "", t) => ue(new G(e, t)), q = (e) => e instanceof G, ut = (e) => {
|
|
475
475
|
let t = {};
|
|
476
476
|
return Array.from(e.attributes).forEach((e) => {
|
|
477
477
|
e.name !== "class" && (t[e.name] = e.value);
|
|
@@ -489,7 +489,7 @@ var ct = (e) => {
|
|
|
489
489
|
].includes(t)) return { node: null };
|
|
490
490
|
let n = e.textContent;
|
|
491
491
|
return (n === null || n === "") && e.children.length === 0 ? { node: null } : { node: X(t, ut(e), n) };
|
|
492
|
-
}, Y = class e extends
|
|
492
|
+
}, Y = class e extends he {
|
|
493
493
|
__tag;
|
|
494
494
|
__attributes;
|
|
495
495
|
__text;
|
|
@@ -603,56 +603,56 @@ var ct = (e) => {
|
|
|
603
603
|
let t = this.getWritable();
|
|
604
604
|
return t.__text = e, this;
|
|
605
605
|
}
|
|
606
|
-
}, X = (e, t = {}, n = null) =>
|
|
606
|
+
}, X = (e, t = {}, n = null) => ue(new Y(e, t, n)), Z = (e) => e instanceof Y;
|
|
607
607
|
//#endregion
|
|
608
608
|
//#region src/text-editor/model/hooks/useTextEditorLexicalActions.ts
|
|
609
609
|
function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialog: r, onOpenTagDialog: i }) {
|
|
610
|
-
let a =
|
|
610
|
+
let a = A(null), o = A(null), [s, c] = j(""), [l, d] = j({
|
|
611
611
|
text: "",
|
|
612
612
|
attributes: {}
|
|
613
613
|
}), p = k((n) => {
|
|
614
614
|
if (e) {
|
|
615
615
|
if (n === "unordered-list-item") {
|
|
616
616
|
if (t.blockType === "unordered-list-item") {
|
|
617
|
-
e.dispatchCommand(
|
|
617
|
+
e.dispatchCommand(Oe, void 0);
|
|
618
618
|
return;
|
|
619
619
|
}
|
|
620
|
-
e.dispatchCommand(
|
|
620
|
+
e.dispatchCommand(Te, void 0);
|
|
621
621
|
return;
|
|
622
622
|
}
|
|
623
623
|
if (n === "ordered-list-item") {
|
|
624
624
|
if (t.blockType === "ordered-list-item") {
|
|
625
|
-
e.dispatchCommand(
|
|
625
|
+
e.dispatchCommand(Oe, void 0);
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
628
|
-
e.dispatchCommand(
|
|
628
|
+
e.dispatchCommand(we, void 0);
|
|
629
629
|
return;
|
|
630
630
|
}
|
|
631
631
|
e.update(() => {
|
|
632
|
-
let e =
|
|
633
|
-
if (!
|
|
632
|
+
let e = I();
|
|
633
|
+
if (!L(e)) return;
|
|
634
634
|
if (n === "unstyled" || n === "paragraph") {
|
|
635
|
-
V(e, () =>
|
|
635
|
+
V(e, () => N());
|
|
636
636
|
return;
|
|
637
637
|
}
|
|
638
638
|
if (n === "blockquote") {
|
|
639
|
-
V(e, () =>
|
|
639
|
+
V(e, () => Le());
|
|
640
640
|
return;
|
|
641
641
|
}
|
|
642
642
|
let t = et(n);
|
|
643
|
-
t && V(e, () =>
|
|
643
|
+
t && V(e, () => Ie(t));
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
646
|
}, [e, t.blockType]), m = k((t) => {
|
|
647
647
|
if (!e) return;
|
|
648
648
|
let n = tt(t);
|
|
649
|
-
n && e.dispatchCommand(
|
|
649
|
+
n && e.dispatchCommand(_e, n);
|
|
650
650
|
}, [e]), h = k((t) => {
|
|
651
|
-
e && e.dispatchCommand(
|
|
651
|
+
e && e.dispatchCommand(ge, t);
|
|
652
652
|
}, [e]), g = k(() => {
|
|
653
|
-
e && e.dispatchCommand(
|
|
653
|
+
e && e.dispatchCommand(ye, void 0);
|
|
654
654
|
}, [e]), _ = k(() => {
|
|
655
|
-
e && e.dispatchCommand(
|
|
655
|
+
e && e.dispatchCommand(ve, void 0);
|
|
656
656
|
}, [e]), v = k((t) => {
|
|
657
657
|
if (!e) return;
|
|
658
658
|
let n = a.current;
|
|
@@ -660,13 +660,13 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
660
660
|
st(n?.editor === e ? n.selection : null);
|
|
661
661
|
}, {
|
|
662
662
|
discrete: !0,
|
|
663
|
-
tag: [
|
|
663
|
+
tag: [R, B]
|
|
664
664
|
}), e.update(() => {
|
|
665
|
-
let r =
|
|
666
|
-
if (!
|
|
667
|
-
let i = n?.editor === e && n.key ?
|
|
665
|
+
let r = I();
|
|
666
|
+
if (!L(r)) return;
|
|
667
|
+
let i = n?.editor === e && n.key ? F(n.key) : null;
|
|
668
668
|
if (q(i) && i.isAttached()) {
|
|
669
|
-
i.setURL(t.url).setAriaLabel(t.ariaLabel).setQrCode(t.qrCode).setAdd(t.add || null), n?.local && t.text !== i.getTextContent() && i.clear().append(
|
|
669
|
+
i.setURL(t.url).setAriaLabel(t.ariaLabel).setQrCode(t.qrCode).setAdd(t.add || null), n?.local && t.text !== i.getTextContent() && i.clear().append(P(t.text)), i.setText(i.getTextContent()), i.selectEnd();
|
|
670
670
|
return;
|
|
671
671
|
}
|
|
672
672
|
let a = r.getTextContent(), o = t.text.length > 0 ? t.text : a;
|
|
@@ -678,9 +678,9 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
678
678
|
qrCode: t.qrCode,
|
|
679
679
|
add: t.add || null,
|
|
680
680
|
text: o
|
|
681
|
-
}), c =
|
|
681
|
+
}), c = P(o);
|
|
682
682
|
s.append(c), r.insertNodes([s]);
|
|
683
|
-
}, { tag:
|
|
683
|
+
}, { tag: z }), requestAnimationFrame(() => {
|
|
684
684
|
e.focus();
|
|
685
685
|
});
|
|
686
686
|
}, [e]), y = k((e, t, n, r, i) => {
|
|
@@ -703,8 +703,8 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
703
703
|
if (!e) return "";
|
|
704
704
|
let t = "";
|
|
705
705
|
return e.getEditorState().read(() => {
|
|
706
|
-
let e =
|
|
707
|
-
if (!
|
|
706
|
+
let e = I();
|
|
707
|
+
if (!L(e)) {
|
|
708
708
|
t = "";
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
@@ -733,10 +733,10 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
733
733
|
}), t;
|
|
734
734
|
}, [e]), S = k((t) => {
|
|
735
735
|
t === f.LOCAL_LINK && !n || e && (e.getEditorState().read(() => {
|
|
736
|
-
let n =
|
|
736
|
+
let n = I();
|
|
737
737
|
a.current = {
|
|
738
738
|
editor: e,
|
|
739
|
-
selection:
|
|
739
|
+
selection: L(n) ? n.clone() : null,
|
|
740
740
|
key: W(q)?.getKey() ?? null,
|
|
741
741
|
local: t === f.LOCAL_LINK
|
|
742
742
|
};
|
|
@@ -753,17 +753,17 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
753
753
|
st(i?.editor === e ? i.selection : null);
|
|
754
754
|
}, {
|
|
755
755
|
discrete: !0,
|
|
756
|
-
tag: [
|
|
756
|
+
tag: [R, B]
|
|
757
757
|
}), e.update(() => {
|
|
758
|
-
let a =
|
|
759
|
-
if (!
|
|
760
|
-
let o = i?.editor === e && i.key ?
|
|
761
|
-
if (Z(o) && o.isAttached() && o.getTag() === t) o.setAttributes(r).setText(n), n !== o.getTextContent() && o.clear().append(
|
|
758
|
+
let a = I();
|
|
759
|
+
if (!L(a) || !n.trim()) return;
|
|
760
|
+
let o = i?.editor === e && i.key ? F(i.key) : null;
|
|
761
|
+
if (Z(o) && o.isAttached() && o.getTag() === t) o.setAttributes(r).setText(n), n !== o.getTextContent() && o.clear().append(P(n)), o.selectEnd();
|
|
762
762
|
else {
|
|
763
|
-
let e = X(t, r, n), i =
|
|
763
|
+
let e = X(t, r, n), i = P(n);
|
|
764
764
|
i.setFormat(a.format).setStyle(a.style), e.append(i), a.insertNodes([e]);
|
|
765
765
|
}
|
|
766
|
-
}, { tag:
|
|
766
|
+
}, { tag: z }), requestAnimationFrame(() => e.focus());
|
|
767
767
|
}, [e]);
|
|
768
768
|
return {
|
|
769
769
|
handleAddLink: y,
|
|
@@ -772,8 +772,8 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
772
772
|
handleBlockStyleToggle: p,
|
|
773
773
|
handleCleanSemanticTag: k(() => {
|
|
774
774
|
e && e.update(() => {
|
|
775
|
-
let e =
|
|
776
|
-
if (!
|
|
775
|
+
let e = I();
|
|
776
|
+
if (!L(e) || e.isCollapsed()) return;
|
|
777
777
|
let t = e.getNodes(), n = /* @__PURE__ */ new Set();
|
|
778
778
|
t.forEach((e) => {
|
|
779
779
|
let t = e;
|
|
@@ -788,13 +788,13 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
788
788
|
handleRedo: _,
|
|
789
789
|
handleTagClick: k((t) => {
|
|
790
790
|
e && (e.getEditorState().read(() => {
|
|
791
|
-
let n =
|
|
791
|
+
let n = I(), r = W(Z), i = r?.getTag() === (t === u.lang ? "span" : t) ? r : null;
|
|
792
792
|
o.current = {
|
|
793
793
|
editor: e,
|
|
794
|
-
selection:
|
|
794
|
+
selection: L(n) ? n.clone() : null,
|
|
795
795
|
key: i?.getKey() ?? null
|
|
796
796
|
}, d({
|
|
797
|
-
text: i?.getTextContent() ?? (
|
|
797
|
+
text: i?.getTextContent() ?? (L(n) ? n.getTextContent() : ""),
|
|
798
798
|
attributes: { ...i?.getAttributes() }
|
|
799
799
|
});
|
|
800
800
|
}), i(t));
|
|
@@ -814,12 +814,12 @@ var Q = {
|
|
|
814
814
|
//#endregion
|
|
815
815
|
//#region src/text-editor/EmailDialog.tsx
|
|
816
816
|
function ft({ onClose: t, onConfirm: o, initialState: s }) {
|
|
817
|
-
let c =
|
|
817
|
+
let c = M(s) && typeof s == "string" ? {
|
|
818
818
|
text: "",
|
|
819
819
|
add: "",
|
|
820
820
|
ariaLabel: "",
|
|
821
821
|
url: s
|
|
822
|
-
} : s, [l, u] =
|
|
822
|
+
} : s, [l, u] = j(() => M(c) ? (c.url ?? "").replace(/^mailto:/i, "") : ""), [d, f] = j(() => M(c) ? c.ariaLabel ?? "" : ""), [m, h] = j(null), g = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) ? !0 : (h("Некорректный email адрес"), !1), _ = (e) => {
|
|
823
823
|
if (e.preventDefault(), g(l)) {
|
|
824
824
|
if (!d) {
|
|
825
825
|
h("Добавьте описание для email");
|
|
@@ -890,16 +890,16 @@ function pt(e) {
|
|
|
890
890
|
//#endregion
|
|
891
891
|
//#region src/text-editor/LinkDialog.tsx
|
|
892
892
|
function mt({ onClose: s, onConfirm: c, initialState: l }) {
|
|
893
|
-
let u =
|
|
893
|
+
let u = M(l) && typeof l == "string" ? {
|
|
894
894
|
text: "",
|
|
895
895
|
add: "",
|
|
896
896
|
ariaLabel: "",
|
|
897
897
|
url: l
|
|
898
|
-
} : l, [d, f] =
|
|
898
|
+
} : l, [d, f] = j(() => M(u) ? u.url ?? "" : ""), [p, m] = j(() => M(u) ? u.ariaLabel ?? "" : ""), [h, g] = j(null), [_, v] = j(() => typeof l == "object" && l ? l.qrCode ?? !1 : !1), y = (e) => {
|
|
899
899
|
f(e), h && g(null);
|
|
900
900
|
}, b = (e) => {
|
|
901
901
|
e.preventDefault();
|
|
902
|
-
let t =
|
|
902
|
+
let t = le(d);
|
|
903
903
|
if (!t.isValid) {
|
|
904
904
|
g(t.error);
|
|
905
905
|
return;
|
|
@@ -966,12 +966,12 @@ function mt({ onClose: s, onConfirm: c, initialState: l }) {
|
|
|
966
966
|
//#endregion
|
|
967
967
|
//#region src/text-editor/PhoneDialog.tsx
|
|
968
968
|
function ht({ onClose: o, onConfirm: s, initialState: c }) {
|
|
969
|
-
let l =
|
|
969
|
+
let l = M(c) && typeof c == "string" ? {
|
|
970
970
|
text: "",
|
|
971
971
|
add: "",
|
|
972
972
|
ariaLabel: "",
|
|
973
973
|
url: c
|
|
974
|
-
} : c, u =
|
|
974
|
+
} : c, u = M(l) ? (l.url ?? "").replace(/\D/g, "").slice(0, 11).replace(/^7/, "") : "", d = M(l) ? l.add ? (l.add ?? "").replace(/\D/g, "") : (l.url ?? "").replace(/\D/g, "").slice(11) : "", [f, m] = j(u), [h, g] = j(d), [_, v] = j(() => M(l) ? l.ariaLabel ?? "" : ""), [y, b] = j(null), x = (e) => {
|
|
975
975
|
e = e.replace(/\D/g, ""), e.length <= 10 ? (m(e), b(null)) : b("нельзя ввести более 10 цифр");
|
|
976
976
|
}, S = (e) => e.length === 10 || (b("номер телефона должен содержать 10 цифр"), !1), C = (e) => {
|
|
977
977
|
if (e.preventDefault(), !S(f)) return;
|
|
@@ -979,7 +979,7 @@ function ht({ onClose: o, onConfirm: s, initialState: c }) {
|
|
|
979
979
|
b("добавьте описание для телефона");
|
|
980
980
|
return;
|
|
981
981
|
}
|
|
982
|
-
let t =
|
|
982
|
+
let t = se(f);
|
|
983
983
|
s(`tel:${`+7${f}`}`, h ? `${t} доб. ${h}` : t, h, _, !1), w();
|
|
984
984
|
}, w = () => {
|
|
985
985
|
m(""), v(""), b(null), o();
|
|
@@ -1044,7 +1044,7 @@ function ht({ onClose: o, onConfirm: s, initialState: c }) {
|
|
|
1044
1044
|
//#endregion
|
|
1045
1045
|
//#region src/text-editor/SemanticDialog.tsx
|
|
1046
1046
|
function gt({ onClose: o, onConfirm: s, config: c, initialText: l = "", initialState: u = {} }) {
|
|
1047
|
-
let [d, f] =
|
|
1047
|
+
let [d, f] = j(l), [p, m] = j(() => c.fields.reduce((e, t) => (e[t.name] = u[t.name] ?? "", e), {})), [h, g] = j({}), _ = (e, t) => {
|
|
1048
1048
|
m((n) => ({
|
|
1049
1049
|
...n,
|
|
1050
1050
|
[e]: t
|
|
@@ -1123,7 +1123,7 @@ function gt({ onClose: o, onConfirm: s, config: c, initialText: l = "", initialS
|
|
|
1123
1123
|
//#region src/text-editor/lib/semantic/isSemanticDateTime.ts
|
|
1124
1124
|
function $(e) {
|
|
1125
1125
|
let t = e.split("/");
|
|
1126
|
-
return t.length <= 2 && t.every((e) => /^\d{2}:\d{2}(?::\d{2})?$/.test(e) ?
|
|
1126
|
+
return t.length <= 2 && t.every((e) => /^\d{2}:\d{2}(?::\d{2})?$/.test(e) ? ce(`2000-01-01T${e}`) !== null : /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)?)?$/.test(e) && ce(e) !== null);
|
|
1127
1127
|
}
|
|
1128
1128
|
//#endregion
|
|
1129
1129
|
//#region src/text-editor/semanticTagConfigs.tsx
|
|
@@ -1266,7 +1266,7 @@ var _t = {
|
|
|
1266
1266
|
//#endregion
|
|
1267
1267
|
//#region src/text-editor/TimeDialog.tsx
|
|
1268
1268
|
function vt({ onClose: o, onConfirm: c, initialState: l }) {
|
|
1269
|
-
let [u, d] =
|
|
1269
|
+
let [u, d] = j(() => l?.mode ?? "date"), [f, p] = j(() => l?.from ?? ""), [m, h] = j(() => l?.to ?? ""), [g, _] = j({}), v = () => {
|
|
1270
1270
|
let e = {}, t = (e) => /^\d{4}-\d{2}-\d{2}$/.test(e), n = (e) => /^\d{2}:\d{2}$/.test(e), r = (e) => /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(e), i = (e, i, a) => {
|
|
1271
1271
|
if (!i) return `${e} обязательно`;
|
|
1272
1272
|
if (a === "date" && !t(i)) return "Неверный формат даты (ГГГГ-ММ-ДД)";
|
|
@@ -1420,14 +1420,14 @@ function yt({ linkTypeDialog: e, tagTypeDialog: t, localLinkDialogComponent: n,
|
|
|
1420
1420
|
//#endregion
|
|
1421
1421
|
//#region src/text-editor/TextEditorLexicalClient.tsx
|
|
1422
1422
|
function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapters: r }) {
|
|
1423
|
-
let i = r?.LocalLinkDialogComponent, [a, o] =
|
|
1423
|
+
let i = r?.LocalLinkDialogComponent, [a, o] = j(!1), [s, l] = j(Qe), [u, d] = j(null), [f, m] = j(null), [h, g] = j(null), _ = c(e?.raw) ? e.raw : null, v = !!_, y = oe(() => {
|
|
1424
1424
|
if (_) return JSON.stringify(_.editorState);
|
|
1425
1425
|
}, [_]), b = k((e) => {
|
|
1426
1426
|
console.error("Ошибка редактора Lexical", e);
|
|
1427
1427
|
}, []), x = k((e, n) => {
|
|
1428
1428
|
let r = "";
|
|
1429
1429
|
e.read(() => {
|
|
1430
|
-
r =
|
|
1430
|
+
r = be(n, null);
|
|
1431
1431
|
}), t({
|
|
1432
1432
|
raw: ot(e),
|
|
1433
1433
|
html: r
|
|
@@ -1442,7 +1442,7 @@ function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1442
1442
|
hasLocalLinkDialog: !!i,
|
|
1443
1443
|
onOpenLinkDialog: S,
|
|
1444
1444
|
onOpenTagDialog: C
|
|
1445
|
-
}), T =
|
|
1445
|
+
}), T = oe(() => ({
|
|
1446
1446
|
namespace: "KtkTextEditorLexical",
|
|
1447
1447
|
onError: b,
|
|
1448
1448
|
theme: {
|
|
@@ -1455,10 +1455,10 @@ function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1455
1455
|
}
|
|
1456
1456
|
},
|
|
1457
1457
|
nodes: [
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1458
|
+
Be,
|
|
1459
|
+
Ve,
|
|
1460
|
+
De,
|
|
1461
|
+
Ee,
|
|
1462
1462
|
G,
|
|
1463
1463
|
Y
|
|
1464
1464
|
],
|
|
@@ -1468,7 +1468,7 @@ function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1468
1468
|
className: Q.textEditor,
|
|
1469
1469
|
children: [/* @__PURE__ */ D("div", {
|
|
1470
1470
|
className: p(Q.textEditorContent, { [Q.focused]: a }),
|
|
1471
|
-
children: /* @__PURE__ */ O(
|
|
1471
|
+
children: /* @__PURE__ */ O(ke, {
|
|
1472
1472
|
initialConfig: T,
|
|
1473
1473
|
children: [
|
|
1474
1474
|
/* @__PURE__ */ D(Xe, {
|
|
@@ -1483,8 +1483,8 @@ function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1483
1483
|
onRedo: w.handleRedo,
|
|
1484
1484
|
onCleanTag: w.handleCleanSemanticTag
|
|
1485
1485
|
}),
|
|
1486
|
-
/* @__PURE__ */ D(
|
|
1487
|
-
contentEditable: /* @__PURE__ */ D(
|
|
1486
|
+
/* @__PURE__ */ D(Fe, {
|
|
1487
|
+
contentEditable: /* @__PURE__ */ D(Ae, {
|
|
1488
1488
|
className: "lexicalEditorContentEditable",
|
|
1489
1489
|
onFocus: () => o(!0),
|
|
1490
1490
|
onBlur: () => o(!1)
|
|
@@ -1493,10 +1493,10 @@ function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1493
1493
|
className: "lexicalEditorPlaceholder",
|
|
1494
1494
|
children: "Введите текст..."
|
|
1495
1495
|
}),
|
|
1496
|
-
ErrorBoundary:
|
|
1496
|
+
ErrorBoundary: je
|
|
1497
1497
|
}),
|
|
1498
|
-
/* @__PURE__ */ D(
|
|
1499
|
-
/* @__PURE__ */ D(
|
|
1498
|
+
/* @__PURE__ */ D(Me, {}),
|
|
1499
|
+
/* @__PURE__ */ D(Ne, {}),
|
|
1500
1500
|
/* @__PURE__ */ D(at, {
|
|
1501
1501
|
onEditorReady: d,
|
|
1502
1502
|
onStateChange: l
|
|
@@ -1505,7 +1505,7 @@ function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1505
1505
|
initialHTML: e?.html,
|
|
1506
1506
|
shouldSkip: v
|
|
1507
1507
|
}),
|
|
1508
|
-
/* @__PURE__ */ D(
|
|
1508
|
+
/* @__PURE__ */ D(Pe, {
|
|
1509
1509
|
onChange: x,
|
|
1510
1510
|
ignoreSelectionChange: !0
|
|
1511
1511
|
})
|
|
@@ -1528,4 +1528,4 @@ function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1528
1528
|
//#endregion
|
|
1529
1529
|
export { bt as TextEditorLexicalClient };
|
|
1530
1530
|
|
|
1531
|
-
//# sourceMappingURL=TextEditorLexicalClient-
|
|
1531
|
+
//# sourceMappingURL=TextEditorLexicalClient-apy-Cugj.js.map
|