@valbuild/tanstack 0.148.4 → 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 +27 -0
- package/dist/declarations/src/ValApp.d.ts +3 -3
- package/dist/declarations/src/external_exempt_from_val_quickjs.d.ts +2 -2
- package/dist/valbuild-tanstack.cjs.dev.js +10 -6
- package/dist/valbuild-tanstack.cjs.prod.js +10 -6
- package/dist/valbuild-tanstack.esm.js +10 -6
- package/dist/{version-72f970e9.cjs.dev.js → version-3c14318e.cjs.dev.js} +1 -1
- package/dist/{version-8d0c426a.cjs.prod.js → version-a6e8ba26.cjs.prod.js} +1 -1
- package/dist/{version-3c18c08f.esm.js → version-b2b4698f.esm.js} +1 -1
- package/package.json +7 -7
- package/server/dist/valbuild-tanstack-server.cjs.dev.js +1 -1
- package/server/dist/valbuild-tanstack-server.cjs.prod.js +1 -1
- package/server/dist/valbuild-tanstack-server.esm.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
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
|
+
|
|
19
|
+
## 0.148.5
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`e1e41e2`](https://github.com/valbuild/val/commit/e1e41e2f2c3a2c511299f57ac36fcae50cc35bf6)]:
|
|
24
|
+
- @valbuild/ui@0.148.5
|
|
25
|
+
- @valbuild/react@0.148.5
|
|
26
|
+
- @valbuild/server@0.148.5
|
|
27
|
+
- @valbuild/language-server@0.148.5
|
|
28
|
+
- @valbuild/mcp@0.148.5
|
|
29
|
+
|
|
3
30
|
## 0.148.4
|
|
4
31
|
|
|
5
32
|
### 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
|
|
21
|
-
* `demo={{
|
|
22
|
-
*
|
|
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={{
|
|
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-
|
|
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
|
-
|
|
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(
|
|
2561
|
-
var 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-
|
|
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
|
-
|
|
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(
|
|
2561
|
-
var 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-
|
|
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
|
-
|
|
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(
|
|
2537
|
-
var failure =
|
|
2540
|
+
function DemoStartFailed(_ref4) {
|
|
2541
|
+
var failure = _ref4.failure;
|
|
2538
2542
|
return /*#__PURE__*/jsxs("div", {
|
|
2539
2543
|
role: "alert",
|
|
2540
2544
|
style: {
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"tanstack-router",
|
|
15
15
|
"react"
|
|
16
16
|
],
|
|
17
|
-
"version": "0.148.
|
|
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/
|
|
52
|
-
"@valbuild/
|
|
53
|
-
"@valbuild/react": "0.148.4",
|
|
54
|
-
"@valbuild/server": "0.148.4",
|
|
55
|
-
"@valbuild/shared": "0.148.3",
|
|
56
|
-
"@valbuild/ui": "0.148.4"
|
|
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-
|
|
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-
|
|
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-
|
|
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';
|