@templatical/editor 0.17.0 → 0.18.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-LxCHMdcj.js → AiChatSidebar-BWIzNePR.js} +2 -2
- package/dist/{AiFeatureMenu-zwSmx9ZW.js → AiFeatureMenu-IoLW8c6m.js} +4 -4
- package/dist/{BlockIssueBadge-BQ1yB1me.js → BlockIssueBadge-FbyZBJlf.js} +2 -2
- package/dist/{CloudEditor-5ahgKRX8.js → CloudEditor-txLsdvcR.js} +10 -10
- package/dist/{CollaboratorBar-6PtX-1AS.js → CollaboratorBar-CpLOFt43.js} +2 -2
- package/dist/{ColorPicker-DfzDyNKe.js → ColorPicker-BXCcUYsZ.js} +3 -3
- package/dist/{CommentsSidebar-Cl93TN96.js → CommentsSidebar-C8xFu9qy.js} +3 -3
- package/dist/{CountdownBlock-DbXfzwae.js → CountdownBlock-CaU40Htk.js} +1 -1
- package/dist/{CountdownToolbar-BqaMWRyB.js → CountdownToolbar-CBbGAxmF.js} +3 -3
- package/dist/{DesignReferenceSidebar-jVrdS8wW.js → DesignReferenceSidebar-BWZgqmT-.js} +13 -14
- package/dist/{IssuesPanel-Bq3yXg6M.js → IssuesPanel-CBzfmzRM.js} +2 -2
- package/dist/{MergeTagSuggestion-jIpT_jmz.js → MergeTagSuggestion-DCuaSOPQ.js} +148 -162
- package/dist/{ModuleBrowserModal-B5IH3-1I.js → ModuleBrowserModal-C9qHpjaS.js} +7 -7
- package/dist/{ModulePreviewCanvas-CYOLWoZ9.js → ModulePreviewCanvas-xEMWMJwf.js} +2 -2
- package/dist/{NumberWithSuffix-9FG7mNnn.js → NumberWithSuffix-BreqtON_.js} +1 -1
- package/dist/{ParagraphEditor-duWYA6Vv.js → ParagraphEditor-iRJI_YbA.js} +19 -19
- package/dist/{RichTextEditorContent-DCzmVeyb.js → RichTextEditorContent-DkXai9qP.js} +4 -4
- package/dist/{SaveModuleDialog-BPUly5h3.js → SaveModuleDialog-DqDmk0rO.js} +6 -6
- package/dist/{SnapshotHistory-CmwU3nlN.js → SnapshotHistory-BVe5aCHi.js} +4 -4
- package/dist/{TemplateScoringPanel-CMrfa9Rd.js → TemplateScoringPanel-CRqt9-T5.js} +77 -77
- package/dist/{TestEmailModal-zfomMz9i.js → TestEmailModal-jpy4hnYZ.js} +3 -3
- package/dist/{TitleEditor-v0gtezZE.js → TitleEditor-Bf6Jv2qI.js} +10 -10
- package/dist/{TplModal-eGFG7k-y.js → TplModal-DAtccv6o.js} +3 -3
- package/dist/{blockTypeIcons-Dd0w4T0I.js → blockTypeIcons-CnlwyvkL.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-CtXsam7G.js → AiFeatureMenu-B4oJlFQI.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-CtXsam7G.js.map → AiFeatureMenu-B4oJlFQI.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DR7cpDfQ.js → BlockIssueBadge-C7Ts7bT7.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-DR7cpDfQ.js.map → BlockIssueBadge-C7Ts7bT7.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-YC5y3AwC.js → CloudEditor-BRO-2CcF.js} +9 -9
- package/dist/cdn/chunks/{CloudEditor-YC5y3AwC.js.map → CloudEditor-BRO-2CcF.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BOD2j8Kl.js → CollaboratorBar-BsWOjOCS.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-BOD2j8Kl.js.map → CollaboratorBar-BsWOjOCS.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-CPMWLHpa.js → ColorPicker-DEtVX4gN.js} +2 -2
- package/dist/cdn/chunks/{ColorPicker-CPMWLHpa.js.map → ColorPicker-DEtVX4gN.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BmGqb7Zi.js → CountdownBlock-BUGxk8GI.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-BmGqb7Zi.js.map → CountdownBlock-BUGxk8GI.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BBwsdGbV.js → CountdownToolbar-C8tWWfGw.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BBwsdGbV.js.map → CountdownToolbar-C8tWWfGw.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-G0z-j3JS.js → IssuesPanel-C5izyrbm.js} +3 -3
- package/dist/cdn/chunks/{IssuesPanel-G0z-j3JS.js.map → IssuesPanel-C5izyrbm.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-rpZ6Ol-i.js → MergeTagSuggestion-BmMmdcRg.js} +2 -2
- package/dist/cdn/chunks/{MergeTagSuggestion-rpZ6Ol-i.js.map → MergeTagSuggestion-BmMmdcRg.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DiLTY0ec.js → ModuleBrowserModal-DySKXKFF.js} +5 -5
- package/dist/cdn/chunks/{ModuleBrowserModal-DiLTY0ec.js.map → ModuleBrowserModal-DySKXKFF.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CdV5mEQ6.js → ModulePreviewCanvas-qqEvLBp2.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-CdV5mEQ6.js.map → ModulePreviewCanvas-qqEvLBp2.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-lqQlf0Uk.js → NumberWithSuffix-DttdbXsh.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-lqQlf0Uk.js.map → NumberWithSuffix-DttdbXsh.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BYoZfURd.js → ParagraphEditor-CQJ23PXU.js} +17 -17
- package/dist/cdn/chunks/{ParagraphEditor-BYoZfURd.js.map → ParagraphEditor-CQJ23PXU.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BnPRnXxy.js → RichTextEditorContent-C4vxiXng.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-BnPRnXxy.js.map → RichTextEditorContent-C4vxiXng.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-C9hUeWyG.js → SaveModuleDialog-D5eddgzd.js} +2 -2
- package/dist/cdn/chunks/{SaveModuleDialog-C9hUeWyG.js.map → SaveModuleDialog-D5eddgzd.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-wFvnU3Jr.js → TitleEditor-5TkwDrPL.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-wFvnU3Jr.js.map → TitleEditor-5TkwDrPL.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DNMvDz5B.js → blockTypeIcons-CbmN4aSw.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-DNMvDz5B.js.map → blockTypeIcons-CbmN4aSw.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-DxcxIlwT.js → extensions-B3M4IqhZ.js} +4 -4
- package/dist/cdn/chunks/{extensions-DxcxIlwT.js.map → extensions-B3M4IqhZ.js.map} +1 -1
- package/dist/cdn/chunks/{features-B3qgDBHf.js → features-HBwOEo4D.js} +748 -685
- package/dist/cdn/chunks/features-HBwOEo4D.js.map +1 -0
- package/dist/cdn/chunks/{icons-kiMqh99T.js → icons-D4vTsN4p.js} +2 -2
- package/dist/cdn/chunks/{icons-kiMqh99T.js.map → icons-D4vTsN4p.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-C5ogiZ4f.js → media-library-CfExuiSG.js} +3 -3
- package/dist/cdn/chunks/{media-library-C5ogiZ4f.js.map → media-library-CfExuiSG.js.map} +1 -1
- package/dist/cdn/chunks/{quality-BftAn_AJ.js → quality-nh1R42eb.js} +2 -2
- package/dist/cdn/chunks/{quality-BftAn_AJ.js.map → quality-nh1R42eb.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-Cdlo4MVX.js → renderer-BLvlUayY.js} +4 -4
- package/dist/cdn/chunks/renderer-BLvlUayY.js.map +1 -0
- package/dist/cdn/chunks/{src-GBA8oUL2.js → src-Cks4RrLL.js} +4 -4
- package/dist/cdn/chunks/{src-GBA8oUL2.js.map → src-Cks4RrLL.js.map} +1 -1
- package/dist/cdn/chunks/{styles-B6rdq9JB.js → styles-CPCN13az.js} +10 -10
- package/dist/cdn/chunks/{styles-B6rdq9JB.js.map → styles-CPCN13az.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-zpXk5mN4.js → tiptap-C2indasq.js} +806 -811
- package/dist/cdn/chunks/tiptap-C2indasq.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +8 -7
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{dist-BReUTadj.js → dist-8TKf-Jpg.js} +2 -2
- package/dist/{dist-BE9m_i60.js → dist-BDVm2MrW.js} +1 -1
- package/dist/{dist-D1WmF8BF.js → dist-BKKo5wPC.js} +1 -1
- package/dist/{dist-DhY2di4U.js → dist-COSN3oDJ.js} +1 -1
- package/dist/{dist-CHLoeloJ.js → dist-CcX5sLpz.js} +1 -1
- package/dist/{dist-D9g4CSnm.js → dist-CgTKuIUN.js} +300 -298
- package/dist/{dist-i_Z7t67A.js → dist-Cx7IUM7J.js} +22 -15
- package/dist/{dist-Bm07Z3Es.js → dist-D6M5FAY7.js} +1 -1
- package/dist/{dist-DGEaAAIb.js → dist-DXAZUjj3.js} +1 -1
- package/dist/{dist-BXR1aBJV.js → dist-DbekZDmJ.js} +1 -1
- package/dist/{dist-DcKlLQ8d.js → dist-Dk5AdwoQ.js} +1 -1
- package/dist/{dist-BPPeDw62.js → dist-YSCPD13F.js} +1 -1
- package/dist/{extensions-B4lu0KkE.js → extensions-gpFdCinj.js} +5 -5
- package/dist/index.d.ts +37 -0
- package/dist/{keys-WVNarXg8.js → keys-DAxnnmXs.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{styles-mBSbDYeX.js → styles-CJ6WmkYL.js} +138 -138
- package/dist/templatical-editor.js +7 -6
- package/dist/{upload-BKg6hDRW.js → upload-y4gxiFp5.js} +3 -2
- package/dist/{useCloudI18n-CIKI0hCd.js → useCloudI18n-DIn74fK2.js} +1 -1
- package/dist/{useEditorCore-CaaHPKjm.js → useEditorCore-LJJNXXqC.js} +794 -731
- package/dist/{useI18n-0EU_JVe7.js → useI18n-OaMLWqhY.js} +1 -1
- package/dist/{useMergeTag-C7v6MVah.js → useMergeTag-CZMgwVvr.js} +2 -2
- package/dist/{usePopoverPosition-BDqqnMeo.js → usePopoverPosition-QDY09q9H.js} +1 -1
- package/package.json +8 -8
- package/dist/cdn/chunks/features-B3qgDBHf.js.map +0 -1
- package/dist/cdn/chunks/renderer-Cdlo4MVX.js.map +0 -1
- package/dist/cdn/chunks/tiptap-zpXk5mN4.js.map +0 -1
- package/dist/timeouts-Bmi_yePw.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiFeatureMenu-
|
|
1
|
+
{"version":3,"file":"AiFeatureMenu-B4oJlFQI.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
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-D840DIZB.js";
|
|
2
|
-
import { Bt as l, Mt as u, cn as d, ft as f } from "./features-
|
|
2
|
+
import { Bt as l, Mt as u, cn as d, ft as f } from "./features-HBwOEo4D.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-C7Ts7bT7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockIssueBadge-
|
|
1
|
+
{"version":3,"file":"BlockIssueBadge-C7Ts7bT7.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,EAAA,CAAG,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,8 +1,8 @@
|
|
|
1
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-D840DIZB.js";
|
|
2
|
-
import { Bt as k, Ct as A, E as j, Ft as M, Jt as N, Kt as ee, Mt as P, Nn as F, Qn as I, Rt as L, S as R, Sn as z, St as B, Ut as te, Vt as ne, X as V, _ as H, b as U, c as re, ct as W, d as G, f as K, ft as q, g as ie, h as ae, ht as J, in as oe, jt as Y, k as X, l as Z, m as Q, nt as se, on as ce, ot as $, p as le, pn as ue, qt as de, s as fe, sn as pe, u as me, v as he, vt as ge, x as _e, y as ve, zn as ye } from "./features-
|
|
3
|
-
import { S as be, x as xe } from "./icons-
|
|
4
|
-
import { a as Se, c as Ce, d as we, f as Te, i as Ee, l as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./styles-
|
|
5
|
-
import { d as Pe } from "./ColorPicker-
|
|
2
|
+
import { Bt as k, Ct as A, E as j, Ft as M, Jt as N, Kt as ee, Mt as P, Nn as F, Qn as I, Rt as L, S as R, Sn as z, St as B, Ut as te, Vt as ne, X as V, _ as H, b as U, c as re, ct as W, d as G, f as K, ft as q, g as ie, h as ae, ht as J, in as oe, jt as Y, k as X, l as Z, m as Q, nt as se, on as ce, ot as $, p as le, pn as ue, qt as de, s as fe, sn as pe, u as me, v as he, vt as ge, x as _e, y as ve, zn as ye } from "./features-HBwOEo4D.js";
|
|
3
|
+
import { S as be, x as xe } from "./icons-D4vTsN4p.js";
|
|
4
|
+
import { a as Se, c as Ce, d as we, f as Te, i as Ee, l as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./styles-CPCN13az.js";
|
|
5
|
+
import { d as Pe } from "./ColorPicker-DEtVX4gN.js";
|
|
6
6
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
7
7
|
function Fe(t) {
|
|
8
8
|
let { authManager: n, editor: i, history: a, conditionPreview: o, autoSave: s, onError: l } = t, u = e(null), d = c(null), p = c(null), m = !1;
|
|
@@ -175,7 +175,7 @@ function ze(e) {
|
|
|
175
175
|
let t = f(e);
|
|
176
176
|
if (t) return s?.(t), null;
|
|
177
177
|
try {
|
|
178
|
-
let { MediaApiClient: t } = await import("./src-
|
|
178
|
+
let { MediaApiClient: t } = await import("./src-Cks4RrLL.js");
|
|
179
179
|
return l(await new t(a).uploadMedia(e));
|
|
180
180
|
} catch (e) {
|
|
181
181
|
return s?.(e), null;
|
|
@@ -596,7 +596,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
596
596
|
},
|
|
597
597
|
emits: ["save"],
|
|
598
598
|
setup(e) {
|
|
599
|
-
let t = u(() => import("./CollaboratorBar-
|
|
599
|
+
let t = u(() => import("./CollaboratorBar-BsWOjOCS.js")), n = u(() => import("./features-HBwOEo4D.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-B4oJlFQI.js")), { t: a, format: o } = $();
|
|
600
600
|
return (c, l) => (i(), p("header", et, [
|
|
601
601
|
x("div", tt, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", nt, d(h(o)(h(a).header.templatesUsed, {
|
|
602
602
|
used: e.featureFlags.templateCount.value,
|
|
@@ -758,9 +758,9 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
758
758
|
"module-insert"
|
|
759
759
|
],
|
|
760
760
|
setup(e, { expose: t, emit: n }) {
|
|
761
|
-
let r = u(() => import("./features-
|
|
761
|
+
let r = u(() => import("./features-HBwOEo4D.js").then((e) => e.o)), a = u(() => import("./features-HBwOEo4D.js").then((e) => e.a)), o = u(() => import("./features-HBwOEo4D.js").then((e) => e.i)), s = u(() => import("./features-HBwOEo4D.js").then((e) => e.n)), l = u(() => import("./features-HBwOEo4D.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-D5eddgzd.js")), f = u(() => import("./ModuleBrowserModal-DySKXKFF.js")), g = u(async () => {
|
|
762
762
|
try {
|
|
763
|
-
return (await import("./src-
|
|
763
|
+
return (await import("./src-Cks4RrLL.js")).MediaLibraryModal;
|
|
764
764
|
} catch {
|
|
765
765
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
766
766
|
}
|
|
@@ -1201,4 +1201,4 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1201
1201
|
//#endregion
|
|
1202
1202
|
export { It as default };
|
|
1203
1203
|
|
|
1204
|
-
//# sourceMappingURL=CloudEditor-
|
|
1204
|
+
//# sourceMappingURL=CloudEditor-BRO-2CcF.js.map
|