@aforoai/storefront-widgets 1.0.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.
@@ -0,0 +1,22 @@
1
+ export { A as AforoEmbed } from '../AforoEmbed-BqQOFsl3.cjs';
2
+ import { aD as WidgetMountConfig } from '../types-Dm6cp_Cc.cjs';
3
+
4
+ /**
5
+ * @aforoai/storefront-widgets/vanilla — vanilla-JS adapter (FR-TIER-3,
6
+ * FR-SDK-5).
7
+ *
8
+ * For customers who don't use React directly. Exposes:
9
+ * - `AforoEmbed.mount(element, config)` (also available from root export)
10
+ * - `mountWidget(element, config)` (functional alias)
11
+ *
12
+ * Internally calls into the React reconciler to render the widget shell,
13
+ * just like the script-tag loader does. This keeps a single rendering path
14
+ * (Prompts 4-7 only need to wire one set of React components — the vanilla
15
+ * adapter inherits the upgrade automatically).
16
+ */
17
+
18
+ /** Functional alias for the imperative mount API. */
19
+ declare function mountWidget(element: HTMLElement, config: WidgetMountConfig): boolean;
20
+ declare function unmountWidget(element: HTMLElement): boolean;
21
+
22
+ export { mountWidget, unmountWidget };
@@ -0,0 +1,22 @@
1
+ export { A as AforoEmbed } from '../AforoEmbed-CmqjlYlt.js';
2
+ import { aD as WidgetMountConfig } from '../types-Dm6cp_Cc.js';
3
+
4
+ /**
5
+ * @aforoai/storefront-widgets/vanilla — vanilla-JS adapter (FR-TIER-3,
6
+ * FR-SDK-5).
7
+ *
8
+ * For customers who don't use React directly. Exposes:
9
+ * - `AforoEmbed.mount(element, config)` (also available from root export)
10
+ * - `mountWidget(element, config)` (functional alias)
11
+ *
12
+ * Internally calls into the React reconciler to render the widget shell,
13
+ * just like the script-tag loader does. This keeps a single rendering path
14
+ * (Prompts 4-7 only need to wire one set of React components — the vanilla
15
+ * adapter inherits the upgrade automatically).
16
+ */
17
+
18
+ /** Functional alias for the imperative mount API. */
19
+ declare function mountWidget(element: HTMLElement, config: WidgetMountConfig): boolean;
20
+ declare function unmountWidget(element: HTMLElement): boolean;
21
+
22
+ export { mountWidget, unmountWidget };