@templatical/editor 0.25.1 → 0.26.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/{AiChatSidebar-BYMdVldY.js → AiChatSidebar-c-3yyjN1.js} +14 -14
- package/dist/{AiFeatureMenu-BhHhnu9G.js → AiFeatureMenu-B-COyG7k.js} +7 -7
- package/dist/{BlockIssueBadge-De36PJC4.js → BlockIssueBadge-Buk3_6QF.js} +5 -5
- package/dist/{BlockPreviewCanvas-BxSoA1QV.js → BlockPreviewCanvas-CJPHGI93.js} +3 -3
- package/dist/{CloudEditor-BXfuytQj.js → CloudEditor-BdSQ8hfv.js} +26 -26
- package/dist/{CollaboratorBar-D9AfWRTH.js → CollaboratorBar-mGoi6yye.js} +4 -4
- package/dist/{ColorPicker-VPq4ASC8.js → ColorPicker-ClETsjA3.js} +6 -6
- package/dist/{CommentsSidebar-C8BLy3Pr.js → CommentsSidebar-CdRCCSDD.js} +15 -15
- package/dist/{CountdownBlock-Bs2Q_bFX.js → CountdownBlock-DuyvGcr8.js} +3 -3
- package/dist/{CountdownToolbar-Cic6cdOw.js → CountdownToolbar-CBE9wRaV.js} +4 -4
- package/dist/{DesignReferenceSidebar-k-26nkJI.js → DesignReferenceSidebar-CgYkySre.js} +11 -11
- package/dist/{IssuesPanel-NPzwTPYW.js → IssuesPanel-Do7RLXsP.js} +8 -8
- package/dist/{LoadingTrack-DH3OEM3z.js → LoadingTrack-BexpNuTV.js} +1 -1
- package/dist/{MergeTagModeToggle-DEGyx8tw.js → MergeTagModeToggle-hAJgIKhw.js} +6 -6
- package/dist/{MergeTagSuggestion-DvisJ9im.js → MergeTagSuggestion-BJ43ihWR.js} +34 -32
- package/dist/{NumberWithSuffix-CuHCIwSn.js → NumberWithSuffix-D37ZWiZh.js} +2 -2
- package/dist/{ParagraphEditor-DK_IPi9H.js → ParagraphEditor-DBG63S70.js} +74 -80
- package/dist/{RichTextEditorContent-DznIQcdY.js → RichTextEditorContent-fbYJXAio.js} +8 -8
- package/dist/{SaveBlockDialog-R9PbMsy-.js → SaveBlockDialog-Dq9UVihi.js} +10 -10
- package/dist/{SavedBlocksBrowserModal-ttPAklPE.js → SavedBlocksBrowserModal-CtFG4zeV.js} +11 -11
- package/dist/{SavedBlocksPanels-BCwQgKLF.js → SavedBlocksPanels-DNVdso_W.js} +2 -2
- package/dist/{SavedBlocksPickBar-DD5Ddv9t.js → SavedBlocksPickBar-Cv4dIpP-.js} +4 -4
- package/dist/{SnapshotHistory-BXSTGgBh.js → SnapshotHistory-DsOtMHOV.js} +10 -10
- package/dist/{TemplateScoringPanel-Ue6Dfnjb.js → TemplateScoringPanel-BZUsb3FD.js} +15 -15
- package/dist/{TestEmailModal-KPFc5oSv.js → TestEmailModal-CIwqtGfr.js} +11 -11
- package/dist/{TestEmailPanel-b8GHTrnE.js → TestEmailPanel-l6LDmBGM.js} +2 -2
- package/dist/{TitleEditor-8ln7UBr_.js → TitleEditor-imoBUynh.js} +12 -12
- package/dist/{TplModal-D_FA3Wm3.js → TplModal-DDDHcoir.js} +5 -5
- package/dist/{blockTypeIcons-BoZeK6l7.js → blockTypeIcons-CfLN4A6t.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js → AiChatSidebar-BHqNxNcX.js} +35 -35
- package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js.map → AiChatSidebar-BHqNxNcX.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js → AiFeatureMenu-D2AIDwEG.js} +13 -13
- package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js.map → AiFeatureMenu-D2AIDwEG.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js → BlockPreviewCanvas-DH5ULGkw.js} +22 -22
- package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js.map → BlockPreviewCanvas-DH5ULGkw.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js → CloudEditor-C0nB1JfD.js} +67 -67
- package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js.map → CloudEditor-C0nB1JfD.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js → CollaboratorBar-f6Ni7KNH.js} +12 -12
- package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js.map → CollaboratorBar-f6Ni7KNH.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-yxvrro60.js → ColorPicker-W_UyiVGc.js} +131 -131
- package/dist/cdn/chunks/{ColorPicker-yxvrro60.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js → CommentsSidebar-BLRZRSSC.js} +112 -112
- package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js → CountdownBlock-vLTkTI9e.js} +11 -11
- package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js → CountdownToolbar-DPjcgcVR.js} +41 -41
- package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js → DesignReferenceSidebar-DBoEBKxQ.js} +34 -34
- package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js.map → DesignReferenceSidebar-DBoEBKxQ.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js → IssuesPanel-DKTS4QVb.js} +32 -32
- package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js → LoadingTrack-C52ZGL5q.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js → MergeTagModeToggle-D8iKvz7v.js} +28 -28
- package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js.map → MergeTagModeToggle-D8iKvz7v.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
- package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
- package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js → ParagraphEditor-Cuc83Blj.js} +58 -58
- package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js.map → ParagraphEditor-Cuc83Blj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
- package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js → SaveBlockDialog-B8KHhVkI.js} +50 -50
- package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js.map → SaveBlockDialog-B8KHhVkI.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js → SavedBlocksBrowserModal-B-sjsIJv.js} +62 -62
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js.map → SavedBlocksBrowserModal-B-sjsIJv.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js → SavedBlocksPanels-Bb-eDMAh.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js.map → SavedBlocksPanels-Bb-eDMAh.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js → SavedBlocksPickBar-GudFfXa4.js} +12 -12
- package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js.map → SavedBlocksPickBar-GudFfXa4.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js → SnapshotHistory-Srpzt2na.js} +26 -26
- package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js.map → SnapshotHistory-Srpzt2na.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js → TemplateScoringPanel-NucRtAP0.js} +42 -42
- package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js → TestEmailModal-DLeoJqaJ.js} +31 -31
- package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js.map → TestEmailModal-DLeoJqaJ.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js → TestEmailPanel-Dr7Dkq2P.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js.map → TestEmailPanel-Dr7Dkq2P.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js → TitleEditor-DzYRr18C.js} +35 -35
- package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js.map → TitleEditor-DzYRr18C.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-C1iguuZz.js → TplModal-byw7-3wg.js} +17 -17
- package/dist/cdn/chunks/{TplModal-C1iguuZz.js.map → TplModal-byw7-3wg.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-FXlMM3PL.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-CrPzyP_k.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-CxNsW3hp.js → cloud-CuItCnN_.js} +4 -4
- package/dist/cdn/chunks/{cloud-CxNsW3hp.js.map → cloud-CuItCnN_.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BLF-S9_A.js → dist-B2HKGHnc.js} +9 -7
- package/dist/cdn/chunks/{dist-BLF-S9_A.js.map → dist-B2HKGHnc.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Dp46rwVY.js → dist-C6z8AjBC.js} +2 -2
- package/dist/cdn/chunks/{dist-Dp46rwVY.js.map → dist-C6z8AjBC.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BRF_Q_jB.js → draggable-DCs9qL-b.js} +114 -92
- package/dist/cdn/chunks/{draggable-BRF_Q_jB.js.map → draggable-DCs9qL-b.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-yNQlgLNE.js → extensions-B7laxHjs.js} +22 -22
- package/dist/cdn/chunks/{extensions-yNQlgLNE.js.map → extensions-B7laxHjs.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js → htmlparser-DTML8Gvz.js} +8 -7
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js.map → htmlparser-DTML8Gvz.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DN008liP.js → icons-CvYN6zrM.js} +74 -80
- package/dist/cdn/chunks/icons-CvYN6zrM.js.map +1 -0
- package/dist/cdn/chunks/{keys-CZOBuCQd.js → keys-Cmc2Yl3D.js} +2 -2
- package/dist/cdn/chunks/{keys-CZOBuCQd.js.map → keys-Cmc2Yl3D.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-CZaQe87t.js → liquid.browser-UlAOKBjI.js} +120 -110
- package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js → pusher-BbIHJKf3.js} +29 -25
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js.map → pusher-BbIHJKf3.js.map} +1 -1
- package/dist/cdn/chunks/{src-uc_Mb_yH.js → src-BYKYmEOD.js} +7 -6
- package/dist/cdn/chunks/src-BYKYmEOD.js.map +1 -0
- package/dist/cdn/chunks/{src-D_3bXt7-.js → src-Bi-Qhtfs.js} +3 -3
- package/dist/cdn/chunks/{src-D_3bXt7-.js.map → src-Bi-Qhtfs.js.map} +1 -1
- package/dist/cdn/chunks/{src-B2LpXMIw.js → src-C0N74uvF.js} +280 -277
- package/dist/cdn/chunks/{src-B2LpXMIw.js.map → src-C0N74uvF.js.map} +1 -1
- package/dist/cdn/chunks/{src-CZjSXPYq.js → src-EKTTBQ0y.js} +3 -2
- package/dist/cdn/chunks/src-EKTTBQ0y.js.map +1 -0
- package/dist/cdn/chunks/{styles-BzP13r-I.js → styles-C7s-VtJi.js} +1112 -1094
- package/dist/cdn/chunks/styles-C7s-VtJi.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CgwK_fKJ.js → tiptap-C44S1Cmh.js} +3681 -2965
- package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js → useAliveFlag-Dxwgo6P4.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js → useCloudI18n-8wkJtuJD.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CTYH6u4r.js → useEditorCore-C_nUXiph.js} +275 -275
- package/dist/cdn/chunks/useEditorCore-C_nUXiph.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-aRMtgYRj.js → useI18n-UMs0F71x.js} +3 -3
- package/dist/cdn/chunks/{useI18n-aRMtgYRj.js.map → useI18n-UMs0F71x.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js → useMergeTag-CPa_9VOq.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js.map → useMergeTag-CPa_9VOq.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.js.map → usePopoverPosition-cf8Y-ynK.js.map} +1 -1
- package/dist/cdn/editor.js +47 -47
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Bqimqf7l.js → check-On4TSac-.js} +1 -1
- package/dist/{chevron-down-CYOoeGBd.js → chevron-down-69EiBGoB.js} +1 -1
- package/dist/{chevron-up-DYknsfm0.js → chevron-up-Dh3MG1Dw.js} +1 -1
- package/dist/{circle-alert-6q_jgtv_.js → circle-alert-cilwzafX.js} +1 -1
- package/dist/{clock-CnadSSTD.js → clock-Dt0APH92.js} +1 -1
- package/dist/{cloud-BJLg_SlM.js → cloud-C7-FhzMc.js} +2 -2
- package/dist/{createLucideIcon-D7GKhya2.js → createLucideIcon-C8WzBYCv.js} +3 -3
- package/dist/dist-6YJAWMuf.js +5 -0
- package/dist/dist-8vlm9kfO.js +5 -0
- package/dist/{dist-DSIgxp0v.js → dist-BImfm-46.js} +2 -2
- package/dist/{dist-DDfXShPv.js → dist-BpKxrUi2.js} +1 -1
- package/dist/{dist-B6Px6GPj.js → dist-C08jiemd.js} +7 -7
- package/dist/{dist-BxbTVeY0.js → dist-C27SeFL5.js} +15 -15
- package/dist/{dist-nR6mxyqI.js → dist-CYx-E82k.js} +2 -2
- package/dist/{dist-CcQFPJMF.js → dist-ChYLhoJ4.js} +2300 -1704
- package/dist/{dist-C31bMR4x.js → dist-Cl8J0IES.js} +270 -182
- package/dist/{dist-CQ0fVBQ3.js → dist-D5zCZFdU.js} +2 -1
- package/dist/{dist-Dx71pluS.js → dist-DMJRSouD.js} +470 -440
- package/dist/{dist-DyCHUyRR.js → dist-DfpeSdmE.js} +2 -2
- package/dist/{dist-DX4x6mQ1.js → dist-M7m1lYRe.js} +47 -47
- package/dist/{dist-CRH880TV.js → dist-g6cbzhZW.js} +2 -2
- package/dist/{extensions-CbiWtzS6.js → extensions-CxwhoG8v.js} +19 -19
- package/dist/{image-up-BfukboIn.js → image-up-Ceggh_R3.js} +1 -1
- package/dist/{info-DSYRzSZo.js → info-DO5odBcZ.js} +1 -1
- package/dist/{keys-BI6VSUh4.js → keys-fwF3qZax.js} +1 -1
- package/dist/{liquid.browser-BECWFL5Z.js → liquid.browser-B-rGrnrQ.js} +119 -109
- package/dist/{list-checks-URZOyLhr.js → list-checks-BSkPKbuI.js} +1 -1
- package/dist/{loader-circle-GADaYcyQ.js → loader-circle-bO7o7_HD.js} +1 -1
- package/dist/{message-circle-B62fdo0b.js → message-circle-BEkAk65X.js} +1 -1
- package/dist/{pencil-BGwkOpD_.js → pencil-t6m0EtKL.js} +1 -1
- package/dist/{refresh-cw-Z4wXfduO.js → refresh-cw-CkOYVzK5.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BkOsapVg.js → runtime-dom.esm-bundler-CepEmvwF.js} +13 -10
- package/dist/{scan-line-D8Oh5xos.js → scan-line-DwSVj25O.js} +1 -1
- package/dist/{send-BYp4k38T.js → send-CWsWN8PQ.js} +1 -1
- package/dist/{shield-check-Cm0RePnW.js → shield-check-qje8Kufw.js} +1 -1
- package/dist/{sparkles-BHEE-vRD.js → sparkles-DumaWRW-.js} +1 -1
- package/dist/{styles-B0MEBpOK.js → styles-C_slTGwp.js} +454 -436
- package/dist/templatical-editor.js +11 -11
- package/dist/{text-align-start-CHrg3vK8.js → text-align-start-Ir8Ah4mT.js} +1 -1
- package/dist/{trash-2-BoNT8wbq.js → trash-2-CklAFCmO.js} +1 -1
- package/dist/{triangle-alert-CiN0ssB3.js → triangle-alert-BBi4n93g.js} +1 -1
- package/dist/{upload-WvZGBySw.js → upload-sVqqppuv.js} +1 -1
- package/dist/{useAliveFlag-eT67QCMf.js → useAliveFlag-cvyBxHp7.js} +1 -1
- package/dist/{useCloudI18n-KgIWl-IE.js → useCloudI18n-DKVm6PCa.js} +2 -2
- package/dist/{useEditorCore-BMbxdUbY.js → useEditorCore-r4gWzCBA.js} +893 -893
- package/dist/{useI18n-BkHfCWC6.js → useI18n-DoVKdCTH.js} +2 -2
- package/dist/{useMergeTag-CZ4XYAxu.js → useMergeTag-C-_WxrgL.js} +3 -3
- package/dist/{usePopoverPosition-D93u-EZm.js → usePopoverPosition-C0dPEF4X.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-0R1UhmZB.js → vue.runtime.esm-bundler-D1diBMsm.js} +119 -95
- package/dist/{x-B4WnJVRx.js → x-Mby7KlhS.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/blockTypeIcons-CrPzyP_k.js +0 -21
- package/dist/cdn/chunks/icons-DN008liP.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-CZaQe87t.js.map +0 -1
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
- package/dist/cdn/chunks/src-uc_Mb_yH.js.map +0 -1
- package/dist/cdn/chunks/styles-BzP13r-I.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CgwK_fKJ.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CTYH6u4r.js.map +0 -1
- package/dist/dist-CkPvZCld.js +0 -5
- package/dist/dist-iCEDH3cC.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/liquidjs@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/liquidjs@10.29.0/node_modules/liquidjs/dist/liquid.browser.mjs
|
|
2
2
|
var e = class {
|
|
3
3
|
constructor(e, t, n, r, i) {
|
|
4
4
|
this.kind = e, this.input = t, this.begin = n, this.end = r, this.file = i;
|
|
@@ -1793,27 +1793,29 @@ function* Fn(e, t, n) {
|
|
|
1793
1793
|
file: t.file
|
|
1794
1794
|
}));
|
|
1795
1795
|
}
|
|
1796
|
-
if (e.children)
|
|
1797
|
-
|
|
1798
|
-
|
|
1796
|
+
if (e.children) {
|
|
1797
|
+
if (e.partialScope) {
|
|
1798
|
+
let i = e.partialScope();
|
|
1799
|
+
if (i === void 0) {
|
|
1800
|
+
for (let i of yield e.children(t, n)) yield u(i, r);
|
|
1801
|
+
return;
|
|
1802
|
+
}
|
|
1803
|
+
if (c.has(i.name)) return;
|
|
1804
|
+
let o = /* @__PURE__ */ new Set(), s = i.isolated ? new In(o) : r.push(o);
|
|
1805
|
+
for (let e of i.scope) if (a(e)) o.add(e);
|
|
1806
|
+
else {
|
|
1807
|
+
let [t, n] = e;
|
|
1808
|
+
o.add(t);
|
|
1809
|
+
let r = Array.from(Ln(n));
|
|
1810
|
+
r.length && s.setAlias(t, r[0].segments);
|
|
1811
|
+
}
|
|
1812
|
+
for (let r of yield e.children(t, n)) yield u(r, s), c.add(i.name);
|
|
1813
|
+
s.pop();
|
|
1814
|
+
} else {
|
|
1815
|
+
e.blockScope && r.push(new Set(e.blockScope()));
|
|
1799
1816
|
for (let i of yield e.children(t, n)) yield u(i, r);
|
|
1800
|
-
|
|
1801
|
-
}
|
|
1802
|
-
if (c.has(i.name)) return;
|
|
1803
|
-
let o = /* @__PURE__ */ new Set(), s = i.isolated ? new In(o) : r.push(o);
|
|
1804
|
-
for (let e of i.scope) if (a(e)) o.add(e);
|
|
1805
|
-
else {
|
|
1806
|
-
let [t, n] = e;
|
|
1807
|
-
o.add(t);
|
|
1808
|
-
let r = Array.from(Ln(n));
|
|
1809
|
-
r.length && s.setAlias(t, r[0].segments);
|
|
1817
|
+
e.blockScope && r.pop();
|
|
1810
1818
|
}
|
|
1811
|
-
for (let r of yield e.children(t, n)) yield u(r, s), c.add(i.name);
|
|
1812
|
-
s.pop();
|
|
1813
|
-
} else {
|
|
1814
|
-
e.blockScope && r.push(new Set(e.blockScope()));
|
|
1815
|
-
for (let i of yield e.children(t, n)) yield u(i, r);
|
|
1816
|
-
e.blockScope && r.pop();
|
|
1817
1819
|
}
|
|
1818
1820
|
}
|
|
1819
1821
|
for (let t of e) yield u(t, s);
|
|
@@ -2512,29 +2514,33 @@ function ki(e) {
|
|
|
2512
2514
|
return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "");
|
|
2513
2515
|
}
|
|
2514
2516
|
function Ai(e) {
|
|
2517
|
+
let t = l(e);
|
|
2518
|
+
return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ").trim();
|
|
2519
|
+
}
|
|
2520
|
+
function ji(e) {
|
|
2515
2521
|
return e = l(e), this.context.memoryLimit.use(e.length), e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
|
2516
2522
|
}
|
|
2517
|
-
function
|
|
2523
|
+
function Mi(e, t, n) {
|
|
2518
2524
|
let r = l(e);
|
|
2519
2525
|
t = l(t), n = l(n);
|
|
2520
2526
|
let i = r.split(t), a = r.length + (i.length - 1) * (n.length - t.length);
|
|
2521
2527
|
return this.context.memoryLimit.use(a), i.join(n);
|
|
2522
2528
|
}
|
|
2523
|
-
function
|
|
2529
|
+
function Ni(e, t, n) {
|
|
2524
2530
|
let r = l(e);
|
|
2525
2531
|
return t = l(t), n = l(n), this.context.memoryLimit.use(r.length + t.length + n.length), r.replace(t, () => n);
|
|
2526
2532
|
}
|
|
2527
|
-
function
|
|
2533
|
+
function Pi(e, t, n) {
|
|
2528
2534
|
let r = l(e), i = l(t), a = l(n);
|
|
2529
2535
|
this.context.memoryLimit.use(r.length + i.length + a.length);
|
|
2530
2536
|
let o = r.lastIndexOf(i);
|
|
2531
2537
|
return o === -1 ? r : r.substring(0, o) + a + r.substring(o + i.length);
|
|
2532
2538
|
}
|
|
2533
|
-
function
|
|
2539
|
+
function Fi(e, t = 50, n = "...") {
|
|
2534
2540
|
let r = l(e);
|
|
2535
2541
|
return n = l(n), this.context.memoryLimit.use(r.length + n.length), r.length <= t ? e : r.substring(0, t - n.length) + n;
|
|
2536
2542
|
}
|
|
2537
|
-
function
|
|
2543
|
+
function Ii(e, t = 15, n = "...") {
|
|
2538
2544
|
let r = l(e);
|
|
2539
2545
|
n = l(n), this.context.memoryLimit.use(r.length + n.length);
|
|
2540
2546
|
let i = r.split(/\s+/);
|
|
@@ -2542,11 +2548,11 @@ function Fi(e, t = 15, n = "...") {
|
|
|
2542
2548
|
let a = i.slice(0, t).join(" ");
|
|
2543
2549
|
return i.length >= t && (a += n), a;
|
|
2544
2550
|
}
|
|
2545
|
-
function
|
|
2551
|
+
function Li(e) {
|
|
2546
2552
|
let t = l(e);
|
|
2547
2553
|
return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ");
|
|
2548
2554
|
}
|
|
2549
|
-
function
|
|
2555
|
+
function Ri(e, t) {
|
|
2550
2556
|
let n = l(e);
|
|
2551
2557
|
if (this.context.memoryLimit.use(n.length), e = n.trim(), !e) return 0;
|
|
2552
2558
|
switch (t) {
|
|
@@ -2555,7 +2561,7 @@ function Li(e, t) {
|
|
|
2555
2561
|
default: return e.split(/\s+/).length;
|
|
2556
2562
|
}
|
|
2557
2563
|
}
|
|
2558
|
-
function
|
|
2564
|
+
function zi(e, t = "and") {
|
|
2559
2565
|
t = l(t);
|
|
2560
2566
|
let n = t.length + e.length * 2;
|
|
2561
2567
|
for (let t = 0; t < e.length; t++) n += l(e[t]).length;
|
|
@@ -2566,7 +2572,7 @@ function Ri(e, t = "and") {
|
|
|
2566
2572
|
default: return `${e.slice(0, -1).join(", ")}, ${t} ${e[e.length - 1]}`;
|
|
2567
2573
|
}
|
|
2568
2574
|
}
|
|
2569
|
-
var
|
|
2575
|
+
var Bi = /*#__PURE__*/ Object.freeze({
|
|
2570
2576
|
__proto__: null,
|
|
2571
2577
|
append: vi,
|
|
2572
2578
|
prepend: yi,
|
|
@@ -2580,69 +2586,70 @@ var zi = /*#__PURE__*/ Object.freeze({
|
|
|
2580
2586
|
split: Di,
|
|
2581
2587
|
strip: Oi,
|
|
2582
2588
|
strip_newlines: ki,
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2589
|
+
squish: Ai,
|
|
2590
|
+
capitalize: ji,
|
|
2591
|
+
replace: Mi,
|
|
2592
|
+
replace_first: Ni,
|
|
2593
|
+
replace_last: Pi,
|
|
2594
|
+
truncate: Fi,
|
|
2595
|
+
truncatewords: Ii,
|
|
2596
|
+
normalize_whitespace: Li,
|
|
2597
|
+
number_of_words: Ri,
|
|
2598
|
+
array_to_sentence_string: zi
|
|
2592
2599
|
});
|
|
2593
|
-
function
|
|
2600
|
+
function Vi(e) {
|
|
2594
2601
|
return btoa(String.fromCharCode(...new TextEncoder().encode(e)));
|
|
2595
2602
|
}
|
|
2596
|
-
function
|
|
2603
|
+
function Hi(e) {
|
|
2597
2604
|
return new TextDecoder().decode(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
|
|
2598
2605
|
}
|
|
2599
|
-
function
|
|
2606
|
+
function Ui(e) {
|
|
2600
2607
|
if (typeof Buffer < "u" && Buffer.isBuffer(e)) return this.context.memoryLimit.use(e.byteLength), e.toString("base64");
|
|
2601
2608
|
let t = l(e);
|
|
2602
|
-
return this.context.memoryLimit.use(t.length),
|
|
2609
|
+
return this.context.memoryLimit.use(t.length), Vi(t);
|
|
2603
2610
|
}
|
|
2604
|
-
function
|
|
2611
|
+
function Wi(e) {
|
|
2605
2612
|
let t = l(e);
|
|
2606
|
-
return this.context.memoryLimit.use(t.length),
|
|
2613
|
+
return this.context.memoryLimit.use(t.length), Hi(t);
|
|
2607
2614
|
}
|
|
2608
|
-
var
|
|
2615
|
+
var Gi = /*#__PURE__*/ Object.freeze({
|
|
2609
2616
|
__proto__: null,
|
|
2610
|
-
base64_encode:
|
|
2611
|
-
base64_decode:
|
|
2617
|
+
base64_encode: Ui,
|
|
2618
|
+
base64_decode: Wi
|
|
2612
2619
|
});
|
|
2613
|
-
function
|
|
2620
|
+
function Ki(e) {
|
|
2614
2621
|
let t = new Uint8Array(e), n = "";
|
|
2615
2622
|
for (let e = 0; e < t.length; e++) n += t[e].toString(16).padStart(2, "0");
|
|
2616
2623
|
return n;
|
|
2617
2624
|
}
|
|
2618
|
-
function
|
|
2625
|
+
function qi(e) {
|
|
2619
2626
|
return T(this, void 0, void 0, function* () {
|
|
2620
2627
|
let t = new TextEncoder().encode(e);
|
|
2621
|
-
return
|
|
2628
|
+
return Ki(yield crypto.subtle.digest("SHA-256", t));
|
|
2622
2629
|
});
|
|
2623
2630
|
}
|
|
2624
|
-
function
|
|
2631
|
+
function Ji(e, t) {
|
|
2625
2632
|
return T(this, void 0, void 0, function* () {
|
|
2626
2633
|
let n = new TextEncoder(), r = yield crypto.subtle.importKey("raw", n.encode(t), {
|
|
2627
2634
|
name: "HMAC",
|
|
2628
2635
|
hash: "SHA-256"
|
|
2629
2636
|
}, !1, ["sign"]);
|
|
2630
|
-
return
|
|
2637
|
+
return Ki(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
|
|
2631
2638
|
});
|
|
2632
2639
|
}
|
|
2633
|
-
function
|
|
2640
|
+
function Yi(e) {
|
|
2634
2641
|
let t = l(e);
|
|
2635
|
-
return this.context.memoryLimit.use(t.length),
|
|
2642
|
+
return this.context.memoryLimit.use(t.length), qi(t);
|
|
2636
2643
|
}
|
|
2637
|
-
function
|
|
2644
|
+
function Xi(e, t) {
|
|
2638
2645
|
let n = l(e), r = l(t);
|
|
2639
|
-
return this.context.memoryLimit.use(n.length + r.length),
|
|
2646
|
+
return this.context.memoryLimit.use(n.length + r.length), Ji(n, r);
|
|
2640
2647
|
}
|
|
2641
|
-
var
|
|
2648
|
+
var Zi = /*#__PURE__*/ Object.freeze({
|
|
2642
2649
|
__proto__: null,
|
|
2643
|
-
sha256:
|
|
2644
|
-
hmac_sha256:
|
|
2645
|
-
}),
|
|
2650
|
+
sha256: Yi,
|
|
2651
|
+
hmac_sha256: Xi
|
|
2652
|
+
}), Qi = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, xn), hr), wr), si), hi), Bi), Gi), Zi), pn), $i = class extends R {
|
|
2646
2653
|
constructor(e, t, n) {
|
|
2647
2654
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.key = this.identifier.content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", "expected \"=\""), this.tokenizer.advance(), this.value = new B(this.tokenizer.readFilteredValue(), this.liquid);
|
|
2648
2655
|
}
|
|
@@ -2655,11 +2662,11 @@ var Xi = /*#__PURE__*/ Object.freeze({
|
|
|
2655
2662
|
*localScope() {
|
|
2656
2663
|
yield this.identifier;
|
|
2657
2664
|
}
|
|
2658
|
-
},
|
|
2665
|
+
}, ea = [
|
|
2659
2666
|
"offset",
|
|
2660
2667
|
"limit",
|
|
2661
2668
|
"reversed"
|
|
2662
|
-
],
|
|
2669
|
+
], ta = class extends R {
|
|
2663
2670
|
constructor(e, t, n, r) {
|
|
2664
2671
|
super(e, t, n);
|
|
2665
2672
|
let i = this.tokenizer.readIdentifier(), a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
|
|
@@ -2683,7 +2690,7 @@ var Xi = /*#__PURE__*/ Object.freeze({
|
|
|
2683
2690
|
let i = "continue-" + this.variable + "-" + this.collection.getText();
|
|
2684
2691
|
e.push(Z({ continue: e.getRegister(i, {}) }));
|
|
2685
2692
|
let a = yield this.hash.render(e);
|
|
2686
|
-
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) =>
|
|
2693
|
+
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) => ea.includes(e)) : ea.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? ra(e, a.offset) : t === "limit" ? ia(e, a.limit) : na(e), r), e.setRegister(i, (a.offset || 0) + r.length);
|
|
2687
2694
|
let o = Z({ forloop: new Re(r.length, this.collection.getText(), this.variable) });
|
|
2688
2695
|
e.push(o);
|
|
2689
2696
|
for (let i of r) {
|
|
@@ -2704,16 +2711,16 @@ var Xi = /*#__PURE__*/ Object.freeze({
|
|
|
2704
2711
|
return [this.variable, "forloop"];
|
|
2705
2712
|
}
|
|
2706
2713
|
};
|
|
2707
|
-
function
|
|
2714
|
+
function na(e) {
|
|
2708
2715
|
return [...e].reverse();
|
|
2709
2716
|
}
|
|
2710
|
-
function
|
|
2717
|
+
function ra(e, t) {
|
|
2711
2718
|
return e.slice(t);
|
|
2712
2719
|
}
|
|
2713
|
-
function
|
|
2720
|
+
function ia(e, t) {
|
|
2714
2721
|
return e.slice(0, t);
|
|
2715
2722
|
}
|
|
2716
|
-
var
|
|
2723
|
+
var aa = class extends R {
|
|
2717
2724
|
constructor(e, t, n, r) {
|
|
2718
2725
|
for (super(e, t, n), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; t.length;) {
|
|
2719
2726
|
let e = t.shift();
|
|
@@ -2737,7 +2744,7 @@ var ia = class extends R {
|
|
|
2737
2744
|
*localScope() {
|
|
2738
2745
|
yield this.identifier;
|
|
2739
2746
|
}
|
|
2740
|
-
},
|
|
2747
|
+
}, oa = class extends R {
|
|
2741
2748
|
constructor(e, t, n, r) {
|
|
2742
2749
|
super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new B(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
|
|
2743
2750
|
let i = [], a = 0, o = r.parseStream(t).on("tag:when", (e) => {
|
|
@@ -2773,7 +2780,7 @@ var ia = class extends R {
|
|
|
2773
2780
|
let e = this.branches.flatMap((e) => e.templates);
|
|
2774
2781
|
return this.elseTemplates && e.push(...this.elseTemplates), e;
|
|
2775
2782
|
}
|
|
2776
|
-
},
|
|
2783
|
+
}, sa = class extends R {
|
|
2777
2784
|
constructor(e, t, n) {
|
|
2778
2785
|
for (super(e, t, n); t.length;) {
|
|
2779
2786
|
let e = t.shift();
|
|
@@ -2782,11 +2789,11 @@ var ia = class extends R {
|
|
|
2782
2789
|
throw Error(`tag ${e.getText()} not closed`);
|
|
2783
2790
|
}
|
|
2784
2791
|
render() {}
|
|
2785
|
-
},
|
|
2792
|
+
}, ca = class extends R {
|
|
2786
2793
|
constructor(e, t, n, r) {
|
|
2787
2794
|
super(e, t, n);
|
|
2788
2795
|
let i = this.tokenizer;
|
|
2789
|
-
for (this.file =
|
|
2796
|
+
for (this.file = la(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
|
|
2790
2797
|
i.skipBlank();
|
|
2791
2798
|
let e = i.p, t = i.readIdentifier();
|
|
2792
2799
|
if ((t.content === "with" || t.content === "for") && (i.skipBlank(), i.peek() !== ":")) {
|
|
@@ -2808,7 +2815,7 @@ var ia = class extends R {
|
|
|
2808
2815
|
this.hash = new z(i, n.options.keyValueSeparator);
|
|
2809
2816
|
}
|
|
2810
2817
|
*render(e, t) {
|
|
2811
|
-
let { liquid: n, hash: r } = this, i = yield
|
|
2818
|
+
let { liquid: n, hash: r } = this, i = yield da(this.file, e, n);
|
|
2812
2819
|
C(i, () => `illegal file path "${i}"`);
|
|
2813
2820
|
let a = e.spawn(), o = a.bottom();
|
|
2814
2821
|
if (qe(o, yield r.render(e)), this.with) {
|
|
@@ -2861,30 +2868,30 @@ var ia = class extends R {
|
|
|
2861
2868
|
}
|
|
2862
2869
|
}
|
|
2863
2870
|
};
|
|
2864
|
-
function
|
|
2871
|
+
function la(e, t, n) {
|
|
2865
2872
|
if (t.options.dynamicPartials) {
|
|
2866
2873
|
let t = e.readValue();
|
|
2867
|
-
return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Jn(t) ?
|
|
2874
|
+
return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Jn(t) ? ua(n.parse(Gt(t))) : t;
|
|
2868
2875
|
}
|
|
2869
|
-
let r = [...e.readFileNameTemplate(t.options)], i =
|
|
2876
|
+
let r = [...e.readFileNameTemplate(t.options)], i = ua(n.parseTokens(r));
|
|
2870
2877
|
return i === "none" ? void 0 : i;
|
|
2871
2878
|
}
|
|
2872
|
-
function
|
|
2879
|
+
function ua(e) {
|
|
2873
2880
|
return e.length === 1 && Kn(e[0].token) ? e[0].token.getContent() : e;
|
|
2874
2881
|
}
|
|
2875
|
-
function*
|
|
2882
|
+
function* da(e, t, n) {
|
|
2876
2883
|
return typeof e == "string" ? e : Array.isArray(e) ? n.renderer.renderTemplates(e, t) : yield A(e, t);
|
|
2877
2884
|
}
|
|
2878
|
-
var
|
|
2885
|
+
var fa = class extends R {
|
|
2879
2886
|
constructor(e, t, n, r) {
|
|
2880
2887
|
super(e, t, n);
|
|
2881
2888
|
let { tokenizer: i } = e;
|
|
2882
|
-
this.file =
|
|
2889
|
+
this.file = la(i, this.liquid, r), this.currentFile = e.file;
|
|
2883
2890
|
let a = i.p;
|
|
2884
2891
|
i.readIdentifier().content === "with" ? (i.skipBlank(), i.peek() === ":" ? i.p = a : this.withVar = i.readValue()) : i.p = a, this.hash = new z(i, n.options.jekyllInclude || n.options.keyValueSeparator);
|
|
2885
2892
|
}
|
|
2886
2893
|
*render(e, t) {
|
|
2887
|
-
let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield
|
|
2894
|
+
let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield da(this.file, e, n);
|
|
2888
2895
|
C(o, () => `illegal file path "${o}"`);
|
|
2889
2896
|
let s = e.saveRegister("blocks", "blockMode");
|
|
2890
2897
|
e.setRegister("blocks", {}), e.setRegister("blockMode", $.OUTPUT);
|
|
@@ -2909,7 +2916,7 @@ var da = class extends R {
|
|
|
2909
2916
|
*arguments() {
|
|
2910
2917
|
yield* Object.values(this.hash.hash).filter(Y), Y(this.file) && (yield this.file), Y(this.withVar) && (yield this.withVar);
|
|
2911
2918
|
}
|
|
2912
|
-
},
|
|
2919
|
+
}, pa = class extends R {
|
|
2913
2920
|
constructor(e, t, n) {
|
|
2914
2921
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
2915
2922
|
}
|
|
@@ -2920,7 +2927,7 @@ var da = class extends R {
|
|
|
2920
2927
|
*localScope() {
|
|
2921
2928
|
yield this.identifier;
|
|
2922
2929
|
}
|
|
2923
|
-
},
|
|
2930
|
+
}, ma = class extends R {
|
|
2924
2931
|
constructor(e, t, n) {
|
|
2925
2932
|
super(e, t, n), this.candidates = [];
|
|
2926
2933
|
let r = this.tokenizer.readValue();
|
|
@@ -2939,7 +2946,7 @@ var da = class extends R {
|
|
|
2939
2946
|
*arguments() {
|
|
2940
2947
|
yield* this.candidates, this.group && (yield this.group);
|
|
2941
2948
|
}
|
|
2942
|
-
},
|
|
2949
|
+
}, ha = class extends R {
|
|
2943
2950
|
constructor(e, t, n, r) {
|
|
2944
2951
|
super(e, t, n), this.branches = [];
|
|
2945
2952
|
let i = [];
|
|
@@ -2974,7 +2981,7 @@ var da = class extends R {
|
|
|
2974
2981
|
arguments() {
|
|
2975
2982
|
return this.branches.map((e) => e.value);
|
|
2976
2983
|
}
|
|
2977
|
-
},
|
|
2984
|
+
}, ga = class extends R {
|
|
2978
2985
|
constructor(e, t, n) {
|
|
2979
2986
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
2980
2987
|
}
|
|
@@ -2987,9 +2994,9 @@ var da = class extends R {
|
|
|
2987
2994
|
*localScope() {
|
|
2988
2995
|
yield this.identifier;
|
|
2989
2996
|
}
|
|
2990
|
-
},
|
|
2997
|
+
}, _a = class extends R {
|
|
2991
2998
|
constructor(e, t, n, r) {
|
|
2992
|
-
super(e, t, n), this.file =
|
|
2999
|
+
super(e, t, n), this.file = la(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new z(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
|
|
2993
3000
|
}
|
|
2994
3001
|
*render(e, t) {
|
|
2995
3002
|
let { liquid: n, args: r, file: i } = this, { renderer: a } = n;
|
|
@@ -2997,7 +3004,7 @@ var da = class extends R {
|
|
|
2997
3004
|
e.setRegister("blockMode", $.OUTPUT), yield a.renderTemplates(this.templates, e, t);
|
|
2998
3005
|
return;
|
|
2999
3006
|
}
|
|
3000
|
-
let o = yield
|
|
3007
|
+
let o = yield da(this.file, e, n);
|
|
3001
3008
|
C(o, () => `illegal file path "${o}"`);
|
|
3002
3009
|
let s = yield n._parseLayoutFile(o, e.sync, this.currentFile);
|
|
3003
3010
|
e.setRegister("blockMode", $.STORE);
|
|
@@ -3019,7 +3026,7 @@ var da = class extends R {
|
|
|
3019
3026
|
scope: Object.keys(this.args.hash)
|
|
3020
3027
|
};
|
|
3021
3028
|
}
|
|
3022
|
-
},
|
|
3029
|
+
}, va = class extends R {
|
|
3023
3030
|
constructor(e, t, n, r) {
|
|
3024
3031
|
super(e, t, n), this.templates = [];
|
|
3025
3032
|
let i = /\w+/.exec(e.args);
|
|
@@ -3049,7 +3056,7 @@ var da = class extends R {
|
|
|
3049
3056
|
blockScope() {
|
|
3050
3057
|
return ["block"];
|
|
3051
3058
|
}
|
|
3052
|
-
},
|
|
3059
|
+
}, ya = class extends R {
|
|
3053
3060
|
constructor(e, t, n) {
|
|
3054
3061
|
for (super(e, t, n), this.tokens = []; t.length;) {
|
|
3055
3062
|
let e = t.shift();
|
|
@@ -3061,7 +3068,7 @@ var da = class extends R {
|
|
|
3061
3068
|
render() {
|
|
3062
3069
|
return this.tokens.map((e) => e.getText()).join("");
|
|
3063
3070
|
}
|
|
3064
|
-
},
|
|
3071
|
+
}, ba = class extends Re {
|
|
3065
3072
|
constructor(e, t, n, r) {
|
|
3066
3073
|
super(e, n, r), this.length = e, this.cols = t;
|
|
3067
3074
|
}
|
|
@@ -3080,21 +3087,21 @@ var da = class extends R {
|
|
|
3080
3087
|
col_last() {
|
|
3081
3088
|
return this.col() === this.cols;
|
|
3082
3089
|
}
|
|
3083
|
-
},
|
|
3084
|
-
assign:
|
|
3085
|
-
for:
|
|
3086
|
-
capture:
|
|
3087
|
-
case:
|
|
3088
|
-
comment:
|
|
3089
|
-
include:
|
|
3090
|
-
render:
|
|
3091
|
-
decrement:
|
|
3092
|
-
increment:
|
|
3093
|
-
cycle:
|
|
3094
|
-
if:
|
|
3095
|
-
layout:
|
|
3096
|
-
block:
|
|
3097
|
-
raw:
|
|
3090
|
+
}, xa = {
|
|
3091
|
+
assign: $i,
|
|
3092
|
+
for: ta,
|
|
3093
|
+
capture: aa,
|
|
3094
|
+
case: oa,
|
|
3095
|
+
comment: sa,
|
|
3096
|
+
include: fa,
|
|
3097
|
+
render: ca,
|
|
3098
|
+
decrement: pa,
|
|
3099
|
+
increment: ga,
|
|
3100
|
+
cycle: ma,
|
|
3101
|
+
if: ha,
|
|
3102
|
+
layout: _a,
|
|
3103
|
+
block: va,
|
|
3104
|
+
raw: ya,
|
|
3098
3105
|
tablerow: class extends R {
|
|
3099
3106
|
constructor(e, t, n, r) {
|
|
3100
3107
|
super(e, t, n);
|
|
@@ -3111,7 +3118,7 @@ var da = class extends R {
|
|
|
3111
3118
|
*render(e, t) {
|
|
3112
3119
|
let n = d(yield A(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0, a = r.limit === void 0 ? n.length : r.limit;
|
|
3113
3120
|
n = n.slice(i, i + a);
|
|
3114
|
-
let o = r.cols || n.length, s = this.liquid.renderer, c = new
|
|
3121
|
+
let o = r.cols || n.length, s = this.liquid.renderer, c = new ba(n.length, o, this.collection.getText(), this.variable), l = Z({ tablerowloop: c });
|
|
3115
3122
|
e.push(l);
|
|
3116
3123
|
for (let r = 0; r < n.length; r++, c.next()) l[this.variable] = n[r], c.col0() === 0 && (c.row() !== 1 && t.write("</tr>"), t.write(`<tr class="row${c.row()}">`)), t.write(`<td class="col${c.col()}">`), yield s.renderTemplates(this.templates, e, t), t.write("</td>");
|
|
3117
3124
|
n.length && t.write("</tr>"), e.pop();
|
|
@@ -3213,9 +3220,9 @@ var da = class extends R {
|
|
|
3213
3220
|
}
|
|
3214
3221
|
render() {}
|
|
3215
3222
|
}
|
|
3216
|
-
},
|
|
3223
|
+
}, Sa = class e {
|
|
3217
3224
|
constructor(e = {}) {
|
|
3218
|
-
this.renderer = new zt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = Cn(e), this.parser = new K(this), ae(
|
|
3225
|
+
this.renderer = new zt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = Cn(e), this.parser = new K(this), ae(xa, (e, t) => this.registerTag(t, e)), ae(Qi, (e, t) => this.registerFilter(t, e));
|
|
3219
3226
|
}
|
|
3220
3227
|
parse(e, t) {
|
|
3221
3228
|
return new K(this).parse(e, t);
|
|
@@ -3298,6 +3305,9 @@ var da = class extends R {
|
|
|
3298
3305
|
registerFilter(e, t) {
|
|
3299
3306
|
this.filters[e] = t;
|
|
3300
3307
|
}
|
|
3308
|
+
unregisterFilter(e) {
|
|
3309
|
+
delete this.filters[e];
|
|
3310
|
+
}
|
|
3301
3311
|
registerTag(e, t) {
|
|
3302
3312
|
this.tags[e] = o(t) ? t : An(t);
|
|
3303
3313
|
}
|
|
@@ -3394,4 +3404,4 @@ var da = class extends R {
|
|
|
3394
3404
|
};
|
|
3395
3405
|
/* istanbul ignore file */
|
|
3396
3406
|
//#endregion
|
|
3397
|
-
export {
|
|
3407
|
+
export { Sa as Liquid };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-C8WzBYCv.js";
|
|
2
2
|
var t = e("message-circle", [["path", {
|
|
3
3
|
d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
|
|
4
4
|
key: "1sd12s"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-C8WzBYCv.js";
|
|
2
2
|
var t = e("pencil", [["path", {
|
|
3
3
|
d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
|
|
4
4
|
key: "1a8usu"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-C8WzBYCv.js";
|
|
2
2
|
var t = e("eye", [["path", {
|
|
3
3
|
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
4
4
|
key: "1nclc0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as e, F as t, S as n, St as r, Tt as i, _t as a, a as o, at as s, bt as c, ct as l, dt as u, f as d, ft as f, gt as p, ht as m, it as h, kt as ee, lt as g, mt as _, n as v, o as y, ot as te, pt as ne, st as b, t as x, ut as re, vt as S, w as C, wt as w, xt as T, y as ie, yt as E } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { Ct as e, F as t, S as n, St as r, Tt as i, _t as a, a as o, at as s, bt as c, ct as l, dt as u, f as d, ft as f, gt as p, ht as m, it as h, kt as ee, lt as g, mt as _, n as v, o as y, ot as te, pt as ne, st as b, t as x, ut as re, vt as S, w as C, wt as w, xt as T, y as ie, yt as E } from "./vue.runtime.esm-bundler-D1diBMsm.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.41/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
|
|
3
3
|
var D = void 0, ae = typeof window < "u" && window.trustedTypes;
|
|
4
4
|
if (ae) try {
|
|
@@ -203,11 +203,13 @@ var xe = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "CS
|
|
|
203
203
|
function Ce(e, t, n) {
|
|
204
204
|
let r = e.style, i = T(n), a = !1;
|
|
205
205
|
if (n && !i) {
|
|
206
|
-
if (t)
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
if (t) {
|
|
207
|
+
if (T(t)) for (let e of t.split(";")) {
|
|
208
|
+
let t = e.slice(0, e.indexOf(":")).trim();
|
|
209
|
+
n[t] ?? W(r, t, "");
|
|
210
|
+
}
|
|
211
|
+
else for (let e in t) n[e] ?? W(r, e, "");
|
|
209
212
|
}
|
|
210
|
-
else for (let e in t) n[e] ?? W(r, e, "");
|
|
211
213
|
for (let i in n) {
|
|
212
214
|
i === "display" && (a = !0);
|
|
213
215
|
let o = n[i];
|
|
@@ -405,11 +407,12 @@ function Z(n, r) {
|
|
|
405
407
|
}
|
|
406
408
|
for (let t = 0, o = n.options.length; t < o; t++) {
|
|
407
409
|
let o = n.options[t], s = Q(o);
|
|
408
|
-
if (i)
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
if (i) {
|
|
411
|
+
if (a) {
|
|
412
|
+
let e = typeof s;
|
|
413
|
+
o.selected = e === "string" || e === "number" ? r.some((e) => String(e) === String(s)) : w(r, s) > -1;
|
|
414
|
+
} else o.selected = r.has(s);
|
|
415
|
+
} else if (e(Q(o), r)) {
|
|
413
416
|
n.selectedIndex !== t && (n.selectedIndex = t);
|
|
414
417
|
return;
|
|
415
418
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-C8WzBYCv.js";
|
|
2
2
|
var t = e("send", [["path", {
|
|
3
3
|
d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",
|
|
4
4
|
key: "1ffxy3"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-C8WzBYCv.js";
|
|
2
2
|
var t = e("shield-check", [["path", {
|
|
3
3
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
4
4
|
key: "oel41y"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-C8WzBYCv.js";
|
|
2
2
|
var t = e("sparkles", [
|
|
3
3
|
["path", {
|
|
4
4
|
d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
|