@valbuild/react 0.148.1 → 0.148.2

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,28 @@
1
1
  # @valbuild/react
2
2
 
3
+ ## 0.148.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#889](https://github.com/valbuild/val/pull/889) [`dc7c8cc`](https://github.com/valbuild/val/commit/dc7c8ccd82f643e662d00225fabec411b5d39e3a) Thanks [@freekh](https://github.com/freekh)! - Val is quieter in your app's console. Errors and warnings you can act on still
8
+ print, now prefixed with `[val]` so you can filter them. Val's own debug
9
+ output, which used to reach your terminal and browser console, is now off by
10
+ default. That includes the `Invalid JWT` line that printed on every request
11
+ with an expired session cookie, the "verifying draft mode" and polling notices,
12
+ and the Studio's sync and WebSocket chatter.
13
+
14
+ To turn the debug output back on, for example when reporting a bug:
15
+
16
+ - on the server, set `VAL_DEBUG=1`
17
+ - in the browser, run `localStorage.setItem("val:debug", "1")` in the console.
18
+ It takes effect immediately, with no reload. Remove the key to turn it off
19
+ again.
20
+
21
+ - Updated dependencies [[`dc7c8cc`](https://github.com/valbuild/val/commit/dc7c8ccd82f643e662d00225fabec411b5d39e3a)]:
22
+ - @valbuild/core@0.148.2
23
+ - @valbuild/shared@0.148.2
24
+ - @valbuild/ui@0.148.2
25
+
3
26
  ## 0.148.1
4
27
 
5
28
  ### Patch Changes
@@ -218,13 +218,13 @@ function resolveDiscriminatedUnionVariant(source, schema) {
218
218
  if (isLiteralSchema(keySchema)) {
219
219
  return keySchema.value === key;
220
220
  } else {
221
- console.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
221
+ Internal.log.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
222
222
  key: key,
223
223
  schema: s
224
224
  });
225
225
  }
226
226
  } else {
227
- console.warn("Expected discriminated union containing object schema, but found: ", s);
227
+ Internal.log.warn("Expected discriminated union containing object schema, but found: ", s);
228
228
  }
229
229
  return false;
230
230
  });
@@ -487,7 +487,7 @@ function stegaEncode(input, opts) {
487
487
  }
488
488
  return res;
489
489
  }
490
- console.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
490
+ Internal.log.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
491
491
  return sourceOrSelector;
492
492
  }
493
493
  if (typeof sourceOrSelector === "string") {
@@ -513,7 +513,7 @@ function stegaEncode(input, opts) {
513
513
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
514
514
  return sourceOrSelector;
515
515
  }
516
- console.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
516
+ Internal.log.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
517
517
  return sourceOrSelector;
518
518
  }
519
519
  return rec(input, opts.root);
@@ -540,7 +540,7 @@ function isCodeSchema(schema) {
540
540
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "code";
541
541
  }
542
542
  function unknownSchema(schema) {
543
- console.debug("Found unknown schema", schema);
543
+ Internal.log.debug("Found unknown schema", schema);
544
544
  return schema;
545
545
  }
546
546
  function isDiscriminatedUnionSchema(schema) {
@@ -669,7 +669,7 @@ function getModuleIds(input) {
669
669
  }
670
670
  return;
671
671
  }
672
- console.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
672
+ Internal.log.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
673
673
  return;
674
674
  }
675
675
  if (typeof sourceOrSelector === "string") {
@@ -678,7 +678,7 @@ function getModuleIds(input) {
678
678
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
679
679
  return;
680
680
  }
681
- console.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
681
+ Internal.log.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
682
682
  return;
683
683
  }
684
684
  rec(input);
@@ -218,13 +218,13 @@ function resolveDiscriminatedUnionVariant(source, schema) {
218
218
  if (isLiteralSchema(keySchema)) {
219
219
  return keySchema.value === key;
220
220
  } else {
221
- console.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
221
+ Internal.log.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
222
222
  key: key,
223
223
  schema: s
224
224
  });
225
225
  }
226
226
  } else {
227
- console.warn("Expected discriminated union containing object schema, but found: ", s);
227
+ Internal.log.warn("Expected discriminated union containing object schema, but found: ", s);
228
228
  }
229
229
  return false;
230
230
  });
@@ -487,7 +487,7 @@ function stegaEncode(input, opts) {
487
487
  }
488
488
  return res;
489
489
  }
490
- console.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
490
+ Internal.log.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
491
491
  return sourceOrSelector;
492
492
  }
493
493
  if (typeof sourceOrSelector === "string") {
@@ -513,7 +513,7 @@ function stegaEncode(input, opts) {
513
513
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
514
514
  return sourceOrSelector;
515
515
  }
516
- console.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
516
+ Internal.log.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
517
517
  return sourceOrSelector;
518
518
  }
519
519
  return rec(input, opts.root);
@@ -540,7 +540,7 @@ function isCodeSchema(schema) {
540
540
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "code";
541
541
  }
542
542
  function unknownSchema(schema) {
543
- console.debug("Found unknown schema", schema);
543
+ Internal.log.debug("Found unknown schema", schema);
544
544
  return schema;
545
545
  }
546
546
  function isDiscriminatedUnionSchema(schema) {
@@ -669,7 +669,7 @@ function getModuleIds(input) {
669
669
  }
670
670
  return;
671
671
  }
672
- console.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
672
+ Internal.log.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
673
673
  return;
674
674
  }
675
675
  if (typeof sourceOrSelector === "string") {
@@ -678,7 +678,7 @@ function getModuleIds(input) {
678
678
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
679
679
  return;
680
680
  }
681
- console.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
681
+ Internal.log.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
682
682
  return;
683
683
  }
684
684
  rec(input);
@@ -218,13 +218,13 @@ function resolveDiscriminatedUnionVariant(source, schema) {
218
218
  if (isLiteralSchema(keySchema)) {
219
219
  return keySchema.value === key;
220
220
  } else {
221
- console.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
221
+ Internal.log.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
222
222
  key: key,
223
223
  schema: s
224
224
  });
225
225
  }
226
226
  } else {
227
- console.warn("Expected discriminated union containing object schema, but found: ", s);
227
+ Internal.log.warn("Expected discriminated union containing object schema, but found: ", s);
228
228
  }
229
229
  return false;
230
230
  });
@@ -487,7 +487,7 @@ function stegaEncode(input, opts) {
487
487
  }
488
488
  return res;
489
489
  }
490
- console.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
490
+ Internal.log.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
491
491
  return sourceOrSelector;
492
492
  }
493
493
  if (typeof sourceOrSelector === "string") {
@@ -513,7 +513,7 @@ function stegaEncode(input, opts) {
513
513
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
514
514
  return sourceOrSelector;
515
515
  }
516
- console.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
516
+ Internal.log.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
517
517
  return sourceOrSelector;
518
518
  }
519
519
  return rec(input, opts.root);
@@ -540,7 +540,7 @@ function isCodeSchema(schema) {
540
540
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "code";
541
541
  }
542
542
  function unknownSchema(schema) {
543
- console.debug("Found unknown schema", schema);
543
+ Internal.log.debug("Found unknown schema", schema);
544
544
  return schema;
545
545
  }
546
546
  function isDiscriminatedUnionSchema(schema) {
@@ -669,7 +669,7 @@ function getModuleIds(input) {
669
669
  }
670
670
  return;
671
671
  }
672
- console.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
672
+ Internal.log.error("Could not transform source selector: ".concat(_typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
673
673
  return;
674
674
  }
675
675
  if (typeof sourceOrSelector === "string") {
@@ -678,7 +678,7 @@ function getModuleIds(input) {
678
678
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
679
679
  return;
680
680
  }
681
- console.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
681
+ Internal.log.error("Unexpected type of source selector: ".concat(_typeof(sourceOrSelector)));
682
682
  return;
683
683
  }
684
684
  rec(input);
@@ -220,13 +220,13 @@ function resolveDiscriminatedUnionVariant(source, schema) {
220
220
  if (isLiteralSchema(keySchema)) {
221
221
  return keySchema.value === key;
222
222
  } else {
223
- console.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
223
+ core.Internal.log.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
224
224
  key: key,
225
225
  schema: s
226
226
  });
227
227
  }
228
228
  } else {
229
- console.warn("Expected discriminated union containing object schema, but found: ", s);
229
+ core.Internal.log.warn("Expected discriminated union containing object schema, but found: ", s);
230
230
  }
231
231
  return false;
232
232
  });
@@ -489,7 +489,7 @@ function stegaEncode(input, opts) {
489
489
  }
490
490
  return res;
491
491
  }
492
- console.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
492
+ core.Internal.log.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
493
493
  return sourceOrSelector;
494
494
  }
495
495
  if (typeof sourceOrSelector === "string") {
@@ -515,7 +515,7 @@ function stegaEncode(input, opts) {
515
515
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
516
516
  return sourceOrSelector;
517
517
  }
518
- console.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
518
+ core.Internal.log.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
519
519
  return sourceOrSelector;
520
520
  }
521
521
  return rec(input, opts.root);
@@ -542,7 +542,7 @@ function isCodeSchema(schema) {
542
542
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "code";
543
543
  }
544
544
  function unknownSchema(schema) {
545
- console.debug("Found unknown schema", schema);
545
+ core.Internal.log.debug("Found unknown schema", schema);
546
546
  return schema;
547
547
  }
548
548
  function isDiscriminatedUnionSchema(schema) {
@@ -671,7 +671,7 @@ function getModuleIds(input) {
671
671
  }
672
672
  return;
673
673
  }
674
- console.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
674
+ core.Internal.log.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
675
675
  return;
676
676
  }
677
677
  if (typeof sourceOrSelector === "string") {
@@ -680,7 +680,7 @@ function getModuleIds(input) {
680
680
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
681
681
  return;
682
682
  }
683
- console.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
683
+ core.Internal.log.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
684
684
  return;
685
685
  }
686
686
  rec(input);
@@ -220,13 +220,13 @@ function resolveDiscriminatedUnionVariant(source, schema) {
220
220
  if (isLiteralSchema(keySchema)) {
221
221
  return keySchema.value === key;
222
222
  } else {
223
- console.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
223
+ core.Internal.log.warn("Expected literal schema at key in discriminated union, but found: ", keySchema, {
224
224
  key: key,
225
225
  schema: s
226
226
  });
227
227
  }
228
228
  } else {
229
- console.warn("Expected discriminated union containing object schema, but found: ", s);
229
+ core.Internal.log.warn("Expected discriminated union containing object schema, but found: ", s);
230
230
  }
231
231
  return false;
232
232
  });
@@ -489,7 +489,7 @@ function stegaEncode(input, opts) {
489
489
  }
490
490
  return res;
491
491
  }
492
- console.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
492
+ core.Internal.log.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
493
493
  return sourceOrSelector;
494
494
  }
495
495
  if (typeof sourceOrSelector === "string") {
@@ -515,7 +515,7 @@ function stegaEncode(input, opts) {
515
515
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
516
516
  return sourceOrSelector;
517
517
  }
518
- console.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
518
+ core.Internal.log.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
519
519
  return sourceOrSelector;
520
520
  }
521
521
  return rec(input, opts.root);
@@ -542,7 +542,7 @@ function isCodeSchema(schema) {
542
542
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "code";
543
543
  }
544
544
  function unknownSchema(schema) {
545
- console.debug("Found unknown schema", schema);
545
+ core.Internal.log.debug("Found unknown schema", schema);
546
546
  return schema;
547
547
  }
548
548
  function isDiscriminatedUnionSchema(schema) {
@@ -671,7 +671,7 @@ function getModuleIds(input) {
671
671
  }
672
672
  return;
673
673
  }
674
- console.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
674
+ core.Internal.log.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
675
675
  return;
676
676
  }
677
677
  if (typeof sourceOrSelector === "string") {
@@ -680,7 +680,7 @@ function getModuleIds(input) {
680
680
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
681
681
  return;
682
682
  }
683
- console.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
683
+ core.Internal.log.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
684
684
  return;
685
685
  }
686
686
  rec(input);
@@ -1,5 +1,5 @@
1
1
  import { c as _arrayLikeToArray, b as _unsupportedIterableToArray } from '../../dist/slicedToArray-9cce0d9f.browser.esm.js';
2
- import { d as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-be2fd916.browser.esm.js';
2
+ import { d as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-9bb55a5f.browser.esm.js';
3
3
  import React from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
  import '@valbuild/core';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var slicedToArray = require('../../dist/slicedToArray-e9e8e991.cjs.dev.js');
6
- var raw = require('../../dist/raw-1fce8756.cjs.dev.js');
6
+ var raw = require('../../dist/raw-eda286dd.cjs.dev.js');
7
7
  var React = require('react');
8
8
  var ReactJSXRuntime = require('react/jsx-runtime');
9
9
  require('@valbuild/core');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var slicedToArray = require('../../dist/slicedToArray-86004d59.cjs.prod.js');
6
- var raw = require('../../dist/raw-68a490e6.cjs.prod.js');
6
+ var raw = require('../../dist/raw-f3f7e399.cjs.prod.js');
7
7
  var React = require('react');
8
8
  var ReactJSXRuntime = require('react/jsx-runtime');
9
9
  require('@valbuild/core');
@@ -1,5 +1,5 @@
1
1
  import { c as _arrayLikeToArray, b as _unsupportedIterableToArray } from '../../dist/slicedToArray-0c0a3b4a.esm.js';
2
- import { d as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-26e85a34.esm.js';
2
+ import { d as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-7aae8bf6.esm.js';
3
3
  import React from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
  import '@valbuild/core';
@@ -1,5 +1,5 @@
1
1
  import { c as _arrayLikeToArray, b as _unsupportedIterableToArray } from '../../dist/slicedToArray-7d0170b6.worker.esm.js';
2
- import { d as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-55a21edc.worker.esm.js';
2
+ import { d as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-00151a05.worker.esm.js';
3
3
  import React from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
  import '@valbuild/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/react",
3
- "version": "0.148.1",
3
+ "version": "0.148.2",
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/shared": "0.148.0",
15
- "@valbuild/ui": "0.148.1",
16
- "@valbuild/core": "0.148.0"
14
+ "@valbuild/shared": "0.148.2",
15
+ "@valbuild/ui": "0.148.2",
16
+ "@valbuild/core": "0.148.2"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@testing-library/react": "^16.3.3",
@@ -1,11 +1,11 @@
1
1
  import { a as _typeof, _ as _slicedToArray } from '../../dist/slicedToArray-9cce0d9f.browser.esm.js';
2
- import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-be2fd916.browser.esm.js';
3
- export { c as attrs, g as getModuleIds, r as raw, b as stegaClean, s as stegaDecodeStrings, a as stegaEncode } from '../../dist/raw-be2fd916.browser.esm.js';
2
+ import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-9bb55a5f.browser.esm.js';
3
+ export { c as attrs, g as getModuleIds, r as raw, b as stegaClean, s as stegaDecodeStrings, a as stegaEncode } from '../../dist/raw-9bb55a5f.browser.esm.js';
4
+ import { Internal } from '@valbuild/core';
4
5
  import ReactJSXRuntime__default from 'react/jsx-runtime';
5
6
  import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
6
7
  import React from 'react';
7
8
  import { VERCEL_STEGA_REGEX, vercelStegaSplit } from '@vercel/stega';
8
- import '@valbuild/core';
9
9
 
10
10
  var isIntrinsicElement = function isIntrinsicElement(type) {
11
11
  // TODO: think this is not correct, but good enough for now?
@@ -28,7 +28,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
28
28
  }
29
29
  // Prevent prototype pollution
30
30
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
31
- console.error('Val: Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
31
+ Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
32
32
  return;
33
33
  }
34
34
  var valPaths = stegaDecodeStrings(value);
@@ -61,7 +61,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
61
61
  } else if (typeof key === "string" && !Array.isArray(container)) {
62
62
  container[key] = cleanValue;
63
63
  } else {
64
- console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
64
+ Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
65
65
  }
66
66
  } else {
67
67
  if (key === "href") {
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var slicedToArray = require('../../dist/slicedToArray-e9e8e991.cjs.dev.js');
6
- var raw = require('../../dist/raw-1fce8756.cjs.dev.js');
6
+ var raw = require('../../dist/raw-eda286dd.cjs.dev.js');
7
+ var core = require('@valbuild/core');
7
8
  var ReactJSXRuntime = require('react/jsx-runtime');
8
9
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
9
10
  var React = require('react');
10
11
  var stega = require('@vercel/stega');
11
- require('@valbuild/core');
12
12
 
13
13
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
14
14
 
@@ -37,7 +37,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
37
37
  }
38
38
  // Prevent prototype pollution
39
39
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
40
- console.error('Val: Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
40
+ core.Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
41
41
  return;
42
42
  }
43
43
  var valPaths = raw.stegaDecodeStrings(value);
@@ -70,7 +70,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
70
70
  } else if (typeof key === "string" && !Array.isArray(container)) {
71
71
  container[key] = cleanValue;
72
72
  } else {
73
- console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
73
+ core.Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
74
74
  }
75
75
  } else {
76
76
  if (key === "href") {
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var slicedToArray = require('../../dist/slicedToArray-86004d59.cjs.prod.js');
6
- var raw = require('../../dist/raw-68a490e6.cjs.prod.js');
6
+ var raw = require('../../dist/raw-f3f7e399.cjs.prod.js');
7
+ var core = require('@valbuild/core');
7
8
  var ReactJSXRuntime = require('react/jsx-runtime');
8
9
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
9
10
  var React = require('react');
10
11
  var stega = require('@vercel/stega');
11
- require('@valbuild/core');
12
12
 
13
13
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
14
14
 
@@ -37,7 +37,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
37
37
  }
38
38
  // Prevent prototype pollution
39
39
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
40
- console.error('Val: Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
40
+ core.Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
41
41
  return;
42
42
  }
43
43
  var valPaths = raw.stegaDecodeStrings(value);
@@ -70,7 +70,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
70
70
  } else if (typeof key === "string" && !Array.isArray(container)) {
71
71
  container[key] = cleanValue;
72
72
  } else {
73
- console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
73
+ core.Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
74
74
  }
75
75
  } else {
76
76
  if (key === "href") {
@@ -1,11 +1,11 @@
1
1
  import { a as _typeof, _ as _slicedToArray } from '../../dist/slicedToArray-0c0a3b4a.esm.js';
2
- import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-26e85a34.esm.js';
3
- export { c as attrs, g as getModuleIds, r as raw, b as stegaClean, s as stegaDecodeStrings, a as stegaEncode } from '../../dist/raw-26e85a34.esm.js';
2
+ import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-7aae8bf6.esm.js';
3
+ export { c as attrs, g as getModuleIds, r as raw, b as stegaClean, s as stegaDecodeStrings, a as stegaEncode } from '../../dist/raw-7aae8bf6.esm.js';
4
+ import { Internal } from '@valbuild/core';
4
5
  import ReactJSXRuntime__default from 'react/jsx-runtime';
5
6
  import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
6
7
  import React from 'react';
7
8
  import { VERCEL_STEGA_REGEX, vercelStegaSplit } from '@vercel/stega';
8
- import '@valbuild/core';
9
9
 
10
10
  var isIntrinsicElement = function isIntrinsicElement(type) {
11
11
  // TODO: think this is not correct, but good enough for now?
@@ -28,7 +28,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
28
28
  }
29
29
  // Prevent prototype pollution
30
30
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
31
- console.error('Val: Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
31
+ Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
32
32
  return;
33
33
  }
34
34
  var valPaths = stegaDecodeStrings(value);
@@ -61,7 +61,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
61
61
  } else if (typeof key === "string" && !Array.isArray(container)) {
62
62
  container[key] = cleanValue;
63
63
  } else {
64
- console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
64
+ Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
65
65
  }
66
66
  } else {
67
67
  if (key === "href") {
@@ -1,11 +1,11 @@
1
1
  import { a as _typeof, _ as _slicedToArray } from '../../dist/slicedToArray-7d0170b6.worker.esm.js';
2
- import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-55a21edc.worker.esm.js';
3
- export { c as attrs, g as getModuleIds, r as raw, b as stegaClean, s as stegaDecodeStrings, a as stegaEncode } from '../../dist/raw-55a21edc.worker.esm.js';
2
+ import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-00151a05.worker.esm.js';
3
+ export { c as attrs, g as getModuleIds, r as raw, b as stegaClean, s as stegaDecodeStrings, a as stegaEncode } from '../../dist/raw-00151a05.worker.esm.js';
4
+ import { Internal } from '@valbuild/core';
4
5
  import ReactJSXRuntime__default from 'react/jsx-runtime';
5
6
  import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
6
7
  import React from 'react';
7
8
  import { VERCEL_STEGA_REGEX, vercelStegaSplit } from '@vercel/stega';
8
- import '@valbuild/core';
9
9
 
10
10
  var isIntrinsicElement = function isIntrinsicElement(type) {
11
11
  // TODO: think this is not correct, but good enough for now?
@@ -28,7 +28,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
28
28
  }
29
29
  // Prevent prototype pollution
30
30
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
31
- console.error('Val: Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
31
+ Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
32
32
  return;
33
33
  }
34
34
  var valPaths = stegaDecodeStrings(value);
@@ -61,7 +61,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
61
61
  } else if (typeof key === "string" && !Array.isArray(container)) {
62
62
  container[key] = cleanValue;
63
63
  } else {
64
- console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
64
+ Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
65
65
  }
66
66
  } else {
67
67
  if (key === "href") {