@valbuild/next 0.150.10 → 0.150.11

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @valbuild/next
2
2
 
3
+ ## 0.150.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#974](https://github.com/valbuild/val/pull/974) [`9c6bc8d`](https://github.com/valbuild/val/commit/9c6bc8d25f40427a6fb9eec6ff5506996b718a78) Thanks [@freekh](https://github.com/freekh)! - The design tab no longer makes you wait.
8
+
9
+ - **Quick preview.** A change to components, layout or styles is shown in seconds, without a build: the proposal's browser code is bundled in the tab and the page in the preview runs it. What runs on the server (loaders, server functions, the page's first render) stays the last build's, and the tab says so, with a button to build. The assistant has it too (`quick_preview`).
10
+ - **Cancel and Try again.** A build can be cancelled from the tab, and a build that stops making progress for three minutes is stopped, saying at which step, so it never spins until a reload. The assistant waits for a build with `wait` instead of holding its turn, and has `build_status` and `cancel_build`.
11
+ - **Each step of a build is timed**, and the Build check lists where the time went.
12
+ - **A new build fades in where you were**, at the same page and scroll, instead of the preview going blank and starting over at the top.
13
+ - **`read_page`** lets the assistant check its change on the page: the headings, text, links, images and inputs in order, and one element's computed styles and how many lines it wraps to, at desktop, tablet or phone width.
14
+ - **On a phone**, the design tab shows the preview, the assistant and the changes one at a time, as tabs. Picking is Select, then a tap, and a pick takes you to the assistant with it. On Safari and on an iPhone, where the tab cannot bundle code itself, the quick preview is prepared in a builder tab, as a build already is.
15
+ - **Queue messages in the assistant's chat.** Write while it answers: what you write waits and is sent when the answer is done, one at a time. A queued message can be taken back to edit, moved up or removed, and Stop or a failed answer holds the queue until you go on.
16
+
17
+ The quick preview and `read_page` run in the proposal's own page, through the canvas bridge in `@valbuild/next` and `@valbuild/tanstack`, so a site needs those packages at this version for them. The quick preview is served by a service worker on the proposal's address (`/api/val/quick-preview-sw.js`), which takes code only from the site's own design tab.
18
+
19
+ - Updated dependencies [[`9abd5ef`](https://github.com/valbuild/val/commit/9abd5efea0c1adc7e7ff2d05b2ea38b76af73b38), [`9c6bc8d`](https://github.com/valbuild/val/commit/9c6bc8d25f40427a6fb9eec6ff5506996b718a78)]:
20
+ - @valbuild/ui@0.150.11
21
+ - @valbuild/shared@0.150.11
22
+ - @valbuild/server@0.150.11
23
+ - @valbuild/react@0.150.11
24
+ - @valbuild/language-server@0.150.11
25
+ - @valbuild/mcp@0.150.11
26
+
3
27
  ## 0.150.10
4
28
 
5
29
  ### Patch Changes
@@ -1,9 +1,12 @@
1
1
  'use client';
2
+ import { _ as _objectSpread2 } from './objectSpread2-60d1bd93.esm.js';
3
+ import { _ as _asyncToGenerator, a as _regenerator } from './asyncToGenerator-500f022f.esm.js';
2
4
  import { _ as _slicedToArray } from './slicedToArray-aa291011.esm.js';
3
5
  import React from 'react';
4
6
  import { Internal } from '@valbuild/core';
5
- import { VAL_CANVAS_MESSAGE, startElementPicking, DEFAULT_CANVAS_SELECTION, DEFAULT_CANVAS_SELECTION_SOFT, isValCanvasStudioMessage } from '@valbuild/shared/client';
7
+ import { VAL_CANVAS_MESSAGE, watchPageLocation, startElementPicking, DEFAULT_CANVAS_SELECTION, DEFAULT_CANVAS_SELECTION_SOFT, isValCanvasStudioMessage, restoreScroll, isDesignTabOrigin, storeQuickPreview, QUICK_PREVIEW_SERVICE_WORKER_PATH, quickPreviewSiteOrigin, readPageSnapshot } from '@valbuild/shared/client';
6
8
  import { jsx } from 'react/jsx-runtime';
9
+ import './defineProperty-cca5affa.esm.js';
7
10
  import './unsupportedIterableToArray-5baabfdc.esm.js';
8
11
 
9
12
  var DEFAULT_SELECTION = {
@@ -71,6 +74,14 @@ function ValCanvasBridge(_ref) {
71
74
  var elementPickingActive = React.useRef(false);
72
75
  elementPickingActive.current = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.active) === true;
73
76
  var elementPicker = React.useRef(null);
77
+ /** A scroll back to where the last build was, still trying. */
78
+ var stopRestoring = React.useRef(null);
79
+ React.useEffect(function () {
80
+ return function () {
81
+ var _stopRestoring$curren;
82
+ return (_stopRestoring$curren = stopRestoring.current) === null || _stopRestoring$curren === void 0 ? void 0 : _stopRestoring$curren.call(stopRestoring);
83
+ };
84
+ }, []);
74
85
  var post = React.useCallback(function (message) {
75
86
  // `*` as the target origin: the studio and the page share an origin today,
76
87
  // but the frame does not know the parent's origin for certain and naming
@@ -296,6 +307,81 @@ function ValCanvasBridge(_ref) {
296
307
  });
297
308
  return;
298
309
  }
310
+ if (message.type === "scrollTo") {
311
+ var _stopRestoring$curren2;
312
+ // Where the build before this one was: the design tab swaps a new
313
+ // build in at the same place.
314
+ (_stopRestoring$curren2 = stopRestoring.current) === null || _stopRestoring$curren2 === void 0 || _stopRestoring$curren2.call(stopRestoring);
315
+ stopRestoring.current = restoreScroll(window, message.x, message.y);
316
+ return;
317
+ }
318
+ if (message.type === "readPage") {
319
+ // The assistant's `read_page`: what is on the page, read here because
320
+ // the tab is another origin and cannot. The page's words, unpublished
321
+ // ones included, so only for the frame's parent, and only when that
322
+ // is the site's design tab or the Studio here -- and answered to it
323
+ // alone, not to `*`.
324
+ if (event.source !== window.parent) return;
325
+ var asker = event.origin;
326
+ void isDesignTabOrigin(asker, {
327
+ api: "/api/val",
328
+ own: window.location.origin
329
+ }).then(function (trusted) {
330
+ if (trusted) window.parent.postMessage(readPageReply(message), asker);
331
+ });
332
+ return;
333
+ }
334
+ if (message.type === "quickPreview") {
335
+ // Code that will run on this address: only from the frame's parent,
336
+ // and only when that is the site's design tab. See `quickPreview.ts`.
337
+ if (event.source !== window.parent) return;
338
+ var id = message.id,
339
+ files = message.files;
340
+ var origin = event.origin;
341
+ void _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
342
+ var site, _t;
343
+ return _regenerator().w(function (_context) {
344
+ while (1) switch (_context.p = _context.n) {
345
+ case 0:
346
+ _context.p = 0;
347
+ _context.n = 1;
348
+ return quickPreviewSiteOrigin("/api/val");
349
+ case 1:
350
+ site = _context.v;
351
+ if (!(site === null || site !== origin)) {
352
+ _context.n = 2;
353
+ break;
354
+ }
355
+ throw new Error("Only the site's design tab can show a quick preview of this proposal.");
356
+ case 2:
357
+ _context.n = 3;
358
+ return storeQuickPreview(id, files, {
359
+ swUrl: "/api/val".concat(QUICK_PREVIEW_SERVICE_WORKER_PATH)
360
+ });
361
+ case 3:
362
+ post({
363
+ val: VAL_CANVAS_MESSAGE,
364
+ type: "quickPreviewStored",
365
+ id: id
366
+ });
367
+ _context.n = 5;
368
+ break;
369
+ case 4:
370
+ _context.p = 4;
371
+ _t = _context.v;
372
+ post({
373
+ val: VAL_CANVAS_MESSAGE,
374
+ type: "quickPreviewStored",
375
+ id: id,
376
+ error: _t instanceof Error ? _t.message : String(_t)
377
+ });
378
+ case 5:
379
+ return _context.a(2);
380
+ }
381
+ }, _callee, null, [[0, 4]]);
382
+ }))();
383
+ return;
384
+ }
299
385
  if (message.type === "theme") {
300
386
  setSelectionColors({
301
387
  selection: message.selection,
@@ -344,7 +430,17 @@ function ValCanvasBridge(_ref) {
344
430
  return function () {
345
431
  return window.removeEventListener("message", listener);
346
432
  };
347
- }, [scan]);
433
+ }, [scan, post]);
434
+
435
+ // Where the page is, as it moves: the design tab opens a new build there.
436
+ React.useEffect(function () {
437
+ return watchPageLocation(window, function (location) {
438
+ return post(_objectSpread2({
439
+ val: VAL_CANVAS_MESSAGE,
440
+ type: "location"
441
+ }, location));
442
+ });
443
+ }, [post]);
348
444
 
349
445
  /**
350
446
  * Picking.
@@ -680,4 +776,28 @@ function findByPath(path) {
680
776
  return null;
681
777
  }
682
778
 
779
+ /** What `readPage` answers: the page read, or why it could not be. */
780
+ function readPageReply(message) {
781
+ try {
782
+ return {
783
+ val: VAL_CANVAS_MESSAGE,
784
+ type: "pageRead",
785
+ requestId: message.requestId,
786
+ snapshot: readPageSnapshot(document, _objectSpread2(_objectSpread2({}, message.selector !== undefined ? {
787
+ selector: message.selector
788
+ } : {}), message.maxItems !== undefined ? {
789
+ maxItems: message.maxItems
790
+ } : {}))
791
+ };
792
+ } catch (error) {
793
+ return {
794
+ val: VAL_CANVAS_MESSAGE,
795
+ type: "pageRead",
796
+ requestId: message.requestId,
797
+ snapshot: null,
798
+ error: error instanceof Error ? error.message : String(error)
799
+ };
800
+ }
801
+ }
802
+
683
803
  export { ValCanvasBridge };
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValCanvasBridge-b0cf84b5.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValCanvasBridge-b0cf84b5.cjs.dev.js");
7
+ }
@@ -3,11 +3,14 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
+ var objectSpread2 = require('./objectSpread2-13f847a9.cjs.prod.js');
7
+ var asyncToGenerator = require('./asyncToGenerator-8e5c36c8.cjs.prod.js');
6
8
  var slicedToArray = require('./slicedToArray-ce613de6.cjs.prod.js');
7
9
  var React = require('react');
8
10
  var core = require('@valbuild/core');
9
11
  var client = require('@valbuild/shared/client');
10
12
  var jsxRuntime = require('react/jsx-runtime');
13
+ require('./defineProperty-8951f469.cjs.prod.js');
11
14
  require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
12
15
 
13
16
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -79,6 +82,14 @@ function ValCanvasBridge(_ref) {
79
82
  var elementPickingActive = React__default["default"].useRef(false);
80
83
  elementPickingActive.current = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.active) === true;
81
84
  var elementPicker = React__default["default"].useRef(null);
85
+ /** A scroll back to where the last build was, still trying. */
86
+ var stopRestoring = React__default["default"].useRef(null);
87
+ React__default["default"].useEffect(function () {
88
+ return function () {
89
+ var _stopRestoring$curren;
90
+ return (_stopRestoring$curren = stopRestoring.current) === null || _stopRestoring$curren === void 0 ? void 0 : _stopRestoring$curren.call(stopRestoring);
91
+ };
92
+ }, []);
82
93
  var post = React__default["default"].useCallback(function (message) {
83
94
  // `*` as the target origin: the studio and the page share an origin today,
84
95
  // but the frame does not know the parent's origin for certain and naming
@@ -304,6 +315,81 @@ function ValCanvasBridge(_ref) {
304
315
  });
305
316
  return;
306
317
  }
318
+ if (message.type === "scrollTo") {
319
+ var _stopRestoring$curren2;
320
+ // Where the build before this one was: the design tab swaps a new
321
+ // build in at the same place.
322
+ (_stopRestoring$curren2 = stopRestoring.current) === null || _stopRestoring$curren2 === void 0 || _stopRestoring$curren2.call(stopRestoring);
323
+ stopRestoring.current = client.restoreScroll(window, message.x, message.y);
324
+ return;
325
+ }
326
+ if (message.type === "readPage") {
327
+ // The assistant's `read_page`: what is on the page, read here because
328
+ // the tab is another origin and cannot. The page's words, unpublished
329
+ // ones included, so only for the frame's parent, and only when that
330
+ // is the site's design tab or the Studio here -- and answered to it
331
+ // alone, not to `*`.
332
+ if (event.source !== window.parent) return;
333
+ var asker = event.origin;
334
+ void client.isDesignTabOrigin(asker, {
335
+ api: "/api/val",
336
+ own: window.location.origin
337
+ }).then(function (trusted) {
338
+ if (trusted) window.parent.postMessage(readPageReply(message), asker);
339
+ });
340
+ return;
341
+ }
342
+ if (message.type === "quickPreview") {
343
+ // Code that will run on this address: only from the frame's parent,
344
+ // and only when that is the site's design tab. See `quickPreview.ts`.
345
+ if (event.source !== window.parent) return;
346
+ var id = message.id,
347
+ files = message.files;
348
+ var origin = event.origin;
349
+ void asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee() {
350
+ var site, _t;
351
+ return asyncToGenerator._regenerator().w(function (_context) {
352
+ while (1) switch (_context.p = _context.n) {
353
+ case 0:
354
+ _context.p = 0;
355
+ _context.n = 1;
356
+ return client.quickPreviewSiteOrigin("/api/val");
357
+ case 1:
358
+ site = _context.v;
359
+ if (!(site === null || site !== origin)) {
360
+ _context.n = 2;
361
+ break;
362
+ }
363
+ throw new Error("Only the site's design tab can show a quick preview of this proposal.");
364
+ case 2:
365
+ _context.n = 3;
366
+ return client.storeQuickPreview(id, files, {
367
+ swUrl: "/api/val".concat(client.QUICK_PREVIEW_SERVICE_WORKER_PATH)
368
+ });
369
+ case 3:
370
+ post({
371
+ val: client.VAL_CANVAS_MESSAGE,
372
+ type: "quickPreviewStored",
373
+ id: id
374
+ });
375
+ _context.n = 5;
376
+ break;
377
+ case 4:
378
+ _context.p = 4;
379
+ _t = _context.v;
380
+ post({
381
+ val: client.VAL_CANVAS_MESSAGE,
382
+ type: "quickPreviewStored",
383
+ id: id,
384
+ error: _t instanceof Error ? _t.message : String(_t)
385
+ });
386
+ case 5:
387
+ return _context.a(2);
388
+ }
389
+ }, _callee, null, [[0, 4]]);
390
+ }))();
391
+ return;
392
+ }
307
393
  if (message.type === "theme") {
308
394
  setSelectionColors({
309
395
  selection: message.selection,
@@ -352,7 +438,17 @@ function ValCanvasBridge(_ref) {
352
438
  return function () {
353
439
  return window.removeEventListener("message", listener);
354
440
  };
355
- }, [scan]);
441
+ }, [scan, post]);
442
+
443
+ // Where the page is, as it moves: the design tab opens a new build there.
444
+ React__default["default"].useEffect(function () {
445
+ return client.watchPageLocation(window, function (location) {
446
+ return post(objectSpread2._objectSpread2({
447
+ val: client.VAL_CANVAS_MESSAGE,
448
+ type: "location"
449
+ }, location));
450
+ });
451
+ }, [post]);
356
452
 
357
453
  /**
358
454
  * Picking.
@@ -688,4 +784,28 @@ function findByPath(path) {
688
784
  return null;
689
785
  }
690
786
 
787
+ /** What `readPage` answers: the page read, or why it could not be. */
788
+ function readPageReply(message) {
789
+ try {
790
+ return {
791
+ val: client.VAL_CANVAS_MESSAGE,
792
+ type: "pageRead",
793
+ requestId: message.requestId,
794
+ snapshot: client.readPageSnapshot(document, objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, message.selector !== undefined ? {
795
+ selector: message.selector
796
+ } : {}), message.maxItems !== undefined ? {
797
+ maxItems: message.maxItems
798
+ } : {}))
799
+ };
800
+ } catch (error) {
801
+ return {
802
+ val: client.VAL_CANVAS_MESSAGE,
803
+ type: "pageRead",
804
+ requestId: message.requestId,
805
+ snapshot: null,
806
+ error: error instanceof Error ? error.message : String(error)
807
+ };
808
+ }
809
+ }
810
+
691
811
  exports.ValCanvasBridge = ValCanvasBridge;
@@ -3,11 +3,14 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
+ var objectSpread2 = require('./objectSpread2-58024783.cjs.dev.js');
7
+ var asyncToGenerator = require('./asyncToGenerator-c3823d62.cjs.dev.js');
6
8
  var slicedToArray = require('./slicedToArray-44036a76.cjs.dev.js');
7
9
  var React = require('react');
8
10
  var core = require('@valbuild/core');
9
11
  var client = require('@valbuild/shared/client');
10
12
  var jsxRuntime = require('react/jsx-runtime');
13
+ require('./defineProperty-f90345d7.cjs.dev.js');
11
14
  require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
12
15
 
13
16
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -79,6 +82,14 @@ function ValCanvasBridge(_ref) {
79
82
  var elementPickingActive = React__default["default"].useRef(false);
80
83
  elementPickingActive.current = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.active) === true;
81
84
  var elementPicker = React__default["default"].useRef(null);
85
+ /** A scroll back to where the last build was, still trying. */
86
+ var stopRestoring = React__default["default"].useRef(null);
87
+ React__default["default"].useEffect(function () {
88
+ return function () {
89
+ var _stopRestoring$curren;
90
+ return (_stopRestoring$curren = stopRestoring.current) === null || _stopRestoring$curren === void 0 ? void 0 : _stopRestoring$curren.call(stopRestoring);
91
+ };
92
+ }, []);
82
93
  var post = React__default["default"].useCallback(function (message) {
83
94
  // `*` as the target origin: the studio and the page share an origin today,
84
95
  // but the frame does not know the parent's origin for certain and naming
@@ -304,6 +315,81 @@ function ValCanvasBridge(_ref) {
304
315
  });
305
316
  return;
306
317
  }
318
+ if (message.type === "scrollTo") {
319
+ var _stopRestoring$curren2;
320
+ // Where the build before this one was: the design tab swaps a new
321
+ // build in at the same place.
322
+ (_stopRestoring$curren2 = stopRestoring.current) === null || _stopRestoring$curren2 === void 0 || _stopRestoring$curren2.call(stopRestoring);
323
+ stopRestoring.current = client.restoreScroll(window, message.x, message.y);
324
+ return;
325
+ }
326
+ if (message.type === "readPage") {
327
+ // The assistant's `read_page`: what is on the page, read here because
328
+ // the tab is another origin and cannot. The page's words, unpublished
329
+ // ones included, so only for the frame's parent, and only when that
330
+ // is the site's design tab or the Studio here -- and answered to it
331
+ // alone, not to `*`.
332
+ if (event.source !== window.parent) return;
333
+ var asker = event.origin;
334
+ void client.isDesignTabOrigin(asker, {
335
+ api: "/api/val",
336
+ own: window.location.origin
337
+ }).then(function (trusted) {
338
+ if (trusted) window.parent.postMessage(readPageReply(message), asker);
339
+ });
340
+ return;
341
+ }
342
+ if (message.type === "quickPreview") {
343
+ // Code that will run on this address: only from the frame's parent,
344
+ // and only when that is the site's design tab. See `quickPreview.ts`.
345
+ if (event.source !== window.parent) return;
346
+ var id = message.id,
347
+ files = message.files;
348
+ var origin = event.origin;
349
+ void asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee() {
350
+ var site, _t;
351
+ return asyncToGenerator._regenerator().w(function (_context) {
352
+ while (1) switch (_context.p = _context.n) {
353
+ case 0:
354
+ _context.p = 0;
355
+ _context.n = 1;
356
+ return client.quickPreviewSiteOrigin("/api/val");
357
+ case 1:
358
+ site = _context.v;
359
+ if (!(site === null || site !== origin)) {
360
+ _context.n = 2;
361
+ break;
362
+ }
363
+ throw new Error("Only the site's design tab can show a quick preview of this proposal.");
364
+ case 2:
365
+ _context.n = 3;
366
+ return client.storeQuickPreview(id, files, {
367
+ swUrl: "/api/val".concat(client.QUICK_PREVIEW_SERVICE_WORKER_PATH)
368
+ });
369
+ case 3:
370
+ post({
371
+ val: client.VAL_CANVAS_MESSAGE,
372
+ type: "quickPreviewStored",
373
+ id: id
374
+ });
375
+ _context.n = 5;
376
+ break;
377
+ case 4:
378
+ _context.p = 4;
379
+ _t = _context.v;
380
+ post({
381
+ val: client.VAL_CANVAS_MESSAGE,
382
+ type: "quickPreviewStored",
383
+ id: id,
384
+ error: _t instanceof Error ? _t.message : String(_t)
385
+ });
386
+ case 5:
387
+ return _context.a(2);
388
+ }
389
+ }, _callee, null, [[0, 4]]);
390
+ }))();
391
+ return;
392
+ }
307
393
  if (message.type === "theme") {
308
394
  setSelectionColors({
309
395
  selection: message.selection,
@@ -352,7 +438,17 @@ function ValCanvasBridge(_ref) {
352
438
  return function () {
353
439
  return window.removeEventListener("message", listener);
354
440
  };
355
- }, [scan]);
441
+ }, [scan, post]);
442
+
443
+ // Where the page is, as it moves: the design tab opens a new build there.
444
+ React__default["default"].useEffect(function () {
445
+ return client.watchPageLocation(window, function (location) {
446
+ return post(objectSpread2._objectSpread2({
447
+ val: client.VAL_CANVAS_MESSAGE,
448
+ type: "location"
449
+ }, location));
450
+ });
451
+ }, [post]);
356
452
 
357
453
  /**
358
454
  * Picking.
@@ -688,4 +784,28 @@ function findByPath(path) {
688
784
  return null;
689
785
  }
690
786
 
787
+ /** What `readPage` answers: the page read, or why it could not be. */
788
+ function readPageReply(message) {
789
+ try {
790
+ return {
791
+ val: client.VAL_CANVAS_MESSAGE,
792
+ type: "pageRead",
793
+ requestId: message.requestId,
794
+ snapshot: client.readPageSnapshot(document, objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, message.selector !== undefined ? {
795
+ selector: message.selector
796
+ } : {}), message.maxItems !== undefined ? {
797
+ maxItems: message.maxItems
798
+ } : {}))
799
+ };
800
+ } catch (error) {
801
+ return {
802
+ val: client.VAL_CANVAS_MESSAGE,
803
+ type: "pageRead",
804
+ requestId: message.requestId,
805
+ snapshot: null,
806
+ error: error instanceof Error ? error.message : String(error)
807
+ };
808
+ }
809
+ }
810
+
691
811
  exports.ValCanvasBridge = ValCanvasBridge;
@@ -16,7 +16,7 @@ var stega = require('@valbuild/react/stega');
16
16
  var fallbackColors = require('./fallbackColors-e1d73b36.cjs.prod.js');
17
17
  var client = require('@valbuild/shared/client');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-d4afcad8.cjs.prod.js');
19
- var ValCanvasBridge = require('./ValCanvasBridge-068df772.cjs.prod.js');
19
+ var ValCanvasBridge = require('./ValCanvasBridge-b0cf84b5.cjs.prod.js');
20
20
  var jsxRuntime = require('react/jsx-runtime');
21
21
  require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
22
22
  require('./defineProperty-8951f469.cjs.prod.js');
@@ -16,7 +16,7 @@ var stega = require('@valbuild/react/stega');
16
16
  var fallbackColors = require('./fallbackColors-080c1bbc.cjs.dev.js');
17
17
  var client = require('@valbuild/shared/client');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-0445603c.cjs.dev.js');
19
- var ValCanvasBridge = require('./ValCanvasBridge-b35fc1db.cjs.dev.js');
19
+ var ValCanvasBridge = require('./ValCanvasBridge-c0dacd5a.cjs.dev.js');
20
20
  var jsxRuntime = require('react/jsx-runtime');
21
21
  require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
22
22
  require('./defineProperty-f90345d7.cjs.dev.js');
@@ -12,7 +12,7 @@ import { SET_AUTO_TAG_JSX_ENABLED } from '@valbuild/react/stega';
12
12
  import { p as prefixStyles, u as useConfigStorageSave, f as floatDarkBg, d as floatLightBg, v as valPrefixedClass, c as cn } from './fallbackColors-149dfbc9.esm.js';
13
13
  import { VAL_THEME_SESSION_STORAGE_KEY, isValCanvasFrame } from '@valbuild/shared/client';
14
14
  import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-5758a730.esm.js';
15
- import { ValCanvasBridge } from './ValCanvasBridge-76317241.esm.js';
15
+ import { ValCanvasBridge } from './ValCanvasBridge-2ae482d4.esm.js';
16
16
  import { jsxs, jsx } from 'react/jsx-runtime';
17
17
  import './unsupportedIterableToArray-5baabfdc.esm.js';
18
18
  import './defineProperty-cca5affa.esm.js';
@@ -14,7 +14,7 @@ var jsxRuntime = require('react/jsx-runtime');
14
14
  var ValVideo = require('./ValVideo-6e410ad8.cjs.dev.js');
15
15
  var ValApp = require('./ValApp-c718d1a6.cjs.dev.js');
16
16
  var ValModulesClient = require('./ValModulesClient-4ecabf99.cjs.dev.js');
17
- var version = require('./version-3291abe4.cjs.dev.js');
17
+ var version = require('./version-93810b24.cjs.dev.js');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-0445603c.cjs.dev.js');
19
19
  require('./defineProperty-f90345d7.cjs.dev.js');
20
20
  require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
@@ -14,7 +14,7 @@ var jsxRuntime = require('react/jsx-runtime');
14
14
  var ValVideo = require('./ValVideo-dcd2b9f8.cjs.prod.js');
15
15
  var ValApp = require('./ValApp-6c3da222.cjs.prod.js');
16
16
  var ValModulesClient = require('./ValModulesClient-10c0721c.cjs.prod.js');
17
- var version = require('./version-da9338fb.cjs.prod.js');
17
+ var version = require('./version-f390770a.cjs.prod.js');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-d4afcad8.cjs.prod.js');
19
19
  require('./defineProperty-8951f469.cjs.prod.js');
20
20
  require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
@@ -13,7 +13,7 @@ import { jsx } from 'react/jsx-runtime';
13
13
  export { ValVideo } from './ValVideo-d377f06e.esm.js';
14
14
  export { ValApp } from './ValApp-a88a9ded.esm.js';
15
15
  export { ValModulesClient, useRegisterValModules } from './ValModulesClient-0dd601a1.esm.js';
16
- import { V as VERSION } from './version-45734cf0.esm.js';
16
+ import { V as VERSION } from './version-fd8b5d31.esm.js';
17
17
  import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-5758a730.esm.js';
18
18
  import './defineProperty-cca5affa.esm.js';
19
19
  import './unsupportedIterableToArray-5baabfdc.esm.js';
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.150.10",
17
+ version: "0.150.11",
18
18
  scripts: {
19
19
  typecheck: "tsc --noEmit",
20
20
  test: "jest"
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.150.10",
17
+ version: "0.150.11",
18
18
  scripts: {
19
19
  typecheck: "tsc --noEmit",
20
20
  test: "jest"
@@ -12,7 +12,7 @@ var packageJson = {
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- version: "0.150.10",
15
+ version: "0.150.11",
16
16
  scripts: {
17
17
  typecheck: "tsc --noEmit",
18
18
  test: "jest"
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- "version": "0.150.10",
15
+ "version": "0.150.11",
16
16
  "main": "dist/valbuild-next.cjs.js",
17
17
  "module": "dist/valbuild-next.esm.js",
18
18
  "exports": {
@@ -48,12 +48,12 @@
48
48
  "client-only": "^0.0.1",
49
49
  "server-only": "^0.0.1",
50
50
  "@valbuild/core": "0.150.3",
51
- "@valbuild/language-server": "0.150.10",
52
- "@valbuild/mcp": "0.150.10",
53
- "@valbuild/react": "0.150.10",
54
- "@valbuild/server": "0.150.10",
55
- "@valbuild/ui": "0.150.10",
56
- "@valbuild/shared": "0.150.10"
51
+ "@valbuild/language-server": "0.150.11",
52
+ "@valbuild/react": "0.150.11",
53
+ "@valbuild/server": "0.150.11",
54
+ "@valbuild/mcp": "0.150.11",
55
+ "@valbuild/shared": "0.150.11",
56
+ "@valbuild/ui": "0.150.11"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@testing-library/react": "^16.3.3",
@@ -12,7 +12,7 @@ var core = require('@valbuild/core');
12
12
  var React = require('react');
13
13
  var internal = require('@valbuild/shared/internal');
14
14
  var server = require('@valbuild/server');
15
- var version = require('../../dist/version-3291abe4.cjs.dev.js');
15
+ var version = require('../../dist/version-93810b24.cjs.dev.js');
16
16
  require('../../dist/createForOfIteratorHelper-0445603c.cjs.dev.js');
17
17
  require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
18
18
  require('../../dist/slicedToArray-44036a76.cjs.dev.js');
@@ -12,7 +12,7 @@ var core = require('@valbuild/core');
12
12
  var React = require('react');
13
13
  var internal = require('@valbuild/shared/internal');
14
14
  var server = require('@valbuild/server');
15
- var version = require('../../dist/version-da9338fb.cjs.prod.js');
15
+ var version = require('../../dist/version-f390770a.cjs.prod.js');
16
16
  require('../../dist/createForOfIteratorHelper-d4afcad8.cjs.prod.js');
17
17
  require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
18
18
  require('../../dist/slicedToArray-ce613de6.cjs.prod.js');
@@ -8,7 +8,7 @@ import { Internal } from '@valbuild/core';
8
8
  import { cache } from 'react';
9
9
  import { VAL_SESSION_COOKIE, memoizePerRequest } from '@valbuild/shared/internal';
10
10
  import { createValServer } from '@valbuild/server';
11
- import { V as VERSION } from '../../dist/version-45734cf0.esm.js';
11
+ import { V as VERSION } from '../../dist/version-fd8b5d31.esm.js';
12
12
  import '../../dist/createForOfIteratorHelper-5758a730.esm.js';
13
13
  import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
14
14
  import '../../dist/slicedToArray-aa291011.esm.js';
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-58024783.cjs.dev.js');
9
9
  var core = require('@valbuild/core');
10
10
  var server = require('@valbuild/server');
11
11
  var server$1 = require('next/server');
12
- var version = require('../../dist/version-3291abe4.cjs.dev.js');
12
+ var version = require('../../dist/version-93810b24.cjs.dev.js');
13
13
  var mcp = require('@valbuild/mcp');
14
14
  require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
15
15
  require('../../dist/defineProperty-f90345d7.cjs.dev.js');
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-13f847a9.cjs.prod.js');
9
9
  var core = require('@valbuild/core');
10
10
  var server = require('@valbuild/server');
11
11
  var server$1 = require('next/server');
12
- var version = require('../../dist/version-da9338fb.cjs.prod.js');
12
+ var version = require('../../dist/version-f390770a.cjs.prod.js');
13
13
  var mcp = require('@valbuild/mcp');
14
14
  require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
15
15
  require('../../dist/defineProperty-8951f469.cjs.prod.js');
@@ -6,7 +6,7 @@ import { Internal } from '@valbuild/core';
6
6
  import { createValApiRouter, createValServer } from '@valbuild/server';
7
7
  export { createPrettierFormatter } from '@valbuild/server';
8
8
  import { NextResponse } from 'next/server';
9
- import { V as VERSION } from '../../dist/version-45734cf0.esm.js';
9
+ import { V as VERSION } from '../../dist/version-fd8b5d31.esm.js';
10
10
  import { initValMcp as initValMcp$1 } from '@valbuild/mcp';
11
11
  import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
12
12
  import '../../dist/defineProperty-cca5affa.esm.js';
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValCanvasBridge-068df772.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValCanvasBridge-068df772.cjs.dev.js");
7
- }