@silvery/examples 0.17.4 → 0.17.5

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 (62) hide show
  1. package/dist/_banner-A70_y2Vi.mjs +43 -0
  2. package/dist/{ansi-CCE2pVS0.mjs → ansi-0VXlUmNn.mjs} +7 -7
  3. package/dist/apng-B0gRaDVT.mjs +3 -0
  4. package/dist/{apng-HhhBjRGt.mjs → apng-BTRDTfDW.mjs} +2 -2
  5. package/dist/apps/aichat/index.mjs +69 -70
  6. package/dist/apps/app-todo.mjs +19 -20
  7. package/dist/apps/async-data.mjs +40 -41
  8. package/dist/apps/cli-wizard.mjs +51 -52
  9. package/dist/apps/clipboard.mjs +26 -27
  10. package/dist/apps/components.mjs +189 -190
  11. package/dist/apps/data-explorer.mjs +52 -53
  12. package/dist/apps/dev-tools.mjs +39 -40
  13. package/dist/apps/explorer.mjs +73 -74
  14. package/dist/apps/gallery.mjs +61 -62
  15. package/dist/apps/inline-bench.mjs +1 -1
  16. package/dist/apps/kanban.mjs +22 -23
  17. package/dist/apps/layout-ref.mjs +27 -28
  18. package/dist/apps/outline.mjs +35 -36
  19. package/dist/apps/paste-demo.mjs +33 -34
  20. package/dist/apps/scroll.mjs +11 -12
  21. package/dist/apps/search-filter.mjs +23 -24
  22. package/dist/apps/selection.mjs +30 -31
  23. package/dist/apps/spatial-focus-demo.mjs +32 -33
  24. package/dist/apps/task-list.mjs +25 -26
  25. package/dist/apps/terminal-caps-demo.mjs +30 -31
  26. package/dist/apps/terminal.mjs +157 -158
  27. package/dist/apps/text-selection-demo.mjs +62 -63
  28. package/dist/apps/textarea.mjs +21 -22
  29. package/dist/apps/theme.mjs +142 -143
  30. package/dist/apps/transform.mjs +25 -26
  31. package/dist/apps/virtual-10k.mjs +52 -53
  32. package/dist/{backends-Bahh9mKN.mjs → backends-Dj-11kZF.mjs} +1 -1
  33. package/dist/backends-U3QwStfO.mjs +3 -0
  34. package/dist/components/counter.mjs +6 -7
  35. package/dist/components/hello.mjs +5 -6
  36. package/dist/components/progress-bar.mjs +10 -11
  37. package/dist/components/select-list.mjs +8 -9
  38. package/dist/components/spinner.mjs +10 -11
  39. package/dist/components/text-input.mjs +8 -9
  40. package/dist/components/virtual-list.mjs +7 -8
  41. package/dist/{flexily-zero-adapter-UB-ra8fR.mjs → flexily-zero-adapter-ByVzLTFP.mjs} +1 -1
  42. package/dist/gif-B6NGH5gs.mjs +3 -0
  43. package/dist/{gif-BtnXuxLF.mjs → gif-CfkOF-iG.mjs} +2 -2
  44. package/dist/layout/dashboard.mjs +197 -198
  45. package/dist/layout/live-resize.mjs +44 -45
  46. package/dist/layout/overflow.mjs +16 -17
  47. package/dist/layout/text-layout.mjs +67 -68
  48. package/dist/{plugins-D1KtkT4a.mjs → plugins-CT0DdV_E.mjs} +12 -13
  49. package/dist/{src-BTEVGpd9.mjs → src-jO3Zuzjj.mjs} +3 -3
  50. package/dist/{yoga-adapter-BVtQ5OJR.mjs → yoga-adapter-BSQHuMV9.mjs} +1 -1
  51. package/package.json +4 -2
  52. package/dist/_banner-DLPxCqVy.mjs +0 -44
  53. package/dist/apng-mwUQbTTF.mjs +0 -3
  54. package/dist/backends-CCtCDQ94.mjs +0 -3
  55. package/dist/gif-BZaqPPVX.mjs +0 -3
  56. package/dist/jsx-runtime-dMs_8fNu.mjs +0 -241
  57. /package/dist/{UPNG-Cy7ViL8f.mjs → UPNG-ShUlaTDh.mjs} +0 -0
  58. /package/dist/{__vite-browser-external-2447137e-BML7CYau.mjs → __vite-browser-external-2447137e-Bopa5BFR.mjs} +0 -0
  59. /package/dist/{gifenc-CLRW41dk.mjs → gifenc-BI4ihP_T.mjs} +0 -0
  60. /package/dist/{node-NuJ94BWl.mjs → node-nsrAOjH4.mjs} +0 -0
  61. /package/dist/{resvg-js-C_8Wps1F.mjs → resvg-js-Cnk2o49d.mjs} +0 -0
  62. /package/dist/{src-CzfRafCQ.mjs → src-9ZhfQyzD.mjs} +0 -0
@@ -1,15 +1,15 @@
1
1
  import { a as __toCommonJS, i as __require } from "./chunk-BSw8zbkd.mjs";
2
- import { A as buffer_exports, C as detectTextSizingSupport, F as enableFocusReporting, I as isModifierOnlyEvent, L as keyToAnsi, N as init_buffer, O as bufferToStyledText, P as createTermProvider, R as keyToKittyAnsi, T as isTextSizingLikelySupported, a as IncrementalRenderMismatchError, i as outputPhase, k as bufferToText, n as createTerm, r as createOutputPhase, t as createOutputGuard, w as getCachedProbeResult, z as parseKey } from "./ansi-CCE2pVS0.mjs";
2
+ import { A as buffer_exports, C as detectTextSizingSupport, F as enableFocusReporting, I as isModifierOnlyEvent, L as keyToAnsi, N as init_buffer, O as bufferToStyledText, P as createTermProvider, R as keyToKittyAnsi, T as isTextSizingLikelySupported, a as IncrementalRenderMismatchError, i as outputPhase, k as bufferToText, n as createTerm, r as createOutputPhase, t as createOutputGuard, w as getCachedProbeResult, z as parseKey } from "./ansi-0VXlUmNn.mjs";
3
3
  import { a as init_ThemeContext, m as createColorSchemeDetector, r as init_detect } from "./src-CUUOuRH6.mjs";
4
- import { A as createFocusManager, B as isAnyDirty, C as enterAlternateScreen, D as getAncestorPath, E as createPipeline, F as reconciler, G as FocusManagerContext, H as isLayoutEngineInitialized, I as setOnNodeRemoved, J as StdoutContext, K as RuntimeContext, L as executeRender, M as createContainer, N as createFiberRoot, O as CursorProvider, P as getContainerRoot, R as createAg, S as enableMouse, T as resetCursorStyle, U as CacheBackendContext, V as ensureDefaultLayoutEngine, W as CapabilityRegistryContext, Y as TermContext, _ as detectKittyFromStdio, a as renderSelectionOverlay, b as disableMouse, c as terminalSelectionUpdate, d as hitTest, f as processMouseEvent, g as createWidthDetector, h as applyWidthConfig, i as createVirtualScrollback, j as findByTestID, k as createCursorStore, l as createMouseEventProcessor, m as updateKeyboardModifiers, n as renderSearchBar, o as createTerminalSelectionState, p as selectionHitTest, q as StderrContext, r as searchUpdate, s as extractText, t as createSearchState, u as findContainBoundary, v as KittyFlags, w as leaveAlternateScreen, x as enableKittyKeyboard, y as disableKittyKeyboard, z as signal } from "./src-BTEVGpd9.mjs";
4
+ import { A as createFocusManager, B as isAnyDirty, C as enterAlternateScreen, D as getAncestorPath, E as createPipeline, F as reconciler, G as FocusManagerContext, H as isLayoutEngineInitialized, I as setOnNodeRemoved, J as StdoutContext, K as RuntimeContext, L as executeRender, M as createContainer, N as createFiberRoot, O as CursorProvider, P as getContainerRoot, R as createAg, S as enableMouse, T as resetCursorStyle, U as CacheBackendContext, V as ensureDefaultLayoutEngine, W as CapabilityRegistryContext, Y as TermContext, _ as detectKittyFromStdio, a as renderSelectionOverlay, b as disableMouse, c as terminalSelectionUpdate, d as hitTest, f as processMouseEvent, g as createWidthDetector, h as applyWidthConfig, i as createVirtualScrollback, j as findByTestID, k as createCursorStore, l as createMouseEventProcessor, m as updateKeyboardModifiers, n as renderSearchBar, o as createTerminalSelectionState, p as selectionHitTest, q as StderrContext, r as searchUpdate, s as extractText, t as createSearchState, u as findContainBoundary, v as KittyFlags, w as leaveAlternateScreen, x as enableKittyKeyboard, y as disableKittyKeyboard, z as signal } from "./src-jO3Zuzjj.mjs";
5
5
  import { t as _usingCtx } from "./usingCtx-CsEf0xO3.mjs";
6
- import { t as require_jsx_runtime } from "./jsx-runtime-dMs_8fNu.mjs";
7
6
  import React, { Component, createContext, useContext, useEffect, useRef } from "react";
8
7
  import { createLogger } from "loggily";
9
8
  import * as fs from "node:fs";
10
9
  import { writeSync } from "node:fs";
11
10
  import "node:path";
12
11
  import process$1 from "node:process";
12
+ import { jsx } from "react/jsx-runtime";
13
13
  //#region ../packages/ag-term/src/runtime/layout.ts
14
14
  init_buffer();
15
15
  /**
@@ -1145,7 +1145,6 @@ function logExitSummary() {
1145
1145
  * }
1146
1146
  * ```
1147
1147
  */
1148
- var import_jsx_runtime = require_jsx_runtime();
1149
1148
  const log = createLogger("silvery:app");
1150
1149
  const ENV = typeof process$1 !== "undefined" ? process$1.env : void 0;
1151
1150
  const NO_INCREMENTAL = ENV?.SILVERY_NO_INCREMENTAL === "1";
@@ -1638,13 +1637,13 @@ async function initApp(factory, handlers, element, options) {
1638
1637
  };
1639
1638
  const Root = RootComponent ?? React.Fragment;
1640
1639
  const cacheBackend = !alternateScreen ? "terminal" : virtualInlineOption ? "virtual" : "retain";
1641
- const wrappedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SilveryErrorBoundary, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CursorProvider, {
1640
+ const wrappedElement = /* @__PURE__ */ jsx(SilveryErrorBoundary, { children: /* @__PURE__ */ jsx(CursorProvider, {
1642
1641
  store: cursorStore,
1643
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CacheBackendContext.Provider, {
1642
+ children: /* @__PURE__ */ jsx(CacheBackendContext.Provider, {
1644
1643
  value: cacheBackend,
1645
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TermContext.Provider, {
1644
+ children: /* @__PURE__ */ jsx(TermContext.Provider, {
1646
1645
  value: mockTerm,
1647
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StdoutContext.Provider, {
1646
+ children: /* @__PURE__ */ jsx(StdoutContext.Provider, {
1648
1647
  value: {
1649
1648
  stdout: mockStdout,
1650
1649
  write: () => {},
@@ -1653,20 +1652,20 @@ async function initApp(factory, handlers, element, options) {
1653
1652
  resetInlineCursor: () => runtime.resetInlineCursor(),
1654
1653
  getInlineCursorRow: () => runtime.getInlineCursorRow()
1655
1654
  },
1656
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StderrContext.Provider, {
1655
+ children: /* @__PURE__ */ jsx(StderrContext.Provider, {
1657
1656
  value: {
1658
1657
  stderr: process$1.stderr,
1659
1658
  write: (data) => {
1660
1659
  process$1.stderr.write(data);
1661
1660
  }
1662
1661
  },
1663
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusManagerContext.Provider, {
1662
+ children: /* @__PURE__ */ jsx(FocusManagerContext.Provider, {
1664
1663
  value: focusManager,
1665
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RuntimeContext.Provider, {
1664
+ children: /* @__PURE__ */ jsx(RuntimeContext.Provider, {
1666
1665
  value: runtimeContextValue,
1667
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CapabilityRegistryContext.Provider, {
1666
+ children: /* @__PURE__ */ jsx(CapabilityRegistryContext.Provider, {
1668
1667
  value: capabilityRegistry,
1669
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreContext.Provider, {
1668
+ children: /* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsx(StoreContext.Provider, {
1670
1669
  value: store,
1671
1670
  children: element
1672
1671
  }) })
@@ -1,5 +1,5 @@
1
1
  import { i as __require, o as __toESM, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
2
- import { D as TerminalBuffer, E as DEFAULT_BG, M as createTextFrame, N as init_buffer, S as wrapText, _ as sliceByWidth, b as splitGraphemesAnsiAware, c as displayWidth, d as getActiveLineHeight, f as graphemeWidth, g as runWithMeasurer, h as parseAnsiText, i as outputPhase, j as createMutableCell, l as displayWidthAnsi, m as isWordBoundary, o as canBreakAnywhere, p as hasAnsi, r as createOutputPhase, s as createWidthMeasurer, u as ensureEmojiPresentation, v as sliceByWidthFromEnd, x as stripAnsi, y as splitGraphemes } from "./ansi-CCE2pVS0.mjs";
2
+ import { D as TerminalBuffer, E as DEFAULT_BG, M as createTextFrame, N as init_buffer, S as wrapText, _ as sliceByWidth, b as splitGraphemesAnsiAware, c as displayWidth, d as getActiveLineHeight, f as graphemeWidth, g as runWithMeasurer, h as parseAnsiText, i as outputPhase, j as createMutableCell, l as displayWidthAnsi, m as isWordBoundary, o as canBreakAnywhere, p as hasAnsi, r as createOutputPhase, s as createWidthMeasurer, u as ensureEmojiPresentation, v as sliceByWidthFromEnd, x as stripAnsi, y as splitGraphemes } from "./ansi-0VXlUmNn.mjs";
3
3
  import { S as enableMouse$1, b as disableMouse$1, c as popContextTheme, i as init_resolve, l as pushContextTheme, o as getActiveTheme, p as init_src, s as init_state, v as resolveThemeColor, x as enableKittyKeyboard$1, y as disableKittyKeyboard$1 } from "./src-CUUOuRH6.mjs";
4
4
  import { t as _usingCtx } from "./usingCtx-CsEf0xO3.mjs";
5
5
  import React, { createContext } from "react";
@@ -96,10 +96,10 @@ function getConstants() {
96
96
  async function ensureDefaultLayoutEngine(engineType) {
97
97
  if (isLayoutEngineInitialized()) return;
98
98
  if ((engineType ?? process.env.SILVERY_ENGINE?.toLowerCase() ?? "flexily") === "yoga") {
99
- const { initYogaEngine } = await import("./yoga-adapter-BVtQ5OJR.mjs");
99
+ const { initYogaEngine } = await import("./yoga-adapter-BSQHuMV9.mjs");
100
100
  setLayoutEngine(await initYogaEngine());
101
101
  } else {
102
- const { createFlexilyZeroEngine } = await import("./flexily-zero-adapter-UB-ra8fR.mjs");
102
+ const { createFlexilyZeroEngine } = await import("./flexily-zero-adapter-ByVzLTFP.mjs");
103
103
  setLayoutEngine(createFlexilyZeroEngine());
104
104
  }
105
105
  }
@@ -230,7 +230,7 @@ var YogaLayoutEngine = class {
230
230
  * Uses yoga-wasm-web/auto which automatically selects the right implementation.
231
231
  */
232
232
  async function initYogaEngine() {
233
- const { default: yoga } = await import("./node-NuJ94BWl.mjs");
233
+ const { default: yoga } = await import("./node-nsrAOjH4.mjs");
234
234
  return new YogaLayoutEngine(yoga);
235
235
  }
236
236
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silvery/examples",
3
- "version": "0.17.4",
3
+ "version": "0.17.5",
4
4
  "description": "Example apps and component demos for silvery — npx @silvery/examples <name>",
5
5
  "license": "MIT",
6
6
  "author": "Bjørn Stabell <bjorn@stabell.org>",
@@ -44,7 +44,9 @@
44
44
  ]
45
45
  },
46
46
  "dependencies": {
47
- "silvery": "0.17.3"
47
+ "silvery": "0.17.3",
48
+ "react": "^19.0.0",
49
+ "loggily": "^0.6.0"
48
50
  },
49
51
  "engines": {
50
52
  "bun": ">=1.0",
@@ -1,44 +0,0 @@
1
- import { t as require_jsx_runtime } from "./jsx-runtime-dMs_8fNu.mjs";
2
- import "react";
3
- import { Box, Muted, Strong, Text, ThemeProvider, getThemeByName } from "silvery";
4
- //#region _banner.tsx
5
- var import_jsx_runtime = require_jsx_runtime();
6
- /**
7
- * Compact header shown when examples run standalone.
8
- * Wraps children in ThemeProvider for consistent theming.
9
- */
10
- function ExampleBanner({ meta, controls, theme, children }) {
11
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ThemeProvider, {
12
- theme: theme ?? getThemeByName(process.env.SILVERY_THEME),
13
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
14
- flexDirection: "column",
15
- flexGrow: 1,
16
- children: [
17
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
18
- paddingX: 1,
19
- gap: 1,
20
- children: [
21
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
22
- dim: true,
23
- color: "$warning",
24
- children: "▸ silvery"
25
- }),
26
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Strong, { children: meta.name }),
27
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Muted, { children: ["— ", meta.description] })
28
- ]
29
- }),
30
- meta.features && meta.features.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
31
- paddingX: 1,
32
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Muted, { children: [" ", meta.features.join(" · ")] })
33
- }),
34
- controls && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
35
- paddingX: 1,
36
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Muted, { children: [" ", controls] })
37
- }),
38
- children
39
- ]
40
- })
41
- });
42
- }
43
- //#endregion
44
- export { ExampleBanner as t };
@@ -1,3 +0,0 @@
1
- import { n as init_apng, t as createApng } from "./apng-HhhBjRGt.mjs";
2
- init_apng();
3
- export { createApng };
@@ -1,3 +0,0 @@
1
- import { s as init_backends, t as backend } from "./backends-Bahh9mKN.mjs";
2
- init_backends();
3
- export { backend };
@@ -1,3 +0,0 @@
1
- import { n as init_gif, t as createGif } from "./gif-BtnXuxLF.mjs";
2
- init_gif();
3
- export { createGif };
@@ -1,241 +0,0 @@
1
- import { i as __require, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
2
- //#region ../../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.production.js
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
13
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
14
- function jsxProd(type, config, maybeKey) {
15
- var key = null;
16
- void 0 !== maybeKey && (key = "" + maybeKey);
17
- void 0 !== config.key && (key = "" + config.key);
18
- if ("key" in config) {
19
- maybeKey = {};
20
- for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
21
- } else maybeKey = config;
22
- config = maybeKey.ref;
23
- return {
24
- $$typeof: REACT_ELEMENT_TYPE,
25
- type,
26
- key,
27
- ref: void 0 !== config ? config : null,
28
- props: maybeKey
29
- };
30
- }
31
- exports.Fragment = REACT_FRAGMENT_TYPE;
32
- exports.jsx = jsxProd;
33
- exports.jsxs = jsxProd;
34
- }));
35
- //#endregion
36
- //#region ../../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.development.js
37
- /**
38
- * @license React
39
- * react-jsx-runtime.development.js
40
- *
41
- * Copyright (c) Meta Platforms, Inc. and affiliates.
42
- *
43
- * This source code is licensed under the MIT license found in the
44
- * LICENSE file in the root directory of this source tree.
45
- */
46
- var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
47
- "production" !== process.env.NODE_ENV && (function() {
48
- function getComponentNameFromType(type) {
49
- if (null == type) return null;
50
- if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
51
- if ("string" === typeof type) return type;
52
- switch (type) {
53
- case REACT_FRAGMENT_TYPE: return "Fragment";
54
- case REACT_PROFILER_TYPE: return "Profiler";
55
- case REACT_STRICT_MODE_TYPE: return "StrictMode";
56
- case REACT_SUSPENSE_TYPE: return "Suspense";
57
- case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
58
- case REACT_ACTIVITY_TYPE: return "Activity";
59
- }
60
- if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
61
- case REACT_PORTAL_TYPE: return "Portal";
62
- case REACT_CONTEXT_TYPE: return type.displayName || "Context";
63
- case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
64
- case REACT_FORWARD_REF_TYPE:
65
- var innerType = type.render;
66
- type = type.displayName;
67
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
68
- return type;
69
- case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
70
- case REACT_LAZY_TYPE:
71
- innerType = type._payload;
72
- type = type._init;
73
- try {
74
- return getComponentNameFromType(type(innerType));
75
- } catch (x) {}
76
- }
77
- return null;
78
- }
79
- function testStringCoercion(value) {
80
- return "" + value;
81
- }
82
- function checkKeyStringCoercion(value) {
83
- try {
84
- testStringCoercion(value);
85
- var JSCompiler_inline_result = !1;
86
- } catch (e) {
87
- JSCompiler_inline_result = !0;
88
- }
89
- if (JSCompiler_inline_result) {
90
- JSCompiler_inline_result = console;
91
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
92
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
93
- JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
94
- return testStringCoercion(value);
95
- }
96
- }
97
- function getTaskName(type) {
98
- if (type === REACT_FRAGMENT_TYPE) return "<>";
99
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
100
- try {
101
- var name = getComponentNameFromType(type);
102
- return name ? "<" + name + ">" : "<...>";
103
- } catch (x) {
104
- return "<...>";
105
- }
106
- }
107
- function getOwner() {
108
- var dispatcher = ReactSharedInternals.A;
109
- return null === dispatcher ? null : dispatcher.getOwner();
110
- }
111
- function UnknownOwner() {
112
- return Error("react-stack-top-frame");
113
- }
114
- function hasValidKey(config) {
115
- if (hasOwnProperty.call(config, "key")) {
116
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
117
- if (getter && getter.isReactWarning) return !1;
118
- }
119
- return void 0 !== config.key;
120
- }
121
- function defineKeyPropWarningGetter(props, displayName) {
122
- function warnAboutAccessingKey() {
123
- specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
124
- }
125
- warnAboutAccessingKey.isReactWarning = !0;
126
- Object.defineProperty(props, "key", {
127
- get: warnAboutAccessingKey,
128
- configurable: !0
129
- });
130
- }
131
- function elementRefGetterWithDeprecationWarning() {
132
- var componentName = getComponentNameFromType(this.type);
133
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
134
- componentName = this.props.ref;
135
- return void 0 !== componentName ? componentName : null;
136
- }
137
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
138
- var refProp = props.ref;
139
- type = {
140
- $$typeof: REACT_ELEMENT_TYPE,
141
- type,
142
- key,
143
- props,
144
- _owner: owner
145
- };
146
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
147
- enumerable: !1,
148
- get: elementRefGetterWithDeprecationWarning
149
- }) : Object.defineProperty(type, "ref", {
150
- enumerable: !1,
151
- value: null
152
- });
153
- type._store = {};
154
- Object.defineProperty(type._store, "validated", {
155
- configurable: !1,
156
- enumerable: !1,
157
- writable: !0,
158
- value: 0
159
- });
160
- Object.defineProperty(type, "_debugInfo", {
161
- configurable: !1,
162
- enumerable: !1,
163
- writable: !0,
164
- value: null
165
- });
166
- Object.defineProperty(type, "_debugStack", {
167
- configurable: !1,
168
- enumerable: !1,
169
- writable: !0,
170
- value: debugStack
171
- });
172
- Object.defineProperty(type, "_debugTask", {
173
- configurable: !1,
174
- enumerable: !1,
175
- writable: !0,
176
- value: debugTask
177
- });
178
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
179
- return type;
180
- }
181
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
182
- var children = config.children;
183
- if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
184
- for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
185
- Object.freeze && Object.freeze(children);
186
- } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
187
- else validateChildKeys(children);
188
- if (hasOwnProperty.call(config, "key")) {
189
- children = getComponentNameFromType(type);
190
- var keys = Object.keys(config).filter(function(k) {
191
- return "key" !== k;
192
- });
193
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
194
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
195
- }
196
- children = null;
197
- void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
198
- hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
199
- if ("key" in config) {
200
- maybeKey = {};
201
- for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
202
- } else maybeKey = config;
203
- children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
204
- return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
205
- }
206
- function validateChildKeys(node) {
207
- isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
208
- }
209
- function isValidElement(object) {
210
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
211
- }
212
- var React = __require("react"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
213
- return null;
214
- };
215
- React = { react_stack_bottom_frame: function(callStackForError) {
216
- return callStackForError();
217
- } };
218
- var specialPropKeyWarningShown;
219
- var didWarnAboutElementRef = {};
220
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
221
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
222
- var didWarnAboutKeySpread = {};
223
- exports.Fragment = REACT_FRAGMENT_TYPE;
224
- exports.jsx = function(type, config, maybeKey) {
225
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
226
- return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
227
- };
228
- exports.jsxs = function(type, config, maybeKey) {
229
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
230
- return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
231
- };
232
- })();
233
- }));
234
- //#endregion
235
- //#region ../../../node_modules/.bun/react@19.2.4/node_modules/react/jsx-runtime.js
236
- var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
237
- if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
238
- else module.exports = require_react_jsx_runtime_development();
239
- }));
240
- //#endregion
241
- export { require_jsx_runtime as t };
File without changes
File without changes
File without changes