@embeddable/sdk 1.0.2 → 1.0.3
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/README.md
CHANGED
|
@@ -61,6 +61,11 @@ function App() {
|
|
|
61
61
|
widgetId: 'my-widget-123',
|
|
62
62
|
version: '1.0.0', // 'dev' | 'latest' | string
|
|
63
63
|
mode: 'embeddable', // 'embeddable' | 'standalone' | 'preview'
|
|
64
|
+
ignoreCache: false,
|
|
65
|
+
lazyLoad: false,
|
|
66
|
+
loader: true,
|
|
67
|
+
_containerId: 'my-container-id',
|
|
68
|
+
_shadowRoot: undefined,
|
|
64
69
|
};
|
|
65
70
|
|
|
66
71
|
return (
|
|
@@ -87,6 +92,9 @@ function WidgetComponent() {
|
|
|
87
92
|
<h2>Widget: {config.widgetId}</h2>
|
|
88
93
|
<p>Version: {config.version}</p>
|
|
89
94
|
<p>Mode: {config.mode}</p>
|
|
95
|
+
<p>Ignore Cache: {config.ignoreCache ? 'Yes' : 'No'}</p>
|
|
96
|
+
<p>Lazy Load: {config.lazyLoad ? 'Yes' : 'No'}</p>
|
|
97
|
+
<p>Show Loader: {config.loader ? 'Yes' : 'No'}</p>
|
|
90
98
|
{/* Your widget content */}
|
|
91
99
|
</div>
|
|
92
100
|
);
|
|
@@ -5,7 +5,7 @@ interface EmbeddableContextType {
|
|
|
5
5
|
config: EmbeddableConfig | null;
|
|
6
6
|
}
|
|
7
7
|
interface EmbeddableProviderProps {
|
|
8
|
-
config
|
|
8
|
+
config?: EmbeddableConfig;
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}
|
|
11
11
|
export declare function EmbeddableProvider({ config, children }: EmbeddableProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddableProvider.d.ts","sourceRoot":"","sources":["../../src/context/EmbeddableProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,UAAU,qBAAqB;IAC7B,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACjC;AAiBD,UAAU,uBAAuB;IAC/B,MAAM,EAAE,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"EmbeddableProvider.d.ts","sourceRoot":"","sources":["../../src/context/EmbeddableProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,UAAU,qBAAqB;IAC7B,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACjC;AAiBD,UAAU,uBAAuB;IAC/B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,uBAAuB,2CAM/E;AAED,wBAAgB,oBAAoB,IAAI,qBAAqB,CAM5D"}
|