@brunoalz/smartgesti-site-editor 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor/BlockSelector.js +4 -2
- package/dist/editor/BlockSelector.js.map +1 -1
- package/dist/engine/export/exportHtml.d.ts +5 -1
- package/dist/engine/export/exportHtml.d.ts.map +1 -1
- package/dist/engine/export/exportHtml.js +69 -51
- package/dist/engine/export/exportHtml.js.map +1 -1
- package/dist/engine/export/exporters/sections/BlogPostExporters.d.ts +2 -0
- package/dist/engine/export/exporters/sections/BlogPostExporters.d.ts.map +1 -1
- package/dist/engine/export/exporters/sections/BlogPostExporters.js +137 -80
- package/dist/engine/export/exporters/sections/BlogPostExporters.js.map +1 -1
- package/dist/engine/export/exporters/sections/index.d.ts.map +1 -1
- package/dist/engine/export/exporters/sections/index.js +40 -38
- package/dist/engine/export/exporters/sections/index.js.map +1 -1
- package/dist/engine/index.js +97 -95
- package/dist/engine/index.js.map +1 -1
- package/dist/engine/plugins/builtin/blog/manifest.d.ts.map +1 -1
- package/dist/engine/plugins/builtin/blog/manifest.js +50 -18
- package/dist/engine/plugins/builtin/blog/manifest.js.map +1 -1
- package/dist/engine/plugins/builtin/blog/mockContentProvider.d.ts.map +1 -1
- package/dist/engine/plugins/builtin/blog/mockContentProvider.js +13 -9
- package/dist/engine/plugins/builtin/blog/mockContentProvider.js.map +1 -1
- package/dist/engine/plugins/contentHydration.d.ts.map +1 -1
- package/dist/engine/plugins/contentHydration.js +119 -79
- package/dist/engine/plugins/contentHydration.js.map +1 -1
- package/dist/engine/plugins/types.d.ts +5 -0
- package/dist/engine/plugins/types.d.ts.map +1 -1
- package/dist/engine/registry/blocks/sections/blogCategoryFilter.d.ts +3 -0
- package/dist/engine/registry/blocks/sections/blogCategoryFilter.d.ts.map +1 -0
- package/dist/engine/registry/blocks/sections/blogCategoryFilter.js +53 -0
- package/dist/engine/registry/blocks/sections/blogCategoryFilter.js.map +1 -0
- package/dist/engine/registry/blocks/sections/blogPostDetail.d.ts.map +1 -1
- package/dist/engine/registry/blocks/sections/blogPostDetail.js +4 -1
- package/dist/engine/registry/blocks/sections/blogPostDetail.js.map +1 -1
- package/dist/engine/registry/blocks/sections/blogSearchBar.d.ts +3 -0
- package/dist/engine/registry/blocks/sections/blogSearchBar.d.ts.map +1 -0
- package/dist/engine/registry/blocks/sections/blogSearchBar.js +56 -0
- package/dist/engine/registry/blocks/sections/blogSearchBar.js.map +1 -0
- package/dist/engine/registry/blocks/sections/index.d.ts +2 -0
- package/dist/engine/registry/blocks/sections/index.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/BlogCategoryFilterRenderer.d.ts +3 -0
- package/dist/engine/render/renderers/sections/BlogCategoryFilterRenderer.d.ts.map +1 -0
- package/dist/engine/render/renderers/sections/BlogCategoryFilterRenderer.js +213 -0
- package/dist/engine/render/renderers/sections/BlogCategoryFilterRenderer.js.map +1 -0
- package/dist/engine/render/renderers/sections/BlogSearchBarRenderer.d.ts +3 -0
- package/dist/engine/render/renderers/sections/BlogSearchBarRenderer.d.ts.map +1 -0
- package/dist/engine/render/renderers/sections/BlogSearchBarRenderer.js +138 -0
- package/dist/engine/render/renderers/sections/BlogSearchBarRenderer.js.map +1 -0
- package/dist/engine/render/renderers/sections/index.js +28 -24
- package/dist/engine/render/renderers/sections/index.js.map +1 -1
- package/dist/engine/schema/siteDocument.d.ts +66 -2
- package/dist/engine/schema/siteDocument.d.ts.map +1 -1
- package/dist/engine/schema/siteDocument.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +108 -106
- package/dist/index.js.map +1 -1
- package/dist/utils/blockIcons.d.ts.map +1 -1
- package/dist/utils/blockIcons.js +2 -0
- package/dist/utils/blockIcons.js.map +1 -1
- package/dist/viewer/LandingPageViewer.d.ts +7 -2
- package/dist/viewer/LandingPageViewer.d.ts.map +1 -1
- package/dist/viewer/LandingPageViewer.js +106 -92
- package/dist/viewer/LandingPageViewer.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LandingPageEditor as
|
|
2
|
-
import { LandingPageViewer as
|
|
1
|
+
import { LandingPageEditor as re, LandingPageEditor as te } from "./editor/LandingPageEditor.js";
|
|
2
|
+
import { LandingPageViewer as ae, LandingPageViewer as ie } from "./viewer/LandingPageViewer.js";
|
|
3
3
|
import "./engine/registry/blocks/layout/container.js";
|
|
4
4
|
import "./engine/registry/blocks/layout/stack.js";
|
|
5
5
|
import "./engine/registry/blocks/layout/grid.js";
|
|
@@ -44,6 +44,8 @@ import "./engine/registry/blocks/sections/categoryCardGrid.js";
|
|
|
44
44
|
import "./engine/registry/blocks/sections/blogPostCard.js";
|
|
45
45
|
import "./engine/registry/blocks/sections/blogPostGrid.js";
|
|
46
46
|
import "./engine/registry/blocks/sections/blogPostDetail.js";
|
|
47
|
+
import "./engine/registry/blocks/sections/blogCategoryFilter.js";
|
|
48
|
+
import "./engine/registry/blocks/sections/blogSearchBar.js";
|
|
47
49
|
import "./engine/registry/blocks/sections/productShowcase.js";
|
|
48
50
|
import "./engine/registry/blocks/sections/aboutSection.js";
|
|
49
51
|
import "./engine/registry/blocks/sections/contactSection.js";
|
|
@@ -51,110 +53,110 @@ import "./engine/registry/blocks/forms/form.js";
|
|
|
51
53
|
import "./engine/registry/blocks/forms/input.js";
|
|
52
54
|
import "./engine/registry/blocks/forms/textarea.js";
|
|
53
55
|
import "./engine/registry/blocks/forms/select.js";
|
|
54
|
-
import { componentRegistry as
|
|
55
|
-
import { createEmptySiteDocument as
|
|
56
|
-
import { corporateThemeTokens as
|
|
57
|
-
import { RenderNode as
|
|
58
|
-
import { RenderPage as
|
|
59
|
-
import { clearHtmlCache as
|
|
60
|
-
import { isSafeUrl as
|
|
61
|
-
import { Preview as
|
|
62
|
-
import { applyPatch as
|
|
63
|
-
import { HistoryManager as
|
|
64
|
-
import { PatchBuilder as
|
|
65
|
-
import { applyOverrides as
|
|
66
|
-
import { CAROUSEL_PLACEHOLDER_IMAGES as
|
|
67
|
-
import { getNavbarVariation as
|
|
68
|
-
import { generateCompleteLandingPage as
|
|
69
|
-
import { evaluateShowWhen as
|
|
70
|
-
import { pluginRegistry as
|
|
71
|
-
import { hydratePageWithContent as
|
|
72
|
-
import { matchDynamicPage as
|
|
73
|
-
import { blogPlugin as
|
|
74
|
-
import { mockBlogContentProvider as
|
|
75
|
-
import { createThemeStyle as
|
|
76
|
-
import { renderBlockNode as
|
|
77
|
-
import { darkTheme as
|
|
56
|
+
import { componentRegistry as pe, componentRegistry as ne } from "./engine/registry/registry.js";
|
|
57
|
+
import { createEmptySiteDocument as ge, createEmptySiteDocument as le } from "./engine/schema/siteDocument.js";
|
|
58
|
+
import { corporateThemeTokens as de, darkThemeTokens as Pe, defaultComponentTokens as fe, defaultEffectTokens as he, defaultLayoutTokens as xe, defaultThemeTokens as Se, generateThemeCSSVariables as Te, gradientDirectionMap as ye, gradientThemeTokens as ue, playfulThemeTokens as Ve, radiusScaleMap as ke, shadowScaleMap as Ee, spacingScaleMap as Le } from "./engine/schema/themeTokens.js";
|
|
59
|
+
import { RenderNode as Me } from "./engine/render/renderNode.js";
|
|
60
|
+
import { RenderPage as be, renderPage as ve } from "./engine/render/renderPage.js";
|
|
61
|
+
import { clearHtmlCache as Ae, exportBlockToHtml as De, exportDocumentToHtml as we, exportPageToHtml as Oe, generateAssetsManifest as _e } from "./engine/export/exportHtml.js";
|
|
62
|
+
import { isSafeUrl as Ne, sanitizeHtml as Be } from "./engine/export/sanitizeHtml.js";
|
|
63
|
+
import { Preview as Ue, Preview as je } from "./engine/preview/Preview.js";
|
|
64
|
+
import { applyPatch as ze, createAddPatch as Fe, createCopyPatch as Ke, createMovePatch as qe, createRemovePatch as Je, createReplacePatch as Qe } from "./engine/patch/applyPatch.js";
|
|
65
|
+
import { HistoryManager as Ye, createHistoryManager as Ze } from "./engine/patch/history.js";
|
|
66
|
+
import { PatchBuilder as er } from "./engine/patch/PatchBuilder.js";
|
|
67
|
+
import { applyOverrides as tr, classicPreset as or, cleanPreset as ar, corporatePreset as ir, getAllPresets as mr, getPreset as pr, glassPreset as nr, minimalPreset as sr, neonPreset as gr, pastelPreset as lr, playfulKidsPreset as cr, themePresets as dr, validateContrast as Pr } from "./engine/presets/themePresets.js";
|
|
68
|
+
import { CAROUSEL_PLACEHOLDER_IMAGES as hr, HERO_IMAGE_NAMES as xr, PLACEHOLDER_IMAGE_URL as Sr, getHeroVariation as Tr, heroVariationIds as yr, heroVariations as ur } from "./engine/presets/heroVariations.js";
|
|
69
|
+
import { getNavbarVariation as kr, navbarVariationIds as Er, navbarVariations as Lr } from "./engine/presets/navbarVariations.js";
|
|
70
|
+
import { generateCompleteLandingPage as Mr, generateModernLandingPage as Rr, generatePatchesForLandingPage as br } from "./engine/generators/generateLandingPage.js";
|
|
71
|
+
import { evaluateShowWhen as Hr } from "./engine/shared/showWhen.js";
|
|
72
|
+
import { pluginRegistry as Dr } from "./engine/plugins/pluginRegistry.js";
|
|
73
|
+
import { hydratePageWithContent as Or } from "./engine/plugins/contentHydration.js";
|
|
74
|
+
import { matchDynamicPage as Ir } from "./engine/plugins/dynamicPageResolver.js";
|
|
75
|
+
import { blogPlugin as Br } from "./engine/plugins/builtin/blog/manifest.js";
|
|
76
|
+
import { mockBlogContentProvider as Ur } from "./engine/plugins/builtin/blog/mockContentProvider.js";
|
|
77
|
+
import { createThemeStyle as Wr, generateCSSVariables as zr, generateCSSVariablesObject as Fr, mergeThemeTokens as Kr } from "./engine/theme/generateCSSVariables.js";
|
|
78
|
+
import { renderBlockNode as Jr } from "./engine/render/renderNodeImpl.js";
|
|
79
|
+
import { darkTheme as Xr, defaultTheme as Yr } from "./engine/theme/defaultTheme.js";
|
|
78
80
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
81
|
+
hr as CAROUSEL_PLACEHOLDER_IMAGES,
|
|
82
|
+
xr as HERO_IMAGE_NAMES,
|
|
83
|
+
Ye as HistoryManager,
|
|
84
|
+
re as LandingPageEditor,
|
|
85
|
+
te as LandingPageEditorV2,
|
|
86
|
+
ae as LandingPageViewer,
|
|
87
|
+
ie as LandingPageViewerV2,
|
|
88
|
+
Sr as PLACEHOLDER_IMAGE_URL,
|
|
89
|
+
er as PatchBuilder,
|
|
90
|
+
Ue as Preview,
|
|
91
|
+
je as PreviewV2,
|
|
92
|
+
Me as RenderNode,
|
|
93
|
+
be as RenderPage,
|
|
94
|
+
tr as applyOverrides,
|
|
95
|
+
ze as applyPatch,
|
|
96
|
+
pe as blockRegistry,
|
|
97
|
+
Br as blogPlugin,
|
|
98
|
+
or as classicPreset,
|
|
99
|
+
ar as cleanPreset,
|
|
100
|
+
Ae as clearHtmlCache,
|
|
101
|
+
ne as componentRegistry,
|
|
102
|
+
ir as corporatePreset,
|
|
103
|
+
de as corporateThemeTokens,
|
|
104
|
+
Fe as createAddPatch,
|
|
105
|
+
Ke as createCopyPatch,
|
|
106
|
+
ge as createEmptySiteDocument,
|
|
107
|
+
le as createEmptySiteDocumentV2,
|
|
108
|
+
Ze as createHistoryManager,
|
|
109
|
+
qe as createMovePatch,
|
|
110
|
+
Je as createRemovePatch,
|
|
111
|
+
Qe as createReplacePatch,
|
|
112
|
+
Wr as createSiteThemeStyle,
|
|
113
|
+
Pe as darkThemeTokens,
|
|
114
|
+
fe as defaultComponentTokens,
|
|
115
|
+
he as defaultEffectTokens,
|
|
116
|
+
xe as defaultLayoutTokens,
|
|
117
|
+
Se as defaultThemeTokens,
|
|
118
|
+
Hr as evaluateShowWhen,
|
|
119
|
+
De as exportBlockToHtml,
|
|
120
|
+
we as exportDocumentToHtml,
|
|
121
|
+
Oe as exportPageToHtml,
|
|
122
|
+
_e as generateAssetsManifest,
|
|
123
|
+
Mr as generateCompleteLandingPage,
|
|
124
|
+
Rr as generateModernLandingPage,
|
|
125
|
+
br as generatePatchesForLandingPage,
|
|
126
|
+
zr as generateSiteCSSVariables,
|
|
127
|
+
Fr as generateSiteCSSVariablesObject,
|
|
128
|
+
Te as generateThemeCSSVariables,
|
|
129
|
+
mr as getAllPresets,
|
|
130
|
+
Tr as getHeroVariation,
|
|
131
|
+
kr as getNavbarVariation,
|
|
132
|
+
pr as getPreset,
|
|
133
|
+
nr as glassPreset,
|
|
134
|
+
ye as gradientDirectionMap,
|
|
135
|
+
ue as gradientThemeTokens,
|
|
136
|
+
yr as heroVariationIds,
|
|
137
|
+
ur as heroVariations,
|
|
138
|
+
Or as hydratePageWithContent,
|
|
139
|
+
Ne as isSafeUrl,
|
|
140
|
+
Ir as matchDynamicPage,
|
|
141
|
+
Kr as mergeSiteThemeTokens,
|
|
142
|
+
sr as minimalPreset,
|
|
143
|
+
Ur as mockBlogContentProvider,
|
|
144
|
+
Er as navbarVariationIds,
|
|
145
|
+
Lr as navbarVariations,
|
|
146
|
+
gr as neonPreset,
|
|
147
|
+
lr as pastelPreset,
|
|
148
|
+
cr as playfulKidsPreset,
|
|
149
|
+
Ve as playfulThemeTokens,
|
|
150
|
+
Dr as pluginRegistry,
|
|
151
|
+
ke as radiusScaleMap,
|
|
152
|
+
Jr as renderNode,
|
|
153
|
+
ve as renderPage,
|
|
154
|
+
Be as sanitizeHtml,
|
|
155
|
+
Ee as shadowScaleMap,
|
|
156
|
+
Xr as siteDarkTheme,
|
|
157
|
+
Yr as siteDefaultTheme,
|
|
158
|
+
Le as spacingScaleMap,
|
|
159
|
+
dr as themePresets,
|
|
160
|
+
Pr as validateContrast
|
|
159
161
|
};
|
|
160
162
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockIcons.d.ts","sourceRoot":"","sources":["../../src/utils/blockIcons.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"blockIcons.d.ts","sourceRoot":"","sources":["../../src/utils/blockIcons.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AA0DtC;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAEpD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOrD"}
|
package/dist/utils/blockIcons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockIcons.js","sources":["../../src/utils/blockIcons.ts"],"sourcesContent":["/**\n * Mapeamento de ícones para cada tipo de bloco\n * Usado no BlockPalette e BlockHeader\n */\n\nimport { BlockType } from \"../engine\";\n\nconst BLOCK_ICONS: Record<string, string> = {\n // Layout\n container: \"📦\",\n stack: \"📚\",\n grid: \"⊞\",\n box: \"☐\",\n section: \"▦\",\n spacer: \"↕\",\n\n // Conteúdo\n heading: \"H\",\n text: \"T\",\n image: \"🖼️\",\n video: \"🎥\",\n icon: \"★\",\n badge: \"🎟️\",\n avatar: \"👤\",\n socialLinks: \"🌐\",\n\n // Interativos\n button: \"🔘\",\n link: \"🔗\",\n divider: \"─\",\n card: \"🃏\",\n\n // Seções\n hero: \"🏆\",\n feature: \"✨\",\n featureGrid: \"⭐\",\n pricing: \"💰\",\n pricingCard: \"💳\",\n testimonial: \"💬\",\n testimonialGrid: \"🗨️\",\n courseCardGrid: \"📚\",\n categoryCardGrid: \"📂\",\n faq: \"❓\",\n faqItem: \"📝\",\n cta: \"📣\",\n stats: \"📊\",\n statItem: \"#\",\n logoCloud: \"🏂\",\n navbar: \"☰\",\n footer: \"📋\",\n productShowcase: \"🛍️\",\n aboutSection: \"ℹ️\",\n contactSection: \"📬\",\n\n // Formulários\n form: \"📋\",\n input: \"✏️\",\n textarea: \"📑\",\n formSelect: \"👇\",\n};\n\n/**\n * Retorna o ícone emoji para um tipo de bloco\n */\nexport function getBlockIcon(type: BlockType): string {\n return BLOCK_ICONS[type] || \"•\";\n}\n\n/**\n * Retorna as iniciais do nome do bloco (fallback se não houver ícone)\n */\nexport function getBlockInitials(name: string): string {\n return name\n .split(\" \")\n .map((word) => word[0])\n .join(\"\")\n .toUpperCase()\n .slice(0, 2);\n}\n"],"names":["BLOCK_ICONS","getBlockIcon","type"],"mappings":"AAOA,MAAMA,IAAsC;AAAA;AAAA,EAE1C,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,EACN,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AAAA;AAAA,EAGR,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,aAAa;AAAA;AAAA,EAGb,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,SAAS;AAAA,EACT,MAAM;AAAA;AAAA,EAGN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,aAAa;AAAA,EACb,SAAS;AAAA,EACT,aAAa;AAAA,EACb,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,KAAK;AAAA,EACL,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,gBAAgB;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"blockIcons.js","sources":["../../src/utils/blockIcons.ts"],"sourcesContent":["/**\n * Mapeamento de ícones para cada tipo de bloco\n * Usado no BlockPalette e BlockHeader\n */\n\nimport { BlockType } from \"../engine\";\n\nconst BLOCK_ICONS: Record<string, string> = {\n // Layout\n container: \"📦\",\n stack: \"📚\",\n grid: \"⊞\",\n box: \"☐\",\n section: \"▦\",\n spacer: \"↕\",\n\n // Conteúdo\n heading: \"H\",\n text: \"T\",\n image: \"🖼️\",\n video: \"🎥\",\n icon: \"★\",\n badge: \"🎟️\",\n avatar: \"👤\",\n socialLinks: \"🌐\",\n\n // Interativos\n button: \"🔘\",\n link: \"🔗\",\n divider: \"─\",\n card: \"🃏\",\n\n // Seções\n hero: \"🏆\",\n feature: \"✨\",\n featureGrid: \"⭐\",\n pricing: \"💰\",\n pricingCard: \"💳\",\n testimonial: \"💬\",\n testimonialGrid: \"🗨️\",\n courseCardGrid: \"📚\",\n categoryCardGrid: \"📂\",\n faq: \"❓\",\n faqItem: \"📝\",\n cta: \"📣\",\n stats: \"📊\",\n statItem: \"#\",\n logoCloud: \"🏂\",\n navbar: \"☰\",\n footer: \"📋\",\n productShowcase: \"🛍️\",\n aboutSection: \"ℹ️\",\n contactSection: \"📬\",\n blogCategoryFilter: \"🏷️\",\n blogSearchBar: \"🔍\",\n\n // Formulários\n form: \"📋\",\n input: \"✏️\",\n textarea: \"📑\",\n formSelect: \"👇\",\n};\n\n/**\n * Retorna o ícone emoji para um tipo de bloco\n */\nexport function getBlockIcon(type: BlockType): string {\n return BLOCK_ICONS[type] || \"•\";\n}\n\n/**\n * Retorna as iniciais do nome do bloco (fallback se não houver ícone)\n */\nexport function getBlockInitials(name: string): string {\n return name\n .split(\" \")\n .map((word) => word[0])\n .join(\"\")\n .toUpperCase()\n .slice(0, 2);\n}\n"],"names":["BLOCK_ICONS","getBlockIcon","type"],"mappings":"AAOA,MAAMA,IAAsC;AAAA;AAAA,EAE1C,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,EACN,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AAAA;AAAA,EAGR,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,aAAa;AAAA;AAAA,EAGb,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,SAAS;AAAA,EACT,MAAM;AAAA;AAAA,EAGN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,aAAa;AAAA,EACb,SAAS;AAAA,EACT,aAAa;AAAA,EACb,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,KAAK;AAAA,EACL,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,oBAAoB;AAAA,EACpB,eAAe;AAAA;AAAA,EAGf,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,YAAY;AACd;AAKO,SAASC,EAAaC,GAAyB;AACpD,SAAOF,EAAYE,CAAI,KAAK;AAC9B;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentProvider } from '../engine/plugins/types';
|
|
1
|
+
import { ContentProvider, ContentListParams } from '../engine/plugins/types';
|
|
2
2
|
export interface SchoolData {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
@@ -20,6 +20,11 @@ interface LandingPageViewerProps {
|
|
|
20
20
|
* Supplied by the consumer project to connect plugin data to the viewer.
|
|
21
21
|
*/
|
|
22
22
|
contentProviders?: ContentProvider[];
|
|
23
|
+
/**
|
|
24
|
+
* Params for content list filtering (search, category).
|
|
25
|
+
* Consumer extracts these from URL query params (e.g., ?busca=X&categoria=Y).
|
|
26
|
+
*/
|
|
27
|
+
contentListParams?: ContentListParams;
|
|
23
28
|
/**
|
|
24
29
|
* Callback for internal navigation (link clicks inside iframe).
|
|
25
30
|
* Receives the href from clicked links. Consumer should use router navigation.
|
|
@@ -27,6 +32,6 @@ interface LandingPageViewerProps {
|
|
|
27
32
|
onNavigate?: (href: string) => void;
|
|
28
33
|
}
|
|
29
34
|
export declare function LandingPageViewer({ siteId, apiBaseUrl, projectId, pageSlug, schoolSlug, schoolData: _schoolData, // reservado para header/navbar dinâmico (logo, nome da escola)
|
|
30
|
-
contentProviders, onNavigate, }: LandingPageViewerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
35
|
+
contentProviders, contentListParams, onNavigate, }: LandingPageViewerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
31
36
|
export {};
|
|
32
37
|
//# sourceMappingURL=LandingPageViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LandingPageViewer.d.ts","sourceRoot":"","sources":["../../src/viewer/LandingPageViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"LandingPageViewer.d.ts","sourceRoot":"","sources":["../../src/viewer/LandingPageViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAgBlF,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,sBAAsB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAeD,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,UAAU,EACV,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EAAE,WAAW,EAAE,+DAA+D;AACxF,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,GACX,EAAE,sBAAsB,kDAwYxB"}
|