@valbuild/tanstack 0.146.3 → 0.146.4
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 +18 -0
- package/dist/valbuild-tanstack.cjs.dev.js +20 -2
- package/dist/valbuild-tanstack.cjs.prod.js +20 -2
- package/dist/valbuild-tanstack.esm.js +20 -2
- package/dist/{version-1226397e.cjs.dev.js → version-1f65da50.cjs.dev.js} +1 -1
- package/dist/{version-2e1a465b.cjs.prod.js → version-2cbea560.cjs.prod.js} +1 -1
- package/dist/{version-d506fa5a.esm.js → version-4da65f4f.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,23 @@
|
|
|
1
1
|
# @valbuild/tanstack
|
|
2
2
|
|
|
3
|
+
## 0.146.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#870](https://github.com/valbuild/val/pull/870) [`81f2e80`](https://github.com/valbuild/val/commit/81f2e803c4cefdf58bbe6856c06e98ace95a8e0b) Thanks [@freekh](https://github.com/freekh)! - The canvas works on a page behind your site's own login.
|
|
8
|
+
|
|
9
|
+
A site with its own sign-in (a dashboard, an intranet, a members' area) can be edited in the canvas. The canvas is a frame on the same origin as the Studio, so it sends your site's cookies like any other tab: if you are signed in to the site, the canvas shows the page signed in as you.
|
|
10
|
+
|
|
11
|
+
If you were not signed in, the site redirected the canvas to its login page, and the canvas then broke. That page mounted Val's whole overlay inside the canvas, a Studio inside the Studio. The canvas stayed on "Preview is not ready yet" through the sign-in and after it, until you pressed Reload. Now a page shown in the Studio's canvas counts as the canvas wherever it navigated to, so you can sign in inside the canvas and keep editing.
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`81f2e80`](https://github.com/valbuild/val/commit/81f2e803c4cefdf58bbe6856c06e98ace95a8e0b), [`59ff6c3`](https://github.com/valbuild/val/commit/59ff6c367bc313b2bb7718b00c1641aaccab949d), [`c31f609`](https://github.com/valbuild/val/commit/c31f609fdeed79aa0e139fa4f652ba0684e96ea3)]:
|
|
14
|
+
- @valbuild/shared@0.146.4
|
|
15
|
+
- @valbuild/ui@0.146.4
|
|
16
|
+
- @valbuild/server@0.146.4
|
|
17
|
+
- @valbuild/language-server@0.146.4
|
|
18
|
+
- @valbuild/mcp@0.146.4
|
|
19
|
+
- @valbuild/react@0.146.4
|
|
20
|
+
|
|
3
21
|
## 0.146.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var version = require('./version-
|
|
5
|
+
var version = require('./version-1f65da50.cjs.dev.js');
|
|
6
6
|
var createForOfIteratorHelper = require('./createForOfIteratorHelper-4497beef.cjs.dev.js');
|
|
7
7
|
var core = require('@valbuild/core');
|
|
8
8
|
var stega = require('@valbuild/react/stega');
|
|
@@ -1162,7 +1162,7 @@ var ValTanStackProvider = function ValTanStackProvider(props) {
|
|
|
1162
1162
|
setMountOverlay(false);
|
|
1163
1163
|
return;
|
|
1164
1164
|
}
|
|
1165
|
-
setIsCanvas(client.isValCanvasFrame(location.search));
|
|
1165
|
+
setIsCanvas(client.isValCanvasFrame(location.search, readParentPathname()));
|
|
1166
1166
|
setMountOverlay(hasValEnableCookie(document.cookie));
|
|
1167
1167
|
}, []);
|
|
1168
1168
|
React__default["default"].useEffect(function () {
|
|
@@ -1698,6 +1698,24 @@ function isValStudioPath(pathname) {
|
|
|
1698
1698
|
return pathname.startsWith("/val");
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
+
/**
|
|
1702
|
+
* The path of the window framing this document, or `null`.
|
|
1703
|
+
*
|
|
1704
|
+
* `null` for a top-level document, and for a parent on another origin: reading
|
|
1705
|
+
* a cross-origin `location` throws, and a page on another origin is not the
|
|
1706
|
+
* studio, whose canvas is always the same app. See `isValCanvasFrame`.
|
|
1707
|
+
*/
|
|
1708
|
+
function readParentPathname() {
|
|
1709
|
+
try {
|
|
1710
|
+
if (window.parent === window) {
|
|
1711
|
+
return null;
|
|
1712
|
+
}
|
|
1713
|
+
return window.parent.location.pathname;
|
|
1714
|
+
} catch (_unused) {
|
|
1715
|
+
return null;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1701
1719
|
// function ValIcon() {
|
|
1702
1720
|
// return (
|
|
1703
1721
|
// <svg
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var version = require('./version-
|
|
5
|
+
var version = require('./version-2cbea560.cjs.prod.js');
|
|
6
6
|
var createForOfIteratorHelper = require('./createForOfIteratorHelper-9afd7d2d.cjs.prod.js');
|
|
7
7
|
var core = require('@valbuild/core');
|
|
8
8
|
var stega = require('@valbuild/react/stega');
|
|
@@ -1162,7 +1162,7 @@ var ValTanStackProvider = function ValTanStackProvider(props) {
|
|
|
1162
1162
|
setMountOverlay(false);
|
|
1163
1163
|
return;
|
|
1164
1164
|
}
|
|
1165
|
-
setIsCanvas(client.isValCanvasFrame(location.search));
|
|
1165
|
+
setIsCanvas(client.isValCanvasFrame(location.search, readParentPathname()));
|
|
1166
1166
|
setMountOverlay(hasValEnableCookie(document.cookie));
|
|
1167
1167
|
}, []);
|
|
1168
1168
|
React__default["default"].useEffect(function () {
|
|
@@ -1698,6 +1698,24 @@ function isValStudioPath(pathname) {
|
|
|
1698
1698
|
return pathname.startsWith("/val");
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
+
/**
|
|
1702
|
+
* The path of the window framing this document, or `null`.
|
|
1703
|
+
*
|
|
1704
|
+
* `null` for a top-level document, and for a parent on another origin: reading
|
|
1705
|
+
* a cross-origin `location` throws, and a page on another origin is not the
|
|
1706
|
+
* studio, whose canvas is always the same app. See `isValCanvasFrame`.
|
|
1707
|
+
*/
|
|
1708
|
+
function readParentPathname() {
|
|
1709
|
+
try {
|
|
1710
|
+
if (window.parent === window) {
|
|
1711
|
+
return null;
|
|
1712
|
+
}
|
|
1713
|
+
return window.parent.location.pathname;
|
|
1714
|
+
} catch (_unused) {
|
|
1715
|
+
return null;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1701
1719
|
// function ValIcon() {
|
|
1702
1720
|
// return (
|
|
1703
1721
|
// <svg
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, a as _regenerator, r as readValEnableCookie, V as VERSION$1 } from './version-
|
|
1
|
+
import { _ as _asyncToGenerator, a as _regenerator, r as readValEnableCookie, V as VERSION$1 } from './version-4da65f4f.esm.js';
|
|
2
2
|
import { _ as _objectSpread2, a as _slicedToArray, b as _createForOfIteratorHelper } from './createForOfIteratorHelper-93a62170.esm.js';
|
|
3
3
|
import { Internal as Internal$1, initVal as initVal$1, DEFAULT_CONTENT_HOST } from '@valbuild/core';
|
|
4
4
|
import * as core from '@valbuild/core';
|
|
@@ -1138,7 +1138,7 @@ var ValTanStackProvider = function ValTanStackProvider(props) {
|
|
|
1138
1138
|
setMountOverlay(false);
|
|
1139
1139
|
return;
|
|
1140
1140
|
}
|
|
1141
|
-
setIsCanvas(isValCanvasFrame(location.search));
|
|
1141
|
+
setIsCanvas(isValCanvasFrame(location.search, readParentPathname()));
|
|
1142
1142
|
setMountOverlay(hasValEnableCookie(document.cookie));
|
|
1143
1143
|
}, []);
|
|
1144
1144
|
React.useEffect(function () {
|
|
@@ -1674,6 +1674,24 @@ function isValStudioPath(pathname) {
|
|
|
1674
1674
|
return pathname.startsWith("/val");
|
|
1675
1675
|
}
|
|
1676
1676
|
|
|
1677
|
+
/**
|
|
1678
|
+
* The path of the window framing this document, or `null`.
|
|
1679
|
+
*
|
|
1680
|
+
* `null` for a top-level document, and for a parent on another origin: reading
|
|
1681
|
+
* a cross-origin `location` throws, and a page on another origin is not the
|
|
1682
|
+
* studio, whose canvas is always the same app. See `isValCanvasFrame`.
|
|
1683
|
+
*/
|
|
1684
|
+
function readParentPathname() {
|
|
1685
|
+
try {
|
|
1686
|
+
if (window.parent === window) {
|
|
1687
|
+
return null;
|
|
1688
|
+
}
|
|
1689
|
+
return window.parent.location.pathname;
|
|
1690
|
+
} catch (_unused) {
|
|
1691
|
+
return null;
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1677
1695
|
// function ValIcon() {
|
|
1678
1696
|
// return (
|
|
1679
1697
|
// <svg
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"tanstack-router",
|
|
15
15
|
"react"
|
|
16
16
|
],
|
|
17
|
-
"version": "0.146.
|
|
17
|
+
"version": "0.146.4",
|
|
18
18
|
"main": "dist/valbuild-tanstack.cjs.js",
|
|
19
19
|
"module": "dist/valbuild-tanstack.esm.js",
|
|
20
20
|
"exports": {
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@valbuild/core": "0.146.2",
|
|
46
|
-
"@valbuild/language-server": "0.146.
|
|
47
|
-
"@valbuild/mcp": "0.146.
|
|
48
|
-
"@valbuild/react": "0.146.
|
|
49
|
-
"@valbuild/server": "0.146.
|
|
50
|
-
"@valbuild/shared": "0.146.
|
|
51
|
-
"@valbuild/ui": "0.146.
|
|
46
|
+
"@valbuild/language-server": "0.146.4",
|
|
47
|
+
"@valbuild/mcp": "0.146.4",
|
|
48
|
+
"@valbuild/react": "0.146.4",
|
|
49
|
+
"@valbuild/server": "0.146.4",
|
|
50
|
+
"@valbuild/shared": "0.146.4",
|
|
51
|
+
"@valbuild/ui": "0.146.4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@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-1f65da50.cjs.dev.js');
|
|
6
6
|
var core = require('@valbuild/core');
|
|
7
7
|
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-4497beef.cjs.dev.js');
|
|
8
8
|
var server = require('@valbuild/server');
|
|
@@ -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-2cbea560.cjs.prod.js');
|
|
6
6
|
var core = require('@valbuild/core');
|
|
7
7
|
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-9afd7d2d.cjs.prod.js');
|
|
8
8
|
var server = require('@valbuild/server');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, a as _regenerator, V as VERSION, s as setValEnableCookieReader } from '../../dist/version-
|
|
1
|
+
import { _ as _asyncToGenerator, a as _regenerator, V as VERSION, s as setValEnableCookieReader } from '../../dist/version-4da65f4f.esm.js';
|
|
2
2
|
import { Internal } from '@valbuild/core';
|
|
3
3
|
import { _ as _objectSpread2, a as _slicedToArray, e as _arrayLikeToArray, f as _unsupportedIterableToArray, b as _createForOfIteratorHelper, d as _defineProperty } from '../../dist/createForOfIteratorHelper-93a62170.esm.js';
|
|
4
4
|
import { createValApiRouter, createValServer, layeredSnapshot, proposalSnapshotForReaders, proposalSnapshot } from '@valbuild/server';
|