@valbuild/react 0.96.3 → 0.97.0

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.
@@ -253,6 +253,9 @@ function stegaEncode(input, opts) {
253
253
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
254
254
  return sourceOrSelector;
255
255
  }
256
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateTimeSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
257
+ return sourceOrSelector;
258
+ }
256
259
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
257
260
  // Handle tagged union
258
261
  var taggedSchema = resolveTaggedUnionSchema(sourceOrSelector, recOpts.schema);
@@ -367,6 +370,9 @@ function isLiteralSchema(schema) {
367
370
  function isDateSchema(schema) {
368
371
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
369
372
  }
373
+ function isDateTimeSchema(schema) {
374
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "dateTime";
375
+ }
370
376
  function unknownSchema(schema) {
371
377
  console.debug("Found unknown schema", schema);
372
378
  return schema;
@@ -253,6 +253,9 @@ function stegaEncode(input, opts) {
253
253
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
254
254
  return sourceOrSelector;
255
255
  }
256
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateTimeSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
257
+ return sourceOrSelector;
258
+ }
256
259
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
257
260
  // Handle tagged union
258
261
  var taggedSchema = resolveTaggedUnionSchema(sourceOrSelector, recOpts.schema);
@@ -367,6 +370,9 @@ function isLiteralSchema(schema) {
367
370
  function isDateSchema(schema) {
368
371
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
369
372
  }
373
+ function isDateTimeSchema(schema) {
374
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "dateTime";
375
+ }
370
376
  function unknownSchema(schema) {
371
377
  console.debug("Found unknown schema", schema);
372
378
  return schema;
@@ -255,6 +255,9 @@ function stegaEncode(input, opts) {
255
255
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
256
256
  return sourceOrSelector;
257
257
  }
258
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateTimeSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
259
+ return sourceOrSelector;
260
+ }
258
261
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
259
262
  // Handle tagged union
260
263
  var taggedSchema = resolveTaggedUnionSchema(sourceOrSelector, recOpts.schema);
@@ -369,6 +372,9 @@ function isLiteralSchema(schema) {
369
372
  function isDateSchema(schema) {
370
373
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
371
374
  }
375
+ function isDateTimeSchema(schema) {
376
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "dateTime";
377
+ }
372
378
  function unknownSchema(schema) {
373
379
  console.debug("Found unknown schema", schema);
374
380
  return schema;
@@ -253,6 +253,9 @@ function stegaEncode(input, opts) {
253
253
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
254
254
  return sourceOrSelector;
255
255
  }
256
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateTimeSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
257
+ return sourceOrSelector;
258
+ }
256
259
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
257
260
  // Handle tagged union
258
261
  var taggedSchema = resolveTaggedUnionSchema(sourceOrSelector, recOpts.schema);
@@ -367,6 +370,9 @@ function isLiteralSchema(schema) {
367
370
  function isDateSchema(schema) {
368
371
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
369
372
  }
373
+ function isDateTimeSchema(schema) {
374
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "dateTime";
375
+ }
370
376
  function unknownSchema(schema) {
371
377
  console.debug("Found unknown schema", schema);
372
378
  return schema;
@@ -255,6 +255,9 @@ function stegaEncode(input, opts) {
255
255
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
256
256
  return sourceOrSelector;
257
257
  }
258
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateTimeSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
259
+ return sourceOrSelector;
260
+ }
258
261
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
259
262
  // Handle tagged union
260
263
  var taggedSchema = resolveTaggedUnionSchema(sourceOrSelector, recOpts.schema);
@@ -369,6 +372,9 @@ function isLiteralSchema(schema) {
369
372
  function isDateSchema(schema) {
370
373
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
371
374
  }
375
+ function isDateTimeSchema(schema) {
376
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "dateTime";
377
+ }
372
378
  function unknownSchema(schema) {
373
379
  console.debug("Found unknown schema", schema);
374
380
  return schema;
@@ -1,4 +1,4 @@
1
- import { d as _objectSpread2, r as raw, c as attrs, e as _toConsumableArray } from '../../dist/raw-f81b3458.browser.esm.js';
1
+ import { d as _objectSpread2, r as raw, c as attrs, e as _toConsumableArray } from '../../dist/raw-481a7769.browser.esm.js';
2
2
  import React from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import '../../dist/slicedToArray-9cce0d9f.browser.esm.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var raw = require('../../dist/raw-8092b516.cjs.dev.js');
5
+ var raw = require('../../dist/raw-f726efa7.cjs.dev.js');
6
6
  var React = require('react');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
8
  require('../../dist/slicedToArray-e9e8e991.cjs.dev.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var raw = require('../../dist/raw-ff4c049d.cjs.prod.js');
5
+ var raw = require('../../dist/raw-22e4345d.cjs.prod.js');
6
6
  var React = require('react');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
8
  require('../../dist/slicedToArray-86004d59.cjs.prod.js');
@@ -1,4 +1,4 @@
1
- import { d as _objectSpread2, r as raw, c as attrs, e as _toConsumableArray } from '../../dist/raw-0faf5cab.esm.js';
1
+ import { d as _objectSpread2, r as raw, c as attrs, e as _toConsumableArray } from '../../dist/raw-0321d2fc.esm.js';
2
2
  import React from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import '../../dist/slicedToArray-0c0a3b4a.esm.js';
@@ -1,4 +1,4 @@
1
- import { d as _objectSpread2, r as raw, c as attrs, e as _toConsumableArray } from '../../dist/raw-0dce4c18.worker.esm.js';
1
+ import { d as _objectSpread2, r as raw, c as attrs, e as _toConsumableArray } from '../../dist/raw-06fcd975.worker.esm.js';
2
2
  import React from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import '../../dist/slicedToArray-7d0170b6.worker.esm.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/react",
3
- "version": "0.96.3",
3
+ "version": "0.97.0",
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": "^0.1.0",
13
13
  "base64-arraybuffer": "^1.0.2",
14
- "@valbuild/core": "0.96.3",
15
- "@valbuild/shared": "0.96.3",
16
- "@valbuild/ui": "0.96.3"
14
+ "@valbuild/core": "0.97.0",
15
+ "@valbuild/shared": "0.97.0",
16
+ "@valbuild/ui": "0.97.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@testing-library/react": "^14.0.0",
@@ -1,6 +1,6 @@
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-f81b3458.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-f81b3458.browser.esm.js';
2
+ import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-481a7769.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-481a7769.browser.esm.js';
4
4
  import ReactJSXRuntime__default from 'react/jsx-runtime';
5
5
  import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
6
6
  import React from 'react';
@@ -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-8092b516.cjs.dev.js');
6
+ var raw = require('../../dist/raw-f726efa7.cjs.dev.js');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
8
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
9
9
  var React = require('react');
@@ -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-ff4c049d.cjs.prod.js');
6
+ var raw = require('../../dist/raw-22e4345d.cjs.prod.js');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
8
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
9
9
  var React = require('react');
@@ -1,6 +1,6 @@
1
1
  import { a as _typeof, _ as _slicedToArray } from '../../dist/slicedToArray-0c0a3b4a.esm.js';
2
- import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-0faf5cab.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-0faf5cab.esm.js';
2
+ import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-0321d2fc.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-0321d2fc.esm.js';
4
4
  import ReactJSXRuntime__default from 'react/jsx-runtime';
5
5
  import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
6
6
  import React from 'react';
@@ -1,6 +1,6 @@
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-0dce4c18.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-0dce4c18.worker.esm.js';
2
+ import { s as stegaDecodeStrings, _ as _createForOfIteratorHelper } from '../../dist/raw-06fcd975.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-06fcd975.worker.esm.js';
4
4
  import ReactJSXRuntime__default from 'react/jsx-runtime';
5
5
  import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
6
6
  import React from 'react';