@frontmcp/uipack 0.12.1 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/CLAUDE.md +56 -154
  2. package/README.md +367 -62
  3. package/adapters/base-template.d.ts +30 -0
  4. package/adapters/base-template.d.ts.map +1 -0
  5. package/adapters/cdn-info.d.ts +34 -0
  6. package/adapters/cdn-info.d.ts.map +1 -0
  7. package/adapters/constants.d.ts +18 -0
  8. package/adapters/constants.d.ts.map +1 -0
  9. package/adapters/content-detector.d.ts +19 -0
  10. package/adapters/content-detector.d.ts.map +1 -0
  11. package/adapters/content-renderers.d.ts +27 -0
  12. package/adapters/content-renderers.d.ts.map +1 -0
  13. package/adapters/index.d.ts +14 -7
  14. package/adapters/index.d.ts.map +1 -1
  15. package/adapters/index.js +2343 -426
  16. package/adapters/render-failure.d.ts +18 -0
  17. package/adapters/render-failure.d.ts.map +1 -0
  18. package/adapters/response-builder.d.ts +34 -104
  19. package/adapters/response-builder.d.ts.map +1 -1
  20. package/adapters/serving-mode.d.ts +28 -91
  21. package/adapters/serving-mode.d.ts.map +1 -1
  22. package/adapters/template-renderer.d.ts +50 -0
  23. package/adapters/template-renderer.d.ts.map +1 -0
  24. package/adapters/type-detector.d.ts +18 -0
  25. package/adapters/type-detector.d.ts.map +1 -0
  26. package/bridge-runtime/index.js +1 -1
  27. package/component/index.d.ts +14 -0
  28. package/component/index.d.ts.map +1 -0
  29. package/component/index.js +2043 -0
  30. package/component/loader.d.ts +36 -0
  31. package/component/loader.d.ts.map +1 -0
  32. package/component/renderer.d.ts +30 -0
  33. package/component/renderer.d.ts.map +1 -0
  34. package/component/transpiler.d.ts +49 -0
  35. package/component/transpiler.d.ts.map +1 -0
  36. package/component/types.d.ts +82 -0
  37. package/component/types.d.ts.map +1 -0
  38. package/esm/adapters/index.mjs +2337 -422
  39. package/esm/bridge-runtime/index.mjs +1 -1
  40. package/esm/component/index.mjs +2013 -0
  41. package/esm/index.mjs +3446 -13935
  42. package/esm/package.json +3 -12
  43. package/esm/resolver/index.mjs +661 -0
  44. package/esm/shell/index.mjs +1406 -0
  45. package/esm/types/index.mjs +11 -11
  46. package/esm/utils/index.mjs +53 -8
  47. package/index.d.ts +12 -40
  48. package/index.d.ts.map +1 -1
  49. package/index.js +3579 -14218
  50. package/package.json +3 -12
  51. package/resolver/cdn-registry.d.ts +39 -0
  52. package/resolver/cdn-registry.d.ts.map +1 -0
  53. package/resolver/esm-sh.resolver.d.ts +54 -0
  54. package/resolver/esm-sh.resolver.d.ts.map +1 -0
  55. package/resolver/import-map.d.ts +47 -0
  56. package/resolver/import-map.d.ts.map +1 -0
  57. package/resolver/import-parser.d.ts +28 -0
  58. package/resolver/import-parser.d.ts.map +1 -0
  59. package/resolver/import-rewriter.d.ts +29 -0
  60. package/resolver/import-rewriter.d.ts.map +1 -0
  61. package/resolver/index.d.ts +15 -0
  62. package/resolver/index.d.ts.map +1 -0
  63. package/resolver/index.js +708 -0
  64. package/resolver/types.d.ts +191 -0
  65. package/resolver/types.d.ts.map +1 -0
  66. package/shell/builder.d.ts +31 -0
  67. package/shell/builder.d.ts.map +1 -0
  68. package/shell/csp.d.ts +37 -0
  69. package/shell/csp.d.ts.map +1 -0
  70. package/shell/custom-shell-applier.d.ts +33 -0
  71. package/shell/custom-shell-applier.d.ts.map +1 -0
  72. package/shell/custom-shell-resolver.d.ts +47 -0
  73. package/shell/custom-shell-resolver.d.ts.map +1 -0
  74. package/shell/custom-shell-types.d.ts +75 -0
  75. package/shell/custom-shell-types.d.ts.map +1 -0
  76. package/shell/custom-shell-validator.d.ts +26 -0
  77. package/shell/custom-shell-validator.d.ts.map +1 -0
  78. package/shell/data-injector.d.ts +40 -0
  79. package/shell/data-injector.d.ts.map +1 -0
  80. package/shell/index.d.ts +19 -0
  81. package/shell/index.d.ts.map +1 -0
  82. package/shell/index.js +1453 -0
  83. package/shell/types.d.ts +54 -0
  84. package/shell/types.d.ts.map +1 -0
  85. package/types/index.d.ts +1 -3
  86. package/types/index.d.ts.map +1 -1
  87. package/types/index.js +11 -11
  88. package/types/ui-config.d.ts +50 -11
  89. package/types/ui-config.d.ts.map +1 -1
  90. package/types/ui-runtime.d.ts +8 -82
  91. package/types/ui-runtime.d.ts.map +1 -1
  92. package/utils/index.d.ts +9 -3
  93. package/utils/index.d.ts.map +1 -1
  94. package/utils/index.js +59 -7
  95. package/adapters/platform-meta.constants.d.ts +0 -26
  96. package/adapters/platform-meta.constants.d.ts.map +0 -1
  97. package/adapters/platform-meta.d.ts +0 -234
  98. package/adapters/platform-meta.d.ts.map +0 -1
  99. package/base-template/bridge.d.ts +0 -90
  100. package/base-template/bridge.d.ts.map +0 -1
  101. package/base-template/default-base-template.d.ts +0 -91
  102. package/base-template/default-base-template.d.ts.map +0 -1
  103. package/base-template/index.d.ts +0 -15
  104. package/base-template/index.d.ts.map +0 -1
  105. package/base-template/index.js +0 -1393
  106. package/base-template/polyfills.d.ts +0 -31
  107. package/base-template/polyfills.d.ts.map +0 -1
  108. package/base-template/theme-styles.d.ts +0 -74
  109. package/base-template/theme-styles.d.ts.map +0 -1
  110. package/build/builders/base-builder.d.ts +0 -124
  111. package/build/builders/base-builder.d.ts.map +0 -1
  112. package/build/builders/esbuild-config.d.ts +0 -94
  113. package/build/builders/esbuild-config.d.ts.map +0 -1
  114. package/build/builders/hybrid-builder.d.ts +0 -93
  115. package/build/builders/hybrid-builder.d.ts.map +0 -1
  116. package/build/builders/index.d.ts +0 -17
  117. package/build/builders/index.d.ts.map +0 -1
  118. package/build/builders/inline-builder.d.ts +0 -83
  119. package/build/builders/inline-builder.d.ts.map +0 -1
  120. package/build/builders/static-builder.d.ts +0 -78
  121. package/build/builders/static-builder.d.ts.map +0 -1
  122. package/build/builders/types.d.ts +0 -341
  123. package/build/builders/types.d.ts.map +0 -1
  124. package/build/cdn-resources.d.ts +0 -244
  125. package/build/cdn-resources.d.ts.map +0 -1
  126. package/build/hybrid-data.d.ts +0 -127
  127. package/build/hybrid-data.d.ts.map +0 -1
  128. package/build/index.d.ts +0 -299
  129. package/build/index.d.ts.map +0 -1
  130. package/build/index.js +0 -8699
  131. package/build/ui-components-browser.d.ts +0 -64
  132. package/build/ui-components-browser.d.ts.map +0 -1
  133. package/build/widget-manifest.d.ts +0 -362
  134. package/build/widget-manifest.d.ts.map +0 -1
  135. package/bundler/cache.d.ts +0 -173
  136. package/bundler/cache.d.ts.map +0 -1
  137. package/bundler/file-cache/component-builder.d.ts +0 -167
  138. package/bundler/file-cache/component-builder.d.ts.map +0 -1
  139. package/bundler/file-cache/hash-calculator.d.ts +0 -155
  140. package/bundler/file-cache/hash-calculator.d.ts.map +0 -1
  141. package/bundler/file-cache/index.d.ts +0 -12
  142. package/bundler/file-cache/index.d.ts.map +0 -1
  143. package/bundler/file-cache/storage/filesystem.d.ts +0 -149
  144. package/bundler/file-cache/storage/filesystem.d.ts.map +0 -1
  145. package/bundler/file-cache/storage/index.d.ts +0 -11
  146. package/bundler/file-cache/storage/index.d.ts.map +0 -1
  147. package/bundler/file-cache/storage/interface.d.ts +0 -152
  148. package/bundler/file-cache/storage/interface.d.ts.map +0 -1
  149. package/bundler/file-cache/storage/redis.d.ts +0 -139
  150. package/bundler/file-cache/storage/redis.d.ts.map +0 -1
  151. package/bundler/index.d.ts +0 -35
  152. package/bundler/index.d.ts.map +0 -1
  153. package/bundler/index.js +0 -2953
  154. package/bundler/sandbox/enclave-adapter.d.ts +0 -121
  155. package/bundler/sandbox/enclave-adapter.d.ts.map +0 -1
  156. package/bundler/sandbox/executor.d.ts +0 -14
  157. package/bundler/sandbox/executor.d.ts.map +0 -1
  158. package/bundler/sandbox/policy.d.ts +0 -62
  159. package/bundler/sandbox/policy.d.ts.map +0 -1
  160. package/bundler/types.d.ts +0 -702
  161. package/bundler/types.d.ts.map +0 -1
  162. package/dependency/cdn-registry.d.ts +0 -98
  163. package/dependency/cdn-registry.d.ts.map +0 -1
  164. package/dependency/import-map.d.ts +0 -186
  165. package/dependency/import-map.d.ts.map +0 -1
  166. package/dependency/import-parser.d.ts +0 -82
  167. package/dependency/import-parser.d.ts.map +0 -1
  168. package/dependency/index.d.ts +0 -17
  169. package/dependency/index.d.ts.map +0 -1
  170. package/dependency/index.js +0 -3180
  171. package/dependency/resolver.d.ts +0 -164
  172. package/dependency/resolver.d.ts.map +0 -1
  173. package/dependency/schemas.d.ts +0 -486
  174. package/dependency/schemas.d.ts.map +0 -1
  175. package/dependency/template-loader.d.ts +0 -204
  176. package/dependency/template-loader.d.ts.map +0 -1
  177. package/dependency/template-processor.d.ts +0 -118
  178. package/dependency/template-processor.d.ts.map +0 -1
  179. package/dependency/types.d.ts +0 -739
  180. package/dependency/types.d.ts.map +0 -1
  181. package/esm/base-template/index.mjs +0 -1359
  182. package/esm/build/index.mjs +0 -8601
  183. package/esm/bundler/index.mjs +0 -2895
  184. package/esm/dependency/index.mjs +0 -3068
  185. package/esm/handlebars/index.mjs +0 -587
  186. package/esm/registry/index.mjs +0 -6305
  187. package/esm/renderers/index.mjs +0 -1557
  188. package/esm/runtime/index.mjs +0 -5361
  189. package/esm/styles/index.mjs +0 -171
  190. package/esm/theme/index.mjs +0 -756
  191. package/esm/tool-template/index.mjs +0 -3652
  192. package/esm/validation/index.mjs +0 -542
  193. package/handlebars/expression-extractor.d.ts +0 -147
  194. package/handlebars/expression-extractor.d.ts.map +0 -1
  195. package/handlebars/helpers.d.ts +0 -339
  196. package/handlebars/helpers.d.ts.map +0 -1
  197. package/handlebars/index.d.ts +0 -195
  198. package/handlebars/index.d.ts.map +0 -1
  199. package/handlebars/index.js +0 -659
  200. package/preview/claude-preview.d.ts +0 -67
  201. package/preview/claude-preview.d.ts.map +0 -1
  202. package/preview/generic-preview.d.ts +0 -66
  203. package/preview/generic-preview.d.ts.map +0 -1
  204. package/preview/index.d.ts +0 -36
  205. package/preview/index.d.ts.map +0 -1
  206. package/preview/openai-preview.d.ts +0 -70
  207. package/preview/openai-preview.d.ts.map +0 -1
  208. package/preview/types.d.ts +0 -199
  209. package/preview/types.d.ts.map +0 -1
  210. package/registry/index.d.ts +0 -46
  211. package/registry/index.d.ts.map +0 -1
  212. package/registry/index.js +0 -6342
  213. package/registry/render-template.d.ts +0 -91
  214. package/registry/render-template.d.ts.map +0 -1
  215. package/registry/tool-ui.registry.d.ts +0 -294
  216. package/registry/tool-ui.registry.d.ts.map +0 -1
  217. package/registry/uri-utils.d.ts +0 -56
  218. package/registry/uri-utils.d.ts.map +0 -1
  219. package/renderers/cache.d.ts +0 -145
  220. package/renderers/cache.d.ts.map +0 -1
  221. package/renderers/html.renderer.d.ts +0 -123
  222. package/renderers/html.renderer.d.ts.map +0 -1
  223. package/renderers/index.d.ts +0 -36
  224. package/renderers/index.d.ts.map +0 -1
  225. package/renderers/index.js +0 -1603
  226. package/renderers/mdx-client.renderer.d.ts +0 -124
  227. package/renderers/mdx-client.renderer.d.ts.map +0 -1
  228. package/renderers/registry.d.ts +0 -133
  229. package/renderers/registry.d.ts.map +0 -1
  230. package/renderers/types.d.ts +0 -343
  231. package/renderers/types.d.ts.map +0 -1
  232. package/renderers/utils/detect.d.ts +0 -107
  233. package/renderers/utils/detect.d.ts.map +0 -1
  234. package/renderers/utils/hash.d.ts +0 -40
  235. package/renderers/utils/hash.d.ts.map +0 -1
  236. package/renderers/utils/index.d.ts +0 -9
  237. package/renderers/utils/index.d.ts.map +0 -1
  238. package/renderers/utils/transpiler.d.ts +0 -70
  239. package/renderers/utils/transpiler.d.ts.map +0 -1
  240. package/runtime/adapters/html.adapter.d.ts +0 -59
  241. package/runtime/adapters/html.adapter.d.ts.map +0 -1
  242. package/runtime/adapters/index.d.ts +0 -26
  243. package/runtime/adapters/index.d.ts.map +0 -1
  244. package/runtime/adapters/mdx.adapter.d.ts +0 -73
  245. package/runtime/adapters/mdx.adapter.d.ts.map +0 -1
  246. package/runtime/adapters/types.d.ts +0 -95
  247. package/runtime/adapters/types.d.ts.map +0 -1
  248. package/runtime/csp.d.ts +0 -48
  249. package/runtime/csp.d.ts.map +0 -1
  250. package/runtime/index.d.ts +0 -17
  251. package/runtime/index.d.ts.map +0 -1
  252. package/runtime/index.js +0 -5432
  253. package/runtime/mcp-bridge.d.ts +0 -101
  254. package/runtime/mcp-bridge.d.ts.map +0 -1
  255. package/runtime/renderer-runtime.d.ts +0 -133
  256. package/runtime/renderer-runtime.d.ts.map +0 -1
  257. package/runtime/sanitizer.d.ts +0 -180
  258. package/runtime/sanitizer.d.ts.map +0 -1
  259. package/runtime/types.d.ts +0 -415
  260. package/runtime/types.d.ts.map +0 -1
  261. package/runtime/wrapper.d.ts +0 -421
  262. package/runtime/wrapper.d.ts.map +0 -1
  263. package/styles/index.d.ts +0 -8
  264. package/styles/index.d.ts.map +0 -1
  265. package/styles/index.js +0 -222
  266. package/styles/variants.d.ts +0 -51
  267. package/styles/variants.d.ts.map +0 -1
  268. package/theme/cdn.d.ts +0 -195
  269. package/theme/cdn.d.ts.map +0 -1
  270. package/theme/css-to-theme.d.ts +0 -64
  271. package/theme/css-to-theme.d.ts.map +0 -1
  272. package/theme/index.d.ts +0 -19
  273. package/theme/index.d.ts.map +0 -1
  274. package/theme/index.js +0 -814
  275. package/theme/platforms.d.ts +0 -102
  276. package/theme/platforms.d.ts.map +0 -1
  277. package/theme/presets/github-openai.d.ts +0 -50
  278. package/theme/presets/github-openai.d.ts.map +0 -1
  279. package/theme/presets/index.d.ts +0 -11
  280. package/theme/presets/index.d.ts.map +0 -1
  281. package/theme/theme.d.ts +0 -396
  282. package/theme/theme.d.ts.map +0 -1
  283. package/tool-template/builder.d.ts +0 -213
  284. package/tool-template/builder.d.ts.map +0 -1
  285. package/tool-template/index.d.ts +0 -16
  286. package/tool-template/index.d.ts.map +0 -1
  287. package/tool-template/index.js +0 -3690
  288. package/validation/error-box.d.ts +0 -56
  289. package/validation/error-box.d.ts.map +0 -1
  290. package/validation/index.d.ts +0 -13
  291. package/validation/index.d.ts.map +0 -1
  292. package/validation/index.js +0 -576
  293. package/validation/schema-paths.d.ts +0 -118
  294. package/validation/schema-paths.d.ts.map +0 -1
  295. package/validation/template-validator.d.ts +0 -143
  296. package/validation/template-validator.d.ts.map +0 -1
  297. package/validation/wrapper.d.ts +0 -97
  298. package/validation/wrapper.d.ts.map +0 -1
@@ -1,756 +0,0 @@
1
- // libs/uipack/src/theme/cdn.ts
2
- var CDN = {
3
- /**
4
- * Tailwind CSS v4 Browser CDN
5
- * Generates styles on-the-fly with @theme support
6
- * @see https://tailwindcss.com/docs/installation/play-cdn
7
- */
8
- tailwind: "https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4",
9
- /**
10
- * HTMX 2.x - High power tools for HTML
11
- * Enables AJAX, WebSockets, Server Sent Events directly in HTML
12
- * @see https://htmx.org
13
- */
14
- htmx: {
15
- url: "https://cdnjs.cloudflare.com/ajax/libs/htmx/2.0.7/htmx.min.js",
16
- integrity: "sha512-T6VLg/MJYMbLTmQ8VLvonbWg8VOvmDhXcOvHzCwo6ShdGuUU5SEcp1IAPXL4k9lVoMi8gRXl5K/S/zh43Y9rJA=="
17
- },
18
- /**
19
- * Alpine.js - Lightweight reactive framework
20
- * Used for more complex client-side interactions
21
- * @see https://alpinejs.dev
22
- */
23
- alpine: {
24
- url: "https://cdn.jsdelivr.net/npm/alpinejs@3.14.3/dist/cdn.min.js",
25
- integrity: "sha384-6zY8MFQJ/EqS1r4RJl+7j8rvZPuBWpT0RzWf+IFcKhxqUzQNmJzA1X1VEVZhYaEz"
26
- },
27
- /**
28
- * Google Fonts - Inter for modern UI typography
29
- */
30
- fonts: {
31
- preconnect: ["https://fonts.googleapis.com", "https://fonts.gstatic.com"],
32
- inter: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",
33
- mono: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap"
34
- },
35
- /**
36
- * Lucide Icons - Beautiful & consistent icons
37
- * @see https://lucide.dev
38
- */
39
- icons: {
40
- url: "https://cdn.jsdelivr.net/npm/lucide@0.294.0/dist/umd/lucide.min.js",
41
- integrity: "sha384-wpLmHb7v7V1LsEuTmPQ9tXqWZvTtRWWVqJuE+Yz6X0I6O2T6bHJVeXH1lVWqF4qE"
42
- }
43
- };
44
- var scriptCache = /* @__PURE__ */ new Map();
45
- async function fetchScript(url) {
46
- const cached = scriptCache.get(url);
47
- if (cached) {
48
- return cached;
49
- }
50
- const response = await fetch(url);
51
- if (!response.ok) {
52
- throw new Error(`Failed to fetch script: ${url} (${response.status})`);
53
- }
54
- const content = await response.text();
55
- scriptCache.set(url, content);
56
- return content;
57
- }
58
- async function fetchAndCacheScripts(options = {}) {
59
- const { tailwind = true, htmx = true, alpine = false, icons = false } = options;
60
- const urls = [];
61
- if (tailwind) urls.push(CDN.tailwind);
62
- if (htmx) urls.push(CDN.htmx.url);
63
- if (alpine) urls.push(CDN.alpine.url);
64
- if (icons) urls.push(CDN.icons.url);
65
- await Promise.all(urls.map(fetchScript));
66
- return scriptCache;
67
- }
68
- function getCachedScript(url) {
69
- return scriptCache.get(url);
70
- }
71
- function isScriptCached(url) {
72
- return scriptCache.has(url);
73
- }
74
- function clearScriptCache() {
75
- scriptCache.clear();
76
- }
77
- function buildFontPreconnect() {
78
- return CDN.fonts.preconnect.map((url, i) => `<link rel="preconnect" href="${url}"${i > 0 ? " crossorigin" : ""}>`).join("\n ");
79
- }
80
- function buildFontStylesheets(options = {}) {
81
- const { inter = true, mono = false } = options;
82
- const links = [];
83
- if (inter) {
84
- links.push(`<link href="${CDN.fonts.inter}" rel="stylesheet">`);
85
- }
86
- if (mono) {
87
- links.push(`<link href="${CDN.fonts.mono}" rel="stylesheet">`);
88
- }
89
- return links.join("\n ");
90
- }
91
- function buildScriptTag(url, integrity, options = {}) {
92
- const attrs = [`src="${url}"`];
93
- if (integrity) {
94
- attrs.push(`integrity="${integrity}"`);
95
- attrs.push('crossorigin="anonymous"');
96
- }
97
- if (options.defer) attrs.push("defer");
98
- if (options.async) attrs.push("async");
99
- return `<script ${attrs.join(" ")}></script>`;
100
- }
101
- function buildInlineScriptTag(content) {
102
- return `<script>${content}</script>`;
103
- }
104
- function buildCdnScripts(options = {}) {
105
- const { tailwind = true, htmx = true, alpine = false, icons = false, inline = false } = options;
106
- const scripts = [];
107
- if (inline) {
108
- if (tailwind) {
109
- const cached = getCachedScript(CDN.tailwind);
110
- if (cached) {
111
- scripts.push(buildInlineScriptTag(cached));
112
- } else {
113
- console.warn(
114
- "[frontmcp/ui] Inline mode requested but Tailwind script not cached. Call fetchAndCacheScripts() first."
115
- );
116
- }
117
- }
118
- if (htmx) {
119
- const cached = getCachedScript(CDN.htmx.url);
120
- if (cached) {
121
- scripts.push(buildInlineScriptTag(cached));
122
- } else {
123
- console.warn(
124
- "[frontmcp/ui] Inline mode requested but HTMX script not cached. Call fetchAndCacheScripts() first."
125
- );
126
- }
127
- }
128
- if (alpine) {
129
- const cached = getCachedScript(CDN.alpine.url);
130
- if (cached) {
131
- scripts.push(buildInlineScriptTag(cached));
132
- } else {
133
- console.warn(
134
- "[frontmcp/ui] Inline mode requested but Alpine.js script not cached. Call fetchAndCacheScripts() first."
135
- );
136
- }
137
- }
138
- if (icons) {
139
- const cached = getCachedScript(CDN.icons.url);
140
- if (cached) {
141
- scripts.push(buildInlineScriptTag(cached));
142
- } else {
143
- console.warn(
144
- "[frontmcp/ui] Inline mode requested but Lucide icons script not cached. Call fetchAndCacheScripts() first."
145
- );
146
- }
147
- }
148
- } else {
149
- if (tailwind) {
150
- scripts.push(buildScriptTag(CDN.tailwind));
151
- }
152
- if (htmx) {
153
- scripts.push(buildScriptTag(CDN.htmx.url, CDN.htmx.integrity));
154
- }
155
- if (alpine) {
156
- scripts.push(buildScriptTag(CDN.alpine.url, CDN.alpine.integrity, { defer: true }));
157
- }
158
- if (icons) {
159
- scripts.push(buildScriptTag(CDN.icons.url, CDN.icons.integrity));
160
- }
161
- }
162
- return scripts.join("\n ");
163
- }
164
- function buildFontPreconnectFromTheme(theme) {
165
- const preconnect = theme.cdn?.fonts?.preconnect ?? CDN.fonts.preconnect;
166
- return preconnect.map((url, i) => `<link rel="preconnect" href="${url}"${i > 0 ? " crossorigin" : ""}>`).join("\n ");
167
- }
168
- function buildFontStylesheetsFromTheme(theme) {
169
- const stylesheets = theme.cdn?.fonts?.stylesheets ?? [CDN.fonts.inter];
170
- return stylesheets.map((url) => `<link href="${url}" rel="stylesheet">`).join("\n ");
171
- }
172
- function buildCdnScriptsFromTheme(theme, options = {}) {
173
- const { tailwind = true, htmx = true, alpine = false, icons = false, inline = false } = options;
174
- const scripts = [];
175
- const tailwindUrl = theme.cdn?.scripts?.tailwind ?? CDN.tailwind;
176
- const htmxConfig = theme.cdn?.scripts?.htmx ?? CDN.htmx;
177
- const alpineConfig = theme.cdn?.scripts?.alpine ?? CDN.alpine;
178
- const iconsConfig = theme.cdn?.icons?.script ?? CDN.icons;
179
- if (inline) {
180
- if (tailwind) {
181
- const cached = getCachedScript(tailwindUrl);
182
- if (cached) {
183
- scripts.push(buildInlineScriptTag(cached));
184
- } else {
185
- console.warn(
186
- "[frontmcp/ui] Inline mode requested but Tailwind script not cached. Call fetchAndCacheScriptsFromTheme() first."
187
- );
188
- }
189
- }
190
- if (htmx) {
191
- const cached = getCachedScript(htmxConfig.url);
192
- if (cached) {
193
- scripts.push(buildInlineScriptTag(cached));
194
- } else {
195
- console.warn(
196
- "[frontmcp/ui] Inline mode requested but HTMX script not cached. Call fetchAndCacheScriptsFromTheme() first."
197
- );
198
- }
199
- }
200
- if (alpine) {
201
- const cached = getCachedScript(alpineConfig.url);
202
- if (cached) {
203
- scripts.push(buildInlineScriptTag(cached));
204
- } else {
205
- console.warn(
206
- "[frontmcp/ui] Inline mode requested but Alpine.js script not cached. Call fetchAndCacheScriptsFromTheme() first."
207
- );
208
- }
209
- }
210
- if (icons) {
211
- const cached = getCachedScript(iconsConfig.url);
212
- if (cached) {
213
- scripts.push(buildInlineScriptTag(cached));
214
- } else {
215
- console.warn(
216
- "[frontmcp/ui] Inline mode requested but icons script not cached. Call fetchAndCacheScriptsFromTheme() first."
217
- );
218
- }
219
- }
220
- } else {
221
- if (tailwind) {
222
- scripts.push(buildScriptTag(tailwindUrl));
223
- }
224
- if (htmx) {
225
- scripts.push(buildScriptTag(htmxConfig.url, htmxConfig.integrity));
226
- }
227
- if (alpine) {
228
- scripts.push(buildScriptTag(alpineConfig.url, alpineConfig.integrity, { defer: true }));
229
- }
230
- if (icons) {
231
- scripts.push(buildScriptTag(iconsConfig.url, iconsConfig.integrity));
232
- }
233
- }
234
- return scripts.join("\n ");
235
- }
236
- async function fetchAndCacheScriptsFromTheme(theme, options = {}) {
237
- const { tailwind = true, htmx = true, alpine = false, icons = false } = options;
238
- const urls = [];
239
- const tailwindUrl = theme.cdn?.scripts?.tailwind ?? CDN.tailwind;
240
- const htmxConfig = theme.cdn?.scripts?.htmx ?? CDN.htmx;
241
- const alpineConfig = theme.cdn?.scripts?.alpine ?? CDN.alpine;
242
- const iconsConfig = theme.cdn?.icons?.script ?? CDN.icons;
243
- if (tailwind) urls.push(tailwindUrl);
244
- if (htmx) urls.push(htmxConfig.url);
245
- if (alpine) urls.push(alpineConfig.url);
246
- if (icons) urls.push(iconsConfig.url);
247
- await Promise.all(urls.map(fetchScript));
248
- return scriptCache;
249
- }
250
-
251
- // libs/uipack/src/theme/platforms.ts
252
- var OPENAI_PLATFORM = {
253
- id: "openai",
254
- name: "OpenAI",
255
- supportsWidgets: true,
256
- supportsTailwind: true,
257
- supportsHtmx: true,
258
- networkMode: "full",
259
- scriptStrategy: "cdn",
260
- options: {
261
- sdk: "apps-sdk",
262
- version: "1.0"
263
- }
264
- };
265
- var CLAUDE_PLATFORM = {
266
- id: "claude",
267
- name: "Claude (Artifacts)",
268
- supportsWidgets: true,
269
- // Claude Artifacts support interactive widgets
270
- supportsTailwind: true,
271
- supportsHtmx: false,
272
- // Network blocked, HTMX won't work for API calls
273
- networkMode: "limited",
274
- scriptStrategy: "cdn",
275
- maxInlineSize: 100 * 1024,
276
- // 100KB limit for artifacts
277
- cspRestrictions: ["script-src 'unsafe-inline'", "connect-src 'none'"],
278
- options: {
279
- mode: "artifacts",
280
- framework: "react"
281
- // Claude artifacts prefer React
282
- }
283
- };
284
- var GEMINI_PLATFORM = {
285
- id: "gemini",
286
- name: "Gemini",
287
- supportsWidgets: false,
288
- supportsTailwind: true,
289
- supportsHtmx: false,
290
- networkMode: "limited",
291
- scriptStrategy: "inline",
292
- options: {
293
- fallback: "markdown"
294
- // Fall back to markdown rendering
295
- }
296
- };
297
- var CUSTOM_PLATFORM = {
298
- id: "custom",
299
- name: "Custom MCP Client",
300
- supportsWidgets: true,
301
- supportsTailwind: true,
302
- supportsHtmx: true,
303
- networkMode: "full",
304
- scriptStrategy: "cdn"
305
- };
306
- var PLATFORM_PRESETS = {
307
- openai: OPENAI_PLATFORM,
308
- claude: CLAUDE_PLATFORM,
309
- gemini: GEMINI_PLATFORM,
310
- custom: CUSTOM_PLATFORM
311
- };
312
- function getPlatform(id) {
313
- return PLATFORM_PRESETS[id] ?? CUSTOM_PLATFORM;
314
- }
315
- function createPlatform(base) {
316
- const preset = PLATFORM_PRESETS[base.id] ?? CUSTOM_PLATFORM;
317
- return { ...preset, ...base };
318
- }
319
- function canUseCdn(platform) {
320
- return platform.networkMode === "full" && platform.scriptStrategy === "cdn";
321
- }
322
- function needsInlineScripts(platform) {
323
- return platform.scriptStrategy === "inline" || platform.networkMode === "blocked";
324
- }
325
- function supportsFullInteractivity(platform) {
326
- return platform.supportsWidgets && platform.supportsHtmx && platform.networkMode === "full";
327
- }
328
- function getFallbackMode(platform) {
329
- if (platform.supportsWidgets && platform.supportsTailwind) {
330
- return "html";
331
- }
332
- if (platform.options?.["fallback"] === "markdown") {
333
- return "markdown";
334
- }
335
- return "text";
336
- }
337
-
338
- // libs/uipack/src/theme/presets/github-openai.ts
339
- var GITHUB_OPENAI_THEME = {
340
- name: "github-openai",
341
- colors: {
342
- semantic: {
343
- // Primary: Near-black for main actions and branding
344
- primary: "#24292f",
345
- // Secondary: Medium gray for secondary elements
346
- secondary: "#57606a",
347
- // Accent: Blue for links, focus states, and highlights
348
- accent: "#0969da",
349
- // Status colors
350
- success: "#1a7f37",
351
- // GitHub green
352
- warning: "#9a6700",
353
- // Amber warning
354
- danger: "#cf222e",
355
- // GitHub red
356
- info: "#0969da"
357
- // Blue info
358
- },
359
- surface: {
360
- // Pure white background
361
- background: "#ffffff",
362
- // Light gray surface (GitHub code background style)
363
- surface: "#f6f8fa",
364
- // White elevated surfaces (modals, cards)
365
- elevated: "#ffffff",
366
- // Dark semi-transparent overlay
367
- overlay: "rgba(27, 31, 36, 0.5)"
368
- },
369
- text: {
370
- // Near-black for primary text
371
- primary: "#24292f",
372
- // Gray for secondary/muted text
373
- secondary: "#57606a",
374
- // Light gray for disabled text
375
- disabled: "#8c959f",
376
- // White for text on dark backgrounds
377
- inverse: "#ffffff",
378
- // Blue for links
379
- link: "#0969da"
380
- },
381
- border: {
382
- // Light gray border (GitHub style)
383
- default: "#d0d7de",
384
- // Medium gray on hover
385
- hover: "#8c959f",
386
- // Blue focus ring
387
- focus: "#0969da",
388
- // Subtle divider
389
- divider: "#d8dee4"
390
- }
391
- },
392
- typography: {
393
- families: {
394
- // System UI font stack (GitHub/Apple style)
395
- sans: '-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
396
- // Monospace stack
397
- mono: 'ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, "Liberation Mono", monospace'
398
- },
399
- sizes: {
400
- xs: "0.75rem",
401
- // 12px
402
- sm: "0.875rem",
403
- // 14px
404
- base: "1rem",
405
- // 16px
406
- lg: "1.125rem",
407
- // 18px
408
- xl: "1.25rem",
409
- // 20px
410
- "2xl": "1.5rem",
411
- // 24px
412
- "3xl": "1.875rem",
413
- // 30px
414
- "4xl": "2.25rem"
415
- // 36px
416
- },
417
- weights: {
418
- normal: "400",
419
- medium: "500",
420
- semibold: "600",
421
- bold: "700"
422
- }
423
- },
424
- radius: {
425
- none: "0",
426
- sm: "3px",
427
- // GitHub uses smaller radii
428
- md: "6px",
429
- lg: "8px",
430
- xl: "12px",
431
- "2xl": "16px",
432
- full: "9999px"
433
- },
434
- shadows: {
435
- // Subtle shadows with gray tones
436
- sm: "0 1px 0 rgba(27, 31, 36, 0.04)",
437
- md: "0 3px 6px rgba(140, 149, 159, 0.15)",
438
- lg: "0 8px 24px rgba(140, 149, 159, 0.2)",
439
- xl: "0 12px 28px rgba(140, 149, 159, 0.3)"
440
- },
441
- components: {
442
- button: {
443
- radius: "6px",
444
- paddingX: "16px",
445
- paddingY: "5px",
446
- fontSize: "14px",
447
- fontWeight: "500"
448
- },
449
- card: {
450
- radius: "6px",
451
- padding: "16px",
452
- shadow: "0 1px 0 rgba(27, 31, 36, 0.04)",
453
- borderWidth: "1px"
454
- },
455
- input: {
456
- radius: "6px",
457
- paddingX: "12px",
458
- paddingY: "5px",
459
- borderWidth: "1px",
460
- focusRingWidth: "3px"
461
- }
462
- },
463
- cdn: {
464
- fonts: {
465
- preconnect: ["https://fonts.googleapis.com", "https://fonts.gstatic.com"],
466
- stylesheets: [
467
- // System UI fonts don't need external stylesheets, but we include
468
- // Inter as an optional enhancement for consistent cross-platform rendering
469
- "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
470
- ]
471
- },
472
- icons: {
473
- script: {
474
- url: "https://cdn.jsdelivr.net/npm/lucide@0.294.0/dist/umd/lucide.min.js"
475
- }
476
- },
477
- scripts: {
478
- tailwind: "https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4",
479
- htmx: {
480
- url: "https://cdnjs.cloudflare.com/ajax/libs/htmx/2.0.7/htmx.min.js",
481
- integrity: "sha512-T6VLg/MJYMbLTmQ8VLvonbWg8VOvmDhXcOvHzCwo6ShdGuUU5SEcp1IAPXL4k9lVoMi8gRXl5K/S/zh43Y9rJA=="
482
- },
483
- alpine: {
484
- url: "https://cdn.jsdelivr.net/npm/alpinejs@3.14.3/dist/cdn.min.js",
485
- integrity: "sha384-6zY8MFQJ/EqS1r4RJl+7j8rvZPuBWpT0RzWf+IFcKhxqUzQNmJzA1X1VEVZhYaEz"
486
- }
487
- }
488
- }
489
- };
490
- var DEFAULT_THEME = GITHUB_OPENAI_THEME;
491
-
492
- // libs/uipack/src/theme/theme.ts
493
- var DEFAULT_THEME2 = DEFAULT_THEME;
494
- function mergeThemesCore(base, override) {
495
- const baseColors = base.colors ?? { semantic: { primary: "#24292f" } };
496
- const filterStrings = (arr) => arr.filter((s) => s !== void 0);
497
- return {
498
- ...base,
499
- ...override,
500
- colors: {
501
- ...baseColors,
502
- ...override.colors,
503
- semantic: { ...baseColors.semantic, ...override.colors?.semantic },
504
- surface: { ...baseColors.surface, ...override.colors?.surface },
505
- text: { ...baseColors.text, ...override.colors?.text },
506
- border: { ...baseColors.border, ...override.colors?.border },
507
- custom: { ...baseColors.custom, ...override.colors?.custom }
508
- },
509
- typography: {
510
- ...base.typography,
511
- ...override.typography,
512
- families: { ...base.typography?.families, ...override.typography?.families },
513
- sizes: { ...base.typography?.sizes, ...override.typography?.sizes },
514
- weights: { ...base.typography?.weights, ...override.typography?.weights },
515
- lineHeight: { ...base.typography?.lineHeight, ...override.typography?.lineHeight }
516
- },
517
- spacing: { ...base.spacing, ...override.spacing },
518
- radius: { ...base.radius, ...override.radius },
519
- shadows: { ...base.shadows, ...override.shadows },
520
- components: {
521
- ...base.components,
522
- ...override.components,
523
- button: { ...base.components?.button, ...override.components?.button },
524
- card: { ...base.components?.card, ...override.components?.card },
525
- input: { ...base.components?.input, ...override.components?.input }
526
- },
527
- cdn: {
528
- ...base.cdn,
529
- ...override.cdn,
530
- fonts: {
531
- // Concatenate then dedupe so base entries are preserved without duplicates
532
- preconnect: filterStrings(
533
- Array.from(/* @__PURE__ */ new Set([...base.cdn?.fonts?.preconnect ?? [], ...override.cdn?.fonts?.preconnect ?? []]))
534
- ),
535
- stylesheets: filterStrings(
536
- Array.from(/* @__PURE__ */ new Set([...base.cdn?.fonts?.stylesheets ?? [], ...override.cdn?.fonts?.stylesheets ?? []]))
537
- )
538
- },
539
- icons: {
540
- ...base.cdn?.icons,
541
- ...override.cdn?.icons,
542
- // Deep merge script to preserve integrity when only url is overridden
543
- script: override.cdn?.icons?.script ? { ...base.cdn?.icons?.script, ...override.cdn?.icons?.script } : base.cdn?.icons?.script
544
- },
545
- scripts: {
546
- // tailwind is a simple string, just use override or base
547
- tailwind: override.cdn?.scripts?.tailwind ?? base.cdn?.scripts?.tailwind,
548
- // Deep merge htmx/alpine to preserve integrity when only url is overridden
549
- htmx: override.cdn?.scripts?.htmx ? { ...base.cdn?.scripts?.htmx, ...override.cdn?.scripts?.htmx } : base.cdn?.scripts?.htmx,
550
- alpine: override.cdn?.scripts?.alpine ? { ...base.cdn?.scripts?.alpine, ...override.cdn?.scripts?.alpine } : base.cdn?.scripts?.alpine
551
- }
552
- },
553
- customVars: { ...base.customVars, ...override.customVars },
554
- customCss: [base.customCss, override.customCss].filter(Boolean).join("\n")
555
- };
556
- }
557
- function mergeThemes(base, override) {
558
- const merged = mergeThemesCore(base, override);
559
- let darkVariant;
560
- if (override.dark !== void 0) {
561
- const darkBase = base.dark ?? base;
562
- const { dark: _nestedDark, ...overrideDarkWithoutNested } = override.dark;
563
- darkVariant = mergeThemesCore(darkBase, overrideDarkWithoutNested);
564
- } else if (base.dark !== void 0) {
565
- const { dark: _nestedDark, ...baseDarkWithoutNested } = base.dark;
566
- darkVariant = baseDarkWithoutNested;
567
- }
568
- return {
569
- ...merged,
570
- dark: darkVariant
571
- };
572
- }
573
- function createTheme(overrides) {
574
- return mergeThemes(DEFAULT_THEME2, overrides);
575
- }
576
- function emitColorScale(lines, name, scale) {
577
- for (const [shade, value] of Object.entries(scale)) {
578
- if (value) lines.push(`--color-${name}-${shade}: ${value};`);
579
- }
580
- }
581
- var OPACITY_VARIANTS = [10, 20, 30, 50, 70, 90];
582
- function emitColorWithOpacityVariants(lines, name, value) {
583
- lines.push(`--color-${name}: ${value};`);
584
- for (const opacity of OPACITY_VARIANTS) {
585
- lines.push(`--color-${name}-${opacity}: color-mix(in oklch, ${value} ${opacity}%, transparent);`);
586
- }
587
- }
588
- function emitBrandColorWithVariants(lines, name, value) {
589
- lines.push(`--color-${name}: ${value};`);
590
- lines.push(`--color-${name}-hover: color-mix(in oklch, ${value} 85%, black);`);
591
- for (const opacity of OPACITY_VARIANTS) {
592
- lines.push(`--color-${name}-${opacity}: color-mix(in oklch, ${value} ${opacity}%, transparent);`);
593
- }
594
- }
595
- function buildThemeCss(theme) {
596
- const lines = [];
597
- const semantic = theme.colors.semantic;
598
- if (typeof semantic.primary === "string") {
599
- emitBrandColorWithVariants(lines, "primary", semantic.primary);
600
- } else if (semantic.primary) {
601
- emitColorScale(lines, "primary", semantic.primary);
602
- }
603
- if (semantic.secondary) {
604
- if (typeof semantic.secondary === "string") {
605
- emitBrandColorWithVariants(lines, "secondary", semantic.secondary);
606
- } else {
607
- emitColorScale(lines, "secondary", semantic.secondary);
608
- }
609
- }
610
- if (semantic.accent) {
611
- if (typeof semantic.accent === "string") {
612
- lines.push(`--color-accent: ${semantic.accent};`);
613
- } else {
614
- emitColorScale(lines, "accent", semantic.accent);
615
- }
616
- }
617
- if (semantic.neutral) {
618
- if (typeof semantic.neutral === "string") {
619
- lines.push(`--color-neutral: ${semantic.neutral};`);
620
- } else {
621
- emitColorScale(lines, "neutral", semantic.neutral);
622
- }
623
- }
624
- if (semantic.success) emitColorWithOpacityVariants(lines, "success", semantic.success);
625
- if (semantic.warning) emitColorWithOpacityVariants(lines, "warning", semantic.warning);
626
- if (semantic.danger) emitColorWithOpacityVariants(lines, "danger", semantic.danger);
627
- if (semantic.info) emitColorWithOpacityVariants(lines, "info", semantic.info);
628
- const surface = theme.colors.surface;
629
- if (surface?.background) lines.push(`--color-background: ${surface.background};`);
630
- if (surface?.surface) lines.push(`--color-surface: ${surface.surface};`);
631
- if (surface?.elevated) lines.push(`--color-elevated: ${surface.elevated};`);
632
- if (surface?.overlay) lines.push(`--color-overlay: ${surface.overlay};`);
633
- const text = theme.colors.text;
634
- if (text?.primary) lines.push(`--color-text-primary: ${text.primary};`);
635
- if (text?.secondary) lines.push(`--color-text-secondary: ${text.secondary};`);
636
- if (text?.disabled) lines.push(`--color-text-disabled: ${text.disabled};`);
637
- if (text?.inverse) lines.push(`--color-text-inverse: ${text.inverse};`);
638
- if (text?.link) lines.push(`--color-text-link: ${text.link};`);
639
- const border = theme.colors.border;
640
- if (border?.default) lines.push(`--color-border: ${border.default};`);
641
- if (border?.hover) lines.push(`--color-border-hover: ${border.hover};`);
642
- if (border?.focus) lines.push(`--color-border-focus: ${border.focus};`);
643
- if (border?.divider) lines.push(`--color-divider: ${border.divider};`);
644
- if (theme.colors.custom) {
645
- for (const [key, value] of Object.entries(theme.colors.custom)) {
646
- lines.push(`--color-${key}: ${value};`);
647
- }
648
- }
649
- const typography = theme.typography;
650
- if (typography?.families?.sans) lines.push(`--font-sans: ${typography.families.sans};`);
651
- if (typography?.families?.serif) lines.push(`--font-serif: ${typography.families.serif};`);
652
- if (typography?.families?.mono) lines.push(`--font-mono: ${typography.families.mono};`);
653
- if (typography?.families?.display) lines.push(`--font-display: ${typography.families.display};`);
654
- const radius = theme.radius;
655
- if (radius?.none) lines.push(`--radius-none: ${radius.none};`);
656
- if (radius?.sm) lines.push(`--radius-sm: ${radius.sm};`);
657
- if (radius?.md) lines.push(`--radius-md: ${radius.md};`);
658
- if (radius?.lg) lines.push(`--radius-lg: ${radius.lg};`);
659
- if (radius?.xl) lines.push(`--radius-xl: ${radius.xl};`);
660
- if (radius?.["2xl"]) lines.push(`--radius-2xl: ${radius["2xl"]};`);
661
- if (radius?.full) lines.push(`--radius-full: ${radius.full};`);
662
- if (theme.customVars) {
663
- for (const [key, value] of Object.entries(theme.customVars)) {
664
- lines.push(`${key}: ${value};`);
665
- }
666
- }
667
- return lines.join("\n ");
668
- }
669
- function buildStyleBlock(theme) {
670
- const themeCss = buildThemeCss(theme);
671
- const customCss = theme.customCss || "";
672
- return `<style type="text/tailwindcss">
673
- @theme {
674
- ${themeCss}
675
- }
676
- ${customCss}
677
- </style>`;
678
- }
679
-
680
- // libs/uipack/src/theme/css-to-theme.ts
681
- var COLOR_VAR_REGEX = /--(color-[\w-]+):\s*([^;]+);/g;
682
- var MAX_CSS_INPUT_LENGTH = 1e5;
683
- function cssToTailwindTheme(userCss) {
684
- if (userCss.length > MAX_CSS_INPUT_LENGTH) {
685
- return {
686
- themeBlock: "",
687
- remainingCss: userCss,
688
- colorVars: /* @__PURE__ */ new Map()
689
- };
690
- }
691
- const colorVars = /* @__PURE__ */ new Map();
692
- const regex = new RegExp(COLOR_VAR_REGEX.source, "g");
693
- let match;
694
- while ((match = regex.exec(userCss)) !== null) {
695
- const varName = match[1];
696
- const value = match[2].trim();
697
- colorVars.set(varName, value);
698
- }
699
- const remainingCss = userCss.replace(COLOR_VAR_REGEX, "");
700
- let themeBlock = "";
701
- if (colorVars.size > 0) {
702
- const lines = Array.from(colorVars.entries()).map(([name, value]) => `--${name}: ${value};`);
703
- themeBlock = `@theme {
704
- ${lines.join("\n ")}
705
- }`;
706
- }
707
- return {
708
- themeBlock,
709
- remainingCss,
710
- colorVars
711
- };
712
- }
713
- function buildTailwindStyleBlock(userCss) {
714
- const { themeBlock, remainingCss } = cssToTailwindTheme(userCss);
715
- const parts = [themeBlock, remainingCss.trim()].filter(Boolean);
716
- if (parts.length === 0) {
717
- return "";
718
- }
719
- return `<style type="text/tailwindcss">
720
- ${parts.join("\n\n")}
721
- </style>`;
722
- }
723
- export {
724
- CDN,
725
- CLAUDE_PLATFORM,
726
- CUSTOM_PLATFORM,
727
- DEFAULT_THEME,
728
- GEMINI_PLATFORM,
729
- GITHUB_OPENAI_THEME,
730
- OPENAI_PLATFORM,
731
- PLATFORM_PRESETS,
732
- buildCdnScripts,
733
- buildCdnScriptsFromTheme,
734
- buildFontPreconnect,
735
- buildFontPreconnectFromTheme,
736
- buildFontStylesheets,
737
- buildFontStylesheetsFromTheme,
738
- buildStyleBlock,
739
- buildTailwindStyleBlock,
740
- buildThemeCss,
741
- canUseCdn,
742
- clearScriptCache,
743
- createPlatform,
744
- createTheme,
745
- cssToTailwindTheme,
746
- fetchAndCacheScripts,
747
- fetchAndCacheScriptsFromTheme,
748
- fetchScript,
749
- getCachedScript,
750
- getFallbackMode,
751
- getPlatform,
752
- isScriptCached,
753
- mergeThemes,
754
- needsInlineScripts,
755
- supportsFullInteractivity
756
- };