@fluid-app/rep-core 0.1.16 → 0.1.18

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.
Files changed (126) hide show
  1. package/dist/data-sources/DataAwareWidget.cjs.map +1 -1
  2. package/dist/data-sources/DataAwareWidget.d.cts +6 -20
  3. package/dist/data-sources/DataAwareWidget.d.cts.map +1 -1
  4. package/dist/data-sources/DataAwareWidget.d.mts +6 -20
  5. package/dist/data-sources/DataAwareWidget.d.mts.map +1 -1
  6. package/dist/data-sources/DataAwareWidget.mjs.map +1 -1
  7. package/dist/data-sources/ErrorState.cjs.map +1 -1
  8. package/dist/data-sources/ErrorState.d.cts +2 -2
  9. package/dist/data-sources/ErrorState.d.cts.map +1 -1
  10. package/dist/data-sources/ErrorState.d.mts +2 -2
  11. package/dist/data-sources/ErrorState.d.mts.map +1 -1
  12. package/dist/data-sources/ErrorState.mjs.map +1 -1
  13. package/dist/data-sources/context.cjs.map +1 -1
  14. package/dist/data-sources/context.d.cts +2 -3
  15. package/dist/data-sources/context.d.cts.map +1 -1
  16. package/dist/data-sources/context.d.mts +2 -3
  17. package/dist/data-sources/context.d.mts.map +1 -1
  18. package/dist/data-sources/context.mjs.map +1 -1
  19. package/dist/data-sources/fetchers/api.d.cts +3 -3
  20. package/dist/data-sources/fetchers/api.d.mts +3 -3
  21. package/dist/data-sources/fetchers/custom.d.cts +10 -10
  22. package/dist/data-sources/fetchers/custom.d.mts +10 -10
  23. package/dist/data-sources/fetchers/static.d.cts +20 -20
  24. package/dist/data-sources/fetchers/static.d.cts.map +1 -1
  25. package/dist/data-sources/fetchers/static.d.mts +20 -20
  26. package/dist/data-sources/fetchers/static.d.mts.map +1 -1
  27. package/dist/data-sources/preview-context.cjs.map +1 -1
  28. package/dist/data-sources/preview-context.d.cts +1 -3
  29. package/dist/data-sources/preview-context.d.cts.map +1 -1
  30. package/dist/data-sources/preview-context.d.mts +1 -3
  31. package/dist/data-sources/preview-context.d.mts.map +1 -1
  32. package/dist/data-sources/preview-context.mjs.map +1 -1
  33. package/dist/data-sources/registry-context.cjs.map +1 -1
  34. package/dist/data-sources/registry-context.d.cts +14 -15
  35. package/dist/data-sources/registry-context.d.cts.map +1 -1
  36. package/dist/data-sources/registry-context.d.mts +14 -15
  37. package/dist/data-sources/registry-context.d.mts.map +1 -1
  38. package/dist/data-sources/registry-context.mjs.map +1 -1
  39. package/dist/data-sources/registry.cjs.map +1 -1
  40. package/dist/data-sources/registry.d.cts +4 -4
  41. package/dist/data-sources/registry.d.cts.map +1 -1
  42. package/dist/data-sources/registry.d.mts +4 -4
  43. package/dist/data-sources/registry.d.mts.map +1 -1
  44. package/dist/data-sources/registry.mjs.map +1 -1
  45. package/dist/data-sources/transformers.d.cts +3 -3
  46. package/dist/data-sources/transformers.d.mts +3 -3
  47. package/dist/data-sources/types.d.cts +1 -1
  48. package/dist/data-sources/types.d.mts +1 -1
  49. package/dist/data-sources/use-widget-data.d.cts +4 -4
  50. package/dist/data-sources/use-widget-data.d.cts.map +1 -1
  51. package/dist/data-sources/use-widget-data.d.mts +4 -4
  52. package/dist/data-sources/use-widget-data.d.mts.map +1 -1
  53. package/dist/{index-Bxe_LIi8.d.cts → index-Bgv8HUpo.d.cts} +36 -77
  54. package/dist/index-Bgv8HUpo.d.cts.map +1 -0
  55. package/dist/{index-CCAu2n19.d.mts → index-Ka_HOwpb.d.mts} +36 -77
  56. package/dist/index-Ka_HOwpb.d.mts.map +1 -0
  57. package/dist/registries/index.cjs.map +1 -1
  58. package/dist/registries/index.d.cts +86 -86
  59. package/dist/registries/index.d.cts.map +1 -1
  60. package/dist/registries/index.d.mts +86 -86
  61. package/dist/registries/index.d.mts.map +1 -1
  62. package/dist/registries/index.mjs.map +1 -1
  63. package/dist/shell/AppShellLayout.cjs.map +1 -1
  64. package/dist/shell/AppShellLayout.d.cts +15 -16
  65. package/dist/shell/AppShellLayout.d.cts.map +1 -1
  66. package/dist/shell/AppShellLayout.d.mts +15 -16
  67. package/dist/shell/AppShellLayout.d.mts.map +1 -1
  68. package/dist/shell/AppShellLayout.mjs.map +1 -1
  69. package/dist/shell/ScreenHeader.cjs.map +1 -1
  70. package/dist/shell/ScreenHeader.d.cts +2 -2
  71. package/dist/shell/ScreenHeader.d.cts.map +1 -1
  72. package/dist/shell/ScreenHeader.d.mts +2 -2
  73. package/dist/shell/ScreenHeader.d.mts.map +1 -1
  74. package/dist/shell/ScreenHeader.mjs.map +1 -1
  75. package/dist/shell/ScreenHeaderContext.cjs.map +1 -1
  76. package/dist/shell/ScreenHeaderContext.d.cts +17 -18
  77. package/dist/shell/ScreenHeaderContext.d.cts.map +1 -1
  78. package/dist/shell/ScreenHeaderContext.d.mts +17 -18
  79. package/dist/shell/ScreenHeaderContext.d.mts.map +1 -1
  80. package/dist/shell/ScreenHeaderContext.mjs.map +1 -1
  81. package/dist/shell/ThemeModeContext.cjs.map +1 -1
  82. package/dist/shell/ThemeModeContext.d.cts +2 -3
  83. package/dist/shell/ThemeModeContext.d.cts.map +1 -1
  84. package/dist/shell/ThemeModeContext.d.mts +2 -3
  85. package/dist/shell/ThemeModeContext.d.mts.map +1 -1
  86. package/dist/shell/ThemeModeContext.mjs.map +1 -1
  87. package/dist/shell/sidebar.cjs.map +1 -1
  88. package/dist/shell/sidebar.d.cts +47 -37
  89. package/dist/shell/sidebar.d.cts.map +1 -1
  90. package/dist/shell/sidebar.d.mts +47 -37
  91. package/dist/shell/sidebar.d.mts.map +1 -1
  92. package/dist/shell/sidebar.mjs +32 -32
  93. package/dist/shell/sidebar.mjs.map +1 -1
  94. package/dist/shell/use-mobile.cjs.map +1 -1
  95. package/dist/shell/use-mobile.mjs.map +1 -1
  96. package/dist/theme/index.d.cts +54 -54
  97. package/dist/theme/index.d.cts.map +1 -1
  98. package/dist/theme/index.d.mts +54 -54
  99. package/dist/theme/index.d.mts.map +1 -1
  100. package/dist/types/index.d.cts +3 -3
  101. package/dist/types/index.d.mts +3 -3
  102. package/dist/{types-ByG6Xy3C.d.mts → types-27AHMek-.d.cts} +4 -4
  103. package/dist/{types-ByG6Xy3C.d.mts.map → types-27AHMek-.d.cts.map} +1 -1
  104. package/dist/types-BXFX9bXp.cjs.map +1 -1
  105. package/dist/types-Bjmd7Fdx.mjs.map +1 -1
  106. package/dist/{types-BIXtQlHB.d.cts → types-C5Zs5V3E.d.mts} +29 -29
  107. package/dist/types-C5Zs5V3E.d.mts.map +1 -0
  108. package/dist/{types-Ctu-Zio6.d.cts → types-CeCPKvOv.d.mts} +4 -4
  109. package/dist/{types-Ctu-Zio6.d.cts.map → types-CeCPKvOv.d.mts.map} +1 -1
  110. package/dist/{types-C5OFJy-O.d.mts → types-DrzvahW8.d.cts} +29 -29
  111. package/dist/types-DrzvahW8.d.cts.map +1 -0
  112. package/dist/{widget-schema--PY1uMWx.d.cts → widget-schema-BKZgsNG7.d.mts} +59 -59
  113. package/dist/widget-schema-BKZgsNG7.d.mts.map +1 -0
  114. package/dist/{widget-schema-YkD5p3v4.d.mts → widget-schema-BSX2fVhW.d.cts} +59 -59
  115. package/dist/widget-schema-BSX2fVhW.d.cts.map +1 -0
  116. package/dist/widget-utils/index.d.cts +20 -20
  117. package/dist/widget-utils/index.d.mts +20 -20
  118. package/package.json +2 -2
  119. package/src/styles/globals.css +1 -0
  120. package/dist/index-Bxe_LIi8.d.cts.map +0 -1
  121. package/dist/index-CCAu2n19.d.mts.map +0 -1
  122. package/dist/types-BIXtQlHB.d.cts.map +0 -1
  123. package/dist/types-C5OFJy-O.d.mts.map +0 -1
  124. package/dist/widget-schema--PY1uMWx.d.cts.map +0 -1
  125. package/dist/widget-schema-YkD5p3v4.d.mts.map +0 -1
  126. package/styles/globals.css +0 -1
@@ -1,6 +1,5 @@
1
- import { s as DataSourceRegistry } from "../types-C5OFJy-O.mjs";
2
- import { ReactNode } from "react";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import { s as DataSourceRegistry } from "../types-C5Zs5V3E.mjs";
2
+ import React, { ReactNode } from "react";
4
3
 
5
4
  //#region src/data-sources/registry-context.d.ts
6
5
  interface DataSourceRegistryContextValue {
@@ -16,33 +15,33 @@ interface DataSourceRegistryProviderProps {
16
15
  /** Base URL for API calls (e.g., "https://api.fluid.app/api") */
17
16
  baseUrl?: string | undefined;
18
17
  /**
19
- * Get API headers function
20
- */
18
+ * Get API headers function
19
+ */
21
20
  getApiHeaders?: (() => Record<string, string>) | undefined;
22
21
  /** Dynamic variables for endpoint path substitution (e.g., { rep_id: "123" }) */
23
22
  variables?: Record<string, string> | undefined;
24
23
  children: ReactNode;
25
24
  }
26
25
  /**
27
- * Provides data source registry and configuration to all descendants.
28
- * If no registry is provided, uses the default.
29
- * Also provides the shared DataSourceProvider from rep-core so that
30
- * rep-widgets hooks can access baseUrl and getApiHeaders.
31
- */
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
+ */
32
31
  declare function DataSourceRegistryProvider({
33
32
  registry,
34
33
  baseUrl,
35
34
  getApiHeaders,
36
35
  variables,
37
36
  children
38
- }: DataSourceRegistryProviderProps): react_jsx_runtime0.JSX.Element;
37
+ }: DataSourceRegistryProviderProps): React.JSX.Element;
39
38
  /**
40
- * Hook to access the data source registry.
41
- */
39
+ * Hook to access the data source registry.
40
+ */
42
41
  declare function useDataSourceRegistry(): DataSourceRegistry;
43
42
  /**
44
- * Hook to access the full data source registry context (registry + config).
45
- */
43
+ * Hook to access the full data source registry context (registry + config).
44
+ */
46
45
  declare function useDataSourceRegistryConfig(): DataSourceRegistryContextValue;
47
46
  //#endregion
48
47
  export { DataSourceRegistryProvider, DataSourceRegistryProviderProps, useDataSourceRegistry, useDataSourceRegistryConfig };
@@ -1 +1 @@
1
- {"version":3,"file":"registry-context.d.mts","names":[],"sources":["../../src/data-sources/registry-context.tsx"],"mappings":";;;;;UAKU,8BAAA;EACR,QAAA,EAAU,kBAAA;EACV,OAAA;EAFQ;EAIR,aAAA,UAAuB,MAAA;;EAEvB,SAAA,GAAY,MAAA;AAAA;AAAA,UASG,+BAAA;EACf,QAAA,GAAW,kBAAA;EAVO;EAYlB,OAAA;EAjBU;;;EAqBV,aAAA,UAAuB,MAAA;EAhBvB;EAkBA,SAAA,GAAY,MAAA;EACZ,QAAA,EAAU,SAAA;AAAA;AAVZ;;;;;;AAAA,iBAmBgB,0BAAA,CAAA;EACd,QAAA;EACA,OAAA;EACA,aAAA;EACA,SAAA;EACA;AAAA,GACC,+BAAA,GAA+B,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;iBAuBlB,qBAAA,CAAA,GAAyB,kBAAA;;;;iBAOzB,2BAAA,CAAA,GAA+B,8BAAA"}
1
+ {"version":3,"file":"registry-context.d.mts","names":[],"sources":["../../src/data-sources/registry-context.tsx"],"mappings":";;;;UAMU,8BAAA;EACR,QAAA,EAAU,kBAAA;EACV,OAAA;;EAEA,aAAA,UAAuB,MAAA;;EAEvB,SAAA,GAAY,MAAA;AAAA;AAAA,UASG,+BAAA;EACf,QAAA,GAAW,kBAAA;;EAEX,OAAA;;;;EAIA,aAAA,UAAuB,MAAA;;EAEvB,SAAA,GAAY,MAAA;EACZ,QAAA,EAAU,SAAA;AAAA;;;;;;;iBASI,0BAAA,CAAA;EACd,QAAA;EACA,OAAA;EACA,aAAA;EACA,SAAA;EACA;AAAA,GACC,+BAAA,GAAkC,KAAA,CAAM,GAAA,CAAI,OAAA;;;;iBAuB/B,qBAAA,CAAA,GAAyB,kBAAA;;;;iBAOzB,2BAAA,CAAA,GAA+B,8BAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-context.mjs","names":[],"sources":["../../src/data-sources/registry-context.tsx"],"sourcesContent":["import { createContext, useContext, useMemo, type ReactNode } from \"react\";\nimport type { DataSourceRegistry } from \"./types\";\nimport { DEFAULT_DATA_SOURCE_REGISTRY } from \"./registry\";\nimport { DataSourceProvider } from \"./context\";\n\ninterface DataSourceRegistryContextValue {\n registry: DataSourceRegistry;\n baseUrl?: string | undefined;\n /** Get API headers function */\n getApiHeaders?: (() => Record<string, string>) | undefined;\n /** Dynamic variables for endpoint path substitution (e.g., { rep_id: \"123\" }) */\n variables?: Record<string, string> | undefined;\n}\n\nconst DataSourceRegistryContext = createContext<DataSourceRegistryContextValue>(\n {\n registry: DEFAULT_DATA_SOURCE_REGISTRY,\n },\n);\n\nexport interface DataSourceRegistryProviderProps {\n registry?: DataSourceRegistry | undefined;\n /** Base URL for API calls (e.g., \"https://api.fluid.app/api\") */\n baseUrl?: string | undefined;\n /**\n * Get API headers function\n */\n getApiHeaders?: (() => Record<string, string>) | undefined;\n /** Dynamic variables for endpoint path substitution (e.g., { rep_id: \"123\" }) */\n variables?: Record<string, string> | undefined;\n children: ReactNode;\n}\n\n/**\n * Provides data source registry and configuration to all descendants.\n * If no registry is provided, uses the default.\n * Also provides the shared DataSourceProvider from rep-core so that\n * rep-widgets hooks can access baseUrl and getApiHeaders.\n */\nexport function DataSourceRegistryProvider({\n registry,\n baseUrl,\n getApiHeaders,\n variables,\n children,\n}: DataSourceRegistryProviderProps) {\n const value = useMemo(\n () => ({\n registry: registry ?? DEFAULT_DATA_SOURCE_REGISTRY,\n baseUrl,\n getApiHeaders,\n variables,\n }),\n [registry, baseUrl, getApiHeaders, variables],\n );\n\n return (\n <DataSourceRegistryContext.Provider value={value}>\n <DataSourceProvider baseUrl={baseUrl} getApiHeaders={getApiHeaders}>\n {children}\n </DataSourceProvider>\n </DataSourceRegistryContext.Provider>\n );\n}\n\n/**\n * Hook to access the data source registry.\n */\nexport function useDataSourceRegistry(): DataSourceRegistry {\n return useContext(DataSourceRegistryContext).registry;\n}\n\n/**\n * Hook to access the full data source registry context (registry + config).\n */\nexport function useDataSourceRegistryConfig(): DataSourceRegistryContextValue {\n return useContext(DataSourceRegistryContext);\n}\n"],"mappings":";;;;;AAcA,MAAM,4BAA4B,cAChC,EACE,UAAU,8BACX,CACF;;;;;;;AAqBD,SAAgB,2BAA2B,EACzC,UACA,SACA,eACA,WACA,YACkC;CAClC,MAAM,QAAQ,eACL;EACL,UAAU,YAAY;EACtB;EACA;EACA;EACD,GACD;EAAC;EAAU;EAAS;EAAe;EAAU,CAC9C;AAED,QACE,oBAAC,0BAA0B,UAA3B;EAA2C;YACzC,oBAAC,oBAAD;GAA6B;GAAwB;GAClD;GACkB,CAAA;EACc,CAAA;;;;;AAOzC,SAAgB,wBAA4C;AAC1D,QAAO,WAAW,0BAA0B,CAAC;;;;;AAM/C,SAAgB,8BAA8D;AAC5E,QAAO,WAAW,0BAA0B"}
1
+ {"version":3,"file":"registry-context.mjs","names":[],"sources":["../../src/data-sources/registry-context.tsx"],"sourcesContent":["import type React from \"react\";\nimport { createContext, useContext, useMemo, type ReactNode } from \"react\";\nimport type { DataSourceRegistry } from \"./types\";\nimport { DEFAULT_DATA_SOURCE_REGISTRY } from \"./registry\";\nimport { DataSourceProvider } from \"./context\";\n\ninterface DataSourceRegistryContextValue {\n registry: DataSourceRegistry;\n baseUrl?: string | undefined;\n /** Get API headers function */\n getApiHeaders?: (() => Record<string, string>) | undefined;\n /** Dynamic variables for endpoint path substitution (e.g., { rep_id: \"123\" }) */\n variables?: Record<string, string> | undefined;\n}\n\nconst DataSourceRegistryContext = createContext<DataSourceRegistryContextValue>(\n {\n registry: DEFAULT_DATA_SOURCE_REGISTRY,\n },\n);\n\nexport interface DataSourceRegistryProviderProps {\n registry?: DataSourceRegistry | undefined;\n /** Base URL for API calls (e.g., \"https://api.fluid.app/api\") */\n baseUrl?: string | undefined;\n /**\n * Get API headers function\n */\n getApiHeaders?: (() => Record<string, string>) | undefined;\n /** Dynamic variables for endpoint path substitution (e.g., { rep_id: \"123\" }) */\n variables?: Record<string, string> | undefined;\n children: ReactNode;\n}\n\n/**\n * Provides data source registry and configuration to all descendants.\n * If no registry is provided, uses the default.\n * Also provides the shared DataSourceProvider from rep-core so that\n * rep-widgets hooks can access baseUrl and getApiHeaders.\n */\nexport function DataSourceRegistryProvider({\n registry,\n baseUrl,\n getApiHeaders,\n variables,\n children,\n}: DataSourceRegistryProviderProps): React.JSX.Element {\n const value = useMemo(\n () => ({\n registry: registry ?? DEFAULT_DATA_SOURCE_REGISTRY,\n baseUrl,\n getApiHeaders,\n variables,\n }),\n [registry, baseUrl, getApiHeaders, variables],\n );\n\n return (\n <DataSourceRegistryContext.Provider value={value}>\n <DataSourceProvider baseUrl={baseUrl} getApiHeaders={getApiHeaders}>\n {children}\n </DataSourceProvider>\n </DataSourceRegistryContext.Provider>\n );\n}\n\n/**\n * Hook to access the data source registry.\n */\nexport function useDataSourceRegistry(): DataSourceRegistry {\n return useContext(DataSourceRegistryContext).registry;\n}\n\n/**\n * Hook to access the full data source registry context (registry + config).\n */\nexport function useDataSourceRegistryConfig(): DataSourceRegistryContextValue {\n return useContext(DataSourceRegistryContext);\n}\n"],"mappings":";;;;;AAeA,MAAM,4BAA4B,cAChC,EACE,UAAU,8BACX,CACF;;;;;;;AAqBD,SAAgB,2BAA2B,EACzC,UACA,SACA,eACA,WACA,YACqD;CACrD,MAAM,QAAQ,eACL;EACL,UAAU,YAAY;EACtB;EACA;EACA;EACD,GACD;EAAC;EAAU;EAAS;EAAe;EAAU,CAC9C;AAED,QACE,oBAAC,0BAA0B,UAA3B;EAA2C;YACzC,oBAAC,oBAAD;GAA6B;GAAwB;GAClD;GACkB,CAAA;EACc,CAAA;;;;;AAOzC,SAAgB,wBAA4C;AAC1D,QAAO,WAAW,0BAA0B,CAAC;;;;;AAM/C,SAAgB,8BAA8D;AAC5E,QAAO,WAAW,0BAA0B"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry.cjs","names":["apiFetcher","customFetcher","staticFetcher","WIDGET_TRANSFORMERS"],"sources":["../../src/data-sources/registry.ts"],"sourcesContent":["import type {\n DataSourceRegistry,\n DataFetcher,\n DataTransformer,\n DataSourceType,\n} from \"./types\";\nimport { apiFetcher } from \"./fetchers/api\";\nimport { customFetcher } from \"./fetchers/custom\";\nimport { staticFetcher } from \"./fetchers/static\";\nimport { WIDGET_TRANSFORMERS } from \"./transformers\";\n\nexport interface CreateDataSourceRegistryOptions {\n /** Custom fetchers to add or override */\n fetchers?: Partial<Record<DataSourceType, DataFetcher>>;\n /** Custom transform functions */\n transformers?: Record<string, DataTransformer>;\n}\n\n/**\n * Creates a data source registry with default fetchers.\n * Users can extend this with custom fetchers and transformers.\n */\nexport function createDataSourceRegistry(\n options?: CreateDataSourceRegistryOptions,\n): DataSourceRegistry {\n return {\n fetchers: {\n api: apiFetcher,\n custom: customFetcher,\n static: staticFetcher,\n ...options?.fetchers,\n } as Record<DataSourceType, DataFetcher>,\n transformers: {\n ...WIDGET_TRANSFORMERS,\n ...options?.transformers,\n },\n };\n}\n\n/** Default registry instance */\nexport const DEFAULT_DATA_SOURCE_REGISTRY = createDataSourceRegistry();\n"],"mappings":";;;;;;;;;;AAsBA,SAAgB,yBACd,SACoB;AACpB,QAAO;EACL,UAAU;GACR,KAAKA,kCAAAA;GACL,QAAQC,qCAAAA;GACR,QAAQC,qCAAAA;GACR,GAAG,SAAS;GACb;EACD,cAAc;GACZ,GAAGC,kCAAAA;GACH,GAAG,SAAS;GACb;EACF;;;AAIH,MAAa,+BAA+B,0BAA0B"}
1
+ {"version":3,"file":"registry.cjs","names":["apiFetcher","customFetcher","staticFetcher","WIDGET_TRANSFORMERS"],"sources":["../../src/data-sources/registry.ts"],"sourcesContent":["import type {\n DataSourceRegistry,\n DataFetcher,\n DataTransformer,\n DataSourceType,\n} from \"./types\";\nimport { apiFetcher } from \"./fetchers/api\";\nimport { customFetcher } from \"./fetchers/custom\";\nimport { staticFetcher } from \"./fetchers/static\";\nimport { WIDGET_TRANSFORMERS } from \"./transformers\";\n\nexport interface CreateDataSourceRegistryOptions {\n /** Custom fetchers to add or override */\n fetchers?: Partial<Record<DataSourceType, DataFetcher>>;\n /** Custom transform functions */\n transformers?: Record<string, DataTransformer>;\n}\n\n/**\n * Creates a data source registry with default fetchers.\n * Users can extend this with custom fetchers and transformers.\n */\nexport function createDataSourceRegistry(\n options?: CreateDataSourceRegistryOptions,\n): DataSourceRegistry {\n return {\n fetchers: {\n api: apiFetcher,\n custom: customFetcher,\n static: staticFetcher,\n ...options?.fetchers,\n } as Record<DataSourceType, DataFetcher>,\n transformers: {\n ...WIDGET_TRANSFORMERS,\n ...options?.transformers,\n },\n };\n}\n\n/** Default registry instance */\nexport const DEFAULT_DATA_SOURCE_REGISTRY: DataSourceRegistry =\n createDataSourceRegistry();\n"],"mappings":";;;;;;;;;;AAsBA,SAAgB,yBACd,SACoB;AACpB,QAAO;EACL,UAAU;GACR,KAAKA,kCAAAA;GACL,QAAQC,qCAAAA;GACR,QAAQC,qCAAAA;GACR,GAAG,SAAS;GACb;EACD,cAAc;GACZ,GAAGC,kCAAAA;GACH,GAAG,SAAS;GACb;EACF;;;AAIH,MAAa,+BACX,0BAA0B"}
@@ -1,4 +1,4 @@
1
- import { c as DataSourceType, l as DataTransformer, r as DataFetcher, s as DataSourceRegistry } from "../types-BIXtQlHB.cjs";
1
+ import { c as DataSourceType, l as DataTransformer, r as DataFetcher, s as DataSourceRegistry } from "../types-DrzvahW8.cjs";
2
2
 
3
3
  //#region src/data-sources/registry.d.ts
4
4
  interface CreateDataSourceRegistryOptions {
@@ -8,9 +8,9 @@ interface CreateDataSourceRegistryOptions {
8
8
  transformers?: Record<string, DataTransformer>;
9
9
  }
10
10
  /**
11
- * Creates a data source registry with default fetchers.
12
- * Users can extend this with custom fetchers and transformers.
13
- */
11
+ * Creates a data source registry with default fetchers.
12
+ * Users can extend this with custom fetchers and transformers.
13
+ */
14
14
  declare function createDataSourceRegistry(options?: CreateDataSourceRegistryOptions): DataSourceRegistry;
15
15
  /** Default registry instance */
16
16
  declare const DEFAULT_DATA_SOURCE_REGISTRY: DataSourceRegistry;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.cts","names":[],"sources":["../../src/data-sources/registry.ts"],"mappings":";;;UAWiB,+BAAA;;EAEf,QAAA,GAAW,OAAA,CAAQ,MAAA,CAAO,cAAA,EAAgB,WAAA;EAFI;EAI9C,YAAA,GAAe,MAAA,SAAe,eAAA;AAAA;;;;;iBAOhB,wBAAA,CACd,OAAA,GAAU,+BAAA,GACT,kBAAA;;cAgBU,4BAAA,EAA4B,kBAAA"}
1
+ {"version":3,"file":"registry.d.cts","names":[],"sources":["../../src/data-sources/registry.ts"],"mappings":";;;UAWiB,+BAAA;;EAEf,QAAA,GAAW,OAAA,CAAQ,MAAA,CAAO,cAAA,EAAgB,WAAA;EAF3B;EAIf,YAAA,GAAe,MAAA,SAAe,eAAA;AAAA;;;;;iBAOhB,wBAAA,CACd,OAAA,GAAU,+BAAA,GACT,kBAAA;;cAgBU,4BAAA,EAA8B,kBAAA"}
@@ -1,4 +1,4 @@
1
- import { c as DataSourceType, l as DataTransformer, r as DataFetcher, s as DataSourceRegistry } from "../types-C5OFJy-O.mjs";
1
+ import { c as DataSourceType, l as DataTransformer, r as DataFetcher, s as DataSourceRegistry } from "../types-C5Zs5V3E.mjs";
2
2
 
3
3
  //#region src/data-sources/registry.d.ts
4
4
  interface CreateDataSourceRegistryOptions {
@@ -8,9 +8,9 @@ interface CreateDataSourceRegistryOptions {
8
8
  transformers?: Record<string, DataTransformer>;
9
9
  }
10
10
  /**
11
- * Creates a data source registry with default fetchers.
12
- * Users can extend this with custom fetchers and transformers.
13
- */
11
+ * Creates a data source registry with default fetchers.
12
+ * Users can extend this with custom fetchers and transformers.
13
+ */
14
14
  declare function createDataSourceRegistry(options?: CreateDataSourceRegistryOptions): DataSourceRegistry;
15
15
  /** Default registry instance */
16
16
  declare const DEFAULT_DATA_SOURCE_REGISTRY: DataSourceRegistry;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.mts","names":[],"sources":["../../src/data-sources/registry.ts"],"mappings":";;;UAWiB,+BAAA;;EAEf,QAAA,GAAW,OAAA,CAAQ,MAAA,CAAO,cAAA,EAAgB,WAAA;EAFI;EAI9C,YAAA,GAAe,MAAA,SAAe,eAAA;AAAA;;;;;iBAOhB,wBAAA,CACd,OAAA,GAAU,+BAAA,GACT,kBAAA;;cAgBU,4BAAA,EAA4B,kBAAA"}
1
+ {"version":3,"file":"registry.d.mts","names":[],"sources":["../../src/data-sources/registry.ts"],"mappings":";;;UAWiB,+BAAA;;EAEf,QAAA,GAAW,OAAA,CAAQ,MAAA,CAAO,cAAA,EAAgB,WAAA;EAF3B;EAIf,YAAA,GAAe,MAAA,SAAe,eAAA;AAAA;;;;;iBAOhB,wBAAA,CACd,OAAA,GAAU,+BAAA,GACT,kBAAA;;cAgBU,4BAAA,EAA8B,kBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry.mjs","names":[],"sources":["../../src/data-sources/registry.ts"],"sourcesContent":["import type {\n DataSourceRegistry,\n DataFetcher,\n DataTransformer,\n DataSourceType,\n} from \"./types\";\nimport { apiFetcher } from \"./fetchers/api\";\nimport { customFetcher } from \"./fetchers/custom\";\nimport { staticFetcher } from \"./fetchers/static\";\nimport { WIDGET_TRANSFORMERS } from \"./transformers\";\n\nexport interface CreateDataSourceRegistryOptions {\n /** Custom fetchers to add or override */\n fetchers?: Partial<Record<DataSourceType, DataFetcher>>;\n /** Custom transform functions */\n transformers?: Record<string, DataTransformer>;\n}\n\n/**\n * Creates a data source registry with default fetchers.\n * Users can extend this with custom fetchers and transformers.\n */\nexport function createDataSourceRegistry(\n options?: CreateDataSourceRegistryOptions,\n): DataSourceRegistry {\n return {\n fetchers: {\n api: apiFetcher,\n custom: customFetcher,\n static: staticFetcher,\n ...options?.fetchers,\n } as Record<DataSourceType, DataFetcher>,\n transformers: {\n ...WIDGET_TRANSFORMERS,\n ...options?.transformers,\n },\n };\n}\n\n/** Default registry instance */\nexport const DEFAULT_DATA_SOURCE_REGISTRY = createDataSourceRegistry();\n"],"mappings":";;;;;;;;;AAsBA,SAAgB,yBACd,SACoB;AACpB,QAAO;EACL,UAAU;GACR,KAAK;GACL,QAAQ;GACR,QAAQ;GACR,GAAG,SAAS;GACb;EACD,cAAc;GACZ,GAAG;GACH,GAAG,SAAS;GACb;EACF;;;AAIH,MAAa,+BAA+B,0BAA0B"}
1
+ {"version":3,"file":"registry.mjs","names":[],"sources":["../../src/data-sources/registry.ts"],"sourcesContent":["import type {\n DataSourceRegistry,\n DataFetcher,\n DataTransformer,\n DataSourceType,\n} from \"./types\";\nimport { apiFetcher } from \"./fetchers/api\";\nimport { customFetcher } from \"./fetchers/custom\";\nimport { staticFetcher } from \"./fetchers/static\";\nimport { WIDGET_TRANSFORMERS } from \"./transformers\";\n\nexport interface CreateDataSourceRegistryOptions {\n /** Custom fetchers to add or override */\n fetchers?: Partial<Record<DataSourceType, DataFetcher>>;\n /** Custom transform functions */\n transformers?: Record<string, DataTransformer>;\n}\n\n/**\n * Creates a data source registry with default fetchers.\n * Users can extend this with custom fetchers and transformers.\n */\nexport function createDataSourceRegistry(\n options?: CreateDataSourceRegistryOptions,\n): DataSourceRegistry {\n return {\n fetchers: {\n api: apiFetcher,\n custom: customFetcher,\n static: staticFetcher,\n ...options?.fetchers,\n } as Record<DataSourceType, DataFetcher>,\n transformers: {\n ...WIDGET_TRANSFORMERS,\n ...options?.transformers,\n },\n };\n}\n\n/** Default registry instance */\nexport const DEFAULT_DATA_SOURCE_REGISTRY: DataSourceRegistry =\n createDataSourceRegistry();\n"],"mappings":";;;;;;;;;AAsBA,SAAgB,yBACd,SACoB;AACpB,QAAO;EACL,UAAU;GACR,KAAK;GACL,QAAQ;GACR,QAAQ;GACR,GAAG,SAAS;GACb;EACD,cAAc;GACZ,GAAG;GACH,GAAG,SAAS;GACb;EACF;;;AAIH,MAAa,+BACX,0BAA0B"}
@@ -1,9 +1,9 @@
1
- import { l as DataTransformer } from "../types-BIXtQlHB.cjs";
1
+ import { l as DataTransformer } from "../types-DrzvahW8.cjs";
2
2
 
3
3
  //#region src/data-sources/transformers.d.ts
4
4
  /**
5
- * All widget transformers bundled for registration
6
- */
5
+ * All widget transformers bundled for registration
6
+ */
7
7
  declare const WIDGET_TRANSFORMERS: Record<string, DataTransformer>;
8
8
  //#endregion
9
9
  export { WIDGET_TRANSFORMERS };
@@ -1,9 +1,9 @@
1
- import { l as DataTransformer } from "../types-C5OFJy-O.mjs";
1
+ import { l as DataTransformer } from "../types-C5Zs5V3E.mjs";
2
2
 
3
3
  //#region src/data-sources/transformers.d.ts
4
4
  /**
5
- * All widget transformers bundled for registration
6
- */
5
+ * All widget transformers bundled for registration
6
+ */
7
7
  declare const WIDGET_TRANSFORMERS: Record<string, DataTransformer>;
8
8
  //#endregion
9
9
  export { WIDGET_TRANSFORMERS };
@@ -1,2 +1,2 @@
1
- import { a as DataSourceConfig, c as DataSourceType, d as ShareableType, f as StaticDataSource, h as WidgetDataResult, i as DataSource, l as DataTransformer, m as StaticSourceType, n as CustomDataSource, o as DataSourceContext, p as StaticItem, r as DataFetcher, s as DataSourceRegistry, t as ApiDataSource, u as SelectedItem } from "../types-BIXtQlHB.cjs";
1
+ import { a as DataSourceConfig, c as DataSourceType, d as ShareableType, f as StaticDataSource, h as WidgetDataResult, i as DataSource, l as DataTransformer, m as StaticSourceType, n as CustomDataSource, o as DataSourceContext, p as StaticItem, r as DataFetcher, s as DataSourceRegistry, t as ApiDataSource, u as SelectedItem } from "../types-DrzvahW8.cjs";
2
2
  export { ApiDataSource, CustomDataSource, DataFetcher, DataSource, DataSourceConfig, DataSourceContext, DataSourceRegistry, DataSourceType, DataTransformer, SelectedItem, ShareableType, StaticDataSource, StaticItem, StaticSourceType, WidgetDataResult };
@@ -1,2 +1,2 @@
1
- import { a as DataSourceConfig, c as DataSourceType, d as ShareableType, f as StaticDataSource, h as WidgetDataResult, i as DataSource, l as DataTransformer, m as StaticSourceType, n as CustomDataSource, o as DataSourceContext, p as StaticItem, r as DataFetcher, s as DataSourceRegistry, t as ApiDataSource, u as SelectedItem } from "../types-C5OFJy-O.mjs";
1
+ import { a as DataSourceConfig, c as DataSourceType, d as ShareableType, f as StaticDataSource, h as WidgetDataResult, i as DataSource, l as DataTransformer, m as StaticSourceType, n as CustomDataSource, o as DataSourceContext, p as StaticItem, r as DataFetcher, s as DataSourceRegistry, t as ApiDataSource, u as SelectedItem } from "../types-C5Zs5V3E.mjs";
2
2
  export { ApiDataSource, CustomDataSource, DataFetcher, DataSource, DataSourceConfig, DataSourceContext, DataSourceRegistry, DataSourceType, DataTransformer, SelectedItem, ShareableType, StaticDataSource, StaticItem, StaticSourceType, WidgetDataResult };
@@ -1,5 +1,5 @@
1
- import { h as WidgetDataResult, s as DataSourceRegistry } from "../types-BIXtQlHB.cjs";
2
- import { a as WidgetSchema } from "../widget-schema--PY1uMWx.cjs";
1
+ import { h as WidgetDataResult, s as DataSourceRegistry } from "../types-DrzvahW8.cjs";
2
+ import { a as WidgetSchema } from "../widget-schema-BSX2fVhW.cjs";
3
3
 
4
4
  //#region src/data-sources/use-widget-data.d.ts
5
5
  interface UseWidgetDataOptions {
@@ -9,8 +9,8 @@ interface UseWidgetDataOptions {
9
9
  baseUrl?: string | undefined;
10
10
  }
11
11
  /**
12
- * Hook that fetches and resolves data sources for a widget using React Query.
13
- */
12
+ * Hook that fetches and resolves data sources for a widget using React Query.
13
+ */
14
14
  declare function useWidgetData<T = Record<string, unknown>>(widget: WidgetSchema, options?: UseWidgetDataOptions): WidgetDataResult<T>;
15
15
  //#endregion
16
16
  export { useWidgetData };
@@ -1 +1 @@
1
- {"version":3,"file":"use-widget-data.d.cts","names":[],"sources":["../../src/data-sources/use-widget-data.ts"],"mappings":";;;;UAWU,oBAAA;;EAER,QAAA,GAAW,kBAAA;EAFiB;EAI5B,OAAA;AAAA;;;;iBA6Fc,aAAA,KAAkB,MAAA,kBAAA,CAChC,MAAA,EAAQ,YAAA,EACR,OAAA,GAAU,oBAAA,GACT,gBAAA,CAAiB,CAAA"}
1
+ {"version":3,"file":"use-widget-data.d.cts","names":[],"sources":["../../src/data-sources/use-widget-data.ts"],"mappings":";;;;UAWU,oBAAA;;EAER,QAAA,GAAW,kBAAA;EAFH;EAIR,OAAA;AAAA;;;;iBA6Fc,aAAA,KAAkB,MAAA,kBAAA,CAChC,MAAA,EAAQ,YAAA,EACR,OAAA,GAAU,oBAAA,GACT,gBAAA,CAAiB,CAAA"}
@@ -1,5 +1,5 @@
1
- import { h as WidgetDataResult, s as DataSourceRegistry } from "../types-C5OFJy-O.mjs";
2
- import { a as WidgetSchema } from "../widget-schema-YkD5p3v4.mjs";
1
+ import { h as WidgetDataResult, s as DataSourceRegistry } from "../types-C5Zs5V3E.mjs";
2
+ import { a as WidgetSchema } from "../widget-schema-BKZgsNG7.mjs";
3
3
 
4
4
  //#region src/data-sources/use-widget-data.d.ts
5
5
  interface UseWidgetDataOptions {
@@ -9,8 +9,8 @@ interface UseWidgetDataOptions {
9
9
  baseUrl?: string | undefined;
10
10
  }
11
11
  /**
12
- * Hook that fetches and resolves data sources for a widget using React Query.
13
- */
12
+ * Hook that fetches and resolves data sources for a widget using React Query.
13
+ */
14
14
  declare function useWidgetData<T = Record<string, unknown>>(widget: WidgetSchema, options?: UseWidgetDataOptions): WidgetDataResult<T>;
15
15
  //#endregion
16
16
  export { useWidgetData };
@@ -1 +1 @@
1
- {"version":3,"file":"use-widget-data.d.mts","names":[],"sources":["../../src/data-sources/use-widget-data.ts"],"mappings":";;;;UAWU,oBAAA;;EAER,QAAA,GAAW,kBAAA;EAFiB;EAI5B,OAAA;AAAA;;;;iBA6Fc,aAAA,KAAkB,MAAA,kBAAA,CAChC,MAAA,EAAQ,YAAA,EACR,OAAA,GAAU,oBAAA,GACT,gBAAA,CAAiB,CAAA"}
1
+ {"version":3,"file":"use-widget-data.d.mts","names":[],"sources":["../../src/data-sources/use-widget-data.ts"],"mappings":";;;;UAWU,oBAAA;;EAER,QAAA,GAAW,kBAAA;EAFH;EAIR,OAAA;AAAA;;;;iBA6Fc,aAAA,KAAkB,MAAA,kBAAA,CAChC,MAAA,EAAQ,YAAA,EACR,OAAA,GAAU,oBAAA,GACT,gBAAA,CAAiB,CAAA"}
@@ -1,25 +1,25 @@
1
- import { a as WidgetSchema } from "./widget-schema--PY1uMWx.cjs";
2
- import { _ as ThemeDefinition } from "./types-Ctu-Zio6.cjs";
1
+ import { a as WidgetSchema } from "./widget-schema-BSX2fVhW.cjs";
2
+ import { _ as ThemeDefinition } from "./types-27AHMek-.cjs";
3
3
  import { components } from "@fluid-app/fluidos-api-client";
4
4
 
5
5
  //#region src/types/navigation.d.ts
6
6
  /** The API schema type — single source of truth for navigation item fields. */
7
7
  type ApiNavigationItem = components["schemas"]["FluidOSNavigationItem"];
8
8
  /**
9
- * Strip `null` from a union type, converting `T | null` → `T`.
10
- * Used to convert API's null convention to rep-core's undefined convention.
11
- */
9
+ * Strip `null` from a union type, converting `T | null` → `T`.
10
+ * Used to convert API's null convention to rep-core's undefined convention.
11
+ */
12
12
  type StripNull<T> = Exclude<T, null>;
13
13
  /**
14
- * Navigation item in the sidebar/menu structure.
15
- *
16
- * Derived from `FluidOSNavigationItem` (the API schema) so field types
17
- * track upstream changes. Differences from the API type:
18
- * - `id` is optional (system/default items may not have one)
19
- * - `label` is required (transforms default null to "Untitled")
20
- * - `section` is a frontend-only extension (not in API)
21
- * - Nullable fields use `undefined` instead of `null` (except `parent_id`)
22
- */
14
+ * Navigation item in the sidebar/menu structure.
15
+ *
16
+ * Derived from `FluidOSNavigationItem` (the API schema) so field types
17
+ * track upstream changes. Differences from the API type:
18
+ * - `id` is optional (system/default items may not have one)
19
+ * - `label` is required (transforms default null to "Untitled")
20
+ * - `section` is a frontend-only extension (not in API)
21
+ * - Nullable fields use `undefined` instead of `null` (except `parent_id`)
22
+ */
23
23
  interface NavigationItem {
24
24
  /** Database-generated identifier — optional because system/default items may not have one */
25
25
  readonly id?: ApiNavigationItem["id"];
@@ -43,8 +43,8 @@ interface NavigationItem {
43
43
  children: NavigationItem[];
44
44
  }
45
45
  /**
46
- * Screen definition with its component tree
47
- */
46
+ * Screen definition with its component tree
47
+ */
48
48
  interface ScreenDefinition {
49
49
  readonly id: number;
50
50
  slug: string;
@@ -52,8 +52,8 @@ interface ScreenDefinition {
52
52
  component_tree: WidgetSchema[];
53
53
  }
54
54
  /**
55
- * Navigation configuration for the rep portal
56
- */
55
+ * Navigation configuration for the rep portal
56
+ */
57
57
  interface Navigation {
58
58
  readonly definition_id: number;
59
59
  readonly id: number;
@@ -84,10 +84,10 @@ interface RepAppManifest {
84
84
  //#endregion
85
85
  //#region src/types/shareable-item.d.ts
86
86
  /**
87
- * Base props for a shareable item.
88
- * Uses structural typing to be compatible with various modal implementations.
89
- * The index signature allows additional properties from consuming apps.
90
- */
87
+ * Base props for a shareable item.
88
+ * Uses structural typing to be compatible with various modal implementations.
89
+ * The index signature allows additional properties from consuming apps.
90
+ */
91
91
  interface ShareableItem {
92
92
  id: string | number;
93
93
  title?: string | null;
@@ -105,9 +105,9 @@ interface ShareableItem {
105
105
  //#endregion
106
106
  //#region src/types/field-types.d.ts
107
107
  /**
108
- * Color options constant - single source of truth for color values.
109
- * Use COLOR_OPTIONS.primary instead of "primary" for type-safe comparisons.
110
- */
108
+ * Color options constant - single source of truth for color values.
109
+ * Use COLOR_OPTIONS.primary instead of "primary" for type-safe comparisons.
110
+ */
111
111
  declare const COLOR_OPTIONS: {
112
112
  readonly background: "background";
113
113
  readonly foreground: "foreground";
@@ -118,9 +118,9 @@ declare const COLOR_OPTIONS: {
118
118
  readonly destructive: "destructive";
119
119
  };
120
120
  /**
121
- * Union type of all color options, derived from COLOR_OPTIONS constant.
122
- * @see deriving-typeof-for-object-keys pattern
123
- */
121
+ * Union type of all color options, derived from COLOR_OPTIONS constant.
122
+ * @see deriving-typeof-for-object-keys pattern
123
+ */
124
124
  type ColorOptions = (typeof COLOR_OPTIONS)[keyof typeof COLOR_OPTIONS];
125
125
  declare const FONT_SIZE_OPTIONS: {
126
126
  readonly "2xl": "2xl";
@@ -186,9 +186,9 @@ interface BackgroundValue {
186
186
  resource?: ShareableItem;
187
187
  }
188
188
  /**
189
- * Section layout configuration - single source of truth for layout types.
190
- * SectionLayoutType is derived from these keys to prevent drift.
191
- */
189
+ * Section layout configuration - single source of truth for layout types.
190
+ * SectionLayoutType is derived from these keys to prevent drift.
191
+ */
192
192
  declare const SECTION_LAYOUT_CONFIG: {
193
193
  readonly "single-column": {
194
194
  readonly columns: 1;
@@ -232,56 +232,15 @@ declare const SECTION_LAYOUT_CONFIG: {
232
232
  };
233
233
  };
234
234
  /**
235
- * Union type of all section layout types, derived from SECTION_LAYOUT_CONFIG keys.
236
- * @see deriving-typeof-for-object-keys pattern
237
- */
235
+ * Union type of all section layout types, derived from SECTION_LAYOUT_CONFIG keys.
236
+ * @see deriving-typeof-for-object-keys pattern
237
+ */
238
238
  type SectionLayoutType = keyof typeof SECTION_LAYOUT_CONFIG;
239
239
  /** @deprecated Use SECTION_LAYOUT_CONFIG instead */
240
- declare const sectionLayoutConfig: {
241
- readonly "single-column": {
242
- readonly columns: 1;
243
- readonly widths: readonly ["1fr"];
244
- readonly gridClasses: "";
245
- };
246
- readonly "2c-equal": {
247
- readonly columns: 2;
248
- readonly widths: readonly ["1fr", "1fr"];
249
- readonly gridClasses: "@md:grid-cols-2";
250
- };
251
- readonly "2c-left-wider": {
252
- readonly columns: 2;
253
- readonly widths: readonly ["2fr", "1fr"];
254
- readonly gridClasses: "@md:grid-cols-[2fr_1fr]";
255
- };
256
- readonly "2c-right-wider": {
257
- readonly columns: 2;
258
- readonly widths: readonly ["1fr", "2fr"];
259
- readonly gridClasses: "@md:grid-cols-[1fr_2fr]";
260
- };
261
- readonly "2c-left-narrow": {
262
- readonly columns: 2;
263
- readonly widths: readonly ["1fr", "3fr"];
264
- readonly gridClasses: "@md:grid-cols-[1fr_3fr]";
265
- };
266
- readonly "2c-right-narrow": {
267
- readonly columns: 2;
268
- readonly widths: readonly ["3fr", "1fr"];
269
- readonly gridClasses: "@md:grid-cols-[3fr_1fr]";
270
- };
271
- readonly "3c-equal": {
272
- readonly columns: 3;
273
- readonly widths: readonly ["1fr", "1fr", "1fr"];
274
- readonly gridClasses: "@md:grid-cols-3";
275
- };
276
- readonly "3c-middle-wider": {
277
- readonly columns: 3;
278
- readonly widths: readonly ["1fr", "2fr", "1fr"];
279
- readonly gridClasses: "@md:grid-cols-[1fr_2fr_1fr]";
280
- };
281
- };
240
+ declare const sectionLayoutConfig: typeof SECTION_LAYOUT_CONFIG;
282
241
  //#endregion
283
242
  //#region src/types/index.d.ts
284
243
  type StrictOmit<T, K extends keyof T> = Omit<T, K>;
285
244
  //#endregion
286
245
  export { RepAppProfile as A, VerticalAlign as C, NavigationItem as D, Navigation as E, RepAppData as O, VERTICAL_ALIGN_OPTIONS as S, ShareableItem as T, HorizontalAlign as _, BUTTON_SIZE_OPTIONS as a, SECTION_LAYOUT_CONFIG as b, BorderRadiusOptions as c, ColorOptions as d, FONT_SIZE_OPTIONS as f, HORIZONTAL_ALIGN_OPTIONS as g, GapOptions as h, BORDER_RADIUS_OPTIONS as i, ScreenDefinition as j, RepAppManifest as k, ButtonSizeOptions as l, GAP_OPTIONS as m, AlignOptions as n, BackgroundType as o, FontSizeOptions as p, BACKGROUND_TYPES as r, BackgroundValue as s, StrictOmit as t, COLOR_OPTIONS as u, PADDING_VALUES as v, sectionLayoutConfig as w, SectionLayoutType as x, PaddingOptions as y };
287
- //# sourceMappingURL=index-Bxe_LIi8.d.cts.map
246
+ //# sourceMappingURL=index-Bgv8HUpo.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Bgv8HUpo.d.cts","names":[],"sources":["../src/types/navigation.ts","../src/types/shareable-item.ts","../src/types/field-types.ts","../src/types/index.ts"],"mappings":";;;;;;KAQK,iBAAA,GAAoB,UAAA;;;;;KAMpB,SAAA,MAAe,OAAA,CAAQ,CAAA;;;;;;;;;AAY5B;;UAAiB,cAAA;;WAEN,EAAA,GAAK,iBAAA;;EAEd,IAAA,GAAO,SAAA,CAAU,iBAAA;;EAEjB,KAAA;;EAEA,IAAA,GAAO,SAAA,CAAU,iBAAA;;EAEjB,OAAA;;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IAAA,SACA,MAAA;IAAA,SACA,WAAA;EAAA;EAAA,SAEF,gBAAA;IAAA,SACE,OAAA;IAAA,SACA,MAAA;IAAA,SACA,WAAA;EAAA;EAAA,SAEF,iBAAA;IAAA,SACE,OAAA;IAAA,SACA,MAAA;IAAA,SACA,WAAA;EAAA;EAAA,SAEF,UAAA;IAAA,SACE,OAAA;IAAA,SACA,MAAA;IAAA,SACA,WAAA;EAAA;EAAA,SAEF,iBAAA;IAAA,SACE,OAAA;IAAA,SACA,MAAA;IAAA,SACA,WAAA;EAAA;AAAA;;;;;KAoDD,iBAAA,gBAAiC,qBAAA;;cAGhC,mBAAA,SAA4B,qBAAA;;;KCvK7B,UAAA,oBAA8B,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA"}
@@ -1,25 +1,25 @@
1
- import { a as WidgetSchema } from "./widget-schema-YkD5p3v4.mjs";
2
- import { _ as ThemeDefinition } from "./types-ByG6Xy3C.mjs";
1
+ import { a as WidgetSchema } from "./widget-schema-BKZgsNG7.mjs";
2
+ import { _ as ThemeDefinition } from "./types-CeCPKvOv.mjs";
3
3
  import { components } from "@fluid-app/fluidos-api-client";
4
4
 
5
5
  //#region src/types/navigation.d.ts
6
6
  /** The API schema type — single source of truth for navigation item fields. */
7
7
  type ApiNavigationItem = components["schemas"]["FluidOSNavigationItem"];
8
8
  /**
9
- * Strip `null` from a union type, converting `T | null` → `T`.
10
- * Used to convert API's null convention to rep-core's undefined convention.
11
- */
9
+ * Strip `null` from a union type, converting `T | null` → `T`.
10
+ * Used to convert API's null convention to rep-core's undefined convention.
11
+ */
12
12
  type StripNull<T> = Exclude<T, null>;
13
13
  /**
14
- * Navigation item in the sidebar/menu structure.
15
- *
16
- * Derived from `FluidOSNavigationItem` (the API schema) so field types
17
- * track upstream changes. Differences from the API type:
18
- * - `id` is optional (system/default items may not have one)
19
- * - `label` is required (transforms default null to "Untitled")
20
- * - `section` is a frontend-only extension (not in API)
21
- * - Nullable fields use `undefined` instead of `null` (except `parent_id`)
22
- */
14
+ * Navigation item in the sidebar/menu structure.
15
+ *
16
+ * Derived from `FluidOSNavigationItem` (the API schema) so field types
17
+ * track upstream changes. Differences from the API type:
18
+ * - `id` is optional (system/default items may not have one)
19
+ * - `label` is required (transforms default null to "Untitled")
20
+ * - `section` is a frontend-only extension (not in API)
21
+ * - Nullable fields use `undefined` instead of `null` (except `parent_id`)
22
+ */
23
23
  interface NavigationItem {
24
24
  /** Database-generated identifier — optional because system/default items may not have one */
25
25
  readonly id?: ApiNavigationItem["id"];
@@ -43,8 +43,8 @@ interface NavigationItem {
43
43
  children: NavigationItem[];
44
44
  }
45
45
  /**
46
- * Screen definition with its component tree
47
- */
46
+ * Screen definition with its component tree
47
+ */
48
48
  interface ScreenDefinition {
49
49
  readonly id: number;
50
50
  slug: string;
@@ -52,8 +52,8 @@ interface ScreenDefinition {
52
52
  component_tree: WidgetSchema[];
53
53
  }
54
54
  /**
55
- * Navigation configuration for the rep portal
56
- */
55
+ * Navigation configuration for the rep portal
56
+ */
57
57
  interface Navigation {
58
58
  readonly definition_id: number;
59
59
  readonly id: number;
@@ -84,10 +84,10 @@ interface RepAppManifest {
84
84
  //#endregion
85
85
  //#region src/types/shareable-item.d.ts
86
86
  /**
87
- * Base props for a shareable item.
88
- * Uses structural typing to be compatible with various modal implementations.
89
- * The index signature allows additional properties from consuming apps.
90
- */
87
+ * Base props for a shareable item.
88
+ * Uses structural typing to be compatible with various modal implementations.
89
+ * The index signature allows additional properties from consuming apps.
90
+ */
91
91
  interface ShareableItem {
92
92
  id: string | number;
93
93
  title?: string | null;
@@ -105,9 +105,9 @@ interface ShareableItem {
105
105
  //#endregion
106
106
  //#region src/types/field-types.d.ts
107
107
  /**
108
- * Color options constant - single source of truth for color values.
109
- * Use COLOR_OPTIONS.primary instead of "primary" for type-safe comparisons.
110
- */
108
+ * Color options constant - single source of truth for color values.
109
+ * Use COLOR_OPTIONS.primary instead of "primary" for type-safe comparisons.
110
+ */
111
111
  declare const COLOR_OPTIONS: {
112
112
  readonly background: "background";
113
113
  readonly foreground: "foreground";
@@ -118,9 +118,9 @@ declare const COLOR_OPTIONS: {
118
118
  readonly destructive: "destructive";
119
119
  };
120
120
  /**
121
- * Union type of all color options, derived from COLOR_OPTIONS constant.
122
- * @see deriving-typeof-for-object-keys pattern
123
- */
121
+ * Union type of all color options, derived from COLOR_OPTIONS constant.
122
+ * @see deriving-typeof-for-object-keys pattern
123
+ */
124
124
  type ColorOptions = (typeof COLOR_OPTIONS)[keyof typeof COLOR_OPTIONS];
125
125
  declare const FONT_SIZE_OPTIONS: {
126
126
  readonly "2xl": "2xl";
@@ -186,9 +186,9 @@ interface BackgroundValue {
186
186
  resource?: ShareableItem;
187
187
  }
188
188
  /**
189
- * Section layout configuration - single source of truth for layout types.
190
- * SectionLayoutType is derived from these keys to prevent drift.
191
- */
189
+ * Section layout configuration - single source of truth for layout types.
190
+ * SectionLayoutType is derived from these keys to prevent drift.
191
+ */
192
192
  declare const SECTION_LAYOUT_CONFIG: {
193
193
  readonly "single-column": {
194
194
  readonly columns: 1;
@@ -232,56 +232,15 @@ declare const SECTION_LAYOUT_CONFIG: {
232
232
  };
233
233
  };
234
234
  /**
235
- * Union type of all section layout types, derived from SECTION_LAYOUT_CONFIG keys.
236
- * @see deriving-typeof-for-object-keys pattern
237
- */
235
+ * Union type of all section layout types, derived from SECTION_LAYOUT_CONFIG keys.
236
+ * @see deriving-typeof-for-object-keys pattern
237
+ */
238
238
  type SectionLayoutType = keyof typeof SECTION_LAYOUT_CONFIG;
239
239
  /** @deprecated Use SECTION_LAYOUT_CONFIG instead */
240
- declare const sectionLayoutConfig: {
241
- readonly "single-column": {
242
- readonly columns: 1;
243
- readonly widths: readonly ["1fr"];
244
- readonly gridClasses: "";
245
- };
246
- readonly "2c-equal": {
247
- readonly columns: 2;
248
- readonly widths: readonly ["1fr", "1fr"];
249
- readonly gridClasses: "@md:grid-cols-2";
250
- };
251
- readonly "2c-left-wider": {
252
- readonly columns: 2;
253
- readonly widths: readonly ["2fr", "1fr"];
254
- readonly gridClasses: "@md:grid-cols-[2fr_1fr]";
255
- };
256
- readonly "2c-right-wider": {
257
- readonly columns: 2;
258
- readonly widths: readonly ["1fr", "2fr"];
259
- readonly gridClasses: "@md:grid-cols-[1fr_2fr]";
260
- };
261
- readonly "2c-left-narrow": {
262
- readonly columns: 2;
263
- readonly widths: readonly ["1fr", "3fr"];
264
- readonly gridClasses: "@md:grid-cols-[1fr_3fr]";
265
- };
266
- readonly "2c-right-narrow": {
267
- readonly columns: 2;
268
- readonly widths: readonly ["3fr", "1fr"];
269
- readonly gridClasses: "@md:grid-cols-[3fr_1fr]";
270
- };
271
- readonly "3c-equal": {
272
- readonly columns: 3;
273
- readonly widths: readonly ["1fr", "1fr", "1fr"];
274
- readonly gridClasses: "@md:grid-cols-3";
275
- };
276
- readonly "3c-middle-wider": {
277
- readonly columns: 3;
278
- readonly widths: readonly ["1fr", "2fr", "1fr"];
279
- readonly gridClasses: "@md:grid-cols-[1fr_2fr_1fr]";
280
- };
281
- };
240
+ declare const sectionLayoutConfig: typeof SECTION_LAYOUT_CONFIG;
282
241
  //#endregion
283
242
  //#region src/types/index.d.ts
284
243
  type StrictOmit<T, K extends keyof T> = Omit<T, K>;
285
244
  //#endregion
286
245
  export { RepAppProfile as A, VerticalAlign as C, NavigationItem as D, Navigation as E, RepAppData as O, VERTICAL_ALIGN_OPTIONS as S, ShareableItem as T, HorizontalAlign as _, BUTTON_SIZE_OPTIONS as a, SECTION_LAYOUT_CONFIG as b, BorderRadiusOptions as c, ColorOptions as d, FONT_SIZE_OPTIONS as f, HORIZONTAL_ALIGN_OPTIONS as g, GapOptions as h, BORDER_RADIUS_OPTIONS as i, ScreenDefinition as j, RepAppManifest as k, ButtonSizeOptions as l, GAP_OPTIONS as m, AlignOptions as n, BackgroundType as o, FontSizeOptions as p, BACKGROUND_TYPES as r, BackgroundValue as s, StrictOmit as t, COLOR_OPTIONS as u, PADDING_VALUES as v, sectionLayoutConfig as w, SectionLayoutType as x, PaddingOptions as y };
287
- //# sourceMappingURL=index-CCAu2n19.d.mts.map
246
+ //# sourceMappingURL=index-Ka_HOwpb.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Ka_HOwpb.d.mts","names":[],"sources":["../src/types/navigation.ts","../src/types/shareable-item.ts","../src/types/field-types.ts","../src/types/index.ts"],"mappings":";;;;;;KAQK,iBAAA,GAAoB,UAAA;;;;;KAMpB,SAAA,MAAe,OAAA,CAAQ,CAAA;;;;;;;;;AAY5B;;UAAiB,cAAA;;WAEN,EAAA,GAAK,iBAAA;;EAEd,IAAA,GAAO,SAAA,CAAU,iBAAA;;EAEjB,KAAA;;EAEA,IAAA,GAAO,SAAA,CAAU,iBAAA;;EAEjB,OAAA;;EAEA,SAAA,GAAY,SAAA,CAAU,iBAAA;;EAEtB,QAAA,GAAW,SAAA,CAAU,iBAAA;;EAErB,SAAA,GAAY,iBAAA;;EAEZ,MAAA,GAAS,iBAAA;;EAET,QAAA,EAAU,cAAA;AAAA;;;;UAMK,gBAAA;EAAA,SACN,EAAA;EACT,IAAA;EACA,IAAA;EACA,cAAA,EAAgB,YAAA;AAAA;;;;UAMD,UAAA;EAAA,SACN,aAAA;EAAA,SACA,EAAA;EACT,IAAA;EACA,gBAAA,EAAkB,cAAA;EAClB,OAAA,EAAS,gBAAA;AAAA;;UAQM,aAAA;EACf,IAAA;EACA,MAAA,EAAQ,eAAA;EACR,aAAA;EACA,UAAA,EAAY,UAAA;EACZ,iBAAA,GAAoB,UAAA;EACpB,aAAA;AAAA;AAnBF;AAAA,UAuBiB,UAAA;EACf,aAAA;EACA,iBAAA;EACA,OAAA,EAAS,gBAAA;EACT,OAAA,EAAS,aAAA;AAAA;;UAIM,cAAA;EACf,QAAA,EAAU,UAAA;AAAA;;;;;;;;UCzFK,aAAA;EACf,EAAA;EACA,KAAA;EACA,SAAA;EACA,QAAA;EACA,IAAA;EACA,IAAA;EACA,aAAA;EACA,UAAA;EACA,Q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