sunpeak 0.10.7 → 0.12.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 (121) hide show
  1. package/README.md +117 -20
  2. package/bin/commands/build.mjs +1 -11
  3. package/bin/commands/deploy.mjs +7 -1
  4. package/bin/commands/dev.mjs +175 -12
  5. package/bin/commands/new.mjs +211 -0
  6. package/bin/commands/pull.mjs +1 -1
  7. package/bin/commands/push.mjs +36 -13
  8. package/bin/lib/patterns.mjs +25 -0
  9. package/bin/sunpeak.js +15 -232
  10. package/dist/chatgpt/index.cjs +1 -1
  11. package/dist/chatgpt/index.js +1 -1
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/mcp/entry.cjs +1 -1
  15. package/dist/mcp/entry.js +1 -1
  16. package/dist/mcp/favicon.d.ts +2 -0
  17. package/dist/mcp/index.cjs +3 -1
  18. package/dist/mcp/index.cjs.map +1 -1
  19. package/dist/mcp/index.d.ts +1 -0
  20. package/dist/mcp/index.js +3 -1
  21. package/dist/{server-BLKltt88.js → server-BI9Y531R.js} +31 -3
  22. package/dist/{server-BLKltt88.js.map → server-BI9Y531R.js.map} +1 -1
  23. package/dist/{server-D_oRdZjX.cjs → server-CcLDAGBE.cjs} +31 -3
  24. package/dist/{server-D_oRdZjX.cjs.map → server-CcLDAGBE.cjs.map} +1 -1
  25. package/dist/{simulator-url-B6DZi3vV.cjs → simulator-url-CYMOGoB1.cjs} +5 -5
  26. package/dist/{simulator-url-B6DZi3vV.cjs.map → simulator-url-CYMOGoB1.cjs.map} +1 -1
  27. package/dist/{simulator-url-izFV6mji.js → simulator-url-DG79-dU3.js} +4 -4
  28. package/dist/{simulator-url-izFV6mji.js.map → simulator-url-DG79-dU3.js.map} +1 -1
  29. package/package.json +1 -1
  30. package/template/.sunpeak/dev.tsx +4 -4
  31. package/template/README.md +25 -27
  32. package/template/_gitignore +4 -0
  33. package/template/dist/albums/albums.json +1 -1
  34. package/template/dist/carousel/carousel.json +1 -1
  35. package/template/dist/map/map.json +1 -1
  36. package/template/dist/review/review.json +1 -1
  37. package/template/index.html +0 -1
  38. package/template/node_modules/.vite/deps/_metadata.json +22 -22
  39. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  40. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Avatar.js +96 -0
  41. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Avatar.js.map +7 -0
  42. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Button.js +625 -0
  43. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Button.js.map +7 -0
  44. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Checkbox.js +33 -0
  45. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Checkbox.js.map +7 -0
  46. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Icon.js +1498 -0
  47. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Icon.js.map +7 -0
  48. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Input.js +13 -0
  49. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Input.js.map +7 -0
  50. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_SegmentedControl.js +103 -0
  51. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_SegmentedControl.js.map +7 -0
  52. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Select.js +3680 -0
  53. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Select.js.map +7 -0
  54. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Textarea.js +95 -0
  55. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_components_Textarea.js.map +7 -0
  56. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_theme.js +45 -0
  57. package/template/node_modules/.vite-mcp/deps_temp_992accd8/@openai_apps-sdk-ui_theme.js.map +7 -0
  58. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-2UDYPUBJ.js +15201 -0
  59. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-2UDYPUBJ.js.map +7 -0
  60. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-6QVG4F2X.js +93 -0
  61. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-6QVG4F2X.js.map +7 -0
  62. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-BUOVMFCD.js +1004 -0
  63. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-BUOVMFCD.js.map +7 -0
  64. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-CNYJBM5F.js +21 -0
  65. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-CNYJBM5F.js.map +7 -0
  66. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-EGRHWZRV.js +1 -0
  67. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-EGRHWZRV.js.map +7 -0
  68. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-ILHRZGIS.js +46 -0
  69. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-ILHRZGIS.js.map +7 -0
  70. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-JAGHY6H6.js +231 -0
  71. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-JAGHY6H6.js.map +7 -0
  72. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-JGVISENQ.js +292 -0
  73. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-JGVISENQ.js.map +7 -0
  74. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-P5LK4A7U.js +112 -0
  75. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-P5LK4A7U.js.map +7 -0
  76. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-QPJAV452.js +13 -0
  77. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-QPJAV452.js.map +7 -0
  78. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-RYYR2YMB.js +111 -0
  79. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-RYYR2YMB.js.map +7 -0
  80. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-UM3ZGDFR.js +4480 -0
  81. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-UM3ZGDFR.js.map +7 -0
  82. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-XZTIOEPG.js +280 -0
  83. package/template/node_modules/.vite-mcp/deps_temp_992accd8/chunk-XZTIOEPG.js.map +7 -0
  84. package/template/node_modules/.vite-mcp/deps_temp_992accd8/clsx.js +10 -0
  85. package/template/node_modules/.vite-mcp/deps_temp_992accd8/clsx.js.map +7 -0
  86. package/template/node_modules/.vite-mcp/deps_temp_992accd8/embla-carousel-react.js +1712 -0
  87. package/template/node_modules/.vite-mcp/deps_temp_992accd8/embla-carousel-react.js.map +7 -0
  88. package/template/node_modules/.vite-mcp/deps_temp_992accd8/embla-carousel-wheel-gestures.js +589 -0
  89. package/template/node_modules/.vite-mcp/deps_temp_992accd8/embla-carousel-wheel-gestures.js.map +7 -0
  90. package/template/node_modules/.vite-mcp/deps_temp_992accd8/mapbox-gl.js +32835 -0
  91. package/template/node_modules/.vite-mcp/deps_temp_992accd8/mapbox-gl.js.map +7 -0
  92. package/template/node_modules/.vite-mcp/deps_temp_992accd8/package.json +3 -0
  93. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react-dom.js +7 -0
  94. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react-dom.js.map +7 -0
  95. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react-dom_client.js +20217 -0
  96. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react-dom_client.js.map +7 -0
  97. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react.js +6 -0
  98. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react.js.map +7 -0
  99. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react_jsx-dev-runtime.js +278 -0
  100. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react_jsx-dev-runtime.js.map +7 -0
  101. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react_jsx-runtime.js +7 -0
  102. package/template/node_modules/.vite-mcp/deps_temp_992accd8/react_jsx-runtime.js.map +7 -0
  103. package/template/node_modules/.vite-mcp/deps_temp_992accd8/tailwind-merge.js +3095 -0
  104. package/template/node_modules/.vite-mcp/deps_temp_992accd8/tailwind-merge.js.map +7 -0
  105. package/template/package.json +0 -1
  106. package/template/vitest.config.ts +1 -1
  107. package/bin/commands/mcp.mjs +0 -244
  108. package/template/public/favicon.ico +0 -0
  109. package/template/src/resources/albums/albums-show-simulation.json +0 -131
  110. package/template/src/resources/carousel/carousel-show-simulation.json +0 -68
  111. package/template/src/resources/map/map-show-simulation.json +0 -123
  112. package/template/src/resources/review/review-diff-simulation.json +0 -80
  113. package/template/src/resources/review/review-post-simulation.json +0 -56
  114. package/template/src/resources/review/review-purchase-simulation.json +0 -88
  115. /package/template/{src/test → tests}/setup.ts +0 -0
  116. /package/template/{dist → tests/simulations}/albums/albums-show-simulation.json +0 -0
  117. /package/template/{dist → tests/simulations}/carousel/carousel-show-simulation.json +0 -0
  118. /package/template/{dist → tests/simulations}/map/map-show-simulation.json +0 -0
  119. /package/template/{dist → tests/simulations}/review/review-diff-simulation.json +0 -0
  120. /package/template/{dist → tests/simulations}/review/review-post-simulation.json +0 -0
  121. /package/template/{dist → tests/simulations}/review/review-purchase-simulation.json +0 -0
@@ -0,0 +1,292 @@
1
+ import {
2
+ require_react
3
+ } from "./chunk-BUOVMFCD.js";
4
+ import {
5
+ __commonJS
6
+ } from "./chunk-ILHRZGIS.js";
7
+
8
+ // ../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js
9
+ var require_react_jsx_runtime_development = __commonJS({
10
+ "../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
11
+ "use strict";
12
+ (function() {
13
+ function getComponentNameFromType(type) {
14
+ if (null == type) return null;
15
+ if ("function" === typeof type)
16
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
17
+ if ("string" === typeof type) return type;
18
+ switch (type) {
19
+ case REACT_FRAGMENT_TYPE:
20
+ return "Fragment";
21
+ case REACT_PROFILER_TYPE:
22
+ return "Profiler";
23
+ case REACT_STRICT_MODE_TYPE:
24
+ return "StrictMode";
25
+ case REACT_SUSPENSE_TYPE:
26
+ return "Suspense";
27
+ case REACT_SUSPENSE_LIST_TYPE:
28
+ return "SuspenseList";
29
+ case REACT_ACTIVITY_TYPE:
30
+ return "Activity";
31
+ }
32
+ if ("object" === typeof type)
33
+ switch ("number" === typeof type.tag && console.error(
34
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
35
+ ), type.$$typeof) {
36
+ case REACT_PORTAL_TYPE:
37
+ return "Portal";
38
+ case REACT_CONTEXT_TYPE:
39
+ return type.displayName || "Context";
40
+ case REACT_CONSUMER_TYPE:
41
+ return (type._context.displayName || "Context") + ".Consumer";
42
+ case REACT_FORWARD_REF_TYPE:
43
+ var innerType = type.render;
44
+ type = type.displayName;
45
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
46
+ return type;
47
+ case REACT_MEMO_TYPE:
48
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
49
+ case REACT_LAZY_TYPE:
50
+ innerType = type._payload;
51
+ type = type._init;
52
+ try {
53
+ return getComponentNameFromType(type(innerType));
54
+ } catch (x) {
55
+ }
56
+ }
57
+ return null;
58
+ }
59
+ function testStringCoercion(value) {
60
+ return "" + value;
61
+ }
62
+ function checkKeyStringCoercion(value) {
63
+ try {
64
+ testStringCoercion(value);
65
+ var JSCompiler_inline_result = false;
66
+ } catch (e) {
67
+ JSCompiler_inline_result = true;
68
+ }
69
+ if (JSCompiler_inline_result) {
70
+ JSCompiler_inline_result = console;
71
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
72
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
73
+ JSCompiler_temp_const.call(
74
+ JSCompiler_inline_result,
75
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
76
+ JSCompiler_inline_result$jscomp$0
77
+ );
78
+ return testStringCoercion(value);
79
+ }
80
+ }
81
+ function getTaskName(type) {
82
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
83
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
84
+ return "<...>";
85
+ try {
86
+ var name = getComponentNameFromType(type);
87
+ return name ? "<" + name + ">" : "<...>";
88
+ } catch (x) {
89
+ return "<...>";
90
+ }
91
+ }
92
+ function getOwner() {
93
+ var dispatcher = ReactSharedInternals.A;
94
+ return null === dispatcher ? null : dispatcher.getOwner();
95
+ }
96
+ function UnknownOwner() {
97
+ return Error("react-stack-top-frame");
98
+ }
99
+ function hasValidKey(config) {
100
+ if (hasOwnProperty.call(config, "key")) {
101
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
102
+ if (getter && getter.isReactWarning) return false;
103
+ }
104
+ return void 0 !== config.key;
105
+ }
106
+ function defineKeyPropWarningGetter(props, displayName) {
107
+ function warnAboutAccessingKey() {
108
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
109
+ "%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)",
110
+ displayName
111
+ ));
112
+ }
113
+ warnAboutAccessingKey.isReactWarning = true;
114
+ Object.defineProperty(props, "key", {
115
+ get: warnAboutAccessingKey,
116
+ configurable: true
117
+ });
118
+ }
119
+ function elementRefGetterWithDeprecationWarning() {
120
+ var componentName = getComponentNameFromType(this.type);
121
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
122
+ "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."
123
+ ));
124
+ componentName = this.props.ref;
125
+ return void 0 !== componentName ? componentName : null;
126
+ }
127
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
128
+ var refProp = props.ref;
129
+ type = {
130
+ $$typeof: REACT_ELEMENT_TYPE,
131
+ type,
132
+ key,
133
+ props,
134
+ _owner: owner
135
+ };
136
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
137
+ enumerable: false,
138
+ get: elementRefGetterWithDeprecationWarning
139
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
140
+ type._store = {};
141
+ Object.defineProperty(type._store, "validated", {
142
+ configurable: false,
143
+ enumerable: false,
144
+ writable: true,
145
+ value: 0
146
+ });
147
+ Object.defineProperty(type, "_debugInfo", {
148
+ configurable: false,
149
+ enumerable: false,
150
+ writable: true,
151
+ value: null
152
+ });
153
+ Object.defineProperty(type, "_debugStack", {
154
+ configurable: false,
155
+ enumerable: false,
156
+ writable: true,
157
+ value: debugStack
158
+ });
159
+ Object.defineProperty(type, "_debugTask", {
160
+ configurable: false,
161
+ enumerable: false,
162
+ writable: true,
163
+ value: debugTask
164
+ });
165
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
166
+ return type;
167
+ }
168
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
169
+ var children = config.children;
170
+ if (void 0 !== children)
171
+ if (isStaticChildren)
172
+ if (isArrayImpl(children)) {
173
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
174
+ validateChildKeys(children[isStaticChildren]);
175
+ Object.freeze && Object.freeze(children);
176
+ } else
177
+ console.error(
178
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
179
+ );
180
+ else validateChildKeys(children);
181
+ if (hasOwnProperty.call(config, "key")) {
182
+ children = getComponentNameFromType(type);
183
+ var keys = Object.keys(config).filter(function(k) {
184
+ return "key" !== k;
185
+ });
186
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
187
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ '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} />',
189
+ isStaticChildren,
190
+ children,
191
+ keys,
192
+ children
193
+ ), didWarnAboutKeySpread[children + isStaticChildren] = true);
194
+ }
195
+ children = null;
196
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
197
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
198
+ if ("key" in config) {
199
+ maybeKey = {};
200
+ for (var propName in config)
201
+ "key" !== propName && (maybeKey[propName] = config[propName]);
202
+ } else maybeKey = config;
203
+ children && defineKeyPropWarningGetter(
204
+ maybeKey,
205
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
206
+ );
207
+ return ReactElement(
208
+ type,
209
+ children,
210
+ maybeKey,
211
+ getOwner(),
212
+ debugStack,
213
+ debugTask
214
+ );
215
+ }
216
+ function validateChildKeys(node) {
217
+ 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));
218
+ }
219
+ function isValidElement(object) {
220
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
221
+ }
222
+ 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() {
223
+ return null;
224
+ };
225
+ React = {
226
+ react_stack_bottom_frame: function(callStackForError) {
227
+ return callStackForError();
228
+ }
229
+ };
230
+ var specialPropKeyWarningShown;
231
+ var didWarnAboutElementRef = {};
232
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
233
+ React,
234
+ UnknownOwner
235
+ )();
236
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
237
+ var didWarnAboutKeySpread = {};
238
+ exports.Fragment = REACT_FRAGMENT_TYPE;
239
+ exports.jsx = function(type, config, maybeKey) {
240
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
241
+ return jsxDEVImpl(
242
+ type,
243
+ config,
244
+ maybeKey,
245
+ false,
246
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
247
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
248
+ );
249
+ };
250
+ exports.jsxs = function(type, config, maybeKey) {
251
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
252
+ return jsxDEVImpl(
253
+ type,
254
+ config,
255
+ maybeKey,
256
+ true,
257
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
258
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
259
+ );
260
+ };
261
+ })();
262
+ }
263
+ });
264
+
265
+ // ../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js
266
+ var require_jsx_runtime = __commonJS({
267
+ "../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js"(exports, module) {
268
+ if (false) {
269
+ module.exports = null;
270
+ } else {
271
+ module.exports = require_react_jsx_runtime_development();
272
+ }
273
+ }
274
+ });
275
+
276
+ export {
277
+ require_jsx_runtime
278
+ };
279
+ /*! Bundled license information:
280
+
281
+ react/cjs/react-jsx-runtime.development.js:
282
+ (**
283
+ * @license React
284
+ * react-jsx-runtime.development.js
285
+ *
286
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
287
+ *
288
+ * This source code is licensed under the MIT license found in the
289
+ * LICENSE file in the root directory of this source tree.
290
+ *)
291
+ */
292
+ //# sourceMappingURL=chunk-JGVISENQ.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js", "../../../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js"],
4
+ "sourcesContent": ["/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%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)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"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.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n '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} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],
5
+ "mappings": ";;;;;;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YAAI,mBACF,MAAM,qBAAqB;AAC7B,eAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,mBACI,MAAM,uBAAuB,IAC7B;AAAA,UACJ,mBAAmB,WAAW,YAAY,IAAI,CAAC,IAAI;AAAA,QACrD;AAAA,MACF;AACA,cAAQ,OAAO,SAAU,MAAM,QAAQ,UAAU;AAC/C,YAAI,mBACF,MAAM,qBAAqB;AAC7B,eAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,mBACI,MAAM,uBAAuB,IAC7B;AAAA,UACJ,mBAAmB,WAAW,YAAY,IAAI,CAAC,IAAI;AAAA,QACrD;AAAA,MACF;AAAA,IACF,GAAG;AAAA;AAAA;;;AC/VL;AAAA;AAEA,QAAI,OAAuC;AACzC,aAAO,UAAU;AAAA,IACnB,OAAO;AACL,aAAO,UAAU;AAAA,IACnB;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,112 @@
1
+ import {
2
+ o
3
+ } from "./chunk-QPJAV452.js";
4
+ import {
5
+ clsx_default
6
+ } from "./chunk-CNYJBM5F.js";
7
+ import {
8
+ require_jsx_runtime
9
+ } from "./chunk-JGVISENQ.js";
10
+ import {
11
+ require_react
12
+ } from "./chunk-BUOVMFCD.js";
13
+ import {
14
+ __toESM
15
+ } from "./chunk-ILHRZGIS.js";
16
+
17
+ // ../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.8__@types+react@19._10810175a7ab45acace17e46639bb69b/node_modules/@openai/apps-sdk-ui/dist/es/components/Input/Input.js
18
+ var import_jsx_runtime = __toESM(require_jsx_runtime());
19
+ var import_react = __toESM(require_react());
20
+ import s from "/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.8__@types+react@19._10810175a7ab45acace17e46639bb69b/node_modules/@openai/apps-sdk-ui/dist/es/components/Input/Input.module.css";
21
+ var Input = (props) => {
22
+ const inputRef = (0, import_react.useRef)(null);
23
+ const inputIdSuffix = (0, import_react.useId)();
24
+ const onePasswordPreventionId = `search-ui-input-${inputIdSuffix}`;
25
+ const {
26
+ id,
27
+ name,
28
+ type = "text",
29
+ variant = "outline",
30
+ size = "md",
31
+ gutterSize,
32
+ className,
33
+ autoComplete,
34
+ disabled = false,
35
+ readOnly = false,
36
+ invalid = false,
37
+ // Default to `true` when type="password" or presence of `name`
38
+ allowAutofillExtensions = type === "password" || !!name,
39
+ onFocus,
40
+ onBlur,
41
+ onAnimationStart,
42
+ onAutofill,
43
+ autoSelect,
44
+ startAdornment: StartAdornment,
45
+ endAdornment: EndAdornment,
46
+ pill,
47
+ opticallyAlign,
48
+ ref,
49
+ ...restProps
50
+ } = props;
51
+ const handleMouseDown = (evt) => {
52
+ const input = inputRef.current;
53
+ if (!evt.target || !(evt.target instanceof Element) || !input) {
54
+ return;
55
+ }
56
+ if (input.contains(evt.target)) {
57
+ return;
58
+ }
59
+ if (evt.target.closest("button, [type='button'], [role='button'], [role='menuitem']")) {
60
+ return;
61
+ }
62
+ evt.preventDefault();
63
+ if (document.activeElement !== input) {
64
+ input.focus();
65
+ }
66
+ const { left, top } = input.getBoundingClientRect();
67
+ const { clientX, clientY } = evt;
68
+ const isBefore = clientY < top || clientX < left;
69
+ if (evt.detail === 1) {
70
+ if (isBefore) {
71
+ input.setSelectionRange(0, 0);
72
+ } else {
73
+ const length = input.value.length;
74
+ input.setSelectionRange(length, length);
75
+ }
76
+ } else if (evt.detail === 2) {
77
+ const words = input.value.match(/\w+|[^\w\s]/g) || [];
78
+ const selectedWord = isBefore ? words.at(0) : words.at(-1);
79
+ if (selectedWord) {
80
+ const wordIndex = isBefore ? input.value.indexOf(selectedWord) : input.value.lastIndexOf(selectedWord);
81
+ input.setSelectionRange(wordIndex, wordIndex + selectedWord.length);
82
+ }
83
+ } else {
84
+ input.select();
85
+ }
86
+ };
87
+ const [focused, setFocused] = (0, import_react.useState)(false);
88
+ (0, import_react.useEffect)(() => {
89
+ var _a;
90
+ if (autoSelect) {
91
+ (_a = inputRef.current) == null ? void 0 : _a.select();
92
+ }
93
+ }, [autoSelect]);
94
+ const handleAnimationStart = (evt) => {
95
+ onAnimationStart == null ? void 0 : onAnimationStart(evt);
96
+ if (evt.animationName === "native-autofill-in") {
97
+ onAutofill == null ? void 0 : onAutofill();
98
+ }
99
+ };
100
+ return (0, import_jsx_runtime.jsxs)("div", { className: clsx_default(s.Container, className), "data-variant": variant, "data-size": size, "data-gutter-size": gutterSize, "data-focused": focused, "data-disabled": disabled ? "" : void 0, "data-readonly": readOnly ? "" : void 0, "data-invalid": invalid ? "" : void 0, "data-pill": pill ? "" : void 0, "data-optically-align": opticallyAlign, "data-has-start-adornment": StartAdornment ? "" : void 0, "data-has-end-adornment": EndAdornment ? "" : void 0, onMouseDown: handleMouseDown, children: [StartAdornment, (0, import_jsx_runtime.jsx)("input", { ...restProps, ref: o([ref, inputRef]), id: id || (allowAutofillExtensions ? void 0 : onePasswordPreventionId), className: s.Input, type, name, readOnly, disabled, onFocus: (evt) => {
101
+ setFocused(true);
102
+ onFocus == null ? void 0 : onFocus(evt);
103
+ }, onBlur: (evt) => {
104
+ setFocused(false);
105
+ onBlur == null ? void 0 : onBlur(evt);
106
+ }, onAnimationStart: handleAnimationStart, "data-lpignore": allowAutofillExtensions ? void 0 : true, "data-1p-ignore": allowAutofillExtensions ? void 0 : true }), EndAdornment] });
107
+ };
108
+
109
+ export {
110
+ Input
111
+ };
112
+ //# sourceMappingURL=chunk-P5LK4A7U.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.8__@types+react@19._10810175a7ab45acace17e46639bb69b/node_modules/@openai/apps-sdk-ui/src/components/Input/Input.tsx"],
4
+ "sourcesContent": ["\"use client\"\n\nimport clsx from \"clsx\"\nimport { useEffect, useId, useRef, useState } from \"react\"\nimport { mergeRefs } from \"react-merge-refs\"\nimport { type ControlSize, type Sizes, type Variants } from \"../../types\"\nimport s from \"./Input.module.css\"\n\nexport type InputProps = {\n /**\n * Visual style of the input\n * @default outline\n */\n variant?: Variants<\"outline\" | \"soft\">\n /**\n * Controls the size of the input\n *\n * | 3xs | 2xs | xs | sm | md | lg | xl | 2xl | 3xl |\n * | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- |\n * | `22px` | `24px` | `26px` | `28px` | `32px` | `36px` | `40px` | `44px` | `48px` |\n *\n * @default md\n */\n size?: ControlSize\n /**\n * Controls gutter on the edges of the input, defaults to value from `size`.\n *\n * | 2xs | xs | sm | md | lg | xl |\n * | ------ | ------ | ------ | ------ | ------ | ------ |\n * | `6px` | `8px` | `10px` | `12px` | `14px` | `16px` |\n */\n gutterSize?: Sizes<\"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\">\n /**\n * Disables the select visually and from interactions\n * @default false\n */\n disabled?: boolean\n /**\n * Mark the input as invalid\n * @default false\n */\n invalid?: boolean\n /**\n * Allow autofill extensions to appear in the input\n * @default false\n */\n allowAutofillExtensions?: boolean\n /**\n * Select all contents of the input when mounted.\n * @default false\n */\n autoSelect?: boolean\n /** Callback invoked when the input is autofilled by the browser */\n onAutofill?: () => void\n /** Content rendered at the start of the input */\n startAdornment?: React.ReactNode\n /** Content rendered at the end of the input */\n endAdornment?: React.ReactNode\n /**\n * Determines if the button should be a fully rounded pill shape\n * @default false\n */\n pill?: boolean\n /**\n * Applies a negative margin using the current gutter to optically align the input\n * with surrounding content.\n */\n opticallyAlign?: \"start\" | \"end\"\n /** Ref for the input */\n ref?: React.Ref<HTMLInputElement | null>\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, \"disabled\" | \"size\">\n\nexport const Input = (props: InputProps) => {\n const inputRef = useRef<HTMLInputElement | null>(null)\n const inputIdSuffix = useId()\n // Prevent 1Password from appearing: 1Password won't display if it thinks this field is for searching\n // Allow user to override this for connecting to labels.\n const onePasswordPreventionId = `search-ui-input-${inputIdSuffix}`\n const {\n id,\n name,\n type = \"text\",\n variant = \"outline\",\n size = \"md\",\n gutterSize,\n className,\n autoComplete,\n disabled = false,\n readOnly = false,\n invalid = false,\n // Default to `true` when type=\"password\" or presence of `name`\n allowAutofillExtensions = type === \"password\" || !!name,\n onFocus,\n onBlur,\n onAnimationStart,\n onAutofill,\n autoSelect,\n startAdornment: StartAdornment,\n endAdornment: EndAdornment,\n pill,\n opticallyAlign,\n ref,\n ...restProps\n } = props\n // Redirect clicks on the container and adornments\n const handleMouseDown = (evt: React.MouseEvent<HTMLDivElement>) => {\n const input = inputRef.current\n // Bail out if the target is not an element or the textarea is not found\n if (!evt.target || !(evt.target instanceof Element) || !input) {\n return\n }\n // Bail out if the target is inside the textarea\n if (input.contains(evt.target)) {\n return\n }\n // Bail out if the target is a button\n if (evt.target.closest(\"button, [type='button'], [role='button'], [role='menuitem']\")) {\n return\n }\n\n evt.preventDefault()\n // If the textarea is not focused, focus it\n if (document.activeElement !== input) {\n input.focus()\n }\n\n const { left, top } = input.getBoundingClientRect()\n const { clientX, clientY } = evt\n // \"Before\" the input: top/left\n const isBefore = clientY < top || clientX < left\n\n // If this is the first click, clear the selection.\n if (evt.detail === 1) {\n if (isBefore) {\n input.setSelectionRange(0, 0)\n } else {\n const length = input.value.length\n input.setSelectionRange(length, length)\n }\n }\n // If this is the second click, select the first or last word\n else if (evt.detail === 2) {\n // Split the textarea value into words and non-word characters\n const words = input.value.match(/\\w+|[^\\w\\s]/g) || []\n const selectedWord = isBefore ? words.at(0) : words.at(-1)\n if (selectedWord) {\n const wordIndex = isBefore\n ? input.value.indexOf(selectedWord)\n : input.value.lastIndexOf(selectedWord)\n input.setSelectionRange(wordIndex, wordIndex + selectedWord.length)\n }\n }\n // If this is the third click or greater, select the entire input\n else {\n input.select()\n }\n }\n\n const [focused, setFocused] = useState<boolean>(false)\n\n useEffect(() => {\n if (autoSelect) {\n inputRef.current?.select()\n }\n }, [autoSelect])\n\n const handleAnimationStart = (evt: React.AnimationEvent<HTMLInputElement>) => {\n onAnimationStart?.(evt)\n if (evt.animationName === \"native-autofill-in\") {\n onAutofill?.()\n }\n }\n\n return (\n <div\n className={clsx(s.Container, className)}\n data-variant={variant}\n data-size={size}\n data-gutter-size={gutterSize}\n data-focused={focused}\n data-disabled={disabled ? \"\" : undefined}\n data-readonly={readOnly ? \"\" : undefined}\n data-invalid={invalid ? \"\" : undefined}\n data-pill={pill ? \"\" : undefined}\n data-optically-align={opticallyAlign}\n data-has-start-adornment={StartAdornment ? \"\" : undefined}\n data-has-end-adornment={EndAdornment ? \"\" : undefined}\n onMouseDown={handleMouseDown}\n >\n {StartAdornment}\n <input\n {...restProps}\n ref={mergeRefs([ref, inputRef])}\n id={id || (allowAutofillExtensions ? undefined : onePasswordPreventionId)}\n className={s.Input}\n type={type}\n name={name}\n readOnly={readOnly}\n disabled={disabled}\n onFocus={(evt) => {\n setFocused(true)\n onFocus?.(evt)\n }}\n onBlur={(evt) => {\n setFocused(false)\n onBlur?.(evt)\n }}\n onAnimationStart={handleAnimationStart}\n // Prevent LastPass and 1Password from appearing\n data-lpignore={allowAutofillExtensions ? undefined : true}\n data-1p-ignore={allowAutofillExtensions ? undefined : true}\n />\n {EndAdornment}\n </div>\n )\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAGA,mBAAmD;AAGnD,OAAO,OAAO;AAkEP,IAAM,QAAQ,CAAC,UAAqB;AACzC,QAAM,eAAW,qBAAgC,IAAI;AACrD,QAAM,oBAAgB,oBAAK;AAG3B,QAAM,0BAA0B,mBAAmB,aAAa;AAChE,QAAM;IACJ;IACA;IACA,OAAO;IACP,UAAU;IACV,OAAO;IACP;IACA;IACA;IACA,WAAW;IACX,WAAW;IACX,UAAU;;IAEV,0BAA0B,SAAS,cAAc,CAAC,CAAC;IACnD;IACA;IACA;IACA;IACA;IACA,gB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AAkB,sBAAsB;AAC9C;IACF;EACF;AAEA,aACE,mBAAAA,MAAA,OAAA,EACE,WAAW,aAAK,EAAE,WAAW,SAAS,GAAC,gBACzB,SAAO,aACV,MAAI,oBACG,YAAU,gBACd,SAAO,iBACN,WAAW,KAAK,QAAS,iBACzB,WAAW,KAAK,QAAS,gBAC1B,UAAU,KAAK,QAAS,aAC3B,OAAO,KAAK,QAAS,wBACV,gBAAc,4BACV,iBAAiB,KAAK,QAAS,0BACjC,eAAe,KAAK,QAC5C,aAAa,iBAAe,UAAA,CAE3B,oBACD,mBAAAC,KAAA,SAAA,EAAA,GACM,WACJ,KAAK,EAAU,CAAC,KAAK,QAAQ,CAAC,GAC9B,IAAI,OAAO,0BAA0B,SAAY,0BACjD,WAAW,EAAE,OACb,MACA,MACA,UACA,UACA,SAAS,CAAC,QAAO;AACf,eAAW,IAAI;AACf,uCAAU;EACZ,GACA,QAAQ,CAAC,QAAO;AACd,eAAW,KAAK;AAChB,qCAAS;EACX,GACA,kBAAkB,sBAAoB,iBAEvB,0BAA0B,SAAY,MAAI,kBACzC,0BAA0B,SAAY,KAAI,CAAA,GAE3D,YAAY,EAAA,CAAA;AAGnB;",
6
+ "names": ["_jsxs", "_jsx"]
7
+ }
@@ -0,0 +1,13 @@
1
+ // ../node_modules/.pnpm/react-merge-refs@2.1.1/node_modules/react-merge-refs/dist/index.mjs
2
+ function o(f) {
3
+ return (r) => {
4
+ f.forEach((n) => {
5
+ typeof n == "function" ? n(r) : n != null && (n.current = r);
6
+ });
7
+ };
8
+ }
9
+
10
+ export {
11
+ o
12
+ };
13
+ //# sourceMappingURL=chunk-QPJAV452.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/react-merge-refs@2.1.1/node_modules/react-merge-refs/src/index.tsx"],
4
+ "sourcesContent": ["import type * as React from \"react\";\n\nexport function mergeRefs<T = any>(\n refs: Array<React.MutableRefObject<T> | React.LegacyRef<T> | undefined | null>\n): React.RefCallback<T> {\n return (value) => {\n refs.forEach((ref) => {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref != null) {\n (ref as React.MutableRefObject<T | null>).current = value;\n }\n });\n };\n}\n"],
5
+ "mappings": ";AAEgB,SAAAA,EACdC,GACsB;AACtB,SAAQC,OAAU;AAChBD,MAAK,QAASE,OAAQ;AAChB,aAAOA,KAAQ,aACjBA,EAAID,CAAK,IACAC,KAAO,SACfA,EAAyC,UAAUD;IAExD,CAAC;EACH;AACF;",
6
+ "names": ["mergeRefs", "refs", "value", "ref"]
7
+ }
@@ -0,0 +1,111 @@
1
+ import {
2
+ require_react
3
+ } from "./chunk-BUOVMFCD.js";
4
+ import {
5
+ __toESM
6
+ } from "./chunk-ILHRZGIS.js";
7
+
8
+ // ../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/lib/helpers.js
9
+ var import_react = __toESM(require_react());
10
+
11
+ // ../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/lib/environment.js
12
+ var META_ENV = typeof import.meta !== "undefined" ? import.meta.env : void 0;
13
+ var NODE_ENV = typeof process !== "undefined" && "development" ? "development" : "production";
14
+ var isDev = NODE_ENV === "development" || !!(META_ENV == null ? void 0 : META_ENV.DEV);
15
+ var isJSDomLike = typeof navigator !== "undefined" && /(jsdom|happy-dom)/i.test(navigator.userAgent) || typeof globalThis.happyDOM === "object";
16
+ var isTest = NODE_ENV === "test" || (META_ENV == null ? void 0 : META_ENV.MODE) === "test" || isJSDomLike;
17
+ var hasWindow = typeof window !== "undefined";
18
+ var hasDocument = typeof document !== "undefined";
19
+ var canUseDOM = hasWindow && hasDocument;
20
+
21
+ // ../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/lib/helpers.js
22
+ var handlePressableMouseEnter = (evt) => {
23
+ const target = evt.currentTarget;
24
+ if (!(target instanceof HTMLElement)) {
25
+ return;
26
+ }
27
+ const elementWidth = target.offsetWidth;
28
+ let scale = 0.985;
29
+ if (elementWidth <= 80) {
30
+ scale = 0.96;
31
+ } else if (elementWidth <= 150) {
32
+ scale = 0.97;
33
+ } else if (elementWidth <= 220) {
34
+ scale = 0.98;
35
+ } else if (elementWidth > 600) {
36
+ scale = 0.995;
37
+ }
38
+ target.style.setProperty("--scale", scale.toString());
39
+ };
40
+ var waitForAnimationFrame = (cb, options) => {
41
+ const runAfterTick = () => {
42
+ const id = setTimeout(cb);
43
+ return () => {
44
+ clearTimeout(id);
45
+ };
46
+ };
47
+ if (!canUseDOM || typeof window.requestAnimationFrame !== "function") {
48
+ return runAfterTick();
49
+ }
50
+ const visibilityHidden = hasDocument && document.visibilityState === "hidden";
51
+ if (visibilityHidden) {
52
+ return runAfterTick();
53
+ }
54
+ let frames = (options == null ? void 0 : options.frames) ?? 2;
55
+ let animationFrame = window.requestAnimationFrame(function recurse() {
56
+ frames -= 1;
57
+ if (frames === 0) {
58
+ cb();
59
+ } else {
60
+ animationFrame = window.requestAnimationFrame(recurse);
61
+ }
62
+ });
63
+ return () => {
64
+ if (typeof window.cancelAnimationFrame === "function") {
65
+ window.cancelAnimationFrame(animationFrame);
66
+ }
67
+ };
68
+ };
69
+ var toCssVariables = (variables) => {
70
+ const formattedVariables = Object.keys(variables).reduce((acc, variable) => {
71
+ const value = variables[variable];
72
+ if (value || value === 0) {
73
+ const prefix = variable.startsWith("--") ? "" : "--";
74
+ const formattedValue = typeof value === "number" ? `${value}px` : value;
75
+ acc[`${prefix}${variable}`] = formattedValue;
76
+ }
77
+ return acc;
78
+ }, {});
79
+ return formattedVariables;
80
+ };
81
+ var toAngle = (value) => typeof value === "number" ? `${value}deg` : value;
82
+ var toOpacityProperty = (opacity) => String(opacity);
83
+ var toMsDurationProperty = (duration) => `${duration}ms`;
84
+ var toTransformProperty = ({ x, y, scale, rotate, skewX, skewY } = {}) => {
85
+ const transforms = [
86
+ x == null ? null : `translateX(${x}px)`,
87
+ y == null ? null : `translateY(${y}px)`,
88
+ scale == null ? null : `scale(${scale})`,
89
+ rotate == null ? null : `rotate(${toAngle(rotate)})`,
90
+ skewX == null ? null : `skewX(${toAngle(skewX)})`,
91
+ skewY == null ? null : `skewY(${toAngle(skewY)})`
92
+ ].filter(Boolean);
93
+ return transforms.length ? transforms.join(" ") : "none";
94
+ };
95
+ var toFilterProperty = ({ blur } = {}) => {
96
+ const filters = [blur == null ? null : `blur(${blur}px)`].filter(Boolean);
97
+ return filters.length ? filters.join(" ") : "none";
98
+ };
99
+
100
+ export {
101
+ isDev,
102
+ isTest,
103
+ handlePressableMouseEnter,
104
+ waitForAnimationFrame,
105
+ toCssVariables,
106
+ toOpacityProperty,
107
+ toMsDurationProperty,
108
+ toTransformProperty,
109
+ toFilterProperty
110
+ };
111
+ //# sourceMappingURL=chunk-RYYR2YMB.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/src/lib/helpers.ts", "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/src/lib/environment.ts"],
4
+ "sourcesContent": ["import { type CSSProperties } from \"react\"\nimport { canUseDOM, hasDocument, hasWindow } from \"./environment\"\nimport type { Pretty } from \"./utilityTypes\"\n\nexport const prefersReducedMotion = () => {\n if (!hasWindow || typeof window.matchMedia !== \"function\") {\n return false\n }\n\n return window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n}\n\nexport const handlePressableMouseEnter = (evt: React.MouseEvent) => {\n const target = evt.currentTarget\n\n // Safely coerce type to HTMLElement so TS is peaceful with `evt.target`\n if (!(target instanceof HTMLElement)) {\n return\n }\n\n const elementWidth = target.offsetWidth\n\n let scale = 0.985\n\n if (elementWidth <= 80) {\n scale = 0.96\n } else if (elementWidth <= 150) {\n scale = 0.97\n } else if (elementWidth <= 220) {\n scale = 0.98\n } else if (elementWidth > 600) {\n scale = 0.995\n }\n\n target.style.setProperty(\"--scale\", scale.toString())\n}\n\ninterface CancelAnimationFrame {\n (): void\n}\n\nexport const waitForAnimationFrame = (\n cb: () => void,\n options?: { frames: number },\n): CancelAnimationFrame => {\n const runAfterTick = () => {\n const id = setTimeout(cb)\n return () => {\n clearTimeout(id)\n }\n }\n\n if (!canUseDOM || typeof window.requestAnimationFrame !== \"function\") {\n return runAfterTick()\n }\n\n const visibilityHidden = hasDocument && document.visibilityState === \"hidden\"\n if (visibilityHidden) {\n return runAfterTick()\n }\n\n let frames = options?.frames ?? 2\n let animationFrame = window.requestAnimationFrame(function recurse() {\n frames -= 1\n if (frames === 0) {\n cb()\n } else {\n animationFrame = window.requestAnimationFrame(recurse)\n }\n })\n\n return () => {\n if (typeof window.cancelAnimationFrame === \"function\") {\n window.cancelAnimationFrame(animationFrame)\n }\n }\n}\n\nexport const toCssVariables = (\n variables: Record<string, string | number | undefined>,\n): CSSProperties => {\n const formattedVariables = Object.keys(variables).reduce(\n (acc, variable) => {\n // Ensure value is truthy\n const value = variables[variable]\n // Accept 0 as a valid value\n if (value || value === 0) {\n // Add the prefix if it wasn't already provided\n const prefix = variable.startsWith(\"--\") ? \"\" : \"--\"\n const formattedValue = typeof value === \"number\" ? `${value}px` : value\n\n acc[`${prefix}${variable}`] = formattedValue\n }\n\n return acc\n },\n {} as Record<string, string>,\n )\n\n // Safe casting because we know we've formatted an object of CSS Variable strings\n return formattedVariables as CSSProperties\n}\n\nexport const toAngle = (value: number | string): string =>\n typeof value === \"number\" ? `${value}deg` : value\n\nexport const toOpacityProperty = (opacity: number): string => String(opacity)\n\nexport const toMsDurationProperty = (duration: number): string => `${duration}ms`\n\nexport const toTransformProperty = ({\n x,\n y,\n scale,\n rotate,\n skewX,\n skewY,\n}: {\n x?: number\n y?: number\n scale?: number\n rotate?: number | string\n skewX?: number | string\n skewY?: number | string\n} = {}): string => {\n const transforms = [\n x == null ? null : `translateX(${x}px)`,\n y == null ? null : `translateY(${y}px)`,\n scale == null ? null : `scale(${scale})`,\n rotate == null ? null : `rotate(${toAngle(rotate)})`,\n skewX == null ? null : `skewX(${toAngle(skewX)})`,\n skewY == null ? null : `skewY(${toAngle(skewY)})`,\n ].filter(Boolean)\n\n return transforms.length ? transforms.join(\" \") : \"none\"\n}\n\nexport const toFilterProperty = ({ blur }: { blur?: number | undefined } = {}) => {\n // Maybe add more support in the future\n const filters = [blur == null ? null : `blur(${blur}px)`].filter(Boolean)\n\n return filters.length ? filters.join(\" \") : \"none\"\n}\n\nexport const preventDefaultHandler = (evt: Event) => {\n evt.preventDefault()\n}\n\n/*\n * Intentionally simple selector string. Purposeful exclusions: (for now)\n * - select, because our selects are better recognized as button\n * - unused selectors like iframe, object, .etc.\n * - states like [inert]\n */\nexport const focusableElements = (element: HTMLElement) =>\n element.querySelectorAll<HTMLElement>(\n 'a[href], input:not([disabled]):not([type=\"hidden\"]), textarea:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex^=\"-\"]), [contenteditable]',\n )\n\nexport const sleep = (ms: number): Promise<void> =>\n new Promise((resolve) => setTimeout(resolve, ms))\n\n/**\n * Group an array of objects by a property, preserving the *first-seen* order\n * of each group.\n *\n * @example\n * groupByOrdered(people, \"team\")\n * // => [ { team: \"infra\", items:[...] }, { team:\"design\", items:[...] }, ... ]\n */\nexport function groupByProperty<T extends object, K extends keyof T, F = T[K]>(\n items: T[],\n key: K,\n format: (raw: T[K], item: T) => F = (raw) => raw as F,\n) {\n const groups: Pretty<{ [P in K]: F } & { items: T[] }>[] = []\n const indexMap = new Map<unknown, number>() // maps group value -> index in groups array\n\n for (const item of items) {\n const value = format(item[key], item)\n\n // Add to existing group\n const existing = indexMap.get(value)\n if (existing !== undefined) {\n groups[existing].items.push(item)\n continue\n }\n\n // Create new group\n const group = { [key]: value, items: [item] } as { [P in K]: F } & { items: T[] }\n indexMap.set(value, groups.length)\n groups.push(group)\n }\n\n return groups\n}\n", "const META_ENV = typeof import.meta !== \"undefined\" ? import.meta.env : undefined\n\nconst NODE_ENV =\n typeof process !== \"undefined\" && process.env?.NODE_ENV ? process.env?.NODE_ENV : \"production\"\n\nexport const isDev = NODE_ENV === \"development\" || !!META_ENV?.DEV\n\nexport const isJSDomLike =\n (typeof navigator !== \"undefined\" && /(jsdom|happy-dom)/i.test(navigator.userAgent)) ||\n typeof (globalThis as Record<string, unknown>).happyDOM === \"object\"\n\nexport const isTest = NODE_ENV === \"test\" || META_ENV?.MODE === \"test\" || isJSDomLike\n\nexport const hasWindow = typeof window !== \"undefined\"\nexport const hasDocument = typeof document !== \"undefined\"\nexport const canUseDOM = hasWindow && hasDocument\n"],
5
+ "mappings": ";;;;;;;;AAAA,mBAAmC;;;ACAnC,IAAM,WAAW,OAAO,gBAAgB,cAAc,YAAY,MAAM;AAExE,IAAM,WACJ,OAAO,YAAY,eAAe,gBAAwB,gBAAwB;AAE7E,IAAM,QAAQ,aAAa,iBAAiB,CAAC,EAAC,qCAAU;AAExD,IAAM,cACV,OAAO,cAAc,eAAe,qBAAqB,KAAK,UAAU,SAAS,KAClF,OAAQ,WAAuC,aAAa;AAEvD,IAAM,SAAS,aAAa,WAAU,qCAAU,UAAS,UAAU;AAEnE,IAAM,YAAY,OAAO,WAAW;AACpC,IAAM,cAAc,OAAO,aAAa;AACxC,IAAM,YAAY,aAAa;;;ADH/B,IAAM,4BAA4B,CAAC,QAAyB;AACjE,QAAM,SAAS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