@flanksource/page-runtime 0.0.0-stage → 0.1.0

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 (312) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +494 -2
  3. package/dist/build/README.md +96 -0
  4. package/dist/build/cjs-export-names.mjs +24 -0
  5. package/dist/build/dependencies.mjs +279 -0
  6. package/dist/build/dependencies.mjs.map +1 -0
  7. package/dist/build/dependency-cache-Zg-FGasE.mjs +2130 -0
  8. package/dist/build/dependency-cache-Zg-FGasE.mjs.map +1 -0
  9. package/dist/build/index.mjs +42 -0
  10. package/dist/build/index.mjs.map +1 -0
  11. package/dist/build/package.json +19 -0
  12. package/dist/build/types/activity-schema.d.ts +62 -0
  13. package/dist/build/types/build/barrels.d.ts +70 -0
  14. package/dist/build/types/build/base.d.ts +2 -0
  15. package/dist/build/types/build/browser-runtime-exports.d.ts +19 -0
  16. package/dist/build/types/build/check-fragment.d.ts +5 -0
  17. package/dist/build/types/build/commonjs-exports.d.ts +5 -0
  18. package/dist/build/types/build/convert-commonjs.d.ts +12 -0
  19. package/dist/build/types/build/dependencies.d.ts +6 -0
  20. package/dist/build/types/build/dependency-barrel-index.d.ts +5 -0
  21. package/dist/build/types/build/dependency-barrels.d.ts +7 -0
  22. package/dist/build/types/build/dependency-cache.d.ts +7 -0
  23. package/dist/build/types/build/dependency-optional.d.ts +4 -0
  24. package/dist/build/types/build/dependency-plugin.d.ts +8 -0
  25. package/dist/build/types/build/dependency-runtime.d.ts +20 -0
  26. package/dist/build/types/build/dependency-workers.d.ts +8 -0
  27. package/dist/build/types/build/errors.d.ts +9 -0
  28. package/dist/build/types/build/fragment.d.ts +13 -0
  29. package/dist/build/types/build/index.d.ts +7 -0
  30. package/dist/build/types/build/library-runtime.d.ts +21 -0
  31. package/dist/build/types/build/module-utils.d.ts +3 -0
  32. package/dist/build/types/build/recipe-dependencies.d.ts +2 -0
  33. package/dist/build/types/build/runtime-entries.d.ts +4 -0
  34. package/dist/build/types/build/runtime-layer.d.ts +17 -0
  35. package/dist/build/types/build/trace.d.ts +140 -0
  36. package/dist/build/types/design-schema.d.ts +98 -0
  37. package/dist/build/types/host/agent-source.d.ts +2 -0
  38. package/dist/build/types/host/agent-validation.d.ts +3 -0
  39. package/dist/build/types/host/design-validation.d.ts +2 -0
  40. package/dist/build/types/host/message-values.d.ts +8 -0
  41. package/dist/build/types/host/review/validation.d.ts +5 -0
  42. package/dist/build/types/host/validation.d.ts +6 -0
  43. package/dist/build/types/link/page-sources.d.ts +31 -0
  44. package/dist/build/types/link/types.d.ts +62 -0
  45. package/dist/build/types/link/validation.d.ts +9 -0
  46. package/dist/build/types/markers.d.ts +10 -0
  47. package/dist/build/types/review-schema.d.ts +60 -0
  48. package/dist/build/types/schema.d.ts +319 -0
  49. package/dist/build/types/sw/barrels.d.ts +9 -0
  50. package/dist/build/types/sw/compiler-plugins.d.ts +6 -0
  51. package/dist/build/types/sw/composition.d.ts +8 -0
  52. package/dist/build/types/sw/module-transform.d.ts +68 -0
  53. package/dist/build/types/sw/profile.d.ts +7 -0
  54. package/dist/build/types/sw/source-provider.d.ts +7 -0
  55. package/dist/build/types/sw/versions.d.ts +10 -0
  56. package/dist/node/catalog.mjs +1 -0
  57. package/dist/node/chunks/publication-RchcQvxD.mjs +229 -0
  58. package/dist/node/chunks/publication-RchcQvxD.mjs.map +1 -0
  59. package/dist/node/chunks/schema-CaRTfg2x.mjs +12 -0
  60. package/dist/node/chunks/schema-CaRTfg2x.mjs.map +1 -0
  61. package/dist/node/dev.mjs +410 -0
  62. package/dist/node/dev.mjs.map +1 -0
  63. package/dist/node/publication/cli.mjs +13 -0
  64. package/dist/node/publication/cli.mjs.map +1 -0
  65. package/dist/node/publication.mjs +1 -0
  66. package/dist/node/schema.mjs +1 -0
  67. package/dist/node/styles.mjs +49 -0
  68. package/dist/node/styles.mjs.map +1 -0
  69. package/dist/static/boot.js +40938 -0
  70. package/dist/static/boot.js.map +1 -0
  71. package/dist/static/bootstrap.html +1 -0
  72. package/dist/static/devtools-hook.js +118 -0
  73. package/dist/static/document-bundle.js +1 -0
  74. package/dist/static/document.js +2621 -0
  75. package/dist/static/editing.js +37 -0
  76. package/dist/static/export-compiler.js +81521 -0
  77. package/dist/static/export-compiler.js.map +1 -0
  78. package/dist/static/page-agent.js +17193 -0
  79. package/dist/static/page-agent.js.map +1 -0
  80. package/dist/static/sw.js +86112 -0
  81. package/dist/static/sw.js.map +1 -0
  82. package/package.json +110 -3
  83. package/scripts/build-builder.ts +27 -0
  84. package/scripts/build-library-runtime.ts +9 -0
  85. package/scripts/build-node.ts +26 -0
  86. package/scripts/build-static.ts +86 -0
  87. package/scripts/build.ts +7 -0
  88. package/scripts/check-fragment.ts +12 -0
  89. package/scripts/local-workspaces.ts +55 -0
  90. package/scripts/react-externals.ts +18 -0
  91. package/scripts/release-version.ts +47 -0
  92. package/scripts/run-package-build.ts +8 -0
  93. package/scripts/serve-packages.ts +8 -0
  94. package/src/activity-schema.ts +92 -0
  95. package/src/build/README.md +96 -0
  96. package/src/build/barrels.ts +306 -0
  97. package/src/build/base.ts +2 -0
  98. package/src/build/browser-runtime-exports.ts +52 -0
  99. package/src/build/check-fragment.ts +45 -0
  100. package/src/build/cjs-export-names.mjs +24 -0
  101. package/src/build/commonjs-exports.ts +24 -0
  102. package/src/build/convert-commonjs.ts +183 -0
  103. package/src/build/dependencies.ts +6 -0
  104. package/src/build/dependency-barrel-index.ts +48 -0
  105. package/src/build/dependency-barrels.ts +80 -0
  106. package/src/build/dependency-cache.ts +40 -0
  107. package/src/build/dependency-optional.ts +15 -0
  108. package/src/build/dependency-plugin.ts +58 -0
  109. package/src/build/dependency-runtime.ts +182 -0
  110. package/src/build/dependency-workers.ts +41 -0
  111. package/src/build/errors.ts +9 -0
  112. package/src/build/fragment.ts +89 -0
  113. package/src/build/index.ts +7 -0
  114. package/src/build/library-runtime.ts +101 -0
  115. package/src/build/module-utils.ts +11 -0
  116. package/src/build/recipe-dependencies.ts +14 -0
  117. package/src/build/runtime-entries.ts +10 -0
  118. package/src/build/runtime-layer.ts +99 -0
  119. package/src/build/trace.ts +431 -0
  120. package/src/design-schema.ts +25 -0
  121. package/src/dev/README.md +78 -0
  122. package/src/dev/catalog.ts +79 -0
  123. package/src/dev/cli.ts +25 -0
  124. package/src/dev/index.ts +118 -0
  125. package/src/dev/runtime-origin.ts +63 -0
  126. package/src/editing.ts +25 -0
  127. package/src/form/entry-source.ts +68 -0
  128. package/src/form/form-page.ts +63 -0
  129. package/src/form/index.ts +2 -0
  130. package/src/form/source-update.ts +17 -0
  131. package/src/frame/activity.browser.ts +34 -0
  132. package/src/frame/activity.ts +52 -0
  133. package/src/frame/agent/README.md +47 -0
  134. package/src/frame/agent/agent.browser.ts +127 -0
  135. package/src/frame/agent/design.ts +62 -0
  136. package/src/frame/agent/frame-layout.ts +54 -0
  137. package/src/frame/agent/index.ts +151 -0
  138. package/src/frame/agent/overlay.ts +104 -0
  139. package/src/frame/agent/owner.ts +61 -0
  140. package/src/frame/agent/provider.tsx +14 -0
  141. package/src/frame/agent/react-override.ts +55 -0
  142. package/src/frame/agent/review.browser.ts +65 -0
  143. package/src/frame/agent/review.ts +108 -0
  144. package/src/frame/agent/testing/callsite.tsx +5 -0
  145. package/src/frame/agent/testing/client.ts +99 -0
  146. package/src/frame/agent/testing/library.ts +3 -0
  147. package/src/frame/agent/testing/modal.tsx +5 -0
  148. package/src/frame/agent/testing/review-client.ts +43 -0
  149. package/src/frame/agent/testing/review-server.ts +31 -0
  150. package/src/frame/agent/testing/server.ts +72 -0
  151. package/src/frame/agent/testing/vocabulary-host.ts +20 -0
  152. package/src/frame/agent/testing/vocabulary.tsx +10 -0
  153. package/src/frame/agent/vitest.browser.config.ts +6 -0
  154. package/src/frame/agent/vocabulary.browser.ts +30 -0
  155. package/src/frame/agent/vocabulary.ts +13 -0
  156. package/src/frame/agent.ts +3 -0
  157. package/src/frame/boot-styles.ts +50 -0
  158. package/src/frame/boot.ts +269 -0
  159. package/src/frame/bridge.ts +27 -0
  160. package/src/frame/devtools-hook.ts +1 -0
  161. package/src/frame/document-assets.ts +76 -0
  162. package/src/frame/document-entry.ts +68 -0
  163. package/src/frame/document-modules.ts +113 -0
  164. package/src/frame/document-mount.ts +32 -0
  165. package/src/frame/entry.ts +4 -0
  166. package/src/frame/export-compiler.ts +18 -0
  167. package/src/frame/export-page.ts +61 -0
  168. package/src/frame/export.ts +89 -0
  169. package/src/frame/index.ts +8 -0
  170. package/src/frame/local-runtime.browser.ts +36 -0
  171. package/src/frame/mount-page.ts +36 -0
  172. package/src/frame/page-agent.ts +2 -0
  173. package/src/frame/readiness.ts +51 -0
  174. package/src/frame/render-job.ts +101 -0
  175. package/src/frame/review-integration.browser.ts +48 -0
  176. package/src/frame/runtime.browser.ts +90 -0
  177. package/src/frame/tailwind/README.md +49 -0
  178. package/src/frame/tailwind/boot-styles.browser.ts +18 -0
  179. package/src/frame/tailwind/cache.ts +20 -0
  180. package/src/frame/tailwind/load.ts +75 -0
  181. package/src/frame/tailwind/recipe.ts +76 -0
  182. package/src/frame/tailwind/runtime.ts +113 -0
  183. package/src/frame/tailwind/store.ts +55 -0
  184. package/src/frame/tailwind/stylesheets.ts +42 -0
  185. package/src/frame/tailwind/tailwind.browser.ts +71 -0
  186. package/src/frame/tailwind/testing/client.ts +133 -0
  187. package/src/frame/tailwind/testing/compare.ts +91 -0
  188. package/src/frame/tailwind/testing/pages.ts +14 -0
  189. package/src/frame/tailwind/testing/server.ts +89 -0
  190. package/src/frame/tailwind/vitest.browser.config.ts +7 -0
  191. package/src/frame/testing/boot-layout.ts +3 -0
  192. package/src/frame/testing/boot-page.ts +3 -0
  193. package/src/frame/testing/host.ts +78 -0
  194. package/src/frame/testing/local-host.tsx +33 -0
  195. package/src/frame/testing/server.ts +135 -0
  196. package/src/host/BuildLog.tsx +28 -0
  197. package/src/host/DEBUG_CONSOLE.md +13 -0
  198. package/src/host/PageForm.tsx +63 -0
  199. package/src/host/PageFrame.tsx +49 -0
  200. package/src/host/RuntimeActivity.tsx +77 -0
  201. package/src/host/RuntimeDebugPanel.tsx +18 -0
  202. package/src/host/activity-state.ts +69 -0
  203. package/src/host/agent-source.ts +14 -0
  204. package/src/host/agent-validation.ts +73 -0
  205. package/src/host/bridge.ts +56 -0
  206. package/src/host/build-log.ts +29 -0
  207. package/src/host/clear-cache.ts +66 -0
  208. package/src/host/debug-runtime.tsx +17 -0
  209. package/src/host/design-validation.ts +96 -0
  210. package/src/host/index.ts +12 -0
  211. package/src/host/link/index.ts +66 -0
  212. package/src/host/link/transport.ts +68 -0
  213. package/src/host/link/watch.ts +62 -0
  214. package/src/host/message-values.ts +55 -0
  215. package/src/host/origin.ts +7 -0
  216. package/src/host/review/README.md +32 -0
  217. package/src/host/review/index.ts +43 -0
  218. package/src/host/review/validation.ts +55 -0
  219. package/src/host/runtime-diagnostics.ts +41 -0
  220. package/src/host/validation.ts +148 -0
  221. package/src/link/README.md +115 -0
  222. package/src/link/barrels.ts +5 -0
  223. package/src/link/build-cli.ts +12 -0
  224. package/src/link/build.ts +99 -0
  225. package/src/link/commonjs.ts +39 -0
  226. package/src/link/examples/server.ts +18 -0
  227. package/src/link/index.ts +6 -0
  228. package/src/link/link.browser.ts +66 -0
  229. package/src/link/local-relay.browser.ts +22 -0
  230. package/src/link/overrides.ts +69 -0
  231. package/src/link/page-sources.ts +69 -0
  232. package/src/link/source.ts +25 -0
  233. package/src/link/storage.ts +32 -0
  234. package/src/link/testing/client.ts +96 -0
  235. package/src/link/testing/folder.ts +19 -0
  236. package/src/link/testing/local-client.ts +30 -0
  237. package/src/link/testing/local-server.ts +26 -0
  238. package/src/link/testing/local-worker.ts +17 -0
  239. package/src/link/testing/server.ts +131 -0
  240. package/src/link/testing/worker.ts +32 -0
  241. package/src/link/testing-cache.ts +20 -0
  242. package/src/link/testing-fixtures.ts +16 -0
  243. package/src/link/types.ts +27 -0
  244. package/src/link/validation.ts +44 -0
  245. package/src/link/vitest.browser.config.ts +3 -0
  246. package/src/markers.ts +18 -0
  247. package/src/publication/build.ts +27 -0
  248. package/src/publication/fixtures/build.mjs +2 -0
  249. package/src/publication/index.ts +3 -0
  250. package/src/publication/lock.ts +32 -0
  251. package/src/publication/manifest.ts +14 -0
  252. package/src/publication/publish.ts +80 -0
  253. package/src/publication/runtime.ts +28 -0
  254. package/src/publication/schema.ts +13 -0
  255. package/src/review-schema.ts +17 -0
  256. package/src/schema.ts +175 -0
  257. package/src/storage/db.ts +64 -0
  258. package/src/styles.ts +40 -0
  259. package/src/sw/activity.ts +66 -0
  260. package/src/sw/barrels.ts +44 -0
  261. package/src/sw/candidates.ts +14 -0
  262. package/src/sw/compile.ts +92 -0
  263. package/src/sw/compiler-columns.ts +44 -0
  264. package/src/sw/compiler-internals.d.ts +8 -0
  265. package/src/sw/compiler-plugins.ts +18 -0
  266. package/src/sw/compiler.ts +93 -0
  267. package/src/sw/composition.ts +86 -0
  268. package/src/sw/content-types.ts +28 -0
  269. package/src/sw/converted.browser.ts +31 -0
  270. package/src/sw/converted.ts +64 -0
  271. package/src/sw/editable-sites.ts +42 -0
  272. package/src/sw/errors.ts +30 -0
  273. package/src/sw/esm-sh-fixtures/browser-client.ts +18 -0
  274. package/src/sw/esm-sh-fixtures/browser-server.ts +104 -0
  275. package/src/sw/esm-sh-fixtures/fixtures/copy-to-clipboard-entry.headers +15 -0
  276. package/src/sw/esm-sh-fixtures/fixtures/copy-to-clipboard-entry.mjs.txt +3 -0
  277. package/src/sw/esm-sh-fixtures/fixtures/copy-to-clipboard-module.headers +13 -0
  278. package/src/sw/esm-sh-fixtures/fixtures/copy-to-clipboard-module.mjs.txt +142 -0
  279. package/src/sw/esm-sh-fixtures/fixtures/react-copy-to-clipboard-entry.headers +15 -0
  280. package/src/sw/esm-sh-fixtures/fixtures/react-copy-to-clipboard-entry.mjs.txt +3 -0
  281. package/src/sw/esm-sh-fixtures/fixtures/react-copy-to-clipboard-module.headers +11 -0
  282. package/src/sw/esm-sh-fixtures/fixtures/react-copy-to-clipboard-module.mjs.txt +222 -0
  283. package/src/sw/esm-sh-fixtures/fixtures/toggle-selection-entry.headers +14 -0
  284. package/src/sw/esm-sh-fixtures/fixtures/toggle-selection-entry.mjs.txt +3 -0
  285. package/src/sw/esm-sh-fixtures/fixtures/toggle-selection-module.headers +11 -0
  286. package/src/sw/esm-sh-fixtures/fixtures/toggle-selection-module.mjs.txt +76 -0
  287. package/src/sw/esm-sh-fixtures/fixtures.ts +54 -0
  288. package/src/sw/esm-sh-fixtures/redact.ts +1 -0
  289. package/src/sw/index.ts +7 -0
  290. package/src/sw/integrity.ts +10 -0
  291. package/src/sw/legacy-storage.ts +18 -0
  292. package/src/sw/link-activity.ts +21 -0
  293. package/src/sw/link-cache.ts +19 -0
  294. package/src/sw/link-compiler.ts +120 -0
  295. package/src/sw/link-folder.ts +29 -0
  296. package/src/sw/link-relay.ts +40 -0
  297. package/src/sw/link-route.ts +239 -0
  298. package/src/sw/link-source.ts +41 -0
  299. package/src/sw/markers.ts +128 -0
  300. package/src/sw/module-transform.ts +364 -0
  301. package/src/sw/page-clients.ts +45 -0
  302. package/src/sw/profile.ts +90 -0
  303. package/src/sw/resolver.ts +224 -0
  304. package/src/sw/router.ts +360 -0
  305. package/src/sw/runtime-exports.ts +39 -0
  306. package/src/sw/runtime-module.ts +13 -0
  307. package/src/sw/source-hash.ts +37 -0
  308. package/src/sw/source-provider.ts +20 -0
  309. package/src/sw/versions.ts +96 -0
  310. package/src/sw/worker.ts +91 -0
  311. package/static/README.md +15 -0
  312. package/static/profile.example.json +15 -0
@@ -0,0 +1,104 @@
1
+ import { createServer, type Server, type ServerResponse } from "node:http";
2
+ import { createRequire } from "node:module";
3
+ import { fileURLToPath } from "node:url";
4
+ import { build } from "rolldown";
5
+ import type { Fragment } from "../../schema.ts";
6
+ import { digest } from "../integrity.ts";
7
+ import { contentSecurityPolicy } from "../router.ts";
8
+ import { FACET, MANIFESTS, PROFILE, UI, recordedModules, registryResponse } from "./fixtures.ts";
9
+
10
+ const root = fileURLToPath(new URL("../../../", import.meta.url));
11
+ const require = createRequire(import.meta.url);
12
+ const runtime = `${UI}@0.3.0/dist/runtime/react@18.3.1/`;
13
+ const PAGE = `import React from "react";
14
+ import { createRoot } from "react-dom/client";
15
+ import CopyToClipboard from "react-copy-to-clipboard";
16
+ import { sharedReact } from "@flanksource/clicky-ui";
17
+ function Page() {
18
+ const oneReact = sharedReact === React && Object.getPrototypeOf(CopyToClipboard.prototype) === React.PureComponent.prototype;
19
+ React.useLayoutEffect(() => { document.title = "CONVERTED-DONE"; }, []);
20
+ return React.createElement(CopyToClipboard, { text: "fixture" }, React.createElement("button", { id: "converted", "data-one-react": oneReact }, "Copy fixture"));
21
+ }
22
+ createRoot(document.querySelector("#root")).render(React.createElement(Page));`;
23
+
24
+ async function bundle(entry: string): Promise<string> {
25
+ const worker = entry === "src/sw/worker.ts";
26
+ const output = await build({ input: root + entry, platform: "browser", resolve: { conditionNames: ["worker", "browser", "import", "default"], alias: { "facet-redact": fileURLToPath(new URL("./redact.ts", import.meta.url)) } }, transform: { define: { __RUNTIME_VERSION__: '"esm-fixture"', "process.env.NODE_ENV": '"development"', "process.env": "{}" } }, output: { format: worker ? "iife" : "es", codeSplitting: false }, write: false });
27
+ const chunk = output.output.find((item) => item.type === "chunk");
28
+ if (!chunk || chunk.type !== "chunk") throw new Error(`${entry}: fixture bundle has no JavaScript`);
29
+ return chunk.code;
30
+ }
31
+
32
+ async function reactFiles(): Promise<Map<string, string>> {
33
+ const names = Object.keys(require("react") as Record<string, unknown>);
34
+ const output = await build({
35
+ input: { react: "fixture:react", client: "fixture:react-dom/client" }, platform: "browser",
36
+ transform: { define: { "process.env.NODE_ENV": '"development"' } },
37
+ plugins: [{ name: "fixture-react-singleton", resolveId(source, importer, options) {
38
+ if (source.startsWith("fixture:")) return source;
39
+ if (source === "react" && importer !== "fixture:react") return options.kind === "require-call" ? "fixture:require-react" : { id: source, external: true };
40
+ return null;
41
+ }, load(id) {
42
+ if (id === "fixture:require-react") return 'import React from "react"; module.exports = React;';
43
+ if (!id.startsWith("fixture:")) return null;
44
+ const specifier = id.slice(8);
45
+ return `import value from ${JSON.stringify(require.resolve(specifier))}; export default value; ${(specifier === "react" ? names : ["createRoot", "hydrateRoot"]).map((name) => `export const ${name} = value.${name};`).join("\n")}`;
46
+ } }], output: { format: "es", entryFileNames: "[name].js", chunkFileNames: "shared-[hash].js" }, write: false,
47
+ });
48
+ return new Map(output.output.filter((item) => item.type === "chunk").map((item) => [runtime + item.fileName, item.code]));
49
+ }
50
+
51
+ async function listen(server: Server): Promise<string> {
52
+ await new Promise<void>((resolve, reject) => { server.once("error", reject); server.listen(0, "127.0.0.1", resolve); });
53
+ const address = server.address();
54
+ if (!address || typeof address === "string") throw new Error("fixture server has no TCP address");
55
+ return `http://127.0.0.1:${address.port}`;
56
+ }
57
+
58
+ function send(response: ServerResponse, source: string, type = "text/javascript"): void {
59
+ response.writeHead(200, { "content-type": type, "content-length": Buffer.byteLength(source), "access-control-allow-origin": "*" }); response.end(source);
60
+ }
61
+
62
+ export async function startConvertedBrowserServer() {
63
+ const modules = await recordedModules();
64
+ const files = await reactFiles();
65
+ const worker = await bundle("src/sw/worker.ts");
66
+ const client = await bundle("src/sw/esm-sh-fixtures/browser-client.ts");
67
+ files.set(`${UI}@0.3.0/index.js`, 'import React from "react"; export const sharedReact = React;');
68
+ files.set(`${FACET}@0.1.0/index.js`, "export {};");
69
+ const integrity = Object.fromEntries(await Promise.all([...files].map(async ([path, code]) => [path, await digest(new TextEncoder().encode(code))])));
70
+ const ui: Fragment = { fragment: 1, name: UI, imports: { [UI]: `${UI}@0.3.0/index.js`, react: `${runtime}react.js`, "react-dom/client": `${runtime}client.js` }, scopes: { [`${UI}@0.3.0/`]: {} }, remaps: {}, aliases: {}, inherits: [], integrity };
71
+ const facet: Fragment = { ...ui, name: FACET, imports: { [FACET]: `${FACET}@0.1.0/index.js` }, scopes: {}, integrity: {} };
72
+ const converterRequests: string[] = []; const packageRequests: string[] = [];
73
+ const converter = createServer((request, response) => {
74
+ const path = request.url!; converterRequests.push(path);
75
+ const source = modules.get(path);
76
+ if (source === undefined) { response.writeHead(404); response.end(`unrecorded converter URL ${path}`); return; }
77
+ send(response, source);
78
+ });
79
+ const converterOrigin = await listen(converter);
80
+ let origin = "";
81
+ const profile = { ...PROFILE, embedders: [], convert: { origin: converterOrigin } };
82
+ const server = createServer((request, response) => { void (async () => {
83
+ const url = new URL(request.url!, origin);
84
+ if (url.pathname === "/profile.json") { send(response, JSON.stringify({ ...profile, packageOrigin: `${origin}/packages`, registry: `${origin}/registry` }), "application/json"); return; }
85
+ if (url.pathname.startsWith("/registry/")) { const data = registryResponse(decodeURIComponent(url.pathname.slice(10))); send(response, await data.text(), "application/json"); return; }
86
+ if (url.pathname.endsWith("barrels.json")) { send(response, JSON.stringify({ modules: [], barrels: {} }), "application/json"); return; }
87
+ if (url.pathname.endsWith("importmap.json")) { send(response, JSON.stringify(url.pathname.includes(UI) ? ui : facet), "application/json"); return; }
88
+ if (url.pathname.startsWith("/packages/")) {
89
+ const path = decodeURIComponent(url.pathname.slice(10)); packageRequests.push(path);
90
+ const source = files.get(path);
91
+ if (source === undefined) throw new Error(`missing fixture package ${path}`);
92
+ send(response, source); return;
93
+ }
94
+ if (url.pathname === "/sw.js") { response.setHeader("service-worker-allowed", "/"); send(response, worker); return; }
95
+ if (url.pathname === "/client.js") { send(response, client); return; }
96
+ if (url.pathname === "/open.json") { send(response, JSON.stringify({ type: "open", page: "report.js", manifest: { dependencies: { "react-copy-to-clipboard": MANIFESTS["react-copy-to-clipboard"]!.version } }, files: { "report.js": PAGE } }), "application/json"); return; }
97
+ if (url.pathname !== "/") { response.writeHead(404); response.end(`unexpected fixture route ${url.pathname}`); return; }
98
+ response.setHeader("content-security-policy", contentSecurityPolicy({ ...profile, packageOrigin: origin, registry: origin }, "fixture"));
99
+ send(response, '<!doctype html><html><head><title>CONVERTED-RUNNING</title></head><body><div id="root"></div><pre id="result"></pre><script type="module" src="/client.js"></script></body></html>', "text/html");
100
+ })().catch((error: unknown) => { response.writeHead(500); response.end(String(error)); }); });
101
+ try { origin = await listen(server); }
102
+ catch (error) { converter.closeAllConnections(); converter.close(); throw error; }
103
+ return { origin, converterRequests, packageRequests, close: async () => { await Promise.all([server, converter].map((item) => new Promise<void>((resolve, reject) => { item.closeAllConnections(); item.close((error) => error ? reject(error) : resolve()); }))); } };
104
+ }
@@ -0,0 +1,15 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:11:14 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ content-length: 217
5
+ access-control-allow-origin: *
6
+ access-control-expose-headers: X-ESM-Path, X-TypeScript-Types
7
+ cache-control: public, max-age=31536000, immutable
8
+ server: cloudflare
9
+ x-esm-path: /*copy-to-clipboard@3.3.3/es2022/copy-to-clipboard.development.mjs
10
+ x-typescript-types: https://esm.sh/copy-to-clipboard@3.3.3/index.d.ts
11
+ accept-ranges: bytes
12
+ last-modified: Sat, 07 Nov 2026 18:11:14 GMT
13
+ cf-cache-status: MISS
14
+ cf-ray: a56e4c96db2a09c3-HFA
15
+
@@ -0,0 +1,3 @@
1
+ /* esm.sh - copy-to-clipboard@3.3.3 */
2
+ export * from "/*copy-to-clipboard@3.3.3/es2022/copy-to-clipboard.development.mjs";
3
+ export { default } from "/*copy-to-clipboard@3.3.3/es2022/copy-to-clipboard.development.mjs";
@@ -0,0 +1,13 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:11:14 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ access-control-allow-origin: *
5
+ access-control-expose-headers: X-TypeScript-Types
6
+ cache-control: public, max-age=31536000, immutable
7
+ last-modified: Sat, 07 Nov 2026 18:11:13 GMT
8
+ server: cloudflare
9
+ vary: Accept-Encoding
10
+ x-typescript-types: https://esm.sh/copy-to-clipboard@3.3.3/index.d.ts
11
+ cf-cache-status: MISS
12
+ cf-ray: a56e4c96fd6c09b9-HFA
13
+
@@ -0,0 +1,142 @@
1
+ /* esm.sh - copy-to-clipboard@3.3.3 */
2
+ import*as __0$ from"toggle-selection";var require=n=>{const e=m=>typeof m.default<"u"?m.default:m,c=m=>Object.assign({__esModule:true},m);switch(n){case"toggle-selection":return e(__0$);default:console.error('module "'+n+'" not found');return null;}};
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ }) : x)(function(x) {
12
+ if (typeof require !== "undefined") return require.apply(this, arguments);
13
+ throw Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __commonJS = (cb, mod) => function __require2() {
16
+ try {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ } catch (e) {
19
+ throw mod = 0, e;
20
+ }
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31
+ // If the importer is in node compatibility mode or this is not an ESM
32
+ // file that has been converted to a CommonJS file using a Babel-
33
+ // compatible transform (i.e. "__esModule" has not been set), then set
34
+ // "default" to the CommonJS "module.exports" for node compatibility.
35
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
36
+ mod
37
+ ));
38
+
39
+ // node_modules/copy-to-clipboard/index.js
40
+ var require_copy_to_clipboard = __commonJS({
41
+ "node_modules/copy-to-clipboard/index.js"(exports, module) {
42
+ "use strict";
43
+ var deselectCurrent = __require("toggle-selection");
44
+ var clipboardToIE11Formatting = {
45
+ "text/plain": "Text",
46
+ "text/html": "Url",
47
+ "default": "Text"
48
+ };
49
+ var defaultMessage = "Copy to clipboard: #{key}, Enter";
50
+ function format(message) {
51
+ var copyKey = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
52
+ return message.replace(/#{\s*key\s*}/g, copyKey);
53
+ }
54
+ function copy(text, options) {
55
+ var debug, message, reselectPrevious, range, selection, mark, success = false;
56
+ if (!options) {
57
+ options = {};
58
+ }
59
+ debug = options.debug || false;
60
+ try {
61
+ reselectPrevious = deselectCurrent();
62
+ range = document.createRange();
63
+ selection = document.getSelection();
64
+ mark = document.createElement("span");
65
+ mark.textContent = text;
66
+ mark.ariaHidden = "true";
67
+ mark.style.all = "unset";
68
+ mark.style.position = "fixed";
69
+ mark.style.top = 0;
70
+ mark.style.clip = "rect(0, 0, 0, 0)";
71
+ mark.style.whiteSpace = "pre";
72
+ mark.style.webkitUserSelect = "text";
73
+ mark.style.MozUserSelect = "text";
74
+ mark.style.msUserSelect = "text";
75
+ mark.style.userSelect = "text";
76
+ mark.addEventListener("copy", function(e) {
77
+ e.stopPropagation();
78
+ if (options.format) {
79
+ e.preventDefault();
80
+ if (typeof e.clipboardData === "undefined") {
81
+ debug && console.warn("unable to use e.clipboardData");
82
+ debug && console.warn("trying IE specific stuff");
83
+ window.clipboardData.clearData();
84
+ var format2 = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"];
85
+ window.clipboardData.setData(format2, text);
86
+ } else {
87
+ e.clipboardData.clearData();
88
+ e.clipboardData.setData(options.format, text);
89
+ }
90
+ }
91
+ if (options.onCopy) {
92
+ e.preventDefault();
93
+ options.onCopy(e.clipboardData);
94
+ }
95
+ });
96
+ document.body.appendChild(mark);
97
+ range.selectNodeContents(mark);
98
+ selection.addRange(range);
99
+ var successful = document.execCommand("copy");
100
+ if (!successful) {
101
+ throw new Error("copy command was unsuccessful");
102
+ }
103
+ success = true;
104
+ } catch (err) {
105
+ debug && console.error("unable to copy using execCommand: ", err);
106
+ debug && console.warn("trying IE specific stuff");
107
+ try {
108
+ window.clipboardData.setData(options.format || "text", text);
109
+ options.onCopy && options.onCopy(window.clipboardData);
110
+ success = true;
111
+ } catch (err2) {
112
+ debug && console.error("unable to copy using clipboardData: ", err2);
113
+ debug && console.error("falling back to prompt");
114
+ message = format("message" in options ? options.message : defaultMessage);
115
+ window.prompt(message, text);
116
+ }
117
+ } finally {
118
+ if (selection) {
119
+ if (typeof selection.removeRange == "function") {
120
+ selection.removeRange(range);
121
+ } else {
122
+ selection.removeAllRanges();
123
+ }
124
+ }
125
+ if (mark) {
126
+ document.body.removeChild(mark);
127
+ }
128
+ reselectPrevious();
129
+ }
130
+ return success;
131
+ }
132
+ module.exports = copy;
133
+ }
134
+ });
135
+
136
+ // endpoint.js
137
+ var cjsm = __toESM(require_copy_to_clipboard());
138
+ var endpoint_default = cjsm.default ?? cjsm;
139
+ export {
140
+ endpoint_default as default
141
+ };
142
+ //# sourceMappingURL=copy-to-clipboard.development.mjs.map
@@ -0,0 +1,15 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:10:33 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ content-length: 247
5
+ access-control-allow-origin: *
6
+ access-control-expose-headers: X-ESM-Path, X-TypeScript-Types
7
+ cache-control: public, max-age=31536000, immutable
8
+ server: cloudflare
9
+ x-esm-path: /*react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs
10
+ x-typescript-types: https://esm.sh/@types/react-copy-to-clipboard@~5.0.7/index.d.ts
11
+ accept-ranges: bytes
12
+ last-modified: Sat, 07 Nov 2026 18:10:33 GMT
13
+ cf-cache-status: MISS
14
+ cf-ray: a56e4b93583d09cb-HFA
15
+
@@ -0,0 +1,3 @@
1
+ /* esm.sh - react-copy-to-clipboard@5.1.1 */
2
+ export * from "/*react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs";
3
+ export { default } from "/*react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs";
@@ -0,0 +1,11 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:10:49 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ access-control-allow-origin: *
5
+ cache-control: public, max-age=31536000, immutable
6
+ last-modified: Sat, 07 Nov 2026 18:10:32 GMT
7
+ server: cloudflare
8
+ vary: Accept-Encoding
9
+ cf-cache-status: MISS
10
+ cf-ray: a56e4c011d0809c3-HFA
11
+
@@ -0,0 +1,222 @@
1
+ /* esm.sh - react-copy-to-clipboard@5.1.1 */
2
+ import*as __0$ from"copy-to-clipboard";import*as __1$ from"react";var require=n=>{const e=m=>typeof m.default<"u"?m.default:m,c=m=>Object.assign({__esModule:true},m);switch(n){case"copy-to-clipboard":return e(__0$);case"react":return e(__1$);default:console.error('module "'+n+'" not found');return null;}};
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ }) : x)(function(x) {
12
+ if (typeof require !== "undefined") return require.apply(this, arguments);
13
+ throw Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __commonJS = (cb, mod) => function __require2() {
16
+ try {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ } catch (e) {
19
+ throw mod = 0, e;
20
+ }
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31
+ // If the importer is in node compatibility mode or this is not an ESM
32
+ // file that has been converted to a CommonJS file using a Babel-
33
+ // compatible transform (i.e. "__esModule" has not been set), then set
34
+ // "default" to the CommonJS "module.exports" for node compatibility.
35
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
36
+ mod
37
+ ));
38
+
39
+ // node_modules/react-copy-to-clipboard/lib/Component.js
40
+ var require_Component = __commonJS({
41
+ "node_modules/react-copy-to-clipboard/lib/Component.js"(exports) {
42
+ "use strict";
43
+ Object.defineProperty(exports, "__esModule", {
44
+ value: true
45
+ });
46
+ exports.CopyToClipboard = void 0;
47
+ var _copyToClipboard = _interopRequireDefault(__require("copy-to-clipboard"));
48
+ var _react = _interopRequireDefault(__require("react"));
49
+ var _excluded = ["text", "onCopy", "options", "children"];
50
+ function _interopRequireDefault(e) {
51
+ return e && e.__esModule ? e : { "default": e };
52
+ }
53
+ function _typeof(o) {
54
+ "@babel/helpers - typeof";
55
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
56
+ return typeof o2;
57
+ } : function(o2) {
58
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
59
+ }, _typeof(o);
60
+ }
61
+ function ownKeys(e, r) {
62
+ var t = Object.keys(e);
63
+ if (Object.getOwnPropertySymbols) {
64
+ var o = Object.getOwnPropertySymbols(e);
65
+ r && (o = o.filter(function(r2) {
66
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
67
+ })), t.push.apply(t, o);
68
+ }
69
+ return t;
70
+ }
71
+ function _objectSpread(e) {
72
+ for (var r = 1; r < arguments.length; r++) {
73
+ var t = null != arguments[r] ? arguments[r] : {};
74
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
75
+ _defineProperty(e, r2, t[r2]);
76
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
77
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
78
+ });
79
+ }
80
+ return e;
81
+ }
82
+ function _objectWithoutProperties(e, t) {
83
+ if (null == e) return {};
84
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
85
+ if (Object.getOwnPropertySymbols) {
86
+ var n = Object.getOwnPropertySymbols(e);
87
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
88
+ }
89
+ return i;
90
+ }
91
+ function _objectWithoutPropertiesLoose(r, e) {
92
+ if (null == r) return {};
93
+ var t = {};
94
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
95
+ if (-1 !== e.indexOf(n)) continue;
96
+ t[n] = r[n];
97
+ }
98
+ return t;
99
+ }
100
+ function _classCallCheck(a, n) {
101
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
102
+ }
103
+ function _defineProperties(e, r) {
104
+ for (var t = 0; t < r.length; t++) {
105
+ var o = r[t];
106
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
107
+ }
108
+ }
109
+ function _createClass(e, r, t) {
110
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: false }), e;
111
+ }
112
+ function _callSuper(t, o, e) {
113
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
114
+ }
115
+ function _possibleConstructorReturn(t, e) {
116
+ if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
117
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
118
+ return _assertThisInitialized(t);
119
+ }
120
+ function _assertThisInitialized(e) {
121
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
122
+ return e;
123
+ }
124
+ function _isNativeReflectConstruct() {
125
+ try {
126
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
127
+ }));
128
+ } catch (t2) {
129
+ }
130
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
131
+ return !!t;
132
+ })();
133
+ }
134
+ function _getPrototypeOf(t) {
135
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
136
+ return t2.__proto__ || Object.getPrototypeOf(t2);
137
+ }, _getPrototypeOf(t);
138
+ }
139
+ function _inherits(t, e) {
140
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
141
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: true, configurable: true } }), Object.defineProperty(t, "prototype", { writable: false }), e && _setPrototypeOf(t, e);
142
+ }
143
+ function _setPrototypeOf(t, e) {
144
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
145
+ return t2.__proto__ = e2, t2;
146
+ }, _setPrototypeOf(t, e);
147
+ }
148
+ function _defineProperty(e, r, t) {
149
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
150
+ }
151
+ function _toPropertyKey(t) {
152
+ var i = _toPrimitive(t, "string");
153
+ return "symbol" == _typeof(i) ? i : i + "";
154
+ }
155
+ function _toPrimitive(t, r) {
156
+ if ("object" != _typeof(t) || !t) return t;
157
+ var e = t[Symbol.toPrimitive];
158
+ if (void 0 !== e) {
159
+ var i = e.call(t, r || "default");
160
+ if ("object" != _typeof(i)) return i;
161
+ throw new TypeError("@@toPrimitive must return a primitive value.");
162
+ }
163
+ return ("string" === r ? String : Number)(t);
164
+ }
165
+ var CopyToClipboard = exports.CopyToClipboard = /* @__PURE__ */ (function(_React$PureComponent) {
166
+ function CopyToClipboard2() {
167
+ var _this;
168
+ _classCallCheck(this, CopyToClipboard2);
169
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
170
+ args[_key] = arguments[_key];
171
+ }
172
+ _this = _callSuper(this, CopyToClipboard2, [].concat(args));
173
+ _defineProperty(_this, "onClick", function(event) {
174
+ var _this$props = _this.props, text = _this$props.text, onCopy = _this$props.onCopy, children = _this$props.children, options = _this$props.options;
175
+ var elem = _react["default"].Children.only(children);
176
+ var result = (0, _copyToClipboard["default"])(text, options);
177
+ if (onCopy) {
178
+ onCopy(text, result);
179
+ }
180
+ if (elem !== null && elem !== void 0 && elem.props && typeof elem.props.onClick === "function") {
181
+ elem.props.onClick(event);
182
+ }
183
+ });
184
+ return _this;
185
+ }
186
+ _inherits(CopyToClipboard2, _React$PureComponent);
187
+ return _createClass(CopyToClipboard2, [{
188
+ key: "render",
189
+ value: function render() {
190
+ var _this$props2 = this.props, _text = _this$props2.text, _onCopy = _this$props2.onCopy, _options = _this$props2.options, children = _this$props2.children, props = _objectWithoutProperties(_this$props2, _excluded);
191
+ var elem = _react["default"].Children.only(children);
192
+ return /* @__PURE__ */ _react["default"].cloneElement(elem, _objectSpread(_objectSpread({}, props), {}, {
193
+ onClick: this.onClick
194
+ }));
195
+ }
196
+ }]);
197
+ })(_react["default"].PureComponent);
198
+ _defineProperty(CopyToClipboard, "defaultProps", {
199
+ onCopy: void 0,
200
+ options: void 0
201
+ });
202
+ }
203
+ });
204
+
205
+ // node_modules/react-copy-to-clipboard/lib/index.js
206
+ var require_lib = __commonJS({
207
+ "node_modules/react-copy-to-clipboard/lib/index.js"(exports, module) {
208
+ "use strict";
209
+ var _require = require_Component();
210
+ var CopyToClipboard = _require.CopyToClipboard;
211
+ CopyToClipboard.CopyToClipboard = CopyToClipboard;
212
+ module.exports = CopyToClipboard;
213
+ }
214
+ });
215
+
216
+ // endpoint.js
217
+ var cjsm = __toESM(require_lib());
218
+ var endpoint_default = cjsm.default ?? cjsm;
219
+ export {
220
+ endpoint_default as default
221
+ };
222
+ //# sourceMappingURL=react-copy-to-clipboard.development.mjs.map
@@ -0,0 +1,14 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:11:51 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ content-length: 212
5
+ access-control-allow-origin: *
6
+ access-control-expose-headers: X-ESM-Path
7
+ cache-control: public, max-age=31536000, immutable
8
+ server: cloudflare
9
+ x-esm-path: /*toggle-selection@1.0.6/es2022/toggle-selection.development.mjs
10
+ accept-ranges: bytes
11
+ last-modified: Sat, 07 Nov 2026 18:11:51 GMT
12
+ cf-cache-status: MISS
13
+ cf-ray: a56e4d7bce6a09c3-HFA
14
+
@@ -0,0 +1,3 @@
1
+ /* esm.sh - toggle-selection@1.0.6 */
2
+ export * from "/*toggle-selection@1.0.6/es2022/toggle-selection.development.mjs";
3
+ export { default } from "/*toggle-selection@1.0.6/es2022/toggle-selection.development.mjs";
@@ -0,0 +1,11 @@
1
+ HTTP/2 200
2
+ date: Sat, 07 Nov 2026 18:11:51 GMT
3
+ content-type: application/javascript; charset=utf-8
4
+ access-control-allow-origin: *
5
+ cache-control: public, max-age=31536000, immutable
6
+ last-modified: Sat, 07 Nov 2026 18:11:50 GMT
7
+ server: cloudflare
8
+ vary: Accept-Encoding
9
+ cf-cache-status: MISS
10
+ cf-ray: a56e4d849f0a09bd-HFA
11
+
@@ -0,0 +1,76 @@
1
+ /* esm.sh - toggle-selection@1.0.6 */
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ try {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ } catch (e) {
12
+ throw mod = 0, e;
13
+ }
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
31
+
32
+ // node_modules/toggle-selection/index.js
33
+ var require_toggle_selection = __commonJS({
34
+ "node_modules/toggle-selection/index.js"(exports, module) {
35
+ module.exports = function() {
36
+ var selection = document.getSelection();
37
+ if (!selection.rangeCount) {
38
+ return function() {
39
+ };
40
+ }
41
+ var active = document.activeElement;
42
+ var ranges = [];
43
+ for (var i = 0; i < selection.rangeCount; i++) {
44
+ ranges.push(selection.getRangeAt(i));
45
+ }
46
+ switch (active.tagName.toUpperCase()) {
47
+ // .toUpperCase handles XHTML
48
+ case "INPUT":
49
+ case "TEXTAREA":
50
+ active.blur();
51
+ break;
52
+ default:
53
+ active = null;
54
+ break;
55
+ }
56
+ selection.removeAllRanges();
57
+ return function() {
58
+ selection.type === "Caret" && selection.removeAllRanges();
59
+ if (!selection.rangeCount) {
60
+ ranges.forEach(function(range) {
61
+ selection.addRange(range);
62
+ });
63
+ }
64
+ active && active.focus();
65
+ };
66
+ };
67
+ }
68
+ });
69
+
70
+ // endpoint.js
71
+ var cjsm = __toESM(require_toggle_selection());
72
+ var endpoint_default = cjsm.default ?? cjsm;
73
+ export {
74
+ endpoint_default as default
75
+ };
76
+ //# sourceMappingURL=toggle-selection.development.mjs.map