@fluid-app/rep-core 0.1.13 → 0.1.15

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 (311) hide show
  1. package/dist/chunk-CKQMccvm.cjs +28 -0
  2. package/dist/data-sources/DataAwareWidget.cjs +47 -56
  3. package/dist/data-sources/DataAwareWidget.cjs.map +1 -1
  4. package/dist/data-sources/DataAwareWidget.d.cts +27 -19
  5. package/dist/data-sources/DataAwareWidget.d.cts.map +1 -0
  6. package/dist/data-sources/DataAwareWidget.d.mts +38 -0
  7. package/dist/data-sources/DataAwareWidget.d.mts.map +1 -0
  8. package/dist/data-sources/DataAwareWidget.mjs +48 -0
  9. package/dist/data-sources/DataAwareWidget.mjs.map +1 -0
  10. package/dist/data-sources/ErrorState.cjs +18 -10
  11. package/dist/data-sources/ErrorState.cjs.map +1 -1
  12. package/dist/data-sources/ErrorState.d.cts +5 -3
  13. package/dist/data-sources/ErrorState.d.cts.map +1 -0
  14. package/dist/data-sources/ErrorState.d.mts +7 -0
  15. package/dist/data-sources/ErrorState.d.mts.map +1 -0
  16. package/dist/data-sources/ErrorState.mjs +18 -0
  17. package/dist/data-sources/ErrorState.mjs.map +1 -0
  18. package/dist/data-sources/context.cjs +22 -14
  19. package/dist/data-sources/context.cjs.map +1 -1
  20. package/dist/data-sources/context.d.cts +16 -10
  21. package/dist/data-sources/context.d.cts.map +1 -0
  22. package/dist/data-sources/context.d.mts +22 -0
  23. package/dist/data-sources/context.d.mts.map +1 -0
  24. package/dist/data-sources/context.mjs +21 -0
  25. package/dist/data-sources/context.mjs.map +1 -0
  26. package/dist/data-sources/fetchers/api.cjs +63 -10
  27. package/dist/data-sources/fetchers/api.cjs.map +1 -1
  28. package/dist/data-sources/fetchers/api.d.cts +4 -2
  29. package/dist/data-sources/fetchers/api.d.cts.map +1 -0
  30. package/dist/data-sources/fetchers/api.d.mts +10 -0
  31. package/dist/data-sources/fetchers/api.d.mts.map +1 -0
  32. package/dist/data-sources/fetchers/api.mjs +64 -0
  33. package/dist/data-sources/fetchers/api.mjs.map +1 -0
  34. package/dist/data-sources/fetchers/custom.cjs +106 -10
  35. package/dist/data-sources/fetchers/custom.cjs.map +1 -1
  36. package/dist/data-sources/fetchers/custom.d.cts +4 -2
  37. package/dist/data-sources/fetchers/custom.d.cts.map +1 -0
  38. package/dist/data-sources/fetchers/{custom.d.ts → custom.d.mts} +4 -2
  39. package/dist/data-sources/fetchers/custom.d.mts.map +1 -0
  40. package/dist/data-sources/fetchers/custom.mjs +107 -0
  41. package/dist/data-sources/fetchers/custom.mjs.map +1 -0
  42. package/dist/data-sources/fetchers/static.cjs +159 -14
  43. package/dist/data-sources/fetchers/static.cjs.map +1 -1
  44. package/dist/data-sources/fetchers/static.d.cts +12 -10
  45. package/dist/data-sources/fetchers/static.d.cts.map +1 -0
  46. package/dist/data-sources/fetchers/{static.d.ts → static.d.mts} +12 -10
  47. package/dist/data-sources/fetchers/static.d.mts.map +1 -0
  48. package/dist/data-sources/fetchers/static.mjs +158 -0
  49. package/dist/data-sources/fetchers/static.mjs.map +1 -0
  50. package/dist/data-sources/preview-context.cjs +15 -15
  51. package/dist/data-sources/preview-context.cjs.map +1 -1
  52. package/dist/data-sources/preview-context.d.cts +10 -6
  53. package/dist/data-sources/preview-context.d.cts.map +1 -0
  54. package/dist/data-sources/preview-context.d.mts +15 -0
  55. package/dist/data-sources/preview-context.d.mts.map +1 -0
  56. package/dist/data-sources/preview-context.mjs +18 -0
  57. package/dist/data-sources/preview-context.mjs.map +1 -0
  58. package/dist/data-sources/registry-context.cjs +51 -24
  59. package/dist/data-sources/registry-context.cjs.map +1 -1
  60. package/dist/data-sources/registry-context.d.cts +30 -22
  61. package/dist/data-sources/registry-context.d.cts.map +1 -0
  62. package/dist/data-sources/registry-context.d.mts +49 -0
  63. package/dist/data-sources/registry-context.d.mts.map +1 -0
  64. package/dist/data-sources/registry-context.mjs +49 -0
  65. package/dist/data-sources/registry-context.mjs.map +1 -0
  66. package/dist/data-sources/registry.cjs +29 -18
  67. package/dist/data-sources/registry.cjs.map +1 -1
  68. package/dist/data-sources/registry.d.cts +9 -7
  69. package/dist/data-sources/registry.d.cts.map +1 -0
  70. package/dist/data-sources/registry.d.mts +19 -0
  71. package/dist/data-sources/registry.d.mts.map +1 -0
  72. package/dist/data-sources/registry.mjs +29 -0
  73. package/dist/data-sources/registry.mjs.map +1 -0
  74. package/dist/data-sources/transformers.cjs +152 -10
  75. package/dist/data-sources/transformers.cjs.map +1 -1
  76. package/dist/data-sources/transformers.d.cts +4 -17
  77. package/dist/data-sources/transformers.d.cts.map +1 -0
  78. package/dist/data-sources/transformers.d.mts +10 -0
  79. package/dist/data-sources/transformers.d.mts.map +1 -0
  80. package/dist/data-sources/transformers.mjs +153 -0
  81. package/dist/data-sources/transformers.mjs.map +1 -0
  82. package/dist/data-sources/types.cjs +0 -4
  83. package/dist/data-sources/types.d.cts +2 -157
  84. package/dist/data-sources/types.d.mts +2 -0
  85. package/dist/data-sources/types.mjs +1 -0
  86. package/dist/data-sources/use-widget-data.cjs +109 -17
  87. package/dist/data-sources/use-widget-data.cjs.map +1 -1
  88. package/dist/data-sources/use-widget-data.d.cts +9 -8
  89. package/dist/data-sources/use-widget-data.d.cts.map +1 -0
  90. package/dist/data-sources/use-widget-data.d.mts +17 -0
  91. package/dist/data-sources/use-widget-data.d.mts.map +1 -0
  92. package/dist/data-sources/use-widget-data.mjs +109 -0
  93. package/dist/data-sources/use-widget-data.mjs.map +1 -0
  94. package/dist/index-Bxe_LIi8.d.cts +287 -0
  95. package/dist/index-Bxe_LIi8.d.cts.map +1 -0
  96. package/dist/index-CCAu2n19.d.mts +287 -0
  97. package/dist/index-CCAu2n19.d.mts.map +1 -0
  98. package/dist/registries/index.cjs +212 -127
  99. package/dist/registries/index.cjs.map +1 -1
  100. package/dist/registries/index.d.cts +146 -149
  101. package/dist/registries/index.d.cts.map +1 -0
  102. package/dist/registries/{index.d.ts → index.d.mts} +146 -149
  103. package/dist/registries/index.d.mts.map +1 -0
  104. package/dist/registries/index.mjs +229 -0
  105. package/dist/registries/index.mjs.map +1 -0
  106. package/dist/shell/AppShellLayout.cjs +47 -12
  107. package/dist/shell/AppShellLayout.cjs.map +1 -1
  108. package/dist/shell/AppShellLayout.d.cts +29 -19
  109. package/dist/shell/AppShellLayout.d.cts.map +1 -0
  110. package/dist/shell/AppShellLayout.d.mts +40 -0
  111. package/dist/shell/AppShellLayout.d.mts.map +1 -0
  112. package/dist/shell/AppShellLayout.mjs +46 -0
  113. package/dist/{chunk-45BCVWQK.cjs.map → shell/AppShellLayout.mjs.map} +1 -1
  114. package/dist/shell/ScreenHeader.cjs +44 -0
  115. package/dist/shell/ScreenHeader.cjs.map +1 -0
  116. package/dist/shell/ScreenHeader.d.cts +12 -0
  117. package/dist/shell/ScreenHeader.d.cts.map +1 -0
  118. package/dist/shell/ScreenHeader.d.mts +12 -0
  119. package/dist/shell/ScreenHeader.d.mts.map +1 -0
  120. package/dist/shell/ScreenHeader.mjs +42 -0
  121. package/dist/shell/ScreenHeader.mjs.map +1 -0
  122. package/dist/shell/ScreenHeaderContext.cjs +91 -0
  123. package/dist/shell/ScreenHeaderContext.cjs.map +1 -0
  124. package/dist/shell/ScreenHeaderContext.d.cts +36 -0
  125. package/dist/shell/ScreenHeaderContext.d.cts.map +1 -0
  126. package/dist/shell/ScreenHeaderContext.d.mts +36 -0
  127. package/dist/shell/ScreenHeaderContext.d.mts.map +1 -0
  128. package/dist/shell/ScreenHeaderContext.mjs +86 -0
  129. package/dist/shell/ScreenHeaderContext.mjs.map +1 -0
  130. package/dist/shell/ThemeModeContext.cjs +68 -18
  131. package/dist/shell/ThemeModeContext.cjs.map +1 -1
  132. package/dist/shell/ThemeModeContext.d.cts +23 -16
  133. package/dist/shell/ThemeModeContext.d.cts.map +1 -0
  134. package/dist/shell/ThemeModeContext.d.mts +34 -0
  135. package/dist/shell/ThemeModeContext.d.mts.map +1 -0
  136. package/dist/shell/ThemeModeContext.mjs +66 -0
  137. package/dist/shell/ThemeModeContext.mjs.map +1 -0
  138. package/dist/shell/index.cjs +43 -205
  139. package/dist/shell/index.d.cts +7 -43
  140. package/dist/shell/index.d.mts +7 -0
  141. package/dist/shell/index.mjs +7 -0
  142. package/dist/shell/sidebar.cjs +372 -87
  143. package/dist/shell/sidebar.cjs.map +1 -1
  144. package/dist/shell/sidebar.d.cts +38 -36
  145. package/dist/shell/sidebar.d.cts.map +1 -0
  146. package/dist/shell/{sidebar.d.ts → sidebar.d.mts} +38 -36
  147. package/dist/shell/sidebar.d.mts.map +1 -0
  148. package/dist/shell/sidebar.mjs +364 -0
  149. package/dist/{chunk-PFDBULOI.cjs.map → shell/sidebar.mjs.map} +1 -1
  150. package/dist/shell/use-mobile.cjs +49 -18
  151. package/dist/shell/use-mobile.cjs.map +1 -1
  152. package/dist/shell/use-mobile.d.cts +3 -1
  153. package/dist/shell/use-mobile.d.cts.map +1 -0
  154. package/dist/shell/{use-mobile.d.ts → use-mobile.d.mts} +3 -1
  155. package/dist/shell/use-mobile.d.mts.map +1 -0
  156. package/dist/shell/use-mobile.mjs +47 -0
  157. package/dist/shell/use-mobile.mjs.map +1 -0
  158. package/dist/theme/index.cjs +662 -549
  159. package/dist/theme/index.cjs.map +1 -1
  160. package/dist/theme/index.d.cts +32 -32
  161. package/dist/theme/index.d.cts.map +1 -0
  162. package/dist/theme/{index.d.ts → index.d.mts} +32 -32
  163. package/dist/theme/index.d.mts.map +1 -0
  164. package/dist/theme/index.mjs +727 -0
  165. package/dist/theme/index.mjs.map +1 -0
  166. package/dist/types/index.cjs +18 -72
  167. package/dist/types/index.d.cts +4 -268
  168. package/dist/types/index.d.mts +4 -0
  169. package/dist/types/index.mjs +2 -0
  170. package/dist/types-BIXtQlHB.d.cts +155 -0
  171. package/dist/types-BIXtQlHB.d.cts.map +1 -0
  172. package/dist/types-BXFX9bXp.cjs +303 -0
  173. package/dist/types-BXFX9bXp.cjs.map +1 -0
  174. package/dist/types-Bjmd7Fdx.mjs +208 -0
  175. package/dist/types-Bjmd7Fdx.mjs.map +1 -0
  176. package/dist/types-ByG6Xy3C.d.mts +85 -0
  177. package/dist/types-ByG6Xy3C.d.mts.map +1 -0
  178. package/dist/types-C5OFJy-O.d.mts +155 -0
  179. package/dist/types-C5OFJy-O.d.mts.map +1 -0
  180. package/dist/types-Ctu-Zio6.d.cts +85 -0
  181. package/dist/types-Ctu-Zio6.d.cts.map +1 -0
  182. package/dist/{widget-schema-D-ca3--K.d.ts → widget-schema--PY1uMWx.d.cts} +38 -41
  183. package/dist/widget-schema--PY1uMWx.d.cts.map +1 -0
  184. package/dist/{widget-schema-DvJdg1-B.d.cts → widget-schema-YkD5p3v4.d.mts} +38 -41
  185. package/dist/widget-schema-YkD5p3v4.d.mts.map +1 -0
  186. package/dist/widget-utils/index.cjs +96 -89
  187. package/dist/widget-utils/index.cjs.map +1 -1
  188. package/dist/widget-utils/index.d.cts +8 -6
  189. package/dist/widget-utils/index.d.cts.map +1 -0
  190. package/dist/widget-utils/{index.d.ts → index.d.mts} +8 -6
  191. package/dist/widget-utils/index.d.mts.map +1 -0
  192. package/dist/widget-utils/index.mjs +119 -0
  193. package/dist/widget-utils/index.mjs.map +1 -0
  194. package/package.json +4 -4
  195. package/dist/chunk-2SPTFZRC.js +0 -72
  196. package/dist/chunk-2SPTFZRC.js.map +0 -1
  197. package/dist/chunk-3I5Y3PEO.js +0 -23
  198. package/dist/chunk-3I5Y3PEO.js.map +0 -1
  199. package/dist/chunk-3ZRE7GX6.js +0 -620
  200. package/dist/chunk-3ZRE7GX6.js.map +0 -1
  201. package/dist/chunk-45BCVWQK.cjs +0 -38
  202. package/dist/chunk-46PUWB7C.cjs +0 -69
  203. package/dist/chunk-46PUWB7C.cjs.map +0 -1
  204. package/dist/chunk-5NYM4UTW.cjs +0 -58
  205. package/dist/chunk-5NYM4UTW.cjs.map +0 -1
  206. package/dist/chunk-B2NTWEDF.cjs +0 -130
  207. package/dist/chunk-B2NTWEDF.cjs.map +0 -1
  208. package/dist/chunk-GDY76JA6.cjs +0 -153
  209. package/dist/chunk-GDY76JA6.cjs.map +0 -1
  210. package/dist/chunk-HGVSPZEL.cjs +0 -119
  211. package/dist/chunk-HGVSPZEL.cjs.map +0 -1
  212. package/dist/chunk-HIDJYVKJ.js +0 -54
  213. package/dist/chunk-HIDJYVKJ.js.map +0 -1
  214. package/dist/chunk-KTXGU7OP.cjs +0 -136
  215. package/dist/chunk-KTXGU7OP.cjs.map +0 -1
  216. package/dist/chunk-KW5E2H5T.js +0 -128
  217. package/dist/chunk-KW5E2H5T.js.map +0 -1
  218. package/dist/chunk-LBLHDGMT.js +0 -25
  219. package/dist/chunk-LBLHDGMT.js.map +0 -1
  220. package/dist/chunk-MNVDL4FX.js +0 -134
  221. package/dist/chunk-MNVDL4FX.js.map +0 -1
  222. package/dist/chunk-MOTOSPAO.cjs +0 -15
  223. package/dist/chunk-MOTOSPAO.cjs.map +0 -1
  224. package/dist/chunk-N2K6W7FX.cjs +0 -169
  225. package/dist/chunk-N2K6W7FX.cjs.map +0 -1
  226. package/dist/chunk-PFDBULOI.cjs +0 -665
  227. package/dist/chunk-PVTQWD4I.js +0 -166
  228. package/dist/chunk-PVTQWD4I.js.map +0 -1
  229. package/dist/chunk-SJQPHJL4.cjs +0 -26
  230. package/dist/chunk-SJQPHJL4.cjs.map +0 -1
  231. package/dist/chunk-TML66UEU.js +0 -13
  232. package/dist/chunk-TML66UEU.js.map +0 -1
  233. package/dist/chunk-U3CQLX2Z.cjs +0 -28
  234. package/dist/chunk-U3CQLX2Z.cjs.map +0 -1
  235. package/dist/chunk-UUNEVOA5.js +0 -36
  236. package/dist/chunk-UUNEVOA5.js.map +0 -1
  237. package/dist/chunk-VRF7QEID.js +0 -67
  238. package/dist/chunk-VRF7QEID.js.map +0 -1
  239. package/dist/chunk-VSZWXSQA.js +0 -38
  240. package/dist/chunk-VSZWXSQA.js.map +0 -1
  241. package/dist/chunk-WYOHFNNW.js +0 -117
  242. package/dist/chunk-WYOHFNNW.js.map +0 -1
  243. package/dist/chunk-YKF5ZFF5.js +0 -136
  244. package/dist/chunk-YKF5ZFF5.js.map +0 -1
  245. package/dist/chunk-YXJMBVXO.cjs +0 -76
  246. package/dist/chunk-YXJMBVXO.cjs.map +0 -1
  247. package/dist/chunk-ZA4AE7KF.cjs +0 -42
  248. package/dist/chunk-ZA4AE7KF.cjs.map +0 -1
  249. package/dist/data-sources/DataAwareWidget.d.ts +0 -30
  250. package/dist/data-sources/DataAwareWidget.js +0 -57
  251. package/dist/data-sources/DataAwareWidget.js.map +0 -1
  252. package/dist/data-sources/ErrorState.d.ts +0 -5
  253. package/dist/data-sources/ErrorState.js +0 -3
  254. package/dist/data-sources/ErrorState.js.map +0 -1
  255. package/dist/data-sources/context.d.ts +0 -16
  256. package/dist/data-sources/context.js +0 -3
  257. package/dist/data-sources/context.js.map +0 -1
  258. package/dist/data-sources/fetchers/api.d.ts +0 -8
  259. package/dist/data-sources/fetchers/api.js +0 -3
  260. package/dist/data-sources/fetchers/api.js.map +0 -1
  261. package/dist/data-sources/fetchers/custom.js +0 -3
  262. package/dist/data-sources/fetchers/custom.js.map +0 -1
  263. package/dist/data-sources/fetchers/static.js +0 -3
  264. package/dist/data-sources/fetchers/static.js.map +0 -1
  265. package/dist/data-sources/preview-context.d.ts +0 -11
  266. package/dist/data-sources/preview-context.js +0 -18
  267. package/dist/data-sources/preview-context.js.map +0 -1
  268. package/dist/data-sources/registry-context.d.ts +0 -41
  269. package/dist/data-sources/registry-context.js +0 -9
  270. package/dist/data-sources/registry-context.js.map +0 -1
  271. package/dist/data-sources/registry.d.ts +0 -17
  272. package/dist/data-sources/registry.js +0 -7
  273. package/dist/data-sources/registry.js.map +0 -1
  274. package/dist/data-sources/transformers.d.ts +0 -23
  275. package/dist/data-sources/transformers.js +0 -3
  276. package/dist/data-sources/transformers.js.map +0 -1
  277. package/dist/data-sources/types.cjs.map +0 -1
  278. package/dist/data-sources/types.d.ts +0 -157
  279. package/dist/data-sources/types.js +0 -3
  280. package/dist/data-sources/types.js.map +0 -1
  281. package/dist/data-sources/use-widget-data.d.ts +0 -16
  282. package/dist/data-sources/use-widget-data.js +0 -10
  283. package/dist/data-sources/use-widget-data.js.map +0 -1
  284. package/dist/registries/index.js +0 -144
  285. package/dist/registries/index.js.map +0 -1
  286. package/dist/shareable-item-DkgWpwoU.d.cts +0 -21
  287. package/dist/shareable-item-DkgWpwoU.d.ts +0 -21
  288. package/dist/shell/AppShellLayout.d.ts +0 -30
  289. package/dist/shell/AppShellLayout.js +0 -5
  290. package/dist/shell/AppShellLayout.js.map +0 -1
  291. package/dist/shell/ThemeModeContext.d.ts +0 -27
  292. package/dist/shell/ThemeModeContext.js +0 -3
  293. package/dist/shell/ThemeModeContext.js.map +0 -1
  294. package/dist/shell/index.cjs.map +0 -1
  295. package/dist/shell/index.d.ts +0 -43
  296. package/dist/shell/index.js +0 -76
  297. package/dist/shell/index.js.map +0 -1
  298. package/dist/shell/sidebar.js +0 -4
  299. package/dist/shell/sidebar.js.map +0 -1
  300. package/dist/shell/use-mobile.js +0 -3
  301. package/dist/shell/use-mobile.js.map +0 -1
  302. package/dist/theme/index.js +0 -611
  303. package/dist/theme/index.js.map +0 -1
  304. package/dist/types/index.cjs.map +0 -1
  305. package/dist/types/index.d.ts +0 -268
  306. package/dist/types/index.js +0 -3
  307. package/dist/types/index.js.map +0 -1
  308. package/dist/types-CNIhy4JD.d.cts +0 -83
  309. package/dist/types-CNIhy4JD.d.ts +0 -83
  310. package/dist/widget-utils/index.js +0 -111
  311. package/dist/widget-utils/index.js.map +0 -1
@@ -0,0 +1,287 @@
1
+ import { a as WidgetSchema } from "./widget-schema--PY1uMWx.cjs";
2
+ import { _ as ThemeDefinition } from "./types-Ctu-Zio6.cjs";
3
+ import { components } from "@fluid-app/fluidos-api-client";
4
+
5
+ //#region src/types/navigation.d.ts
6
+ /** The API schema type — single source of truth for navigation item fields. */
7
+ type ApiNavigationItem = components["schemas"]["FluidOSNavigationItem"];
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
+ */
12
+ type StripNull<T> = Exclude<T, null>;
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
+ */
23
+ interface NavigationItem {
24
+ /** Database-generated identifier — optional because system/default items may not have one */
25
+ readonly id?: ApiNavigationItem["id"];
26
+ /** URL slug for routing */
27
+ slug?: StripNull<ApiNavigationItem["slug"]>;
28
+ /** Display label — required; transforms default null API values to "Untitled" */
29
+ label: string;
30
+ /** Icon identifier (e.g., FontAwesome name) */
31
+ icon?: StripNull<ApiNavigationItem["icon"]>;
32
+ /** Section grouping for quick links (frontend-only, not in API) */
33
+ section?: string;
34
+ /** Associated screen ID */
35
+ screen_id?: StripNull<ApiNavigationItem["screen_id"]>;
36
+ /** Sort order */
37
+ position?: StripNull<ApiNavigationItem["position"]>;
38
+ /** Parent navigation item ID (null for root items) */
39
+ parent_id?: ApiNavigationItem["parent_id"];
40
+ /** Origin of this navigation item */
41
+ source?: ApiNavigationItem["source"];
42
+ /** Nested navigation items */
43
+ children: NavigationItem[];
44
+ }
45
+ /**
46
+ * Screen definition with its component tree
47
+ */
48
+ interface ScreenDefinition {
49
+ readonly id: number;
50
+ slug: string;
51
+ name: string;
52
+ component_tree: WidgetSchema[];
53
+ }
54
+ /**
55
+ * Navigation configuration for the rep portal
56
+ */
57
+ interface Navigation {
58
+ readonly definition_id: number;
59
+ readonly id: number;
60
+ name: string;
61
+ navigation_items: NavigationItem[];
62
+ screens: ScreenDefinition[];
63
+ }
64
+ /** A rep app profile — themes, navigation, and definition reference. */
65
+ interface RepAppProfile {
66
+ name: string;
67
+ themes: ThemeDefinition[];
68
+ activeThemeId?: string;
69
+ navigation: Navigation;
70
+ mobile_navigation?: Navigation;
71
+ definition_id: number;
72
+ }
73
+ /** Full rep app data returned by the fluidos API or builder preview. */
74
+ interface RepAppData {
75
+ definition_id: number;
76
+ published_version: number;
77
+ screens: ScreenDefinition[];
78
+ profile: RepAppProfile;
79
+ }
80
+ /** Wrapper for the `/fluid_os/definitions/active` API response. */
81
+ interface RepAppManifest {
82
+ manifest: RepAppData;
83
+ }
84
+ //#endregion
85
+ //#region src/types/shareable-item.d.ts
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
+ */
91
+ interface ShareableItem {
92
+ id: string | number;
93
+ title?: string | null;
94
+ image_url?: string | null;
95
+ imageUrl?: string | null;
96
+ kind?: string | null;
97
+ type?: string | null;
98
+ shareableType?: string | null;
99
+ share_link?: string | null;
100
+ videoUrl?: string;
101
+ price?: string | number | null;
102
+ display_price?: string | null;
103
+ [key: string]: unknown;
104
+ }
105
+ //#endregion
106
+ //#region src/types/field-types.d.ts
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
+ */
111
+ declare const COLOR_OPTIONS: {
112
+ readonly background: "background";
113
+ readonly foreground: "foreground";
114
+ readonly primary: "primary";
115
+ readonly secondary: "secondary";
116
+ readonly accent: "accent";
117
+ readonly muted: "muted";
118
+ readonly destructive: "destructive";
119
+ };
120
+ /**
121
+ * Union type of all color options, derived from COLOR_OPTIONS constant.
122
+ * @see deriving-typeof-for-object-keys pattern
123
+ */
124
+ type ColorOptions = (typeof COLOR_OPTIONS)[keyof typeof COLOR_OPTIONS];
125
+ declare const FONT_SIZE_OPTIONS: {
126
+ readonly "2xl": "2xl";
127
+ readonly xl: "xl";
128
+ readonly lg: "lg";
129
+ readonly md: "md";
130
+ readonly sm: "sm";
131
+ readonly xs: "xs";
132
+ };
133
+ type FontSizeOptions = (typeof FONT_SIZE_OPTIONS)[keyof typeof FONT_SIZE_OPTIONS];
134
+ declare const BORDER_RADIUS_OPTIONS: {
135
+ readonly none: "none";
136
+ readonly sm: "sm";
137
+ readonly md: "md";
138
+ readonly lg: "lg";
139
+ readonly xl: "xl";
140
+ readonly full: "full";
141
+ };
142
+ type BorderRadiusOptions = (typeof BORDER_RADIUS_OPTIONS)[keyof typeof BORDER_RADIUS_OPTIONS];
143
+ /** Padding values - numeric, so we use a tuple for derivation */
144
+ declare const PADDING_VALUES: readonly [0, 2, 4, 6, 8, 10];
145
+ type PaddingOptions = (typeof PADDING_VALUES)[number];
146
+ declare const BUTTON_SIZE_OPTIONS: {
147
+ readonly sm: "sm";
148
+ readonly default: "default";
149
+ readonly lg: "lg";
150
+ readonly xl: "xl";
151
+ };
152
+ type ButtonSizeOptions = (typeof BUTTON_SIZE_OPTIONS)[keyof typeof BUTTON_SIZE_OPTIONS];
153
+ declare const GAP_OPTIONS: {
154
+ readonly none: "none";
155
+ readonly xs: "xs";
156
+ readonly sm: "sm";
157
+ readonly md: "md";
158
+ readonly lg: "lg";
159
+ readonly xl: "xl";
160
+ };
161
+ type GapOptions = (typeof GAP_OPTIONS)[keyof typeof GAP_OPTIONS];
162
+ declare const VERTICAL_ALIGN_OPTIONS: {
163
+ readonly top: "top";
164
+ readonly center: "center";
165
+ readonly bottom: "bottom";
166
+ };
167
+ type VerticalAlign = (typeof VERTICAL_ALIGN_OPTIONS)[keyof typeof VERTICAL_ALIGN_OPTIONS];
168
+ declare const HORIZONTAL_ALIGN_OPTIONS: {
169
+ readonly left: "left";
170
+ readonly center: "center";
171
+ readonly right: "right";
172
+ };
173
+ type HorizontalAlign = (typeof HORIZONTAL_ALIGN_OPTIONS)[keyof typeof HORIZONTAL_ALIGN_OPTIONS];
174
+ type AlignOptions = {
175
+ vertical?: VerticalAlign;
176
+ horizontal?: HorizontalAlign;
177
+ };
178
+ declare const BACKGROUND_TYPES: {
179
+ readonly solid: "solid";
180
+ readonly image: "image";
181
+ };
182
+ type BackgroundType = (typeof BACKGROUND_TYPES)[keyof typeof BACKGROUND_TYPES];
183
+ interface BackgroundValue {
184
+ type: BackgroundType;
185
+ color?: ColorOptions;
186
+ resource?: ShareableItem;
187
+ }
188
+ /**
189
+ * Section layout configuration - single source of truth for layout types.
190
+ * SectionLayoutType is derived from these keys to prevent drift.
191
+ */
192
+ declare const SECTION_LAYOUT_CONFIG: {
193
+ readonly "single-column": {
194
+ readonly columns: 1;
195
+ readonly widths: readonly ["1fr"];
196
+ readonly gridClasses: "";
197
+ };
198
+ readonly "2c-equal": {
199
+ readonly columns: 2;
200
+ readonly widths: readonly ["1fr", "1fr"];
201
+ readonly gridClasses: "@md:grid-cols-2";
202
+ };
203
+ readonly "2c-left-wider": {
204
+ readonly columns: 2;
205
+ readonly widths: readonly ["2fr", "1fr"];
206
+ readonly gridClasses: "@md:grid-cols-[2fr_1fr]";
207
+ };
208
+ readonly "2c-right-wider": {
209
+ readonly columns: 2;
210
+ readonly widths: readonly ["1fr", "2fr"];
211
+ readonly gridClasses: "@md:grid-cols-[1fr_2fr]";
212
+ };
213
+ readonly "2c-left-narrow": {
214
+ readonly columns: 2;
215
+ readonly widths: readonly ["1fr", "3fr"];
216
+ readonly gridClasses: "@md:grid-cols-[1fr_3fr]";
217
+ };
218
+ readonly "2c-right-narrow": {
219
+ readonly columns: 2;
220
+ readonly widths: readonly ["3fr", "1fr"];
221
+ readonly gridClasses: "@md:grid-cols-[3fr_1fr]";
222
+ };
223
+ readonly "3c-equal": {
224
+ readonly columns: 3;
225
+ readonly widths: readonly ["1fr", "1fr", "1fr"];
226
+ readonly gridClasses: "@md:grid-cols-3";
227
+ };
228
+ readonly "3c-middle-wider": {
229
+ readonly columns: 3;
230
+ readonly widths: readonly ["1fr", "2fr", "1fr"];
231
+ readonly gridClasses: "@md:grid-cols-[1fr_2fr_1fr]";
232
+ };
233
+ };
234
+ /**
235
+ * Union type of all section layout types, derived from SECTION_LAYOUT_CONFIG keys.
236
+ * @see deriving-typeof-for-object-keys pattern
237
+ */
238
+ type SectionLayoutType = keyof typeof SECTION_LAYOUT_CONFIG;
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
+ };
282
+ //#endregion
283
+ //#region src/types/index.d.ts
284
+ type StrictOmit<T, K extends keyof T> = Omit<T, K>;
285
+ //#endregion
286
+ 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Bxe_LIi8.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;EAED;EAAA,SAAL,EAAA,GAAK,iBAAA;EAEP;EAAP,IAAA,GAAO,SAAA,CAAU,iBAAA;EAIV;EAFP,KAAA;EAMY;EAJZ,IAAA,GAAO,SAAA,CAAU,iBAAA;EAMN;EAJX,OAAA;EAQS;EANT,SAAA,GAAY,SAAA,CAAU,iBAAA;EAQE;EANxB,QAAA,GAAW,SAAA,CAAU,iBAAA;EAZZ;EAcT,SAAA,GAAY,iBAAA;EAZZ;EAcA,MAAA,GAAS,iBAAA;EAdQ;EAgBjB,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;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AAA,GAAQ,YAAA;EACR,QAAA,GAAW,aAAA;AAAA;;;AF7Cb;;cEwDa,qBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkDD,iBAAA,gBAAiC,qBAAA;;cAGhC,mBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KC9HD,UAAA,oBAA8B,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA"}
@@ -0,0 +1,287 @@
1
+ import { a as WidgetSchema } from "./widget-schema-YkD5p3v4.mjs";
2
+ import { _ as ThemeDefinition } from "./types-ByG6Xy3C.mjs";
3
+ import { components } from "@fluid-app/fluidos-api-client";
4
+
5
+ //#region src/types/navigation.d.ts
6
+ /** The API schema type — single source of truth for navigation item fields. */
7
+ type ApiNavigationItem = components["schemas"]["FluidOSNavigationItem"];
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
+ */
12
+ type StripNull<T> = Exclude<T, null>;
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
+ */
23
+ interface NavigationItem {
24
+ /** Database-generated identifier — optional because system/default items may not have one */
25
+ readonly id?: ApiNavigationItem["id"];
26
+ /** URL slug for routing */
27
+ slug?: StripNull<ApiNavigationItem["slug"]>;
28
+ /** Display label — required; transforms default null API values to "Untitled" */
29
+ label: string;
30
+ /** Icon identifier (e.g., FontAwesome name) */
31
+ icon?: StripNull<ApiNavigationItem["icon"]>;
32
+ /** Section grouping for quick links (frontend-only, not in API) */
33
+ section?: string;
34
+ /** Associated screen ID */
35
+ screen_id?: StripNull<ApiNavigationItem["screen_id"]>;
36
+ /** Sort order */
37
+ position?: StripNull<ApiNavigationItem["position"]>;
38
+ /** Parent navigation item ID (null for root items) */
39
+ parent_id?: ApiNavigationItem["parent_id"];
40
+ /** Origin of this navigation item */
41
+ source?: ApiNavigationItem["source"];
42
+ /** Nested navigation items */
43
+ children: NavigationItem[];
44
+ }
45
+ /**
46
+ * Screen definition with its component tree
47
+ */
48
+ interface ScreenDefinition {
49
+ readonly id: number;
50
+ slug: string;
51
+ name: string;
52
+ component_tree: WidgetSchema[];
53
+ }
54
+ /**
55
+ * Navigation configuration for the rep portal
56
+ */
57
+ interface Navigation {
58
+ readonly definition_id: number;
59
+ readonly id: number;
60
+ name: string;
61
+ navigation_items: NavigationItem[];
62
+ screens: ScreenDefinition[];
63
+ }
64
+ /** A rep app profile — themes, navigation, and definition reference. */
65
+ interface RepAppProfile {
66
+ name: string;
67
+ themes: ThemeDefinition[];
68
+ activeThemeId?: string;
69
+ navigation: Navigation;
70
+ mobile_navigation?: Navigation;
71
+ definition_id: number;
72
+ }
73
+ /** Full rep app data returned by the fluidos API or builder preview. */
74
+ interface RepAppData {
75
+ definition_id: number;
76
+ published_version: number;
77
+ screens: ScreenDefinition[];
78
+ profile: RepAppProfile;
79
+ }
80
+ /** Wrapper for the `/fluid_os/definitions/active` API response. */
81
+ interface RepAppManifest {
82
+ manifest: RepAppData;
83
+ }
84
+ //#endregion
85
+ //#region src/types/shareable-item.d.ts
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
+ */
91
+ interface ShareableItem {
92
+ id: string | number;
93
+ title?: string | null;
94
+ image_url?: string | null;
95
+ imageUrl?: string | null;
96
+ kind?: string | null;
97
+ type?: string | null;
98
+ shareableType?: string | null;
99
+ share_link?: string | null;
100
+ videoUrl?: string;
101
+ price?: string | number | null;
102
+ display_price?: string | null;
103
+ [key: string]: unknown;
104
+ }
105
+ //#endregion
106
+ //#region src/types/field-types.d.ts
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
+ */
111
+ declare const COLOR_OPTIONS: {
112
+ readonly background: "background";
113
+ readonly foreground: "foreground";
114
+ readonly primary: "primary";
115
+ readonly secondary: "secondary";
116
+ readonly accent: "accent";
117
+ readonly muted: "muted";
118
+ readonly destructive: "destructive";
119
+ };
120
+ /**
121
+ * Union type of all color options, derived from COLOR_OPTIONS constant.
122
+ * @see deriving-typeof-for-object-keys pattern
123
+ */
124
+ type ColorOptions = (typeof COLOR_OPTIONS)[keyof typeof COLOR_OPTIONS];
125
+ declare const FONT_SIZE_OPTIONS: {
126
+ readonly "2xl": "2xl";
127
+ readonly xl: "xl";
128
+ readonly lg: "lg";
129
+ readonly md: "md";
130
+ readonly sm: "sm";
131
+ readonly xs: "xs";
132
+ };
133
+ type FontSizeOptions = (typeof FONT_SIZE_OPTIONS)[keyof typeof FONT_SIZE_OPTIONS];
134
+ declare const BORDER_RADIUS_OPTIONS: {
135
+ readonly none: "none";
136
+ readonly sm: "sm";
137
+ readonly md: "md";
138
+ readonly lg: "lg";
139
+ readonly xl: "xl";
140
+ readonly full: "full";
141
+ };
142
+ type BorderRadiusOptions = (typeof BORDER_RADIUS_OPTIONS)[keyof typeof BORDER_RADIUS_OPTIONS];
143
+ /** Padding values - numeric, so we use a tuple for derivation */
144
+ declare const PADDING_VALUES: readonly [0, 2, 4, 6, 8, 10];
145
+ type PaddingOptions = (typeof PADDING_VALUES)[number];
146
+ declare const BUTTON_SIZE_OPTIONS: {
147
+ readonly sm: "sm";
148
+ readonly default: "default";
149
+ readonly lg: "lg";
150
+ readonly xl: "xl";
151
+ };
152
+ type ButtonSizeOptions = (typeof BUTTON_SIZE_OPTIONS)[keyof typeof BUTTON_SIZE_OPTIONS];
153
+ declare const GAP_OPTIONS: {
154
+ readonly none: "none";
155
+ readonly xs: "xs";
156
+ readonly sm: "sm";
157
+ readonly md: "md";
158
+ readonly lg: "lg";
159
+ readonly xl: "xl";
160
+ };
161
+ type GapOptions = (typeof GAP_OPTIONS)[keyof typeof GAP_OPTIONS];
162
+ declare const VERTICAL_ALIGN_OPTIONS: {
163
+ readonly top: "top";
164
+ readonly center: "center";
165
+ readonly bottom: "bottom";
166
+ };
167
+ type VerticalAlign = (typeof VERTICAL_ALIGN_OPTIONS)[keyof typeof VERTICAL_ALIGN_OPTIONS];
168
+ declare const HORIZONTAL_ALIGN_OPTIONS: {
169
+ readonly left: "left";
170
+ readonly center: "center";
171
+ readonly right: "right";
172
+ };
173
+ type HorizontalAlign = (typeof HORIZONTAL_ALIGN_OPTIONS)[keyof typeof HORIZONTAL_ALIGN_OPTIONS];
174
+ type AlignOptions = {
175
+ vertical?: VerticalAlign;
176
+ horizontal?: HorizontalAlign;
177
+ };
178
+ declare const BACKGROUND_TYPES: {
179
+ readonly solid: "solid";
180
+ readonly image: "image";
181
+ };
182
+ type BackgroundType = (typeof BACKGROUND_TYPES)[keyof typeof BACKGROUND_TYPES];
183
+ interface BackgroundValue {
184
+ type: BackgroundType;
185
+ color?: ColorOptions;
186
+ resource?: ShareableItem;
187
+ }
188
+ /**
189
+ * Section layout configuration - single source of truth for layout types.
190
+ * SectionLayoutType is derived from these keys to prevent drift.
191
+ */
192
+ declare const SECTION_LAYOUT_CONFIG: {
193
+ readonly "single-column": {
194
+ readonly columns: 1;
195
+ readonly widths: readonly ["1fr"];
196
+ readonly gridClasses: "";
197
+ };
198
+ readonly "2c-equal": {
199
+ readonly columns: 2;
200
+ readonly widths: readonly ["1fr", "1fr"];
201
+ readonly gridClasses: "@md:grid-cols-2";
202
+ };
203
+ readonly "2c-left-wider": {
204
+ readonly columns: 2;
205
+ readonly widths: readonly ["2fr", "1fr"];
206
+ readonly gridClasses: "@md:grid-cols-[2fr_1fr]";
207
+ };
208
+ readonly "2c-right-wider": {
209
+ readonly columns: 2;
210
+ readonly widths: readonly ["1fr", "2fr"];
211
+ readonly gridClasses: "@md:grid-cols-[1fr_2fr]";
212
+ };
213
+ readonly "2c-left-narrow": {
214
+ readonly columns: 2;
215
+ readonly widths: readonly ["1fr", "3fr"];
216
+ readonly gridClasses: "@md:grid-cols-[1fr_3fr]";
217
+ };
218
+ readonly "2c-right-narrow": {
219
+ readonly columns: 2;
220
+ readonly widths: readonly ["3fr", "1fr"];
221
+ readonly gridClasses: "@md:grid-cols-[3fr_1fr]";
222
+ };
223
+ readonly "3c-equal": {
224
+ readonly columns: 3;
225
+ readonly widths: readonly ["1fr", "1fr", "1fr"];
226
+ readonly gridClasses: "@md:grid-cols-3";
227
+ };
228
+ readonly "3c-middle-wider": {
229
+ readonly columns: 3;
230
+ readonly widths: readonly ["1fr", "2fr", "1fr"];
231
+ readonly gridClasses: "@md:grid-cols-[1fr_2fr_1fr]";
232
+ };
233
+ };
234
+ /**
235
+ * Union type of all section layout types, derived from SECTION_LAYOUT_CONFIG keys.
236
+ * @see deriving-typeof-for-object-keys pattern
237
+ */
238
+ type SectionLayoutType = keyof typeof SECTION_LAYOUT_CONFIG;
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
+ };
282
+ //#endregion
283
+ //#region src/types/index.d.ts
284
+ type StrictOmit<T, K extends keyof T> = Omit<T, K>;
285
+ //#endregion
286
+ 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CCAu2n19.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;;;;;;;;;AAY5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