@frontify/app-bridge-theme
Advanced tools
Comparing version 0.0.0-alpha.15 to 0.0.0-alpha.16
@@ -367,2 +367,4 @@ import { Simplify } from 'type-fest'; | ||
export declare const useEnabledFeatures: (appBridge: AppBridgeTheme) => readonly string[]; | ||
export declare const useIsEditing: (appBridge: AppBridgeTheme) => Readonly<boolean>; | ||
@@ -369,0 +371,0 @@ |
@@ -5,3 +5,3 @@ import { useSyncExternalStore as e, useEffect as o } from "react"; | ||
payload: t | ||
}), g = (t, n) => { | ||
}), r = (t, n) => { | ||
const a = e( | ||
@@ -14,9 +14,9 @@ t.context("documentNavigation").subscribe, | ||
}, [t, n]), a ? a[n.id()] ?? [] : []; | ||
}, r = (t) => e(t.context("isEditing").subscribe, t.context("isEditing").get), l = (t) => e( | ||
}, g = (t) => e(t.context("isEditing").subscribe, t.context("isEditing").get), l = (t) => e( | ||
t.context("currentLanguage").subscribe, | ||
t.context("currentLanguage").get | ||
), m = (t) => e( | ||
), x = (t) => e( | ||
t.context("defaultLanguage").subscribe, | ||
t.context("defaultLanguage").get | ||
), x = (t) => e(t.context("languages").subscribe, t.context("languages").get), b = (t) => e( | ||
), m = (t) => e(t.context("languages").subscribe, t.context("languages").get), b = (t) => e( | ||
t.context("portalNavigation").subscribe, | ||
@@ -27,15 +27,18 @@ t.context("portalNavigation").get | ||
return { templateSettings: n.templateSettings, templateAssets: n.templateAssets }; | ||
}, N = (t) => e(t.context("template").subscribe, t.context("template").get), T = () => ({ name: "openAiBrandAssistantDialog" }), A = () => ({ name: "closeAiBrandAssistantDialog" }), D = () => ({ | ||
}, N = (t) => e(t.context("template").subscribe, t.context("template").get), T = (t) => e( | ||
t.context("enabledFeatures").subscribe, | ||
t.context("enabledFeatures").get | ||
), d = () => ({ name: "openAiBrandAssistantDialog" }), A = () => ({ name: "closeAiBrandAssistantDialog" }), D = () => ({ | ||
name: "openSearchDialog" | ||
}), S = () => ({ | ||
}), E = () => ({ | ||
name: "closeSearchDialog" | ||
}), d = (t) => ({ | ||
}), S = (t) => ({ | ||
name: "navigate", | ||
payload: t | ||
}), E = (t) => ({ | ||
}), h = (t) => ({ | ||
name: "navigateToDocumentSection", | ||
payload: t | ||
}); | ||
var c = /* @__PURE__ */ ((t) => (t.TextAndIcon = "ICON_TEXT", t.IconOnly = "ICON", t.TextOnly = "TEXT", t))(c || {}), i = /* @__PURE__ */ ((t) => (t.Right = "RIGHT", t.Left = "LEFT", t))(i || {}); | ||
const h = { | ||
var c = /* @__PURE__ */ ((t) => (t.TextAndIcon = "ICON_TEXT", t.IconOnly = "ICON", t.TextOnly = "TEXT", t))(c || {}), u = /* @__PURE__ */ ((t) => (t.Right = "RIGHT", t.Left = "LEFT", t))(u || {}); | ||
const C = { | ||
block: "BLOCK", | ||
@@ -47,17 +50,18 @@ section: "SECTION", | ||
export { | ||
h as GuidelineSearchResultTypeMap, | ||
C as GuidelineSearchResultTypeMap, | ||
c as LinkSettingsDisplay, | ||
i as LinkSettingsIconPosition, | ||
u as LinkSettingsIconPosition, | ||
A as closeAiBrandAssistantDialog, | ||
S as closeSearchDialog, | ||
E as closeSearchDialog, | ||
s as hydrateContextDocumentNavigation, | ||
d as navigate, | ||
E as navigateToDocumentSection, | ||
T as openAiBrandAssistantDialog, | ||
S as navigate, | ||
h as navigateToDocumentSection, | ||
d as openAiBrandAssistantDialog, | ||
D as openSearchDialog, | ||
l as useCurrentLanguage, | ||
m as useDefaultLanguage, | ||
g as useDocumentNavigation, | ||
r as useIsEditing, | ||
x as useLanguages, | ||
x as useDefaultLanguage, | ||
r as useDocumentNavigation, | ||
T as useEnabledFeatures, | ||
g as useIsEditing, | ||
m as useLanguages, | ||
b as usePortalNavigation, | ||
@@ -64,0 +68,0 @@ v as useSettings, |
{ | ||
"name": "@frontify/app-bridge-theme", | ||
"type": "module", | ||
"version": "0.0.0-alpha.15", | ||
"version": "0.0.0-alpha.16", | ||
"description": "Package to establish communication between Frontify and themes", | ||
@@ -6,0 +6,0 @@ "author": "Frontify Developers <developers@frontify.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
47974
396