@fayz-ai/plugin-marketing 0.13.45 → 0.14.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/{MarketingPage-BE54EZHP.js → MarketingPage-7TCLISRS.js} +10 -7
- package/dist/MarketingPage-7TCLISRS.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/views/MarketingPage.d.ts +8 -1
- package/dist/views/MarketingPage.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/MarketingPage-BE54EZHP.js.map +0 -1
|
@@ -2838,7 +2838,10 @@ function buildNav(config, view, navigate, hasCadenceSurface, t) {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
return items;
|
|
2840
2840
|
}
|
|
2841
|
-
function
|
|
2841
|
+
function Injected({ surface: Surface, fallback }) {
|
|
2842
|
+
return Surface ? /* @__PURE__ */ jsx(React11.Suspense, { fallback: null, children: /* @__PURE__ */ jsx(Surface, {}) }) : fallback;
|
|
2843
|
+
}
|
|
2844
|
+
function MarketingPage({ config, provider, store, contentProvider, contentStore, cadenceSurface, surfaces }) {
|
|
2842
2845
|
const t = useTranslation();
|
|
2843
2846
|
const { view, direction, navigate } = useModuleNavigation("/marketing", {
|
|
2844
2847
|
overview: 0,
|
|
@@ -2873,7 +2876,7 @@ function MarketingPage({ config, provider, store, contentProvider, contentStore,
|
|
|
2873
2876
|
const renderView = createViewRouter([
|
|
2874
2877
|
{ id: "channels", render: () => /* @__PURE__ */ jsx(ChannelsView, { onOpen: (id) => navigate(`channel-detail:${id}`) }) },
|
|
2875
2878
|
{ id: "channel-detail", render: ({ id }) => /* @__PURE__ */ jsx(ChannelDetailView, { channelId: id, onBack: () => navigate("channels") }) },
|
|
2876
|
-
{ id: "campaigns", render: () => /* @__PURE__ */ jsx(CampaignsView, {}) },
|
|
2879
|
+
{ id: "campaigns", render: () => /* @__PURE__ */ jsx(Injected, { surface: surfaces?.campaigns, fallback: /* @__PURE__ */ jsx(CampaignsView, {}) }) },
|
|
2877
2880
|
{ id: "funnel", render: () => /* @__PURE__ */ jsx(FunnelView, {}) },
|
|
2878
2881
|
{ id: "cadences", render: () => /* @__PURE__ */ jsx(CadencesView, { surface: cadenceSurface }) },
|
|
2879
2882
|
{ id: "landing-pages", render: () => /* @__PURE__ */ jsx(LandingPagesView, {}) },
|
|
@@ -2886,9 +2889,9 @@ function MarketingPage({ config, provider, store, contentProvider, contentStore,
|
|
|
2886
2889
|
{ id: "blog-cat-new", render: () => /* @__PURE__ */ jsx(BlogEntityForm, { entity: blogCategoryEntity, parentLabel: config.labels.blogCategories ?? t("marketing.nav.blogCategories"), onDone: () => navigate("blog") }) },
|
|
2887
2890
|
{ id: "blog-cat", render: ({ id }) => /* @__PURE__ */ jsx(BlogEntityForm, { entity: blogCategoryEntity, editId: id, parentLabel: config.labels.blogCategories ?? t("marketing.nav.blogCategories"), onDone: () => navigate("blog") }) },
|
|
2888
2891
|
// As telas que ainda não existem — ver ./GapScreens.
|
|
2889
|
-
{ id: "segments", render: () => /* @__PURE__ */ jsx(SegmentsView, {}) },
|
|
2890
|
-
{ id: "message-templates", render: () => /* @__PURE__ */ jsx(MessageTemplatesView, {}) },
|
|
2891
|
-
{ id: "send-history", render: () => /* @__PURE__ */ jsx(SendHistoryView, {}) },
|
|
2892
|
+
{ id: "segments", render: () => /* @__PURE__ */ jsx(Injected, { surface: surfaces?.segments, fallback: /* @__PURE__ */ jsx(SegmentsView, {}) }) },
|
|
2893
|
+
{ id: "message-templates", render: () => /* @__PURE__ */ jsx(Injected, { surface: surfaces?.messageTemplates, fallback: /* @__PURE__ */ jsx(MessageTemplatesView, {}) }) },
|
|
2894
|
+
{ id: "send-history", render: () => /* @__PURE__ */ jsx(Injected, { surface: surfaces?.sendHistory, fallback: /* @__PURE__ */ jsx(SendHistoryView, {}) }) },
|
|
2892
2895
|
{ id: "quick-triggers", render: () => /* @__PURE__ */ jsx(QuickTriggersView, {}) },
|
|
2893
2896
|
{ id: "brand", render: () => /* @__PURE__ */ jsx(BrandView, {}) },
|
|
2894
2897
|
{ id: "authorized-images", render: () => /* @__PURE__ */ jsx(AuthorizedImagesView, {}) },
|
|
@@ -2917,5 +2920,5 @@ function MarketingPage({ config, provider, store, contentProvider, contentStore,
|
|
|
2917
2920
|
}
|
|
2918
2921
|
|
|
2919
2922
|
export { MarketingPage };
|
|
2920
|
-
//# sourceMappingURL=MarketingPage-
|
|
2921
|
-
//# sourceMappingURL=MarketingPage-
|
|
2923
|
+
//# sourceMappingURL=MarketingPage-7TCLISRS.js.map
|
|
2924
|
+
//# sourceMappingURL=MarketingPage-7TCLISRS.js.map
|