@valbuild/tanstack 0.148.5 → 0.148.6

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,21 @@
1
1
  # @valbuild/tanstack
2
2
 
3
+ ## 0.148.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#902](https://github.com/valbuild/val/pull/902) [`b580292`](https://github.com/valbuild/val/commit/b580292ac3c335b055f5ed5f18d6a12d075169c7) Thanks [@freekh](https://github.com/freekh)! - The demo has a script: `<ValApp demo={{ tours, audiences }}>`. Instead of a tour that opens by itself, the demo card asks "What brings you here?" and lists short tours for the answer, each ticked off once done. `/val?tour=<id>` starts one from a link.
8
+
9
+ A tour can start on a page of its own (`start`). A step can ask for a new page (`moveOn: { newPage }`), write any value or add one (`moveOn: { edit, value, add }`), and show the code behind what it is about (`code`).
10
+
11
+ - Updated dependencies [[`b580292`](https://github.com/valbuild/val/commit/b580292ac3c335b055f5ed5f18d6a12d075169c7)]:
12
+ - @valbuild/ui@0.148.6
13
+ - @valbuild/shared@0.148.6
14
+ - @valbuild/react@0.148.6
15
+ - @valbuild/server@0.148.6
16
+ - @valbuild/language-server@0.148.6
17
+ - @valbuild/mcp@0.148.6
18
+
3
19
  ## 0.148.5
4
20
 
5
21
  ### Patch Changes
@@ -17,9 +17,9 @@ export declare const ValApp: ({ config, children, demo, }: {
17
17
  * Set it from the build -- `demo={import.meta.env.VITE_VAL_DEMO === "true"}`
18
18
  * -- never from anything a visitor controls.
19
19
  *
20
- * Options instead of `true` give the demo a tour of the site's own:
21
- * `demo={{ tour }}`, steps written as data (`ValDemoTourStep`), so what it
22
- * says changes with the site rather than with a Val release.
20
+ * Options instead of `true` give the demo tours of the site's own:
21
+ * `demo={{ tours, audiences }}`, written as data (`ValDemoOptions`), so what
22
+ * they say changes with the site rather than with a Val release.
23
23
  */
24
24
  demo?: boolean | ValDemoOptions;
25
25
  }) => import("react").JSX.Element;
@@ -20,8 +20,8 @@ export type { ValAnalytics } from "./ValAnalytics.js";
20
20
  export { ValImage, type ValImageProps } from "./ValImage.js";
21
21
  export { ValVideo, type ValVideoProps } from "./ValVideo.js";
22
22
  export { ValApp } from "./ValApp.js";
23
- /** What `<ValApp demo={{ tour }}>` takes. See `ValDemoTourStep`. */
24
- export type { ValDemoOptions, ValDemoTourStep, ValDemoTourMoveOn, ValDemoTourTarget, ValDemoTourPanel, } from "@valbuild/shared/internal";
23
+ /** What `<ValApp demo={{ tours, audiences }}>` takes. See `ValDemoOptions`. */
24
+ export type { ValDemoOptions, ValDemoTour, ValDemoAudience, ValDemoTourStep, ValDemoTourMoveOn, ValDemoTourTarget, ValDemoTourPanel, } from "@valbuild/shared/internal";
25
25
  export { ValModulesClient, useRegisterValModules } from "./ValModulesClient.js";
26
26
  import { Internal as InternalCore } from "@valbuild/core";
27
27
  import { VERSION } from "./version.js";
@@ -6,7 +6,7 @@ var asyncToGenerator = require('./asyncToGenerator-c3823d62.cjs.dev.js');
6
6
  var _typeof = require('./typeof-dd0246a1.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
- var version = require('./version-bd8e7709.cjs.dev.js');
9
+ var version = require('./version-3c14318e.cjs.dev.js');
10
10
  var internal = require('@valbuild/react/internal');
11
11
  var ui = require('@valbuild/ui');
12
12
  var reactRouter = require('@tanstack/react-router');
@@ -2486,7 +2486,7 @@ function useDemoServer(demo, config, options) {
2486
2486
  var run = /*#__PURE__*/function () {
2487
2487
  var _ref2 = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee() {
2488
2488
  var _optionsRef$current;
2489
- var _yield$import, createInTabValFetch, modules, fetch, uploads, tour, runtime;
2489
+ var _yield$import, createInTabValFetch, modules, fetch, uploads, _ref3, tour, tours, audiences, runtime;
2490
2490
  return asyncToGenerator._regenerator().w(function (_context) {
2491
2491
  while (1) switch (_context.n) {
2492
2492
  case 0:
@@ -2514,12 +2514,16 @@ function useDemoServer(demo, config, options) {
2514
2514
  return startDemoRelay(fetch);
2515
2515
  case 3:
2516
2516
  uploads = _context.v;
2517
- tour = (_optionsRef$current = optionsRef.current) === null || _optionsRef$current === void 0 ? void 0 : _optionsRef$current.tour;
2518
- runtime = _typeof._objectSpread2({
2517
+ _ref3 = (_optionsRef$current = optionsRef.current) !== null && _optionsRef$current !== void 0 ? _optionsRef$current : {}, tour = _ref3.tour, tours = _ref3.tours, audiences = _ref3.audiences;
2518
+ runtime = _typeof._objectSpread2(_typeof._objectSpread2(_typeof._objectSpread2({
2519
2519
  fetch: fetch,
2520
2520
  uploads: uploads
2521
2521
  }, tour ? {
2522
2522
  tour: tour
2523
+ } : {}), tours ? {
2524
+ tours: tours
2525
+ } : {}), audiences ? {
2526
+ audiences: audiences
2523
2527
  } : {});
2524
2528
  window.__VAL_DEMO__ = runtime;
2525
2529
  return _context.a(2, {
@@ -2557,8 +2561,8 @@ function useDemoServer(demo, config, options) {
2557
2561
  * to start is a site with no Studio and no reason given. Plain styles, since
2558
2562
  * the Studio's stylesheet is exactly what has not loaded.
2559
2563
  */
2560
- function DemoStartFailed(_ref3) {
2561
- var failure = _ref3.failure;
2564
+ function DemoStartFailed(_ref4) {
2565
+ var failure = _ref4.failure;
2562
2566
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
2563
2567
  role: "alert",
2564
2568
  style: {
@@ -6,7 +6,7 @@ var asyncToGenerator = require('./asyncToGenerator-8e5c36c8.cjs.prod.js');
6
6
  var _typeof = require('./typeof-8998e126.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
- var version = require('./version-b26d31be.cjs.prod.js');
9
+ var version = require('./version-a6e8ba26.cjs.prod.js');
10
10
  var internal = require('@valbuild/react/internal');
11
11
  var ui = require('@valbuild/ui');
12
12
  var reactRouter = require('@tanstack/react-router');
@@ -2486,7 +2486,7 @@ function useDemoServer(demo, config, options) {
2486
2486
  var run = /*#__PURE__*/function () {
2487
2487
  var _ref2 = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee() {
2488
2488
  var _optionsRef$current;
2489
- var _yield$import, createInTabValFetch, modules, fetch, uploads, tour, runtime;
2489
+ var _yield$import, createInTabValFetch, modules, fetch, uploads, _ref3, tour, tours, audiences, runtime;
2490
2490
  return asyncToGenerator._regenerator().w(function (_context) {
2491
2491
  while (1) switch (_context.n) {
2492
2492
  case 0:
@@ -2514,12 +2514,16 @@ function useDemoServer(demo, config, options) {
2514
2514
  return startDemoRelay(fetch);
2515
2515
  case 3:
2516
2516
  uploads = _context.v;
2517
- tour = (_optionsRef$current = optionsRef.current) === null || _optionsRef$current === void 0 ? void 0 : _optionsRef$current.tour;
2518
- runtime = _typeof._objectSpread2({
2517
+ _ref3 = (_optionsRef$current = optionsRef.current) !== null && _optionsRef$current !== void 0 ? _optionsRef$current : {}, tour = _ref3.tour, tours = _ref3.tours, audiences = _ref3.audiences;
2518
+ runtime = _typeof._objectSpread2(_typeof._objectSpread2(_typeof._objectSpread2({
2519
2519
  fetch: fetch,
2520
2520
  uploads: uploads
2521
2521
  }, tour ? {
2522
2522
  tour: tour
2523
+ } : {}), tours ? {
2524
+ tours: tours
2525
+ } : {}), audiences ? {
2526
+ audiences: audiences
2523
2527
  } : {});
2524
2528
  window.__VAL_DEMO__ = runtime;
2525
2529
  return _context.a(2, {
@@ -2557,8 +2561,8 @@ function useDemoServer(demo, config, options) {
2557
2561
  * to start is a site with no Studio and no reason given. Plain styles, since
2558
2562
  * the Studio's stylesheet is exactly what has not loaded.
2559
2563
  */
2560
- function DemoStartFailed(_ref3) {
2561
- var failure = _ref3.failure;
2564
+ function DemoStartFailed(_ref4) {
2565
+ var failure = _ref4.failure;
2562
2566
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
2563
2567
  role: "alert",
2564
2568
  style: {
@@ -5,7 +5,7 @@ import * as core from '@valbuild/core';
5
5
  export { core as expr };
6
6
  export { GenericSelector, Schema, VAL_EXTENSION, derefPatch, modules } from '@valbuild/core';
7
7
  import { stegaEncode, stegaDecodeStrings, attrs, raw, SET_AUTO_TAG_JSX_ENABLED, autoTagJSX } from '@valbuild/react/stega';
8
- import { r as readValEnableCookie, _ as _toConsumableArray, V as VERSION$1 } from './version-704cd609.esm.js';
8
+ import { r as readValEnableCookie, _ as _toConsumableArray, V as VERSION$1 } from './version-b2b4698f.esm.js';
9
9
  export { ValRichText } from '@valbuild/react/internal';
10
10
  import { VERSION, VAL_APP_PATH, VAL_OVERLAY_ID, VAL_APP_ID } from '@valbuild/ui';
11
11
  import { useRouter, useRouterState } from '@tanstack/react-router';
@@ -2462,7 +2462,7 @@ function useDemoServer(demo, config, options) {
2462
2462
  var run = /*#__PURE__*/function () {
2463
2463
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
2464
2464
  var _optionsRef$current;
2465
- var _yield$import, createInTabValFetch, modules, fetch, uploads, tour, runtime;
2465
+ var _yield$import, createInTabValFetch, modules, fetch, uploads, _ref3, tour, tours, audiences, runtime;
2466
2466
  return _regenerator().w(function (_context) {
2467
2467
  while (1) switch (_context.n) {
2468
2468
  case 0:
@@ -2490,12 +2490,16 @@ function useDemoServer(demo, config, options) {
2490
2490
  return startDemoRelay(fetch);
2491
2491
  case 3:
2492
2492
  uploads = _context.v;
2493
- tour = (_optionsRef$current = optionsRef.current) === null || _optionsRef$current === void 0 ? void 0 : _optionsRef$current.tour;
2494
- runtime = _objectSpread2({
2493
+ _ref3 = (_optionsRef$current = optionsRef.current) !== null && _optionsRef$current !== void 0 ? _optionsRef$current : {}, tour = _ref3.tour, tours = _ref3.tours, audiences = _ref3.audiences;
2494
+ runtime = _objectSpread2(_objectSpread2(_objectSpread2({
2495
2495
  fetch: fetch,
2496
2496
  uploads: uploads
2497
2497
  }, tour ? {
2498
2498
  tour: tour
2499
+ } : {}), tours ? {
2500
+ tours: tours
2501
+ } : {}), audiences ? {
2502
+ audiences: audiences
2499
2503
  } : {});
2500
2504
  window.__VAL_DEMO__ = runtime;
2501
2505
  return _context.a(2, {
@@ -2533,8 +2537,8 @@ function useDemoServer(demo, config, options) {
2533
2537
  * to start is a site with no Studio and no reason given. Plain styles, since
2534
2538
  * the Studio's stylesheet is exactly what has not loaded.
2535
2539
  */
2536
- function DemoStartFailed(_ref3) {
2537
- var failure = _ref3.failure;
2540
+ function DemoStartFailed(_ref4) {
2541
+ var failure = _ref4.failure;
2538
2542
  return /*#__PURE__*/jsxs("div", {
2539
2543
  role: "alert",
2540
2544
  style: {
@@ -95,7 +95,7 @@ var packageJson = {
95
95
  "tanstack-router",
96
96
  "react"
97
97
  ],
98
- version: "0.148.5",
98
+ version: "0.148.6",
99
99
  scripts: {
100
100
  typecheck: "tsc --noEmit",
101
101
  test: "jest"
@@ -95,7 +95,7 @@ var packageJson = {
95
95
  "tanstack-router",
96
96
  "react"
97
97
  ],
98
- version: "0.148.5",
98
+ version: "0.148.6",
99
99
  scripts: {
100
100
  typecheck: "tsc --noEmit",
101
101
  test: "jest"
@@ -93,7 +93,7 @@ var packageJson = {
93
93
  "tanstack-router",
94
94
  "react"
95
95
  ],
96
- version: "0.148.5",
96
+ version: "0.148.6",
97
97
  scripts: {
98
98
  typecheck: "tsc --noEmit",
99
99
  test: "jest"
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "tanstack-router",
15
15
  "react"
16
16
  ],
17
- "version": "0.148.5",
17
+ "version": "0.148.6",
18
18
  "main": "dist/valbuild-tanstack.cjs.js",
19
19
  "module": "dist/valbuild-tanstack.esm.js",
20
20
  "exports": {
@@ -47,13 +47,13 @@
47
47
  "exports": true
48
48
  },
49
49
  "dependencies": {
50
+ "@valbuild/language-server": "0.148.6",
51
+ "@valbuild/mcp": "0.148.6",
52
+ "@valbuild/react": "0.148.6",
53
+ "@valbuild/server": "0.148.6",
50
54
  "@valbuild/core": "0.148.2",
51
- "@valbuild/language-server": "0.148.5",
52
- "@valbuild/mcp": "0.148.5",
53
- "@valbuild/react": "0.148.5",
54
- "@valbuild/server": "0.148.5",
55
- "@valbuild/shared": "0.148.3",
56
- "@valbuild/ui": "0.148.5"
55
+ "@valbuild/ui": "0.148.6",
56
+ "@valbuild/shared": "0.148.6"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@tanstack/react-router": "^1.170.41",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = require('../../dist/version-bd8e7709.cjs.dev.js');
5
+ var version = require('../../dist/version-3c14318e.cjs.dev.js');
6
6
  var asyncToGenerator = require('../../dist/asyncToGenerator-c3823d62.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var _typeof = require('../../dist/typeof-dd0246a1.cjs.dev.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = require('../../dist/version-b26d31be.cjs.prod.js');
5
+ var version = require('../../dist/version-a6e8ba26.cjs.prod.js');
6
6
  var asyncToGenerator = require('../../dist/asyncToGenerator-8e5c36c8.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var _typeof = require('../../dist/typeof-8998e126.cjs.prod.js');
@@ -1,4 +1,4 @@
1
- import { V as VERSION, _ as _toConsumableArray, s as setValEnableCookieReader } from '../../dist/version-704cd609.esm.js';
1
+ import { V as VERSION, _ as _toConsumableArray, s as setValEnableCookieReader } from '../../dist/version-b2b4698f.esm.js';
2
2
  import { _ as _asyncToGenerator, a as _regenerator } from '../../dist/asyncToGenerator-500f022f.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import { _ as _objectSpread2, a as _slicedToArray, b as _createForOfIteratorHelper, g as _defineProperty, c as _typeof } from '../../dist/typeof-66e2d869.esm.js';