@valbuild/react 0.150.1 → 0.150.3
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/analytics/dist/valbuild-react-analytics.browser.esm.js +2 -3
- package/analytics/dist/valbuild-react-analytics.cjs.dev.js +5 -6
- package/analytics/dist/valbuild-react-analytics.cjs.prod.js +5 -6
- package/analytics/dist/valbuild-react-analytics.esm.js +2 -3
- package/analytics/dist/valbuild-react-analytics.worker.esm.js +2 -3
- package/dist/{createForOfIteratorHelper-c0be3691.browser.esm.js → createForOfIteratorHelper-02fbe55e.worker.esm.js} +18 -2
- package/dist/{createForOfIteratorHelper-73fe9a1a.worker.esm.js → createForOfIteratorHelper-36020cf7.browser.esm.js} +18 -2
- package/dist/{createForOfIteratorHelper-8a871dc3.cjs.dev.js → createForOfIteratorHelper-522d616d.cjs.dev.js} +17 -0
- package/dist/{createForOfIteratorHelper-6f9dc6fa.cjs.prod.js → createForOfIteratorHelper-598a2f85.cjs.prod.js} +17 -0
- package/dist/{createForOfIteratorHelper-69c4a419.esm.js → createForOfIteratorHelper-8a8caaf6.esm.js} +18 -2
- package/dist/declarations/src/stega/index.d.ts +1 -0
- package/dist/declarations/src/stega/stegaLeaks.d.ts +40 -0
- package/dist/{raw-4870e29f.cjs.prod.js → raw-1617ec66.cjs.prod.js} +1 -1
- package/dist/{raw-7d65198e.worker.esm.js → raw-4d8c9599.worker.esm.js} +2 -2
- package/dist/{raw-400c4eba.cjs.dev.js → raw-a62618f3.cjs.dev.js} +1 -1
- package/dist/{raw-f1b35392.esm.js → raw-c9cc9df6.esm.js} +2 -2
- package/dist/{raw-27e587b6.browser.esm.js → raw-d34abe21.browser.esm.js} +2 -2
- package/dist/{slicedToArray-3d4c6640.esm.js → slicedToArray-106ca5f3.worker.esm.js} +1 -1
- package/dist/{slicedToArray-8f9b0d84.browser.esm.js → slicedToArray-70ecb9da.esm.js} +1 -1
- package/dist/{slicedToArray-8b1a55e5.worker.esm.js → slicedToArray-b66ff800.browser.esm.js} +1 -1
- package/internal/dist/valbuild-react-internal.browser.esm.js +3 -4
- package/internal/dist/valbuild-react-internal.cjs.dev.js +3 -4
- package/internal/dist/valbuild-react-internal.cjs.prod.js +3 -4
- package/internal/dist/valbuild-react-internal.esm.js +3 -4
- package/internal/dist/valbuild-react-internal.worker.esm.js +3 -4
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.browser.esm.js +1 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.esm.js +1 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js +1 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.browser.esm.js +1 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.esm.js +1 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.worker.esm.js +1 -1
- package/package.json +4 -4
- package/stega/dist/valbuild-react-stega.browser.esm.js +299 -22
- package/stega/dist/valbuild-react-stega.cjs.dev.js +300 -19
- package/stega/dist/valbuild-react-stega.cjs.prod.js +300 -19
- package/stega/dist/valbuild-react-stega.esm.js +299 -22
- package/stega/dist/valbuild-react-stega.worker.esm.js +299 -22
- package/dist/toConsumableArray-203e636a.cjs.prod.js +0 -21
- package/dist/toConsumableArray-5335b4b0.worker.esm.js +0 -19
- package/dist/toConsumableArray-991f680f.browser.esm.js +0 -19
- package/dist/toConsumableArray-c950e394.esm.js +0 -19
- package/dist/toConsumableArray-d7cf1601.cjs.dev.js +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @valbuild/react
|
|
2
2
|
|
|
3
|
+
## 0.150.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`bc0cc43`](https://github.com/valbuild/val/commit/bc0cc433e157cca08f9ee384a4fb8be9bd3dad2c)]:
|
|
8
|
+
- @valbuild/ui@0.150.3
|
|
9
|
+
- @valbuild/core@0.150.3
|
|
10
|
+
- @valbuild/shared@0.150.3
|
|
11
|
+
|
|
12
|
+
## 0.150.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#946](https://github.com/valbuild/val/pull/946) [`e24dc6e`](https://github.com/valbuild/val/commit/e24dc6e56e7647654e27ee2390d2181b0eaff3ad) Thanks [@freekh](https://github.com/freekh)! - Content analytics now warns in development about edit tags that leak out of React. With analytics on, `ValProvider` looks at the page as a visitor gets it and names every place content arrived with its edit tag still in it: a `<title>`, a `<meta>`, JSON-LD, a share link built with `encodeURIComponent`, or any other attribute or text. Each warning says which content it was and where, and that `val.raw()` fixes it. Open the site in a window where Val is not enabled to see them; production never runs the check.
|
|
17
|
+
|
|
18
|
+
Also fixed: text inside a fragment (`<li>{a}<> — {b}</></li>`) kept its edit tag on the page. It is now cleaned, and the element the fragment sits in is tagged with its content instead.
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [[`c674aae`](https://github.com/valbuild/val/commit/c674aae361be3c75b5232acb41ea6d8da973c678), [`c044e55`](https://github.com/valbuild/val/commit/c044e55452ba34ec5b7b38c935c9c25491d980be), [`36412b2`](https://github.com/valbuild/val/commit/36412b28bb009083f652b26462b76a74c80ff595), [`155a079`](https://github.com/valbuild/val/commit/155a0792c2a437a1cbcdd6342131999be70e0d70), [`8f598b6`](https://github.com/valbuild/val/commit/8f598b618b794e59ef5b9c6ef94650be4ff006e7), [`95d17e6`](https://github.com/valbuild/val/commit/95d17e6bbecceb2f09d6a6226808e9c60b2d4795), [`520d22c`](https://github.com/valbuild/val/commit/520d22cc721ff23b83e4bae0b4ba7f52a6a0fa0c)]:
|
|
21
|
+
- @valbuild/ui@0.150.2
|
|
22
|
+
- @valbuild/shared@0.150.2
|
|
23
|
+
- @valbuild/core@0.150.2
|
|
24
|
+
|
|
3
25
|
## 0.150.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-c0be3691.browser.esm.js';
|
|
1
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-b66ff800.browser.esm.js';
|
|
2
|
+
import { a as _toConsumableArray, _ as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-36020cf7.browser.esm.js';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* The analytics wire format, version 1: what the browser sends to
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var slicedToArray = require('../../dist/slicedToArray-387314c6.cjs.dev.js');
|
|
6
|
-
var
|
|
7
|
-
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-8a871dc3.cjs.dev.js');
|
|
6
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-522d616d.cjs.dev.js');
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* The analytics wire format, version 1: what the browser sends to
|
|
@@ -132,9 +131,9 @@ function buildBeacons(args) {
|
|
|
132
131
|
modulePath: modulePath
|
|
133
132
|
}];
|
|
134
133
|
};
|
|
135
|
-
var all = [].concat(
|
|
134
|
+
var all = [].concat(createForOfIteratorHelper._toConsumableArray(args.rendered.flatMap(function (path) {
|
|
136
135
|
return counted("rendered", path);
|
|
137
|
-
})),
|
|
136
|
+
})), createForOfIteratorHelper._toConsumableArray(args.viewed.flatMap(function (path) {
|
|
138
137
|
return counted("viewed", path);
|
|
139
138
|
})));
|
|
140
139
|
if (all.length === 0 && !args.view) {
|
|
@@ -596,7 +595,7 @@ function startNow(options) {
|
|
|
596
595
|
if (carried.size === 0) {
|
|
597
596
|
return;
|
|
598
597
|
}
|
|
599
|
-
var kept =
|
|
598
|
+
var kept = createForOfIteratorHelper._toConsumableArray(carried);
|
|
600
599
|
carried.clear();
|
|
601
600
|
var _iterator6 = createForOfIteratorHelper._createForOfIteratorHelper(kept),
|
|
602
601
|
_step6;
|
|
@@ -755,7 +754,7 @@ function startNow(options) {
|
|
|
755
754
|
clearViewTimers();
|
|
756
755
|
// Observe everything afresh, so what is already on screen reports itself
|
|
757
756
|
// to the new page view.
|
|
758
|
-
for (var _i2 = 0, _arr =
|
|
757
|
+
for (var _i2 = 0, _arr = createForOfIteratorHelper._toConsumableArray(observed); _i2 < _arr.length; _i2++) {
|
|
759
758
|
var element = _arr[_i2];
|
|
760
759
|
forget(element);
|
|
761
760
|
}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var slicedToArray = require('../../dist/slicedToArray-64c83d56.cjs.prod.js');
|
|
6
|
-
var
|
|
7
|
-
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-6f9dc6fa.cjs.prod.js');
|
|
6
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-598a2f85.cjs.prod.js');
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* The analytics wire format, version 1: what the browser sends to
|
|
@@ -132,9 +131,9 @@ function buildBeacons(args) {
|
|
|
132
131
|
modulePath: modulePath
|
|
133
132
|
}];
|
|
134
133
|
};
|
|
135
|
-
var all = [].concat(
|
|
134
|
+
var all = [].concat(createForOfIteratorHelper._toConsumableArray(args.rendered.flatMap(function (path) {
|
|
136
135
|
return counted("rendered", path);
|
|
137
|
-
})),
|
|
136
|
+
})), createForOfIteratorHelper._toConsumableArray(args.viewed.flatMap(function (path) {
|
|
138
137
|
return counted("viewed", path);
|
|
139
138
|
})));
|
|
140
139
|
if (all.length === 0 && !args.view) {
|
|
@@ -596,7 +595,7 @@ function startNow(options) {
|
|
|
596
595
|
if (carried.size === 0) {
|
|
597
596
|
return;
|
|
598
597
|
}
|
|
599
|
-
var kept =
|
|
598
|
+
var kept = createForOfIteratorHelper._toConsumableArray(carried);
|
|
600
599
|
carried.clear();
|
|
601
600
|
var _iterator6 = createForOfIteratorHelper._createForOfIteratorHelper(kept),
|
|
602
601
|
_step6;
|
|
@@ -755,7 +754,7 @@ function startNow(options) {
|
|
|
755
754
|
clearViewTimers();
|
|
756
755
|
// Observe everything afresh, so what is already on screen reports itself
|
|
757
756
|
// to the new page view.
|
|
758
|
-
for (var _i2 = 0, _arr =
|
|
757
|
+
for (var _i2 = 0, _arr = createForOfIteratorHelper._toConsumableArray(observed); _i2 < _arr.length; _i2++) {
|
|
759
758
|
var element = _arr[_i2];
|
|
760
759
|
forget(element);
|
|
761
760
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-69c4a419.esm.js';
|
|
1
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-70ecb9da.esm.js';
|
|
2
|
+
import { a as _toConsumableArray, _ as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-8a8caaf6.esm.js';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* The analytics wire format, version 1: what the browser sends to
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
|
3
|
-
import { _ as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-73fe9a1a.worker.esm.js';
|
|
1
|
+
import { a as _toConsumableArray, _ as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-02fbe55e.worker.esm.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-106ca5f3.worker.esm.js';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* The analytics wire format, version 1: what the browser sends to
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import { a as _unsupportedIterableToArray } from './slicedToArray-
|
|
1
|
+
import { a as _arrayLikeToArray, b as _unsupportedIterableToArray } from './slicedToArray-106ca5f3.worker.esm.js';
|
|
2
|
+
|
|
3
|
+
function _arrayWithoutHoles(r) {
|
|
4
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function _iterableToArray(r) {
|
|
8
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function _nonIterableSpread() {
|
|
12
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function _toConsumableArray(r) {
|
|
16
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
17
|
+
}
|
|
2
18
|
|
|
3
19
|
function _createForOfIteratorHelper(r, e) {
|
|
4
20
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -49,4 +65,4 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
49
65
|
};
|
|
50
66
|
}
|
|
51
67
|
|
|
52
|
-
export { _createForOfIteratorHelper as _ };
|
|
68
|
+
export { _createForOfIteratorHelper as _, _toConsumableArray as a };
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import { a as _unsupportedIterableToArray } from './slicedToArray-
|
|
1
|
+
import { a as _arrayLikeToArray, b as _unsupportedIterableToArray } from './slicedToArray-b66ff800.browser.esm.js';
|
|
2
|
+
|
|
3
|
+
function _arrayWithoutHoles(r) {
|
|
4
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function _iterableToArray(r) {
|
|
8
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function _nonIterableSpread() {
|
|
12
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function _toConsumableArray(r) {
|
|
16
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
17
|
+
}
|
|
2
18
|
|
|
3
19
|
function _createForOfIteratorHelper(r, e) {
|
|
4
20
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -49,4 +65,4 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
49
65
|
};
|
|
50
66
|
}
|
|
51
67
|
|
|
52
|
-
export { _createForOfIteratorHelper as _ };
|
|
68
|
+
export { _createForOfIteratorHelper as _, _toConsumableArray as a };
|
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
var slicedToArray = require('./slicedToArray-387314c6.cjs.dev.js');
|
|
4
4
|
|
|
5
|
+
function _arrayWithoutHoles(r) {
|
|
6
|
+
if (Array.isArray(r)) return slicedToArray._arrayLikeToArray(r);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function _iterableToArray(r) {
|
|
10
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function _nonIterableSpread() {
|
|
14
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _toConsumableArray(r) {
|
|
18
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || slicedToArray._unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
19
|
+
}
|
|
20
|
+
|
|
5
21
|
function _createForOfIteratorHelper(r, e) {
|
|
6
22
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
23
|
if (!t) {
|
|
@@ -52,3 +68,4 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
52
68
|
}
|
|
53
69
|
|
|
54
70
|
exports._createForOfIteratorHelper = _createForOfIteratorHelper;
|
|
71
|
+
exports._toConsumableArray = _toConsumableArray;
|
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
var slicedToArray = require('./slicedToArray-64c83d56.cjs.prod.js');
|
|
4
4
|
|
|
5
|
+
function _arrayWithoutHoles(r) {
|
|
6
|
+
if (Array.isArray(r)) return slicedToArray._arrayLikeToArray(r);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function _iterableToArray(r) {
|
|
10
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function _nonIterableSpread() {
|
|
14
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _toConsumableArray(r) {
|
|
18
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || slicedToArray._unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
19
|
+
}
|
|
20
|
+
|
|
5
21
|
function _createForOfIteratorHelper(r, e) {
|
|
6
22
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
23
|
if (!t) {
|
|
@@ -52,3 +68,4 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
52
68
|
}
|
|
53
69
|
|
|
54
70
|
exports._createForOfIteratorHelper = _createForOfIteratorHelper;
|
|
71
|
+
exports._toConsumableArray = _toConsumableArray;
|
package/dist/{createForOfIteratorHelper-69c4a419.esm.js → createForOfIteratorHelper-8a8caaf6.esm.js}
RENAMED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import { a as _unsupportedIterableToArray } from './slicedToArray-
|
|
1
|
+
import { a as _arrayLikeToArray, b as _unsupportedIterableToArray } from './slicedToArray-70ecb9da.esm.js';
|
|
2
|
+
|
|
3
|
+
function _arrayWithoutHoles(r) {
|
|
4
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function _iterableToArray(r) {
|
|
8
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function _nonIterableSpread() {
|
|
12
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function _toConsumableArray(r) {
|
|
16
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
17
|
+
}
|
|
2
18
|
|
|
3
19
|
function _createForOfIteratorHelper(r, e) {
|
|
4
20
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -49,4 +65,4 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
49
65
|
};
|
|
50
66
|
}
|
|
51
67
|
|
|
52
|
-
export { _createForOfIteratorHelper as _ };
|
|
68
|
+
export { _createForOfIteratorHelper as _, _toConsumableArray as a };
|
|
@@ -3,6 +3,7 @@ export { stegaEncode, getModuleIds, stegaClean, type ValEncodedString, type Steg
|
|
|
3
3
|
export { stegaDecodeStrings } from "./stegaDecodeStrings.js";
|
|
4
4
|
export { attrs } from "./attrs.js";
|
|
5
5
|
export { raw, type DecodeVal } from "./raw.js";
|
|
6
|
+
export { findStegaLeaks, watchStegaLeaks, stegaLeakMessage, isReactDevelopmentBuild, type StegaLeak, } from "./stegaLeaks.js";
|
|
6
7
|
export declare function IS_AUTO_TAG_JSX_ENABLED(): boolean;
|
|
7
8
|
export declare function SET_AUTO_TAG_JSX_ENABLED(enabled: boolean): void;
|
|
8
9
|
export declare function IS_RSC(): boolean;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Edit tags that left React: content whose invisible characters reached the
|
|
3
|
+
* page somewhere `autoTagJSX` could not take them out -- JSON-LD written with
|
|
4
|
+
* `dangerouslySetInnerHTML`, a `<title>` or `<meta>` set from a string,
|
|
5
|
+
* `encodeURIComponent(title)` in a share link. Every visitor of a site with
|
|
6
|
+
* content analytics on gets them after hydration, and so does any crawler
|
|
7
|
+
* that runs the page. See `docs/plans/analytics.md`, "The leak warning".
|
|
8
|
+
*
|
|
9
|
+
* Anything that went through `autoTagJSX` is clean -- its tags were moved to
|
|
10
|
+
* `data-val-path` -- so a tag found anywhere in the document is a leak.
|
|
11
|
+
*/
|
|
12
|
+
export type StegaLeak = {
|
|
13
|
+
/** The source path the tag names: `/content/blog.val.ts?p="title"`. */
|
|
14
|
+
path: string;
|
|
15
|
+
/** Where it was found, as a person reads it: `<script type="application/ld+json">`. */
|
|
16
|
+
where: string;
|
|
17
|
+
};
|
|
18
|
+
/** Every edit tag in `root`'s document, in document order, each path and place once. */
|
|
19
|
+
export declare function findStegaLeaks(root: Document): StegaLeak[];
|
|
20
|
+
/**
|
|
21
|
+
* Whether the page runs React's development build: the one signal of
|
|
22
|
+
* "development" that holds in every bundler. `process.env.NODE_ENV` does not
|
|
23
|
+
* -- TanStack Start's dev server hands the browser a `process.env` without
|
|
24
|
+
* it -- but the bundler resolved React's own copy of that check to pick a
|
|
25
|
+
* build, and the production build's `react/jsx-dev-runtime` has no `jsxDEV`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isReactDevelopmentBuild(): boolean;
|
|
28
|
+
export declare function stegaLeakMessage(leak: StegaLeak): string;
|
|
29
|
+
/**
|
|
30
|
+
* Looks for leaks once the page has settled after a change -- after load,
|
|
31
|
+
* after the render that adds edit tags, after every route change -- and
|
|
32
|
+
* reports each path and place the first time it is found. For development:
|
|
33
|
+
* walking the whole document is not something to do to a visitor.
|
|
34
|
+
*
|
|
35
|
+
* Returns what stops it.
|
|
36
|
+
*/
|
|
37
|
+
export declare function watchStegaLeaks(report: (leak: StegaLeak) => void, options?: {
|
|
38
|
+
root?: Document;
|
|
39
|
+
settleMs?: number;
|
|
40
|
+
}): () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var createForOfIteratorHelper = require('./createForOfIteratorHelper-
|
|
3
|
+
var createForOfIteratorHelper = require('./createForOfIteratorHelper-598a2f85.cjs.prod.js');
|
|
4
4
|
var _typeof = require('./typeof-16428c61.cjs.prod.js');
|
|
5
5
|
var core = require('@valbuild/core');
|
|
6
6
|
var stega = require('@vercel/stega');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-
|
|
1
|
+
import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-02fbe55e.worker.esm.js';
|
|
2
2
|
import { _ as _typeof } from './typeof-e0c837cc.worker.esm.js';
|
|
3
3
|
import { Internal, isValViewSource } from '@valbuild/core';
|
|
4
4
|
import { vercelStegaDecodeAll, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-106ca5f3.worker.esm.js';
|
|
6
6
|
|
|
7
7
|
function stegaDecodeStrings(encodedString) {
|
|
8
8
|
if (!encodedString || typeof encodedString !== "string") return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var createForOfIteratorHelper = require('./createForOfIteratorHelper-
|
|
3
|
+
var createForOfIteratorHelper = require('./createForOfIteratorHelper-522d616d.cjs.dev.js');
|
|
4
4
|
var _typeof = require('./typeof-b568f48f.cjs.dev.js');
|
|
5
5
|
var core = require('@valbuild/core');
|
|
6
6
|
var stega = require('@vercel/stega');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-
|
|
1
|
+
import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-8a8caaf6.esm.js';
|
|
2
2
|
import { _ as _typeof } from './typeof-a1531d8f.esm.js';
|
|
3
3
|
import { Internal, isValViewSource } from '@valbuild/core';
|
|
4
4
|
import { vercelStegaDecodeAll, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-70ecb9da.esm.js';
|
|
6
6
|
|
|
7
7
|
function stegaDecodeStrings(encodedString) {
|
|
8
8
|
if (!encodedString || typeof encodedString !== "string") return;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-
|
|
1
|
+
import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-36020cf7.browser.esm.js';
|
|
2
2
|
import { _ as _typeof } from './typeof-9915e135.browser.esm.js';
|
|
3
3
|
import { Internal, isValViewSource } from '@valbuild/core';
|
|
4
4
|
import { vercelStegaDecodeAll, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-b66ff800.browser.esm.js';
|
|
6
6
|
|
|
7
7
|
function stegaDecodeStrings(encodedString) {
|
|
8
8
|
if (!encodedString || typeof encodedString !== "string") return;
|
|
@@ -52,4 +52,4 @@ function _slicedToArray(r, e) {
|
|
|
52
52
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export { _slicedToArray as _,
|
|
55
|
+
export { _slicedToArray as _, _arrayLikeToArray as a, _unsupportedIterableToArray as b };
|
|
@@ -52,4 +52,4 @@ function _slicedToArray(r, e) {
|
|
|
52
52
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export { _slicedToArray as _,
|
|
55
|
+
export { _slicedToArray as _, _arrayLikeToArray as a, _unsupportedIterableToArray as b };
|
|
@@ -52,4 +52,4 @@ function _slicedToArray(r, e) {
|
|
|
52
52
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export { _slicedToArray as _,
|
|
55
|
+
export { _slicedToArray as _, _arrayLikeToArray as a, _unsupportedIterableToArray as b };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-
|
|
1
|
+
import { a as _toConsumableArray } from '../../dist/createForOfIteratorHelper-36020cf7.browser.esm.js';
|
|
2
|
+
import { _ as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-d34abe21.browser.esm.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
import '../../dist/slicedToArray-
|
|
6
|
-
import '../../dist/createForOfIteratorHelper-c0be3691.browser.esm.js';
|
|
5
|
+
import '../../dist/slicedToArray-b66ff800.browser.esm.js';
|
|
7
6
|
import '../../dist/typeof-9915e135.browser.esm.js';
|
|
8
7
|
import '@valbuild/core';
|
|
9
8
|
import '@vercel/stega';
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var raw = require('../../dist/raw-
|
|
5
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-522d616d.cjs.dev.js');
|
|
6
|
+
var raw = require('../../dist/raw-a62618f3.cjs.dev.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
|
9
9
|
require('../../dist/slicedToArray-387314c6.cjs.dev.js');
|
|
10
|
-
require('../../dist/createForOfIteratorHelper-8a871dc3.cjs.dev.js');
|
|
11
10
|
require('../../dist/typeof-b568f48f.cjs.dev.js');
|
|
12
11
|
require('@valbuild/core');
|
|
13
12
|
require('@vercel/stega');
|
|
@@ -139,7 +138,7 @@ function classNameOfTag(tag, style, theme) {
|
|
|
139
138
|
var _tag;
|
|
140
139
|
thisTagClassName = (_tag = theme[tag]) !== null && _tag !== void 0 ? _tag : null;
|
|
141
140
|
}
|
|
142
|
-
return [].concat(
|
|
141
|
+
return [].concat(createForOfIteratorHelper._toConsumableArray(thisTagClassName ? [thisTagClassName] : []), createForOfIteratorHelper._toConsumableArray(style.map(function (style) {
|
|
143
142
|
if (theme &&
|
|
144
143
|
// not need on type-level, but defensive on runtime:
|
|
145
144
|
typeof style === "string") {
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var raw = require('../../dist/raw-
|
|
5
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-598a2f85.cjs.prod.js');
|
|
6
|
+
var raw = require('../../dist/raw-1617ec66.cjs.prod.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
|
9
9
|
require('../../dist/slicedToArray-64c83d56.cjs.prod.js');
|
|
10
|
-
require('../../dist/createForOfIteratorHelper-6f9dc6fa.cjs.prod.js');
|
|
11
10
|
require('../../dist/typeof-16428c61.cjs.prod.js');
|
|
12
11
|
require('@valbuild/core');
|
|
13
12
|
require('@vercel/stega');
|
|
@@ -139,7 +138,7 @@ function classNameOfTag(tag, style, theme) {
|
|
|
139
138
|
var _tag;
|
|
140
139
|
thisTagClassName = (_tag = theme[tag]) !== null && _tag !== void 0 ? _tag : null;
|
|
141
140
|
}
|
|
142
|
-
return [].concat(
|
|
141
|
+
return [].concat(createForOfIteratorHelper._toConsumableArray(thisTagClassName ? [thisTagClassName] : []), createForOfIteratorHelper._toConsumableArray(style.map(function (style) {
|
|
143
142
|
if (theme &&
|
|
144
143
|
// not need on type-level, but defensive on runtime:
|
|
145
144
|
typeof style === "string") {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-
|
|
1
|
+
import { a as _toConsumableArray } from '../../dist/createForOfIteratorHelper-8a8caaf6.esm.js';
|
|
2
|
+
import { _ as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-c9cc9df6.esm.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
import '../../dist/slicedToArray-
|
|
6
|
-
import '../../dist/createForOfIteratorHelper-69c4a419.esm.js';
|
|
5
|
+
import '../../dist/slicedToArray-70ecb9da.esm.js';
|
|
7
6
|
import '../../dist/typeof-a1531d8f.esm.js';
|
|
8
7
|
import '@valbuild/core';
|
|
9
8
|
import '@vercel/stega';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-
|
|
1
|
+
import { a as _toConsumableArray } from '../../dist/createForOfIteratorHelper-02fbe55e.worker.esm.js';
|
|
2
|
+
import { _ as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-4d8c9599.worker.esm.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
import '../../dist/slicedToArray-
|
|
6
|
-
import '../../dist/createForOfIteratorHelper-73fe9a1a.worker.esm.js';
|
|
5
|
+
import '../../dist/slicedToArray-106ca5f3.worker.esm.js';
|
|
7
6
|
import '../../dist/typeof-e0c837cc.worker.esm.js';
|
|
8
7
|
import '@valbuild/core';
|
|
9
8
|
import '@vercel/stega';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-b66ff800.browser.esm.js';
|
|
3
3
|
import { Internal } from '@valbuild/core';
|
|
4
4
|
import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
|
|
5
5
|
export * from 'react/jsx-dev-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-70ecb9da.esm.js';
|
|
3
3
|
import { Internal } from '@valbuild/core';
|
|
4
4
|
import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
|
|
5
5
|
export * from 'react/jsx-dev-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-106ca5f3.worker.esm.js';
|
|
3
3
|
import { Internal } from '@valbuild/core';
|
|
4
4
|
import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
|
|
5
5
|
export * from 'react/jsx-dev-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-b66ff800.browser.esm.js';
|
|
3
3
|
import { Internal } from '@valbuild/core';
|
|
4
4
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
5
5
|
export * from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-70ecb9da.esm.js';
|
|
3
3
|
import { Internal } from '@valbuild/core';
|
|
4
4
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
5
5
|
export * from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-106ca5f3.worker.esm.js';
|
|
3
3
|
import { Internal } from '@valbuild/core';
|
|
4
4
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
5
5
|
export * from 'react/jsx-runtime';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/react",
|
|
3
|
-
"version": "0.150.
|
|
3
|
+
"version": "0.150.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val - React internal helpers",
|
|
6
6
|
"repository": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@vercel/stega": "^1.1.0",
|
|
13
13
|
"base64-arraybuffer": "^1.0.2",
|
|
14
|
-
"@valbuild/core": "0.150.
|
|
15
|
-
"@valbuild/shared": "0.150.
|
|
16
|
-
"@valbuild/ui": "0.150.
|
|
14
|
+
"@valbuild/core": "0.150.3",
|
|
15
|
+
"@valbuild/shared": "0.150.3",
|
|
16
|
+
"@valbuild/ui": "0.150.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@testing-library/react": "^16.3.3",
|