@valbuild/tanstack 0.149.6 → 0.149.7

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,20 @@
1
1
  # @valbuild/tanstack
2
2
 
3
+ ## 0.149.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#932](https://github.com/valbuild/val/pull/932) [`8be6e6a`](https://github.com/valbuild/val/commit/8be6e6abd2536b5758f0d5f8dfb1e468f29a7015) Thanks [@freekh](https://github.com/freekh)! - A site's Val can now check the site's content with its own rules: `Internal.selfCheck` in `@valbuild/tanstack`. The platform's upgrade page calls it on the version an upgrade moves to, so content the new version would reject is found before the upgrade is published, not after. It answers the errors that would hold a publish back, the same ones the Studio shows, and loads nothing until it is called, so it adds nothing to a site's pages.
8
+
9
+ - [#930](https://github.com/valbuild/val/pull/930) [`8366c57`](https://github.com/valbuild/val/commit/8366c575df66ee19c3400b7fdbc14a8fd517afd6) Thanks [@freekh](https://github.com/freekh)! - Every loading spinner in the Studio is now drawn the same way, at even sizes. Odd-sized spinners, of which the Studio had several, are known to wobble in Safari.
10
+ - Updated dependencies [[`8be6e6a`](https://github.com/valbuild/val/commit/8be6e6abd2536b5758f0d5f8dfb1e468f29a7015), [`cc2a37a`](https://github.com/valbuild/val/commit/cc2a37a74c52cab6fa062e8252fb292b84a479c3), [`7e78b1f`](https://github.com/valbuild/val/commit/7e78b1f863c47d4f38d9f1c9855a92e711170865), [`8366c57`](https://github.com/valbuild/val/commit/8366c575df66ee19c3400b7fdbc14a8fd517afd6)]:
11
+ - @valbuild/shared@0.149.7
12
+ - @valbuild/ui@0.149.7
13
+ - @valbuild/language-server@0.149.7
14
+ - @valbuild/mcp@0.149.7
15
+ - @valbuild/react@0.149.7
16
+ - @valbuild/server@0.149.7
17
+
3
18
  ## 0.149.6
4
19
 
5
20
  ### Patch Changes
@@ -24,6 +24,7 @@ export { ValApp } from "./ValApp.js";
24
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
+ import type { selfCheck as selfCheckOf } from "@valbuild/shared/internal";
27
28
  import { VERSION } from "./version.js";
28
29
  export type * as t from "./ValTypes.js";
29
30
  export type { DecodeVal } from "@valbuild/react/stega";
@@ -42,5 +43,6 @@ type InternalWithTanStackVersion = Omit<typeof InternalCore, "VERSION"> & {
42
43
  VERSION: typeof InternalCore.VERSION & {
43
44
  tanstack: typeof VERSION;
44
45
  };
46
+ selfCheck: typeof selfCheckOf;
45
47
  };
46
48
  export declare const Internal: InternalWithTanStackVersion;
@@ -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-1d6833d8.cjs.dev.js');
9
+ var version = require('./version-4d019c99.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');
@@ -2526,20 +2526,22 @@ var ValApp = function ValApp(_ref) {
2526
2526
  zIndex: 2147483647
2527
2527
  },
2528
2528
  children: [/*#__PURE__*/jsxRuntime.jsx("style", {
2529
- children: ".".concat(valPrefixedClass, "animate-spin {\n animation: ").concat(valPrefixedClass, "spin 2s linear infinite;\n}\n@keyframes ").concat(valPrefixedClass, "spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}")
2530
- }), /*#__PURE__*/jsxRuntime.jsx("svg", {
2531
- xmlns: "http://www.w3.org/2000/svg",
2532
- width: "24",
2533
- height: "24",
2534
- viewBox: "0 0 24 24",
2535
- fill: "none",
2536
- stroke: "currentColor",
2537
- strokeWidth: "2",
2538
- strokeLinecap: "round",
2539
- strokeLinejoin: "round",
2529
+ children: ".".concat(valPrefixedClass, "animate-spin {\n display: inline-flex;\n animation: ").concat(valPrefixedClass, "spin 2s linear infinite;\n will-change: transform;\n}\n@keyframes ").concat(valPrefixedClass, "spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}")
2530
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
2540
2531
  className: cn(["animate-spin"]),
2541
- children: /*#__PURE__*/jsxRuntime.jsx("path", {
2542
- d: "M21 12a9 9 0 1 1-6.219-8.56"
2532
+ children: /*#__PURE__*/jsxRuntime.jsx("svg", {
2533
+ xmlns: "http://www.w3.org/2000/svg",
2534
+ width: "24",
2535
+ height: "24",
2536
+ viewBox: "0 0 24 24",
2537
+ fill: "none",
2538
+ stroke: "currentColor",
2539
+ strokeWidth: "2",
2540
+ strokeLinecap: "round",
2541
+ strokeLinejoin: "round",
2542
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
2543
+ d: "M21 12a9 9 0 1 1-6.219-8.56"
2544
+ })
2543
2545
  })
2544
2546
  })]
2545
2547
  });
@@ -2798,10 +2800,37 @@ stega.autoTagJSX();
2798
2800
  * keeps everything the emitter needs reachable through the package entry point.
2799
2801
  */
2800
2802
 
2803
+ /**
2804
+ * This Val checking a site with its own rules, for the platform's upgrade
2805
+ * page: see `selfCheck` in `@valbuild/shared`. Reached here because this
2806
+ * package is the copy of Val that made the site's schemas, and it is in the
2807
+ * site's vendor layer already (`val.config.ts` imports `initVal` from it).
2808
+ *
2809
+ * Loaded when called, never at import time: `@valbuild/shared/internal` is
2810
+ * one module that holds zod, and a static import would put it in the bundle
2811
+ * of every page of every Val site (see `getClient` in `ValTanStackProvider`).
2812
+ */
2813
+ var selfCheck = /*#__PURE__*/function () {
2814
+ var _ref = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee(valModules, options) {
2815
+ return asyncToGenerator._regenerator().w(function (_context) {
2816
+ while (1) switch (_context.n) {
2817
+ case 0:
2818
+ _context.n = 1;
2819
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@valbuild/shared/internal')); });
2820
+ case 1:
2821
+ return _context.a(2, _context.v.selfCheck(valModules, options));
2822
+ }
2823
+ }, _callee);
2824
+ }));
2825
+ return function selfCheck(_x, _x2) {
2826
+ return _ref.apply(this, arguments);
2827
+ };
2828
+ }();
2801
2829
  var Internal = _typeof._objectSpread2(_typeof._objectSpread2({}, core.Internal), {}, {
2802
2830
  VERSION: _typeof._objectSpread2(_typeof._objectSpread2({}, core.Internal.VERSION), {}, {
2803
2831
  tanstack: version.VERSION
2804
- })
2832
+ }),
2833
+ selfCheck: selfCheck
2805
2834
  });
2806
2835
 
2807
2836
  Object.defineProperty(exports, 'GenericSelector', {
@@ -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-9e37d072.cjs.prod.js');
9
+ var version = require('./version-bab3bb90.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');
@@ -2526,20 +2526,22 @@ var ValApp = function ValApp(_ref) {
2526
2526
  zIndex: 2147483647
2527
2527
  },
2528
2528
  children: [/*#__PURE__*/jsxRuntime.jsx("style", {
2529
- children: ".".concat(valPrefixedClass, "animate-spin {\n animation: ").concat(valPrefixedClass, "spin 2s linear infinite;\n}\n@keyframes ").concat(valPrefixedClass, "spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}")
2530
- }), /*#__PURE__*/jsxRuntime.jsx("svg", {
2531
- xmlns: "http://www.w3.org/2000/svg",
2532
- width: "24",
2533
- height: "24",
2534
- viewBox: "0 0 24 24",
2535
- fill: "none",
2536
- stroke: "currentColor",
2537
- strokeWidth: "2",
2538
- strokeLinecap: "round",
2539
- strokeLinejoin: "round",
2529
+ children: ".".concat(valPrefixedClass, "animate-spin {\n display: inline-flex;\n animation: ").concat(valPrefixedClass, "spin 2s linear infinite;\n will-change: transform;\n}\n@keyframes ").concat(valPrefixedClass, "spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}")
2530
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
2540
2531
  className: cn(["animate-spin"]),
2541
- children: /*#__PURE__*/jsxRuntime.jsx("path", {
2542
- d: "M21 12a9 9 0 1 1-6.219-8.56"
2532
+ children: /*#__PURE__*/jsxRuntime.jsx("svg", {
2533
+ xmlns: "http://www.w3.org/2000/svg",
2534
+ width: "24",
2535
+ height: "24",
2536
+ viewBox: "0 0 24 24",
2537
+ fill: "none",
2538
+ stroke: "currentColor",
2539
+ strokeWidth: "2",
2540
+ strokeLinecap: "round",
2541
+ strokeLinejoin: "round",
2542
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
2543
+ d: "M21 12a9 9 0 1 1-6.219-8.56"
2544
+ })
2543
2545
  })
2544
2546
  })]
2545
2547
  });
@@ -2798,10 +2800,37 @@ stega.autoTagJSX();
2798
2800
  * keeps everything the emitter needs reachable through the package entry point.
2799
2801
  */
2800
2802
 
2803
+ /**
2804
+ * This Val checking a site with its own rules, for the platform's upgrade
2805
+ * page: see `selfCheck` in `@valbuild/shared`. Reached here because this
2806
+ * package is the copy of Val that made the site's schemas, and it is in the
2807
+ * site's vendor layer already (`val.config.ts` imports `initVal` from it).
2808
+ *
2809
+ * Loaded when called, never at import time: `@valbuild/shared/internal` is
2810
+ * one module that holds zod, and a static import would put it in the bundle
2811
+ * of every page of every Val site (see `getClient` in `ValTanStackProvider`).
2812
+ */
2813
+ var selfCheck = /*#__PURE__*/function () {
2814
+ var _ref = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee(valModules, options) {
2815
+ return asyncToGenerator._regenerator().w(function (_context) {
2816
+ while (1) switch (_context.n) {
2817
+ case 0:
2818
+ _context.n = 1;
2819
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@valbuild/shared/internal')); });
2820
+ case 1:
2821
+ return _context.a(2, _context.v.selfCheck(valModules, options));
2822
+ }
2823
+ }, _callee);
2824
+ }));
2825
+ return function selfCheck(_x, _x2) {
2826
+ return _ref.apply(this, arguments);
2827
+ };
2828
+ }();
2801
2829
  var Internal = _typeof._objectSpread2(_typeof._objectSpread2({}, core.Internal), {}, {
2802
2830
  VERSION: _typeof._objectSpread2(_typeof._objectSpread2({}, core.Internal.VERSION), {}, {
2803
2831
  tanstack: version.VERSION
2804
- })
2832
+ }),
2833
+ selfCheck: selfCheck
2805
2834
  });
2806
2835
 
2807
2836
  Object.defineProperty(exports, 'GenericSelector', {
@@ -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-f7d16a89.esm.js';
8
+ import { r as readValEnableCookie, _ as _toConsumableArray, V as VERSION$1 } from './version-c002569d.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';
@@ -2502,20 +2502,22 @@ var ValApp = function ValApp(_ref) {
2502
2502
  zIndex: 2147483647
2503
2503
  },
2504
2504
  children: [/*#__PURE__*/jsx("style", {
2505
- children: ".".concat(valPrefixedClass, "animate-spin {\n animation: ").concat(valPrefixedClass, "spin 2s linear infinite;\n}\n@keyframes ").concat(valPrefixedClass, "spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}")
2506
- }), /*#__PURE__*/jsx("svg", {
2507
- xmlns: "http://www.w3.org/2000/svg",
2508
- width: "24",
2509
- height: "24",
2510
- viewBox: "0 0 24 24",
2511
- fill: "none",
2512
- stroke: "currentColor",
2513
- strokeWidth: "2",
2514
- strokeLinecap: "round",
2515
- strokeLinejoin: "round",
2505
+ children: ".".concat(valPrefixedClass, "animate-spin {\n display: inline-flex;\n animation: ").concat(valPrefixedClass, "spin 2s linear infinite;\n will-change: transform;\n}\n@keyframes ").concat(valPrefixedClass, "spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}")
2506
+ }), /*#__PURE__*/jsx("span", {
2516
2507
  className: cn(["animate-spin"]),
2517
- children: /*#__PURE__*/jsx("path", {
2518
- d: "M21 12a9 9 0 1 1-6.219-8.56"
2508
+ children: /*#__PURE__*/jsx("svg", {
2509
+ xmlns: "http://www.w3.org/2000/svg",
2510
+ width: "24",
2511
+ height: "24",
2512
+ viewBox: "0 0 24 24",
2513
+ fill: "none",
2514
+ stroke: "currentColor",
2515
+ strokeWidth: "2",
2516
+ strokeLinecap: "round",
2517
+ strokeLinejoin: "round",
2518
+ children: /*#__PURE__*/jsx("path", {
2519
+ d: "M21 12a9 9 0 1 1-6.219-8.56"
2520
+ })
2519
2521
  })
2520
2522
  })]
2521
2523
  });
@@ -2774,10 +2776,37 @@ autoTagJSX();
2774
2776
  * keeps everything the emitter needs reachable through the package entry point.
2775
2777
  */
2776
2778
 
2779
+ /**
2780
+ * This Val checking a site with its own rules, for the platform's upgrade
2781
+ * page: see `selfCheck` in `@valbuild/shared`. Reached here because this
2782
+ * package is the copy of Val that made the site's schemas, and it is in the
2783
+ * site's vendor layer already (`val.config.ts` imports `initVal` from it).
2784
+ *
2785
+ * Loaded when called, never at import time: `@valbuild/shared/internal` is
2786
+ * one module that holds zod, and a static import would put it in the bundle
2787
+ * of every page of every Val site (see `getClient` in `ValTanStackProvider`).
2788
+ */
2789
+ var selfCheck = /*#__PURE__*/function () {
2790
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(valModules, options) {
2791
+ return _regenerator().w(function (_context) {
2792
+ while (1) switch (_context.n) {
2793
+ case 0:
2794
+ _context.n = 1;
2795
+ return import('@valbuild/shared/internal');
2796
+ case 1:
2797
+ return _context.a(2, _context.v.selfCheck(valModules, options));
2798
+ }
2799
+ }, _callee);
2800
+ }));
2801
+ return function selfCheck(_x, _x2) {
2802
+ return _ref.apply(this, arguments);
2803
+ };
2804
+ }();
2777
2805
  var Internal = _objectSpread2(_objectSpread2({}, Internal$1), {}, {
2778
2806
  VERSION: _objectSpread2(_objectSpread2({}, Internal$1.VERSION), {}, {
2779
2807
  tanstack: VERSION$1
2780
- })
2808
+ }),
2809
+ selfCheck: selfCheck
2781
2810
  });
2782
2811
 
2783
2812
  export { Internal, ValApp, ValImage, ValModulesClient, ValProvider, ValVideo, initVal, useRegisterValModules };
@@ -95,7 +95,7 @@ var packageJson = {
95
95
  "tanstack-router",
96
96
  "react"
97
97
  ],
98
- version: "0.149.6",
98
+ version: "0.149.7",
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.149.6",
98
+ version: "0.149.7",
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.149.6",
96
+ version: "0.149.7",
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.149.6",
17
+ "version": "0.149.7",
18
18
  "main": "dist/valbuild-tanstack.cjs.js",
19
19
  "module": "dist/valbuild-tanstack.esm.js",
20
20
  "exports": {
@@ -48,12 +48,12 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@valbuild/core": "0.148.7",
51
- "@valbuild/language-server": "0.149.6",
52
- "@valbuild/mcp": "0.149.6",
53
- "@valbuild/react": "0.149.6",
54
- "@valbuild/server": "0.149.6",
55
- "@valbuild/shared": "0.148.7",
56
- "@valbuild/ui": "0.149.6"
51
+ "@valbuild/language-server": "0.149.7",
52
+ "@valbuild/mcp": "0.149.7",
53
+ "@valbuild/react": "0.149.7",
54
+ "@valbuild/server": "0.149.7",
55
+ "@valbuild/shared": "0.149.7",
56
+ "@valbuild/ui": "0.149.7"
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-1d6833d8.cjs.dev.js');
5
+ var version = require('../../dist/version-4d019c99.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-9e37d072.cjs.prod.js');
5
+ var version = require('../../dist/version-bab3bb90.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-f7d16a89.esm.js';
1
+ import { V as VERSION, _ as _toConsumableArray, s as setValEnableCookieReader } from '../../dist/version-c002569d.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';