@templatical/editor 0.10.2 → 0.10.4
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-BMwpZx-6.js → AiChatSidebar-Djjqrmoh.js} +13 -13
- package/dist/{AiFeatureMenu-xgaIGUCo.js → AiFeatureMenu-DR56EYbL.js} +7 -7
- package/dist/{BlockIssueBadge-3kNs6WoD.js → BlockIssueBadge-ySMhwDRR.js} +5 -5
- package/dist/{CloudEditor-Dm9hiaui.js → CloudEditor-BLlRKq5D.js} +19 -19
- package/dist/{CollaboratorBar-Cz_evoU4.js → CollaboratorBar-BlXmZrIj.js} +4 -4
- package/dist/{CommentsSidebar-jFZj_CTo.js → CommentsSidebar-XcYtqAn8.js} +12 -12
- package/dist/{CountdownBlock-S-SCyVye.js → CountdownBlock-sAAv3BHE.js} +3 -3
- package/dist/{CountdownToolbar-Ckdo-3P-.js → CountdownToolbar-CUvqPILZ.js} +3 -3
- package/dist/{DesignReferenceSidebar-B9QNPZNV.js → DesignReferenceSidebar-B0Upq2MY.js} +9 -9
- package/dist/{IssuesPanel-_E_fbSM8.js → IssuesPanel-BvcqQ0ec.js} +8 -8
- package/dist/{LoadingTrack-BZ5KJyZ_.js → LoadingTrack-e67FA0NP.js} +1 -1
- package/dist/{ModuleBrowserModal-BB22urqi.js → ModuleBrowserModal-BdOB1Lbt.js} +10 -10
- package/dist/{ModulePreviewCanvas-CH5OdXv8.js → ModulePreviewCanvas-BeglLfBF.js} +3 -3
- package/dist/{NumberWithSuffix-BHDXHMpo.js → NumberWithSuffix-Cb7HI_yW.js} +3 -3
- package/dist/{ParagraphEditor-BmY7LLgN.js → ParagraphEditor-4Wrd3nnB.js} +23 -23
- package/dist/{RichTextEditorContent-COijbaWp.js → RichTextEditorContent-D-uKzBDa.js} +6 -6
- package/dist/{SaveModuleDialog-D5WN-je_.js → SaveModuleDialog-ueFhCVWN.js} +7 -7
- package/dist/{SnapshotHistory-BQ55Rhri.js → SnapshotHistory-DNuw_gCY.js} +9 -9
- package/dist/{TemplateScoringPanel-Dhf_Qgr7.js → TemplateScoringPanel-bkIhEokb.js} +14 -14
- package/dist/{TestEmailModal-DH_Viz_m.js → TestEmailModal-Tg30-itu.js} +5 -5
- package/dist/{TitleEditor-Dn613K8o.js → TitleEditor-CY8QWbEw.js} +12 -12
- package/dist/{TplModal-Dxa3rhHI.js → TplModal-D338Vv9U.js} +4 -4
- package/dist/{blockTypeIcons-CrcSCTD6.js → blockTypeIcons-CYoPwoH9.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-CCsgxyN9.js → AiFeatureMenu-DRWRoPdh.js} +3 -3
- package/dist/cdn/chunks/{AiFeatureMenu-CCsgxyN9.js.map → AiFeatureMenu-DRWRoPdh.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Lc3NWFV8.js → BlockIssueBadge-D2ApLp61.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-Lc3NWFV8.js.map → BlockIssueBadge-D2ApLp61.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-KkwvBhyt.js → CloudEditor-gvOOuXac.js} +8 -8
- package/dist/cdn/chunks/{CloudEditor-KkwvBhyt.js.map → CloudEditor-gvOOuXac.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BGIGiFSm.js → CollaboratorBar-BZK3R383.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-BGIGiFSm.js.map → CollaboratorBar-BZK3R383.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-gqnpxKp_.js → CountdownBlock-DU5YmjFP.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-gqnpxKp_.js.map → CountdownBlock-DU5YmjFP.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-xHpaWQE2.js → CountdownToolbar-C1nlFm4e.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-xHpaWQE2.js.map → CountdownToolbar-C1nlFm4e.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DHTTHu65.js → IssuesPanel-R3M60NTk.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-DHTTHu65.js.map → IssuesPanel-R3M60NTk.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DDTjrKph.js → ModuleBrowserModal-DMithQu8.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-DDTjrKph.js.map → ModuleBrowserModal-DMithQu8.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DeFq0hVi.js → ModulePreviewCanvas-BNKbV_c2.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-DeFq0hVi.js.map → ModulePreviewCanvas-BNKbV_c2.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-D4wtmU9O.js → NumberWithSuffix-C5zNn3Oc.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-D4wtmU9O.js.map → NumberWithSuffix-C5zNn3Oc.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CwY8GeWa.js → ParagraphEditor-H136qVNI.js} +17 -17
- package/dist/cdn/chunks/{ParagraphEditor-CwY8GeWa.js.map → ParagraphEditor-H136qVNI.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C_bMURGF.js → RichTextEditorContent-BxW6vSck.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-C_bMURGF.js.map → RichTextEditorContent-BxW6vSck.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DEi8PSP6.js → SaveModuleDialog-BaiynUWb.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-DEi8PSP6.js.map → SaveModuleDialog-BaiynUWb.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Betpo8AZ.js → TitleEditor-BBsR46vE.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-Betpo8AZ.js.map → TitleEditor-BBsR46vE.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-Xz6OBq3U.js → blockTypeIcons-CX05RINM.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-Xz6OBq3U.js.map → blockTypeIcons-CX05RINM.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BTGr7_-X.js → draggable-iAb7QVJo.js} +30 -23
- package/dist/cdn/chunks/draggable-iAb7QVJo.js.map +1 -0
- package/dist/cdn/chunks/{extensions-D_j4UWxi.js → extensions-2LuW8PHB.js} +4 -4
- package/dist/cdn/chunks/{extensions-D_j4UWxi.js.map → extensions-2LuW8PHB.js.map} +1 -1
- package/dist/cdn/chunks/{features-A28DQtjE.js → features-CxHQG9xr.js} +15 -13
- package/dist/cdn/chunks/{features-A28DQtjE.js.map → features-CxHQG9xr.js.map} +1 -1
- package/dist/cdn/chunks/{icons-C9D3N0-J.js → icons-DrsFvnNP.js} +2 -2
- package/dist/cdn/chunks/{icons-C9D3N0-J.js.map → icons-DrsFvnNP.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CH1Wx5wP.js → media-library-CDXkfBa7.js} +5 -5
- package/dist/cdn/chunks/{media-library-CH1Wx5wP.js.map → media-library-CDXkfBa7.js.map} +1 -1
- package/dist/cdn/chunks/{quality-D4NeyFej.js → quality-HR87TCZc.js} +2 -2
- package/dist/cdn/chunks/{quality-D4NeyFej.js.map → quality-HR87TCZc.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BQnGfLhL.js → renderer-Dh5WdraW.js} +3 -3
- package/dist/cdn/chunks/{renderer-BQnGfLhL.js.map → renderer-Dh5WdraW.js.map} +1 -1
- package/dist/cdn/chunks/{src-BkKEyLw1.js → src-fyYLC_tY.js} +5 -5
- package/dist/cdn/chunks/{src-BkKEyLw1.js.map → src-fyYLC_tY.js.map} +1 -1
- package/dist/cdn/chunks/{styles-BDVaiw3K.js → styles-NhU45rEI.js} +10 -10
- package/dist/cdn/chunks/styles-NhU45rEI.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-P5abGB13.js → tiptap-CfnwT9a8.js} +3010 -2975
- package/dist/cdn/chunks/tiptap-CfnwT9a8.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +7 -7
- package/dist/{check-KooI2jyS.js → check-B4oiQEsJ.js} +1 -1
- package/dist/{chevron-down-mnlFgueW.js → chevron-down-BrL7CDST.js} +1 -1
- package/dist/{circle-alert-D89_hB8j.js → circle-alert-Ddf06I0D.js} +1 -1
- package/dist/{clock-BaadyUrg.js → clock-CbIkIHL5.js} +1 -1
- package/dist/{cloud-D-FScaHx.js → cloud-Dom4EH5Z.js} +1 -1
- package/dist/{createLucideIcon-D-6fpD2L.js → createLucideIcon-Bn5l6hkC.js} +3 -3
- package/dist/{dist-Drp5bNAu.js → dist-B6B8IO1W.js} +2 -2
- package/dist/{dist-DaajG7Fo.js → dist-BRvZBY6r.js} +2 -2
- package/dist/{dist-zInT3Lf6.js → dist-BShwEwPy.js} +2138 -2103
- package/dist/dist-BVKpiz3S.js +5 -0
- package/dist/{dist-C1WcikEF.js → dist-BdIM5Jt8.js} +2 -2
- package/dist/{dist-Dnqx5UF3.js → dist-BhZo8-eC.js} +3 -3
- package/dist/dist-BzeOnbU8.js +5 -0
- package/dist/{dist-BttO3Zdx.js → dist-Ctv43HTN.js} +2 -2
- package/dist/{dist-b52vYHb5.js → dist-DDB4TfTY.js} +2 -2
- package/dist/{dist-XA2i70J5.js → dist-DS9NXb20.js} +2 -2
- package/dist/{dist-CjULgTep.js → dist-DbGsZrPu.js} +6 -6
- package/dist/{dist-sqf7pq5q.js → dist-ZiEahccA.js} +2 -2
- package/dist/{dist-cl33Ip6W.js → dist-cT52Hh9L.js} +3 -3
- package/dist/{extensions-DA-w1gVg.js → extensions-CqrSpX_i.js} +6 -6
- package/dist/{image-up-DjwfAom6.js → image-up-D3KvvHLf.js} +1 -1
- package/dist/{info-Db3HlTr8.js → info-RwcI2EUD.js} +1 -1
- package/dist/{keys-BjmL5YCT.js → keys-DSm2p8zn.js} +1 -1
- package/dist/{list-checks-BlAB0X8a.js → list-checks-ruqK9lCo.js} +1 -1
- package/dist/{loader-circle-EVqyIxjU.js → loader-circle-D4SXJ8eQ.js} +1 -1
- package/dist/{message-circle-BuI5pBVG.js → message-circle-p9UiFyS7.js} +1 -1
- package/dist/{refresh-cw-C2vM_6zQ.js → refresh-cw-C8HbO4hg.js} +1 -1
- package/dist/{scan-line-AUIh_SHI.js → scan-line-CmPIMm63.js} +1 -1
- package/dist/{send-nrbwF7xg.js → send-DacXlri3.js} +1 -1
- package/dist/{shield-check-B55Ozmva.js → shield-check-BdrHnTnJ.js} +1 -1
- package/dist/{sparkles-oh1NUSFq.js → sparkles-tT7wcus5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-Byhh107n.js → styles-BmZWc8sc.js} +27 -27
- package/dist/templatical-editor.js +5 -5
- package/dist/{text-align-start-B2MqzZwU.js → text-align-start-DaSSBZVi.js} +1 -1
- package/dist/{trash-2-DH8RBwAx.js → trash-2-B0uIJOwX.js} +1 -1
- package/dist/{triangle-alert-BQHjCt3B.js → triangle-alert-FLQWRf-c.js} +1 -1
- package/dist/{useAliveFlag-B_b9ubwD.js → useAliveFlag-DlVvpZxc.js} +1 -1
- package/dist/{useCloudI18n-BHCrmQgj.js → useCloudI18n-Lh0xWlQ4.js} +2 -2
- package/dist/{useEditorCore-BEgc3KFu.js → useEditorCore-CMukR8kX.js} +21 -19
- package/dist/{useI18n-Bb9-ha9X.js → useI18n-CNEz8RK7.js} +2 -2
- package/dist/{useMergeTag-HykzEtBn.js → useMergeTag-C54tabTK.js} +2 -2
- package/dist/usePopoverRoot-dvg2XFmj.js +8 -0
- package/dist/{vue.runtime.esm-bundler-MzYCkFSH.js → vue.runtime.esm-bundler-mPytWZFh.js} +32 -25
- package/dist/{x-DgCCENgP.js → x-BROzFhGs.js} +1 -1
- package/package.json +21 -21
- package/dist/cdn/chunks/draggable-BTGr7_-X.js.map +0 -1
- package/dist/cdn/chunks/styles-BDVaiw3K.js.map +0 -1
- package/dist/cdn/chunks/tiptap-P5abGB13.js.map +0 -1
- package/dist/dist-Df4eV6Zi.js +0 -5
- package/dist/dist-WJ1fVd5b.js +0 -5
- package/dist/usePopoverRoot-BZDkRRry.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiFeatureMenu-
|
|
1
|
+
{"version":3,"file":"AiFeatureMenu-DRWRoPdh.js","names":[],"sources":["../../../src/cloud/components/AiFeatureMenu.vue","../../../src/cloud/components/AiFeatureMenu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;EAaA,IAAM,IAAO,GAIP,EAAE,GAAG,MAAW,EAAmB,GAEnC,IAAW,EAAc,GAAe,eAAe,GAEvD,IAAkD;GACtD,WAAW;GACX,oBAAoB;GACpB,SAAS;EACX,GAEM,IAA2D;GAC/D;IAAE,KAAK;IAAW,MAAM;GAAS;GACjC;IAAE,KAAK;IAAoB,MAAM;GAAQ;GACzC;IAAE,KAAK;IAAW,MAAM;GAAY;EACtC,GAEM,IAAW,QACf,EAAY,QAAQ,MAAM,EAAS,iBAAiB,EAAa,EAAE,IAAI,CAAC,CAC1E;EAEA,SAAS,EAAS,GAAwB;GAGxC,OAFI,MAAQ,YAAkB,EAAO,OAAO,cACxC,MAAQ,qBAA2B,EAAO,OAAO,mBAC9C,EAAO,OAAO;EACvB;EAEA,SAAS,EAAe,GAAwB;GAG9C,OAFI,MAAQ,YAAkB,EAAO,OAAO,kBACxC,MAAQ,qBAA2B,EAAO,OAAO,uBAC9C,EAAO,OAAO;EACvB;yBAIE,EA0CM,OA1CN,GA0CM,EAAA,EAAA,EAAA,GAtCJ,EAqCS,GAAA,MAAA,EApCW,EAAA,QAAX,YADT,EAqCS,UAAA;GAnCN,KAAK,EAAQ;GACd,OAAM;GACL,OAAK,EAAA,EAAA,iBAAuC,EAAA,kBAAkB,EAAQ,MAAA,6BAAA,cAAA,CAAA;GAMtE,UAAK,MAAE,EAAI,UAAW,EAAQ,GAAG;MAElC,EAcM,OAAA;GAbJ,OAAM;GACL,OAAK,EAAA;qBAA2C,EAAA,kBAAkB,EAAQ,MAAA,uBAAA;WAA8G,EAAA,kBAAkB,EAAQ,MAAA,kBAAA;;YAWnN,EAA6D,EAA7C,EAAQ,IAAI,GAAA;GAAG,MAAM;GAAK,gBAAc;YAE1D,EASM,OATN,GASM,CARJ,EAEO,QAFP,GAEO,EADF,EAAS,EAAQ,GAAG,CAAA,GAAA,CAAA,GAEzB,EAIO,QAJP,GAIO,EADF,EAAe,EAAQ,GAAG,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,GAAA,IAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as e, T as t, f as n, g as r, h as i, it as a, m as o, ot as s, x as c } from "./draggable-
|
|
2
|
-
import { Dt as l, Ft as u, st as d, tn as f } from "./features-
|
|
1
|
+
import { M as e, T as t, f as n, g as r, h as i, it as a, m as o, ot as s, x as c } from "./draggable-iAb7QVJo.js";
|
|
2
|
+
import { Dt as l, Ft as u, st as d, tn as f } from "./features-CxHQG9xr.js";
|
|
3
3
|
//#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
|
|
5
5
|
__name: "BlockIssueBadge",
|
|
@@ -30,4 +30,4 @@ var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
|
|
|
30
30
|
//#endregion
|
|
31
31
|
export { m as default };
|
|
32
32
|
|
|
33
|
-
//# sourceMappingURL=BlockIssueBadge-
|
|
33
|
+
//# sourceMappingURL=BlockIssueBadge-D2ApLp61.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockIssueBadge-
|
|
1
|
+
{"version":3,"file":"BlockIssueBadge-D2ApLp61.js","names":[],"sources":["../../../src/components/canvas/BlockIssueBadge.vue","../../../src/components/canvas/BlockIssueBadge.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n"],"mappings":";;;;;;;EAMA,IAAM,IAAQ,GACR,EAAE,SAAM,EAAQ,GAChB,IAAO,EAAO,GAAmB,IAAI,GAErC,IAAc,SACjB,GAAM,OAAO,SAAS,CAAC,GAAG,QAAQ,MAAM,EAAE,YAAY,EAAM,OAAO,CACtE,GAEM,IAAW,QACX,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,OAAO,IAAU,UAC9D,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,SAAS,IAAU,YAC7D,IACR,GAEK,IAAU,QACd,EAAS,UAAU,UAAU,EAAE,OAAO,aAAa,EAAE,OAAO,YAC9D;mBAKU,EAAA,SAAA,EAAA,GADR,EA0BO,QAAA;;GAxBL,OAAK,EAAA,CAAC,yNACS,EAAA,UAAQ,UAAA,iCAAA,+BAAA,CAAA;GAKtB,OAAO,EAAA;GACP,cAAY,EAAA;GACb,MAAK;MAGG,EAAA,UAAQ,WAAA,EAAA,GADhB,EAME,EAAA,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO;cAET,EAME,EAAA,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as e, A as t, H as n, J as r, M as i, N as a, P as o, V as s, Z as c, _ as l, b as u, ct as d, f, g as p, h as m, it as h, j as g, l as _, m as v, n as y, ot as b, p as x, s as S, st as C, u as w, v as T, x as E, y as D, z as O } from "./draggable-
|
|
2
|
-
import { $t as k, A, At as j, Cn as M, Dt as N, E as P, Et as F, Ft as I, Hn as L, Ht as R, It as z, Nt as ee, Qt as B, Rt as te, S as V, Ut as H, Vt as U, Z as ne, _ as W, _t as G, an as K, b as re, c as ie, d as ae, en as oe, f as q, g as J, h as Y, kn as X, l as se, m as ce, mn as Z, p as le, pt as ue, rt as de, s as fe, st as pe, tt as Q, u as me, ut as he, v as ge, vt as _e, x as ve, y as ye } from "./features-
|
|
3
|
-
import { S as be, x as xe } from "./icons-
|
|
4
|
-
import { a as Se, c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as ke, t as Ae, u as je } from "./styles-
|
|
1
|
+
import { $ as e, A as t, H as n, J as r, M as i, N as a, P as o, V as s, Z as c, _ as l, b as u, ct as d, f, g as p, h as m, it as h, j as g, l as _, m as v, n as y, ot as b, p as x, s as S, st as C, u as w, v as T, x as E, y as D, z as O } from "./draggable-iAb7QVJo.js";
|
|
2
|
+
import { $t as k, A, At as j, Cn as M, Dt as N, E as P, Et as F, Ft as I, Hn as L, Ht as R, It as z, Nt as ee, Qt as B, Rt as te, S as V, Ut as H, Vt as U, Z as ne, _ as W, _t as G, an as K, b as re, c as ie, d as ae, en as oe, f as q, g as J, h as Y, kn as X, l as se, m as ce, mn as Z, p as le, pt as ue, rt as de, s as fe, st as pe, tt as Q, u as me, ut as he, v as ge, vt as _e, x as ve, y as ye } from "./features-CxHQG9xr.js";
|
|
3
|
+
import { S as be, x as xe } from "./icons-DrsFvnNP.js";
|
|
4
|
+
import { a as Se, c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as ke, t as Ae, u as je } from "./styles-NhU45rEI.js";
|
|
5
5
|
import { d as $ } from "./styleConstants-lGobwiLH.js";
|
|
6
6
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
7
7
|
function Me(t) {
|
|
@@ -563,7 +563,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
563
563
|
},
|
|
564
564
|
emits: ["save"],
|
|
565
565
|
setup(e) {
|
|
566
|
-
let t = u(() => import("./CollaboratorBar-
|
|
566
|
+
let t = u(() => import("./CollaboratorBar-BZK3R383.js")), n = u(() => import("./features-CxHQG9xr.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-DRWRoPdh.js")), { t: a, format: o } = Q();
|
|
567
567
|
return (c, l) => (i(), p("header", Ze, [
|
|
568
568
|
x("div", Qe, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", $e, d(h(o)(h(a).header.templatesUsed, {
|
|
569
569
|
used: e.featureFlags.templateCount.value,
|
|
@@ -725,9 +725,9 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
725
725
|
"module-insert"
|
|
726
726
|
],
|
|
727
727
|
setup(e, { expose: t, emit: n }) {
|
|
728
|
-
let r = u(() => import("./features-
|
|
728
|
+
let r = u(() => import("./features-CxHQG9xr.js").then((e) => e.o)), a = u(() => import("./features-CxHQG9xr.js").then((e) => e.a)), o = u(() => import("./features-CxHQG9xr.js").then((e) => e.i)), s = u(() => import("./features-CxHQG9xr.js").then((e) => e.n)), l = u(() => import("./features-CxHQG9xr.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-BaiynUWb.js")), f = u(() => import("./ModuleBrowserModal-DMithQu8.js")), g = u(async () => {
|
|
729
729
|
try {
|
|
730
|
-
return (await import("./src-
|
|
730
|
+
return (await import("./src-fyYLC_tY.js")).MediaLibraryModal;
|
|
731
731
|
} catch {
|
|
732
732
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
733
733
|
}
|
|
@@ -1164,4 +1164,4 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1164
1164
|
//#endregion
|
|
1165
1165
|
export { Nt as default };
|
|
1166
1166
|
|
|
1167
|
-
//# sourceMappingURL=CloudEditor-
|
|
1167
|
+
//# sourceMappingURL=CloudEditor-gvOOuXac.js.map
|