@fluid-app/rep-core 0.1.0 → 0.1.2
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/chunk-2IFFXFJL.js +621 -0
- package/dist/chunk-2IFFXFJL.js.map +1 -0
- package/dist/chunk-2SIG55BD.cjs +131 -0
- package/dist/chunk-2SIG55BD.cjs.map +1 -0
- package/dist/chunk-2SPTFZRC.js +72 -0
- package/dist/chunk-2SPTFZRC.js.map +1 -0
- package/dist/chunk-3I5Y3PEO.js +23 -0
- package/dist/chunk-3I5Y3PEO.js.map +1 -0
- package/dist/chunk-46PUWB7C.cjs +69 -0
- package/dist/chunk-46PUWB7C.cjs.map +1 -0
- package/dist/chunk-4WFDFEHC.js +134 -0
- package/dist/chunk-4WFDFEHC.js.map +1 -0
- package/dist/chunk-5NYM4UTW.cjs +58 -0
- package/dist/chunk-5NYM4UTW.cjs.map +1 -0
- package/dist/chunk-BWHUEED3.cjs +32 -0
- package/dist/chunk-BWHUEED3.cjs.map +1 -0
- package/dist/chunk-CMXYKDHC.cjs +666 -0
- package/dist/chunk-CMXYKDHC.cjs.map +1 -0
- package/dist/chunk-ESYAYVNK.cjs +136 -0
- package/dist/chunk-ESYAYVNK.cjs.map +1 -0
- package/dist/{chunk-6QLUUNJL.cjs → chunk-GDY76JA6.cjs} +2 -2
- package/dist/chunk-GDY76JA6.cjs.map +1 -0
- package/dist/chunk-HGVSPZEL.cjs +119 -0
- package/dist/chunk-HGVSPZEL.cjs.map +1 -0
- package/dist/chunk-HIDJYVKJ.js +54 -0
- package/dist/chunk-HIDJYVKJ.js.map +1 -0
- package/dist/chunk-HUR3MSO4.js +25 -0
- package/dist/chunk-HUR3MSO4.js.map +1 -0
- package/dist/chunk-LVLNO2YQ.cjs +28 -0
- package/dist/chunk-LVLNO2YQ.cjs.map +1 -0
- package/dist/chunk-N2K6W7FX.cjs +169 -0
- package/dist/chunk-N2K6W7FX.cjs.map +1 -0
- package/dist/chunk-NAMNXRI5.js +129 -0
- package/dist/chunk-NAMNXRI5.js.map +1 -0
- package/dist/chunk-OWU7MFJ2.cjs +15 -0
- package/dist/chunk-OWU7MFJ2.cjs.map +1 -0
- package/dist/chunk-PVTQWD4I.js +166 -0
- package/dist/chunk-PVTQWD4I.js.map +1 -0
- package/dist/chunk-PZ6BM57A.js +30 -0
- package/dist/chunk-PZ6BM57A.js.map +1 -0
- package/dist/chunk-SJQPHJL4.cjs +26 -0
- package/dist/chunk-SJQPHJL4.cjs.map +1 -0
- package/dist/chunk-V7D3QUE6.cjs +42 -0
- package/dist/chunk-V7D3QUE6.cjs.map +1 -0
- package/dist/chunk-VRF7QEID.js +67 -0
- package/dist/chunk-VRF7QEID.js.map +1 -0
- package/dist/chunk-WASVMCZB.js +13 -0
- package/dist/chunk-WASVMCZB.js.map +1 -0
- package/dist/chunk-WYOHFNNW.js +117 -0
- package/dist/chunk-WYOHFNNW.js.map +1 -0
- package/dist/chunk-XCNBVV4T.js +38 -0
- package/dist/chunk-XCNBVV4T.js.map +1 -0
- package/dist/{chunk-EWR5EIBP.js → chunk-YKF5ZFF5.js} +2 -2
- package/dist/chunk-YKF5ZFF5.js.map +1 -0
- package/dist/chunk-YXJMBVXO.cjs +76 -0
- package/dist/chunk-YXJMBVXO.cjs.map +1 -0
- package/dist/data-sources/DataAwareWidget.cjs +59 -0
- package/dist/data-sources/DataAwareWidget.cjs.map +1 -0
- package/dist/data-sources/DataAwareWidget.d.cts +30 -0
- package/dist/data-sources/DataAwareWidget.d.ts +30 -0
- package/dist/data-sources/DataAwareWidget.js +57 -0
- package/dist/data-sources/DataAwareWidget.js.map +1 -0
- package/dist/data-sources/ErrorState.cjs +12 -0
- package/dist/data-sources/ErrorState.cjs.map +1 -0
- package/dist/data-sources/ErrorState.d.cts +5 -0
- package/dist/data-sources/ErrorState.d.ts +5 -0
- package/dist/data-sources/ErrorState.js +3 -0
- package/dist/data-sources/ErrorState.js.map +1 -0
- package/dist/data-sources/context.cjs +10 -20
- package/dist/data-sources/context.cjs.map +1 -1
- package/dist/data-sources/context.d.cts +2 -2
- package/dist/data-sources/context.d.ts +2 -2
- package/dist/data-sources/context.js +1 -21
- package/dist/data-sources/context.js.map +1 -1
- package/dist/data-sources/fetchers/api.cjs +12 -0
- package/dist/data-sources/fetchers/api.cjs.map +1 -0
- package/dist/data-sources/fetchers/api.d.cts +8 -0
- package/dist/data-sources/fetchers/api.d.ts +8 -0
- package/dist/data-sources/fetchers/api.js +3 -0
- package/dist/data-sources/fetchers/api.js.map +1 -0
- package/dist/data-sources/fetchers/custom.cjs +12 -0
- package/dist/data-sources/fetchers/custom.cjs.map +1 -0
- package/dist/data-sources/fetchers/custom.d.cts +15 -0
- package/dist/data-sources/fetchers/custom.d.ts +15 -0
- package/dist/data-sources/fetchers/custom.js +3 -0
- package/dist/data-sources/fetchers/custom.js.map +1 -0
- package/dist/data-sources/fetchers/static.cjs +16 -0
- package/dist/data-sources/fetchers/static.cjs.map +1 -0
- package/dist/data-sources/fetchers/static.d.cts +38 -0
- package/dist/data-sources/fetchers/static.d.ts +38 -0
- package/dist/data-sources/fetchers/static.js +3 -0
- package/dist/data-sources/fetchers/static.js.map +1 -0
- package/dist/data-sources/registry-context.cjs +26 -0
- package/dist/data-sources/registry-context.cjs.map +1 -0
- package/dist/data-sources/registry-context.d.cts +41 -0
- package/dist/data-sources/registry-context.d.ts +41 -0
- package/dist/data-sources/registry-context.js +9 -0
- package/dist/data-sources/registry-context.js.map +1 -0
- package/dist/data-sources/registry.cjs +20 -0
- package/dist/data-sources/registry.cjs.map +1 -0
- package/dist/data-sources/registry.d.cts +17 -0
- package/dist/data-sources/registry.d.ts +17 -0
- package/dist/data-sources/registry.js +7 -0
- package/dist/data-sources/registry.js.map +1 -0
- package/dist/data-sources/transformers.cjs +12 -0
- package/dist/data-sources/transformers.cjs.map +1 -0
- package/dist/data-sources/transformers.d.cts +23 -0
- package/dist/data-sources/transformers.d.ts +23 -0
- package/dist/data-sources/transformers.js +3 -0
- package/dist/data-sources/transformers.js.map +1 -0
- package/dist/data-sources/types.d.cts +37 -2
- package/dist/data-sources/types.d.ts +37 -2
- package/dist/data-sources/use-widget-data.cjs +19 -0
- package/dist/data-sources/use-widget-data.cjs.map +1 -0
- package/dist/data-sources/use-widget-data.d.cts +16 -0
- package/dist/data-sources/use-widget-data.d.ts +16 -0
- package/dist/data-sources/use-widget-data.js +10 -0
- package/dist/data-sources/use-widget-data.js.map +1 -0
- package/dist/registries/index.cjs +8 -15
- package/dist/registries/index.cjs.map +1 -1
- package/dist/registries/index.d.cts +20 -7
- package/dist/registries/index.d.ts +20 -7
- package/dist/registries/index.js +8 -15
- package/dist/registries/index.js.map +1 -1
- package/dist/shareable-item-DkgWpwoU.d.cts +21 -0
- package/dist/shareable-item-DkgWpwoU.d.ts +21 -0
- package/dist/shell/AppShellLayout.cjs +14 -0
- package/dist/shell/AppShellLayout.cjs.map +1 -0
- package/dist/shell/AppShellLayout.d.cts +30 -0
- package/dist/shell/AppShellLayout.d.ts +30 -0
- package/dist/shell/AppShellLayout.js +5 -0
- package/dist/shell/AppShellLayout.js.map +1 -0
- package/dist/shell/ThemeModeContext.cjs +20 -0
- package/dist/shell/ThemeModeContext.cjs.map +1 -0
- package/dist/shell/ThemeModeContext.d.cts +27 -0
- package/dist/shell/ThemeModeContext.d.ts +27 -0
- package/dist/shell/ThemeModeContext.js +3 -0
- package/dist/shell/ThemeModeContext.js.map +1 -0
- package/dist/shell/index.cjs +135 -0
- package/dist/shell/index.cjs.map +1 -0
- package/dist/shell/index.d.cts +8 -0
- package/dist/shell/index.d.ts +8 -0
- package/dist/shell/index.js +6 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/shell/sidebar.cjs +105 -0
- package/dist/shell/sidebar.cjs.map +1 -0
- package/dist/shell/sidebar.d.cts +73 -0
- package/dist/shell/sidebar.d.ts +73 -0
- package/dist/shell/sidebar.js +4 -0
- package/dist/shell/sidebar.js.map +1 -0
- package/dist/shell/use-mobile.cjs +20 -0
- package/dist/shell/use-mobile.cjs.map +1 -0
- package/dist/shell/use-mobile.d.cts +5 -0
- package/dist/shell/use-mobile.d.ts +5 -0
- package/dist/shell/use-mobile.js +3 -0
- package/dist/shell/use-mobile.js.map +1 -0
- package/dist/theme/index.cjs +599 -970
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.d.cts +106 -2655
- package/dist/theme/index.d.ts +106 -2655
- package/dist/theme/index.js +570 -917
- package/dist/theme/index.js.map +1 -1
- package/dist/types/index.cjs +17 -17
- package/dist/types/index.d.cts +28 -4
- package/dist/types/index.d.ts +28 -4
- package/dist/types/index.js +1 -1
- package/dist/types-R1kV_DKF.d.cts +80 -0
- package/dist/types-R1kV_DKF.d.ts +80 -0
- package/dist/{shareable-item-DPmNZkE1.d.cts → widget-schema-36uGUTWL.d.cts} +5 -21
- package/dist/{shareable-item-DPmNZkE1.d.ts → widget-schema-DxdlJD8E.d.ts} +5 -21
- package/dist/widget-utils/index.cjs +3 -3
- package/dist/widget-utils/index.d.cts +3 -1
- package/dist/widget-utils/index.d.ts +3 -1
- package/dist/widget-utils/index.js +1 -1
- package/package.json +84 -13
- package/dist/chunk-6QLUUNJL.cjs.map +0 -1
- package/dist/chunk-EWR5EIBP.js.map +0 -1
- package/dist/theme-DrMUYZTO.d.cts +0 -22
- package/dist/theme-DrMUYZTO.d.ts +0 -22
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ErrorState } from '../chunk-WASVMCZB.js';
|
|
2
|
+
import { useWidgetData } from '../chunk-4WFDFEHC.js';
|
|
3
|
+
import '../chunk-XCNBVV4T.js';
|
|
4
|
+
import '../chunk-3I5Y3PEO.js';
|
|
5
|
+
import '../chunk-HUR3MSO4.js';
|
|
6
|
+
import '../chunk-VRF7QEID.js';
|
|
7
|
+
import '../chunk-WYOHFNNW.js';
|
|
8
|
+
import '../chunk-PVTQWD4I.js';
|
|
9
|
+
import '../chunk-NAMNXRI5.js';
|
|
10
|
+
import { memo, useMemo } from 'react';
|
|
11
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
var EMPTY_OBJECT = {};
|
|
14
|
+
function DataAwareWidgetImpl({
|
|
15
|
+
widget,
|
|
16
|
+
Component,
|
|
17
|
+
additionalProps,
|
|
18
|
+
loadingComponent,
|
|
19
|
+
errorComponent,
|
|
20
|
+
baseUrl
|
|
21
|
+
}) {
|
|
22
|
+
const stableAdditionalProps = additionalProps ?? EMPTY_OBJECT;
|
|
23
|
+
const { data, isLoading, error } = useWidgetData(widget, { baseUrl });
|
|
24
|
+
const mergedProps = useMemo(
|
|
25
|
+
() => ({
|
|
26
|
+
...widget.props,
|
|
27
|
+
...data,
|
|
28
|
+
...stableAdditionalProps
|
|
29
|
+
}),
|
|
30
|
+
[widget.props, data, stableAdditionalProps]
|
|
31
|
+
);
|
|
32
|
+
if (isLoading && widget.dataSource?.loading?.showSkeleton !== false) {
|
|
33
|
+
if (loadingComponent) {
|
|
34
|
+
return /* @__PURE__ */ jsx(Fragment, { children: loadingComponent });
|
|
35
|
+
}
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
className: "animate-pulse rounded-md bg-muted",
|
|
40
|
+
style: { minHeight: 100 },
|
|
41
|
+
children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Loading..." })
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
if (error && !data) {
|
|
46
|
+
if (errorComponent) {
|
|
47
|
+
return /* @__PURE__ */ jsx(Fragment, { children: errorComponent(error) });
|
|
48
|
+
}
|
|
49
|
+
return /* @__PURE__ */ jsx(ErrorState, {});
|
|
50
|
+
}
|
|
51
|
+
return /* @__PURE__ */ jsx(Component, { ...mergedProps });
|
|
52
|
+
}
|
|
53
|
+
var DataAwareWidget = memo(DataAwareWidgetImpl);
|
|
54
|
+
|
|
55
|
+
export { DataAwareWidget };
|
|
56
|
+
//# sourceMappingURL=DataAwareWidget.js.map
|
|
57
|
+
//# sourceMappingURL=DataAwareWidget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/data-sources/DataAwareWidget.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,IAAM,eAAwC,EAAC;AAM/C,SAAS,mBAAA,CAAoB;AAAA,EAC3B,MAAA;AAAA,EACA,SAAA;AAAA,EACA,eAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAA,EAAyB;AAEvB,EAAA,MAAM,wBAAwB,eAAA,IAAmB,YAAA;AACjD,EAAA,MAAM,EAAE,MAAM,SAAA,EAAW,KAAA,KAAU,aAAA,CAAc,MAAA,EAAQ,EAAE,OAAA,EAAS,CAAA;AAMpE,EAAA,MAAM,WAAA,GAAc,OAAA;AAAA,IAClB,OAAO;AAAA,MACL,GAAG,MAAA,CAAO,KAAA;AAAA,MACV,GAAG,IAAA;AAAA,MACH,GAAG;AAAA,KACL,CAAA;AAAA,IACA,CAAC,MAAA,CAAO,KAAA,EAAO,IAAA,EAAM,qBAAqB;AAAA,GAC5C;AAGA,EAAA,IAAI,SAAA,IAAa,MAAA,CAAO,UAAA,EAAY,OAAA,EAAS,iBAAiB,KAAA,EAAO;AACnE,IAAA,IAAI,gBAAA,EAAkB;AACpB,MAAA,uCAAU,QAAA,EAAA,gBAAA,EAAiB,CAAA;AAAA,IAC7B;AAEA,IAAA,uBACE,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAU,mCAAA;AAAA,QACV,KAAA,EAAO,EAAE,SAAA,EAAW,GAAA,EAAI;AAAA,QAExB,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,SAAA,EAAU,QAAA,EAAA,YAAA,EAAU;AAAA;AAAA,KACtC;AAAA,EAEJ;AAGA,EAAA,IAAI,KAAA,IAAS,CAAC,IAAA,EAAM;AAClB,IAAA,IAAI,cAAA,EAAgB;AAClB,MAAA,uBAAO,GAAA,CAAA,QAAA,EAAA,EAAG,QAAA,EAAA,cAAA,CAAe,KAAK,CAAA,EAAE,CAAA;AAAA,IAClC;AAEA,IAAA,2BAAQ,UAAA,EAAA,EAAW,CAAA;AAAA,EACrB;AAEA,EAAA,uBAAO,GAAA,CAAC,SAAA,EAAA,EAAW,GAAG,WAAA,EAAa,CAAA;AACrC;AAMO,IAAM,eAAA,GAAkB,KAAK,mBAAmB","file":"DataAwareWidget.js","sourcesContent":["import { memo, useMemo, type ComponentType, type ReactNode } from \"react\";\nimport type { WidgetSchema } from \"../types/widget-schema\";\nimport { useWidgetData } from \"./use-widget-data\";\nimport { ErrorState } from \"./ErrorState\";\n\nexport interface DataAwareWidgetProps {\n widget: WidgetSchema;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Component: ComponentType<any>;\n /** Additional props to pass through (e.g., edit mode callbacks) */\n additionalProps?: Record<string, unknown>;\n /** Custom loading component */\n loadingComponent?: ReactNode;\n /** Custom error component */\n errorComponent?: (error: Error) => ReactNode;\n /** Base URL for API calls (e.g., \"https://api.fluid.app/api\") */\n baseUrl?: string | undefined;\n}\n\n// Empty object constant to avoid creating new references\nconst EMPTY_OBJECT: Record<string, unknown> = {};\n\n/**\n * Wrapper component that resolves data sources before rendering the widget.\n * Merges resolved data with static props.\n */\nfunction DataAwareWidgetImpl({\n widget,\n Component,\n additionalProps,\n loadingComponent,\n errorComponent,\n baseUrl,\n}: DataAwareWidgetProps) {\n // Use stable empty object if no additionalProps provided\n const stableAdditionalProps = additionalProps ?? EMPTY_OBJECT;\n const { data, isLoading, error } = useWidgetData(widget, { baseUrl });\n\n // Merge static props with resolved data\n // Data takes precedence (allows overriding defaults)\n // Memoized to prevent unnecessary child re-renders\n // Note: Must be called before any early returns to satisfy Rules of Hooks\n const mergedProps = useMemo(\n () => ({\n ...widget.props,\n ...data,\n ...stableAdditionalProps,\n }),\n [widget.props, data, stableAdditionalProps],\n );\n\n // Show loading state\n if (isLoading && widget.dataSource?.loading?.showSkeleton !== false) {\n if (loadingComponent) {\n return <>{loadingComponent}</>;\n }\n // Default skeleton - can be customized\n return (\n <div\n className=\"animate-pulse rounded-md bg-muted\"\n style={{ minHeight: 100 }}\n >\n <span className=\"sr-only\">Loading...</span>\n </div>\n );\n }\n\n // Show error state (if no fallback was applied)\n if (error && !data) {\n if (errorComponent) {\n return <>{errorComponent(error)}</>;\n }\n // Default error display\n return <ErrorState />;\n }\n\n return <Component {...mergedProps} />;\n}\n\n/**\n * Memoized wrapper component that resolves data sources before rendering the widget.\n * Prevents re-renders when parent re-renders but props haven't changed.\n */\nexport const DataAwareWidget = memo(DataAwareWidgetImpl);\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOWU7MFJ2_cjs = require('../chunk-OWU7MFJ2.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "ErrorState", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkOWU7MFJ2_cjs.ErrorState; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=ErrorState.cjs.map
|
|
12
|
+
//# sourceMappingURL=ErrorState.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ErrorState.cjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ErrorState.js"}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
3
|
+
var chunkSJQPHJL4_cjs = require('../chunk-SJQPHJL4.cjs');
|
|
5
4
|
|
|
6
|
-
// src/data-sources/context.tsx
|
|
7
|
-
var DataSourceContext = react.createContext({});
|
|
8
|
-
function DataSourceProvider({
|
|
9
|
-
baseUrl,
|
|
10
|
-
getApiHeaders,
|
|
11
|
-
children
|
|
12
|
-
}) {
|
|
13
|
-
const value = react.useMemo(
|
|
14
|
-
() => ({ baseUrl, getApiHeaders }),
|
|
15
|
-
[baseUrl, getApiHeaders]
|
|
16
|
-
);
|
|
17
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DataSourceContext.Provider, { value, children });
|
|
18
|
-
}
|
|
19
|
-
function useDataSourceConfig() {
|
|
20
|
-
return react.useContext(DataSourceContext);
|
|
21
|
-
}
|
|
22
5
|
|
|
23
|
-
|
|
24
|
-
exports
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "DataSourceProvider", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkSJQPHJL4_cjs.DataSourceProvider; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "useDataSourceConfig", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkSJQPHJL4_cjs.useDataSourceConfig; }
|
|
14
|
+
});
|
|
25
15
|
//# sourceMappingURL=context.cjs.map
|
|
26
16
|
//# sourceMappingURL=context.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"context.cjs"}
|
|
@@ -6,8 +6,8 @@ interface DataSourceContextValue {
|
|
|
6
6
|
getApiHeaders?: (() => Record<string, string>) | undefined;
|
|
7
7
|
}
|
|
8
8
|
interface DataSourceProviderProps {
|
|
9
|
-
baseUrl?: string;
|
|
10
|
-
getApiHeaders?: () => Record<string, string
|
|
9
|
+
baseUrl?: string | undefined;
|
|
10
|
+
getApiHeaders?: (() => Record<string, string>) | undefined;
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
}
|
|
13
13
|
declare function DataSourceProvider({ baseUrl, getApiHeaders, children, }: DataSourceProviderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -6,8 +6,8 @@ interface DataSourceContextValue {
|
|
|
6
6
|
getApiHeaders?: (() => Record<string, string>) | undefined;
|
|
7
7
|
}
|
|
8
8
|
interface DataSourceProviderProps {
|
|
9
|
-
baseUrl?: string;
|
|
10
|
-
getApiHeaders?: () => Record<string, string
|
|
9
|
+
baseUrl?: string | undefined;
|
|
10
|
+
getApiHeaders?: (() => Record<string, string>) | undefined;
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
}
|
|
13
13
|
declare function DataSourceProvider({ baseUrl, getApiHeaders, children, }: DataSourceProviderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
// src/data-sources/context.tsx
|
|
5
|
-
var DataSourceContext = createContext({});
|
|
6
|
-
function DataSourceProvider({
|
|
7
|
-
baseUrl,
|
|
8
|
-
getApiHeaders,
|
|
9
|
-
children
|
|
10
|
-
}) {
|
|
11
|
-
const value = useMemo(
|
|
12
|
-
() => ({ baseUrl, getApiHeaders }),
|
|
13
|
-
[baseUrl, getApiHeaders]
|
|
14
|
-
);
|
|
15
|
-
return /* @__PURE__ */ jsx(DataSourceContext.Provider, { value, children });
|
|
16
|
-
}
|
|
17
|
-
function useDataSourceConfig() {
|
|
18
|
-
return useContext(DataSourceContext);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { DataSourceProvider, useDataSourceConfig };
|
|
1
|
+
export { DataSourceProvider, useDataSourceConfig } from '../chunk-3I5Y3PEO.js';
|
|
22
2
|
//# sourceMappingURL=context.js.map
|
|
23
3
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"context.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk46PUWB7C_cjs = require('../../chunk-46PUWB7C.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "apiFetcher", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk46PUWB7C_cjs.apiFetcher; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=api.cjs.map
|
|
12
|
+
//# sourceMappingURL=api.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"api.cjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"api.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHGVSPZEL_cjs = require('../../chunk-HGVSPZEL.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "customFetcher", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkHGVSPZEL_cjs.customFetcher; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=custom.cjs.map
|
|
12
|
+
//# sourceMappingURL=custom.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"custom.cjs"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CustomDataSource, DataSourceContext } from '../types.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Custom fetcher that fetches selected items.
|
|
5
|
+
*
|
|
6
|
+
* Fetches items from individual resource endpoints using the configured
|
|
7
|
+
* getApiHeaders for authentication.
|
|
8
|
+
*
|
|
9
|
+
* Fetches all items in parallel for performance.
|
|
10
|
+
* Returns an array of successfully fetched items, preserving order.
|
|
11
|
+
* Logs warnings for failed fetches but doesn't throw.
|
|
12
|
+
*/
|
|
13
|
+
declare function customFetcher(source: CustomDataSource, context: DataSourceContext): Promise<unknown[]>;
|
|
14
|
+
|
|
15
|
+
export { customFetcher };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CustomDataSource, DataSourceContext } from '../types.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Custom fetcher that fetches selected items.
|
|
5
|
+
*
|
|
6
|
+
* Fetches items from individual resource endpoints using the configured
|
|
7
|
+
* getApiHeaders for authentication.
|
|
8
|
+
*
|
|
9
|
+
* Fetches all items in parallel for performance.
|
|
10
|
+
* Returns an array of successfully fetched items, preserving order.
|
|
11
|
+
* Logs warnings for failed fetches but doesn't throw.
|
|
12
|
+
*/
|
|
13
|
+
declare function customFetcher(source: CustomDataSource, context: DataSourceContext): Promise<unknown[]>;
|
|
14
|
+
|
|
15
|
+
export { customFetcher };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"custom.js"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkN2K6W7FX_cjs = require('../../chunk-N2K6W7FX.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "staticFetcher", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkN2K6W7FX_cjs.staticFetcher; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "useStaticSourceItems", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkN2K6W7FX_cjs.useStaticSourceItems; }
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=static.cjs.map
|
|
16
|
+
//# sourceMappingURL=static.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"static.cjs"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { StaticDataSource, DataSourceContext, StaticItem, StaticSourceType } from '../types.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Static data source fetcher.
|
|
5
|
+
*
|
|
6
|
+
* Fetches products filtered by collection or category ID.
|
|
7
|
+
* Tags are not yet supported (requires backend API changes).
|
|
8
|
+
*
|
|
9
|
+
* @param source - The static data source configuration
|
|
10
|
+
* @param context - The data source context with baseUrl and headers
|
|
11
|
+
* @returns Array of products matching the filter criteria
|
|
12
|
+
*/
|
|
13
|
+
declare function staticFetcher(source: StaticDataSource, context: DataSourceContext): Promise<unknown[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Result type for useStaticSourceItems hook.
|
|
16
|
+
*/
|
|
17
|
+
interface UseStaticSourceItemsResult {
|
|
18
|
+
/** The fetched items */
|
|
19
|
+
items: StaticItem[];
|
|
20
|
+
/** True while items are being fetched */
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
/** Error message if fetch failed */
|
|
23
|
+
error: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* React hook for fetching static source items (collections, categories).
|
|
27
|
+
* Handles loading state, error state, abort on cleanup, and search filtering.
|
|
28
|
+
*
|
|
29
|
+
* @param staticType - The type of static source to fetch, or null to reset
|
|
30
|
+
* @param context - Context with baseUrl and getApiHeaders
|
|
31
|
+
* @param params - Optional search parameters
|
|
32
|
+
* @returns Object with items, isLoading, and error state
|
|
33
|
+
*/
|
|
34
|
+
declare function useStaticSourceItems(staticType: StaticSourceType | null, context: Pick<DataSourceContext, "baseUrl" | "getApiHeaders">, params?: {
|
|
35
|
+
search?: string;
|
|
36
|
+
}): UseStaticSourceItemsResult;
|
|
37
|
+
|
|
38
|
+
export { type UseStaticSourceItemsResult, staticFetcher, useStaticSourceItems };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { StaticDataSource, DataSourceContext, StaticItem, StaticSourceType } from '../types.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Static data source fetcher.
|
|
5
|
+
*
|
|
6
|
+
* Fetches products filtered by collection or category ID.
|
|
7
|
+
* Tags are not yet supported (requires backend API changes).
|
|
8
|
+
*
|
|
9
|
+
* @param source - The static data source configuration
|
|
10
|
+
* @param context - The data source context with baseUrl and headers
|
|
11
|
+
* @returns Array of products matching the filter criteria
|
|
12
|
+
*/
|
|
13
|
+
declare function staticFetcher(source: StaticDataSource, context: DataSourceContext): Promise<unknown[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Result type for useStaticSourceItems hook.
|
|
16
|
+
*/
|
|
17
|
+
interface UseStaticSourceItemsResult {
|
|
18
|
+
/** The fetched items */
|
|
19
|
+
items: StaticItem[];
|
|
20
|
+
/** True while items are being fetched */
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
/** Error message if fetch failed */
|
|
23
|
+
error: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* React hook for fetching static source items (collections, categories).
|
|
27
|
+
* Handles loading state, error state, abort on cleanup, and search filtering.
|
|
28
|
+
*
|
|
29
|
+
* @param staticType - The type of static source to fetch, or null to reset
|
|
30
|
+
* @param context - Context with baseUrl and getApiHeaders
|
|
31
|
+
* @param params - Optional search parameters
|
|
32
|
+
* @returns Object with items, isLoading, and error state
|
|
33
|
+
*/
|
|
34
|
+
declare function useStaticSourceItems(staticType: StaticSourceType | null, context: Pick<DataSourceContext, "baseUrl" | "getApiHeaders">, params?: {
|
|
35
|
+
search?: string;
|
|
36
|
+
}): UseStaticSourceItemsResult;
|
|
37
|
+
|
|
38
|
+
export { type UseStaticSourceItemsResult, staticFetcher, useStaticSourceItems };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"static.js"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkV7D3QUE6_cjs = require('../chunk-V7D3QUE6.cjs');
|
|
4
|
+
require('../chunk-SJQPHJL4.cjs');
|
|
5
|
+
require('../chunk-LVLNO2YQ.cjs');
|
|
6
|
+
require('../chunk-46PUWB7C.cjs');
|
|
7
|
+
require('../chunk-HGVSPZEL.cjs');
|
|
8
|
+
require('../chunk-N2K6W7FX.cjs');
|
|
9
|
+
require('../chunk-2SIG55BD.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, "DataSourceRegistryProvider", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkV7D3QUE6_cjs.DataSourceRegistryProvider; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "useDataSourceRegistry", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkV7D3QUE6_cjs.useDataSourceRegistry; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "useDataSourceRegistryConfig", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkV7D3QUE6_cjs.useDataSourceRegistryConfig; }
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=registry-context.cjs.map
|
|
26
|
+
//# sourceMappingURL=registry-context.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-context.cjs"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { DataSourceRegistry } from './types.cjs';
|
|
4
|
+
|
|
5
|
+
interface DataSourceRegistryContextValue {
|
|
6
|
+
registry: DataSourceRegistry;
|
|
7
|
+
baseUrl?: string | undefined;
|
|
8
|
+
/** Get API headers function */
|
|
9
|
+
getApiHeaders?: (() => Record<string, string>) | undefined;
|
|
10
|
+
/** Dynamic variables for endpoint path substitution (e.g., { rep_id: "123" }) */
|
|
11
|
+
variables?: Record<string, string> | undefined;
|
|
12
|
+
}
|
|
13
|
+
interface DataSourceRegistryProviderProps {
|
|
14
|
+
registry?: DataSourceRegistry | undefined;
|
|
15
|
+
/** Base URL for API calls (e.g., "https://api.fluid.app/api") */
|
|
16
|
+
baseUrl?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Get API headers function
|
|
19
|
+
*/
|
|
20
|
+
getApiHeaders?: (() => Record<string, string>) | undefined;
|
|
21
|
+
/** Dynamic variables for endpoint path substitution (e.g., { rep_id: "123" }) */
|
|
22
|
+
variables?: Record<string, string> | undefined;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Provides data source registry and configuration to all descendants.
|
|
27
|
+
* If no registry is provided, uses the default.
|
|
28
|
+
* Also provides the shared DataSourceProvider from rep-core so that
|
|
29
|
+
* rep-widgets hooks can access baseUrl and getApiHeaders.
|
|
30
|
+
*/
|
|
31
|
+
declare function DataSourceRegistryProvider({ registry, baseUrl, getApiHeaders, variables, children, }: DataSourceRegistryProviderProps): react_jsx_runtime.JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* Hook to access the data source registry.
|
|
34
|
+
*/
|
|
35
|
+
declare function useDataSourceRegistry(): DataSourceRegistry;
|
|
36
|
+
/**
|
|
37
|
+
* Hook to access the full data source registry context (registry + config).
|
|
38
|
+
*/
|
|
39
|
+
declare function useDataSourceRegistryConfig(): DataSourceRegistryContextValue;
|
|
40
|
+
|
|
41
|
+
export { DataSourceRegistryProvider, type DataSourceRegistryProviderProps, useDataSourceRegistry, useDataSourceRegistryConfig };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { DataSourceRegistry } from './types.js';
|
|
4
|
+
|
|
5
|
+
interface DataSourceRegistryContextValue {
|
|
6
|
+
registry: DataSourceRegistry;
|
|
7
|
+
baseUrl?: string | undefined;
|
|
8
|
+
/** Get API headers function */
|
|
9
|
+
getApiHeaders?: (() => Record<string, string>) | undefined;
|
|
10
|
+
/** Dynamic variables for endpoint path substitution (e.g., { rep_id: "123" }) */
|
|
11
|
+
variables?: Record<string, string> | undefined;
|
|
12
|
+
}
|
|
13
|
+
interface DataSourceRegistryProviderProps {
|
|
14
|
+
registry?: DataSourceRegistry | undefined;
|
|
15
|
+
/** Base URL for API calls (e.g., "https://api.fluid.app/api") */
|
|
16
|
+
baseUrl?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Get API headers function
|
|
19
|
+
*/
|
|
20
|
+
getApiHeaders?: (() => Record<string, string>) | undefined;
|
|
21
|
+
/** Dynamic variables for endpoint path substitution (e.g., { rep_id: "123" }) */
|
|
22
|
+
variables?: Record<string, string> | undefined;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Provides data source registry and configuration to all descendants.
|
|
27
|
+
* If no registry is provided, uses the default.
|
|
28
|
+
* Also provides the shared DataSourceProvider from rep-core so that
|
|
29
|
+
* rep-widgets hooks can access baseUrl and getApiHeaders.
|
|
30
|
+
*/
|
|
31
|
+
declare function DataSourceRegistryProvider({ registry, baseUrl, getApiHeaders, variables, children, }: DataSourceRegistryProviderProps): react_jsx_runtime.JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* Hook to access the data source registry.
|
|
34
|
+
*/
|
|
35
|
+
declare function useDataSourceRegistry(): DataSourceRegistry;
|
|
36
|
+
/**
|
|
37
|
+
* Hook to access the full data source registry context (registry + config).
|
|
38
|
+
*/
|
|
39
|
+
declare function useDataSourceRegistryConfig(): DataSourceRegistryContextValue;
|
|
40
|
+
|
|
41
|
+
export { DataSourceRegistryProvider, type DataSourceRegistryProviderProps, useDataSourceRegistry, useDataSourceRegistryConfig };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { DataSourceRegistryProvider, useDataSourceRegistry, useDataSourceRegistryConfig } from '../chunk-XCNBVV4T.js';
|
|
2
|
+
import '../chunk-3I5Y3PEO.js';
|
|
3
|
+
import '../chunk-HUR3MSO4.js';
|
|
4
|
+
import '../chunk-VRF7QEID.js';
|
|
5
|
+
import '../chunk-WYOHFNNW.js';
|
|
6
|
+
import '../chunk-PVTQWD4I.js';
|
|
7
|
+
import '../chunk-NAMNXRI5.js';
|
|
8
|
+
//# sourceMappingURL=registry-context.js.map
|
|
9
|
+
//# sourceMappingURL=registry-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-context.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkLVLNO2YQ_cjs = require('../chunk-LVLNO2YQ.cjs');
|
|
4
|
+
require('../chunk-46PUWB7C.cjs');
|
|
5
|
+
require('../chunk-HGVSPZEL.cjs');
|
|
6
|
+
require('../chunk-N2K6W7FX.cjs');
|
|
7
|
+
require('../chunk-2SIG55BD.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "DEFAULT_DATA_SOURCE_REGISTRY", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkLVLNO2YQ_cjs.DEFAULT_DATA_SOURCE_REGISTRY; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "createDataSourceRegistry", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkLVLNO2YQ_cjs.createDataSourceRegistry; }
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=registry.cjs.map
|
|
20
|
+
//# sourceMappingURL=registry.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry.cjs"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataSourceType, DataFetcher, DataTransformer, DataSourceRegistry } from './types.cjs';
|
|
2
|
+
|
|
3
|
+
interface CreateDataSourceRegistryOptions {
|
|
4
|
+
/** Custom fetchers to add or override */
|
|
5
|
+
fetchers?: Partial<Record<DataSourceType, DataFetcher>>;
|
|
6
|
+
/** Custom transform functions */
|
|
7
|
+
transformers?: Record<string, DataTransformer>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a data source registry with default fetchers.
|
|
11
|
+
* Users can extend this with custom fetchers and transformers.
|
|
12
|
+
*/
|
|
13
|
+
declare function createDataSourceRegistry(options?: CreateDataSourceRegistryOptions): DataSourceRegistry;
|
|
14
|
+
/** Default registry instance */
|
|
15
|
+
declare const DEFAULT_DATA_SOURCE_REGISTRY: DataSourceRegistry;
|
|
16
|
+
|
|
17
|
+
export { type CreateDataSourceRegistryOptions, DEFAULT_DATA_SOURCE_REGISTRY, createDataSourceRegistry };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataSourceType, DataFetcher, DataTransformer, DataSourceRegistry } from './types.js';
|
|
2
|
+
|
|
3
|
+
interface CreateDataSourceRegistryOptions {
|
|
4
|
+
/** Custom fetchers to add or override */
|
|
5
|
+
fetchers?: Partial<Record<DataSourceType, DataFetcher>>;
|
|
6
|
+
/** Custom transform functions */
|
|
7
|
+
transformers?: Record<string, DataTransformer>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a data source registry with default fetchers.
|
|
11
|
+
* Users can extend this with custom fetchers and transformers.
|
|
12
|
+
*/
|
|
13
|
+
declare function createDataSourceRegistry(options?: CreateDataSourceRegistryOptions): DataSourceRegistry;
|
|
14
|
+
/** Default registry instance */
|
|
15
|
+
declare const DEFAULT_DATA_SOURCE_REGISTRY: DataSourceRegistry;
|
|
16
|
+
|
|
17
|
+
export { type CreateDataSourceRegistryOptions, DEFAULT_DATA_SOURCE_REGISTRY, createDataSourceRegistry };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { DEFAULT_DATA_SOURCE_REGISTRY, createDataSourceRegistry } from '../chunk-HUR3MSO4.js';
|
|
2
|
+
import '../chunk-VRF7QEID.js';
|
|
3
|
+
import '../chunk-WYOHFNNW.js';
|
|
4
|
+
import '../chunk-PVTQWD4I.js';
|
|
5
|
+
import '../chunk-NAMNXRI5.js';
|
|
6
|
+
//# sourceMappingURL=registry.js.map
|
|
7
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2SIG55BD_cjs = require('../chunk-2SIG55BD.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "WIDGET_TRANSFORMERS", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk2SIG55BD_cjs.WIDGET_TRANSFORMERS; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=transformers.cjs.map
|
|
12
|
+
//# sourceMappingURL=transformers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"transformers.cjs"}
|