@valbuild/tanstack 0.150.4 → 0.150.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 +22 -0
- package/README.md +17 -0
- package/autotag/dist/valbuild-tanstack-autotag.cjs.d.ts +2 -0
- package/autotag/dist/valbuild-tanstack-autotag.cjs.dev.js +20 -0
- package/autotag/dist/valbuild-tanstack-autotag.cjs.js +7 -0
- package/autotag/dist/valbuild-tanstack-autotag.cjs.prod.js +20 -0
- package/autotag/dist/valbuild-tanstack-autotag.esm.js +18 -0
- package/autotag/package.json +4 -0
- package/dist/declarations/src/autotag/index.d.ts +1 -0
- package/dist/valbuild-tanstack.cjs.dev.js +1 -1
- package/dist/valbuild-tanstack.cjs.prod.js +1 -1
- package/dist/valbuild-tanstack.esm.js +1 -1
- package/dist/{version-72323654.esm.js → version-5ae72698.esm.js} +9 -3
- package/dist/{version-90e26ce5.cjs.prod.js → version-cad4f3cb.cjs.prod.js} +9 -3
- package/dist/{version-05d76d75.cjs.dev.js → version-e931a447.cjs.dev.js} +9 -3
- package/package.json +15 -9
- 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,27 @@
|
|
|
1
1
|
# @valbuild/tanstack
|
|
2
2
|
|
|
3
|
+
## 0.150.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#962](https://github.com/valbuild/val/pull/962) [`f84222b`](https://github.com/valbuild/val/commit/f84222b2c902d8725b1da96f79481060fb8b9842) Thanks [@freekh](https://github.com/freekh)! - Text rendered through `React.createElement` no longer keeps Val's invisible edit tag. TanStack Router's `<Link>` renders its link that way, so with content analytics on, the text of a link built from content carried the tag on every visitor's page.
|
|
8
|
+
|
|
9
|
+
New: `import "@valbuild/tanstack/autotag"` as the first import of `src/router.tsx`. Under `vite dev`, components whose modules ran before `@valbuild/tanstack` was imported were not click-to-edit, and the leak warning named their text as leaked. A production build was not affected.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`f84222b`](https://github.com/valbuild/val/commit/f84222b2c902d8725b1da96f79481060fb8b9842)]:
|
|
12
|
+
- @valbuild/react@0.150.6
|
|
13
|
+
|
|
14
|
+
## 0.150.5
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`47a31cc`](https://github.com/valbuild/val/commit/47a31cc3574841acf4f3207d5053f8bc728d25cd)]:
|
|
19
|
+
- @valbuild/server@0.150.5
|
|
20
|
+
- @valbuild/ui@0.150.5
|
|
21
|
+
- @valbuild/language-server@0.150.5
|
|
22
|
+
- @valbuild/mcp@0.150.5
|
|
23
|
+
- @valbuild/react@0.150.5
|
|
24
|
+
|
|
3
25
|
## 0.150.4
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -183,6 +183,23 @@ import { createFileRoute } from "@tanstack/react-router";
|
|
|
183
183
|
export const Route = createFileRoute("/val/")({ component: () => null }); // and "/val/$"
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
+
### `src/router.tsx` — import `@valbuild/tanstack/autotag` first
|
|
187
|
+
|
|
188
|
+
```ts
|
|
189
|
+
// src/router.tsx
|
|
190
|
+
import "@valbuild/tanstack/autotag";
|
|
191
|
+
import { createRouter } from "@tanstack/react-router";
|
|
192
|
+
import { routeTree } from "./routeTree.gen";
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
The first import, before the router and the route tree. It makes Val's edit
|
|
196
|
+
tags into `data-val-path` attributes, which is what makes content
|
|
197
|
+
click-to-edit -- and keeps them out of a visitor's text when content analytics
|
|
198
|
+
is on. `@valbuild/tanstack` does it too, but under `vite dev` a module that
|
|
199
|
+
ran before it keeps React's own functions, so in development some components
|
|
200
|
+
would not be editable and the leak warning would name their text. A
|
|
201
|
+
production build is not affected.
|
|
202
|
+
|
|
186
203
|
### The site's layout — `ValProvider`
|
|
187
204
|
|
|
188
205
|
Put the site's own chrome and `ValProvider` in a **pathless layout route**, not
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from "../../dist/declarations/src/autotag/index.js";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtdGFuc3RhY2stYXV0b3RhZy5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9hdXRvdGFnL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var stega = require('@valbuild/react/stega');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* `import "@valbuild/tanstack/autotag"`, as the FIRST import of the app's
|
|
7
|
+
* `src/router.tsx`: Val's edit tags turned into `data-val-path` attributes
|
|
8
|
+
* from the very first component.
|
|
9
|
+
*
|
|
10
|
+
* `@valbuild/tanstack` does the same when it is imported, but by then
|
|
11
|
+
* `@tanstack/react-router` -- which it imports -- has been, and under
|
|
12
|
+
* `vite dev` a module takes its own copy of what it imports from React when
|
|
13
|
+
* it first runs. A component whose module ran before the wrapping kept
|
|
14
|
+
* React's own `jsx` and `createElement`, and its text kept its edit tag:
|
|
15
|
+
* on the page in development, and named by the leak warning as if the app
|
|
16
|
+
* had leaked it. A production build reads React's exports when it calls
|
|
17
|
+
* them, so there it makes no difference -- which is why it is safe to have
|
|
18
|
+
* both.
|
|
19
|
+
*/
|
|
20
|
+
stega.autoTagJSX();
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var stega = require('@valbuild/react/stega');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* `import "@valbuild/tanstack/autotag"`, as the FIRST import of the app's
|
|
7
|
+
* `src/router.tsx`: Val's edit tags turned into `data-val-path` attributes
|
|
8
|
+
* from the very first component.
|
|
9
|
+
*
|
|
10
|
+
* `@valbuild/tanstack` does the same when it is imported, but by then
|
|
11
|
+
* `@tanstack/react-router` -- which it imports -- has been, and under
|
|
12
|
+
* `vite dev` a module takes its own copy of what it imports from React when
|
|
13
|
+
* it first runs. A component whose module ran before the wrapping kept
|
|
14
|
+
* React's own `jsx` and `createElement`, and its text kept its edit tag:
|
|
15
|
+
* on the page in development, and named by the leak warning as if the app
|
|
16
|
+
* had leaked it. A production build reads React's exports when it calls
|
|
17
|
+
* them, so there it makes no difference -- which is why it is safe to have
|
|
18
|
+
* both.
|
|
19
|
+
*/
|
|
20
|
+
stega.autoTagJSX();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { autoTagJSX } from '@valbuild/react/stega';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `import "@valbuild/tanstack/autotag"`, as the FIRST import of the app's
|
|
5
|
+
* `src/router.tsx`: Val's edit tags turned into `data-val-path` attributes
|
|
6
|
+
* from the very first component.
|
|
7
|
+
*
|
|
8
|
+
* `@valbuild/tanstack` does the same when it is imported, but by then
|
|
9
|
+
* `@tanstack/react-router` -- which it imports -- has been, and under
|
|
10
|
+
* `vite dev` a module takes its own copy of what it imports from React when
|
|
11
|
+
* it first runs. A component whose module ran before the wrapping kept
|
|
12
|
+
* React's own `jsx` and `createElement`, and its text kept its edit tag:
|
|
13
|
+
* on the page in development, and named by the leak warning as if the app
|
|
14
|
+
* had leaked it. A production build reads React's exports when it calls
|
|
15
|
+
* them, so there it makes no difference -- which is why it is safe to have
|
|
16
|
+
* both.
|
|
17
|
+
*/
|
|
18
|
+
autoTagJSX();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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-e931a447.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');
|
|
@@ -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-cad4f3cb.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');
|
|
@@ -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, isReactDevelopmentBuild, watchStegaLeaks, stegaLeakMessage, 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-5ae72698.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';
|
|
@@ -93,7 +93,7 @@ var packageJson = {
|
|
|
93
93
|
"tanstack-router",
|
|
94
94
|
"react"
|
|
95
95
|
],
|
|
96
|
-
version: "0.150.
|
|
96
|
+
version: "0.150.6",
|
|
97
97
|
scripts: {
|
|
98
98
|
typecheck: "tsc --noEmit",
|
|
99
99
|
test: "jest"
|
|
@@ -117,6 +117,10 @@ var packageJson = {
|
|
|
117
117
|
module: "./server/dist/valbuild-tanstack-server.esm.js",
|
|
118
118
|
"default": "./server/dist/valbuild-tanstack-server.cjs.js"
|
|
119
119
|
},
|
|
120
|
+
"./autotag": {
|
|
121
|
+
module: "./autotag/dist/valbuild-tanstack-autotag.esm.js",
|
|
122
|
+
"default": "./autotag/dist/valbuild-tanstack-autotag.cjs.js"
|
|
123
|
+
},
|
|
120
124
|
"./package.json": "./package.json"
|
|
121
125
|
},
|
|
122
126
|
types: "dist/valbuild-tanstack.cjs.d.ts",
|
|
@@ -125,7 +129,8 @@ var packageJson = {
|
|
|
125
129
|
"./index.ts",
|
|
126
130
|
"./server/index.ts",
|
|
127
131
|
"./client/index.ts",
|
|
128
|
-
"./demo/index.ts"
|
|
132
|
+
"./demo/index.ts",
|
|
133
|
+
"./autotag/index.ts"
|
|
129
134
|
],
|
|
130
135
|
exports: true
|
|
131
136
|
},
|
|
@@ -164,7 +169,8 @@ var packageJson = {
|
|
|
164
169
|
"dist",
|
|
165
170
|
"client",
|
|
166
171
|
"server",
|
|
167
|
-
"demo"
|
|
172
|
+
"demo",
|
|
173
|
+
"autotag"
|
|
168
174
|
]
|
|
169
175
|
};
|
|
170
176
|
|
|
@@ -95,7 +95,7 @@ var packageJson = {
|
|
|
95
95
|
"tanstack-router",
|
|
96
96
|
"react"
|
|
97
97
|
],
|
|
98
|
-
version: "0.150.
|
|
98
|
+
version: "0.150.6",
|
|
99
99
|
scripts: {
|
|
100
100
|
typecheck: "tsc --noEmit",
|
|
101
101
|
test: "jest"
|
|
@@ -119,6 +119,10 @@ var packageJson = {
|
|
|
119
119
|
module: "./server/dist/valbuild-tanstack-server.esm.js",
|
|
120
120
|
"default": "./server/dist/valbuild-tanstack-server.cjs.js"
|
|
121
121
|
},
|
|
122
|
+
"./autotag": {
|
|
123
|
+
module: "./autotag/dist/valbuild-tanstack-autotag.esm.js",
|
|
124
|
+
"default": "./autotag/dist/valbuild-tanstack-autotag.cjs.js"
|
|
125
|
+
},
|
|
122
126
|
"./package.json": "./package.json"
|
|
123
127
|
},
|
|
124
128
|
types: "dist/valbuild-tanstack.cjs.d.ts",
|
|
@@ -127,7 +131,8 @@ var packageJson = {
|
|
|
127
131
|
"./index.ts",
|
|
128
132
|
"./server/index.ts",
|
|
129
133
|
"./client/index.ts",
|
|
130
|
-
"./demo/index.ts"
|
|
134
|
+
"./demo/index.ts",
|
|
135
|
+
"./autotag/index.ts"
|
|
131
136
|
],
|
|
132
137
|
exports: true
|
|
133
138
|
},
|
|
@@ -166,7 +171,8 @@ var packageJson = {
|
|
|
166
171
|
"dist",
|
|
167
172
|
"client",
|
|
168
173
|
"server",
|
|
169
|
-
"demo"
|
|
174
|
+
"demo",
|
|
175
|
+
"autotag"
|
|
170
176
|
]
|
|
171
177
|
};
|
|
172
178
|
|
|
@@ -95,7 +95,7 @@ var packageJson = {
|
|
|
95
95
|
"tanstack-router",
|
|
96
96
|
"react"
|
|
97
97
|
],
|
|
98
|
-
version: "0.150.
|
|
98
|
+
version: "0.150.6",
|
|
99
99
|
scripts: {
|
|
100
100
|
typecheck: "tsc --noEmit",
|
|
101
101
|
test: "jest"
|
|
@@ -119,6 +119,10 @@ var packageJson = {
|
|
|
119
119
|
module: "./server/dist/valbuild-tanstack-server.esm.js",
|
|
120
120
|
"default": "./server/dist/valbuild-tanstack-server.cjs.js"
|
|
121
121
|
},
|
|
122
|
+
"./autotag": {
|
|
123
|
+
module: "./autotag/dist/valbuild-tanstack-autotag.esm.js",
|
|
124
|
+
"default": "./autotag/dist/valbuild-tanstack-autotag.cjs.js"
|
|
125
|
+
},
|
|
122
126
|
"./package.json": "./package.json"
|
|
123
127
|
},
|
|
124
128
|
types: "dist/valbuild-tanstack.cjs.d.ts",
|
|
@@ -127,7 +131,8 @@ var packageJson = {
|
|
|
127
131
|
"./index.ts",
|
|
128
132
|
"./server/index.ts",
|
|
129
133
|
"./client/index.ts",
|
|
130
|
-
"./demo/index.ts"
|
|
134
|
+
"./demo/index.ts",
|
|
135
|
+
"./autotag/index.ts"
|
|
131
136
|
],
|
|
132
137
|
exports: true
|
|
133
138
|
},
|
|
@@ -166,7 +171,8 @@ var packageJson = {
|
|
|
166
171
|
"dist",
|
|
167
172
|
"client",
|
|
168
173
|
"server",
|
|
169
|
-
"demo"
|
|
174
|
+
"demo",
|
|
175
|
+
"autotag"
|
|
170
176
|
]
|
|
171
177
|
};
|
|
172
178
|
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"tanstack-router",
|
|
15
15
|
"react"
|
|
16
16
|
],
|
|
17
|
-
"version": "0.150.
|
|
17
|
+
"version": "0.150.6",
|
|
18
18
|
"main": "dist/valbuild-tanstack.cjs.js",
|
|
19
19
|
"module": "dist/valbuild-tanstack.esm.js",
|
|
20
20
|
"exports": {
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
"module": "./server/dist/valbuild-tanstack-server.esm.js",
|
|
35
35
|
"default": "./server/dist/valbuild-tanstack-server.cjs.js"
|
|
36
36
|
},
|
|
37
|
+
"./autotag": {
|
|
38
|
+
"module": "./autotag/dist/valbuild-tanstack-autotag.esm.js",
|
|
39
|
+
"default": "./autotag/dist/valbuild-tanstack-autotag.cjs.js"
|
|
40
|
+
},
|
|
37
41
|
"./package.json": "./package.json"
|
|
38
42
|
},
|
|
39
43
|
"types": "dist/valbuild-tanstack.cjs.d.ts",
|
|
@@ -42,18 +46,19 @@
|
|
|
42
46
|
"./index.ts",
|
|
43
47
|
"./server/index.ts",
|
|
44
48
|
"./client/index.ts",
|
|
45
|
-
"./demo/index.ts"
|
|
49
|
+
"./demo/index.ts",
|
|
50
|
+
"./autotag/index.ts"
|
|
46
51
|
],
|
|
47
52
|
"exports": true
|
|
48
53
|
},
|
|
49
54
|
"dependencies": {
|
|
50
|
-
"@valbuild/
|
|
51
|
-
"@valbuild/
|
|
52
|
-
"@valbuild/
|
|
53
|
-
"@valbuild/server": "0.150.3",
|
|
54
|
-
"@valbuild/mcp": "0.150.3",
|
|
55
|
+
"@valbuild/mcp": "0.150.5",
|
|
56
|
+
"@valbuild/react": "0.150.6",
|
|
57
|
+
"@valbuild/server": "0.150.5",
|
|
55
58
|
"@valbuild/shared": "0.150.3",
|
|
56
|
-
"@valbuild/ui": "0.150.
|
|
59
|
+
"@valbuild/ui": "0.150.5",
|
|
60
|
+
"@valbuild/core": "0.150.3",
|
|
61
|
+
"@valbuild/language-server": "0.150.5"
|
|
57
62
|
},
|
|
58
63
|
"devDependencies": {
|
|
59
64
|
"@tanstack/react-router": "^1.170.41",
|
|
@@ -81,7 +86,8 @@
|
|
|
81
86
|
"dist",
|
|
82
87
|
"client",
|
|
83
88
|
"server",
|
|
84
|
-
"demo"
|
|
89
|
+
"demo",
|
|
90
|
+
"autotag"
|
|
85
91
|
],
|
|
86
92
|
"scripts": {
|
|
87
93
|
"typecheck": "tsc --noEmit",
|
|
@@ -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-e931a447.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-cad4f3cb.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-5ae72698.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';
|