@valbuild/react 0.63.5 → 0.64.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.
@@ -18,10 +18,10 @@ type WithVal<T extends object> = {
18
18
  [K in keyof T]: K extends "key" | "ref" | "className"
19
19
  ? T[K]
20
20
  : K extends "style"
21
- ? WithVal<React.CSSProperties>
22
- : T[K] extends object
23
- ? T[K]
24
- : MaybeVal<T[K]>;
21
+ ? WithVal<React.CSSProperties>
22
+ : T[K] extends object
23
+ ? T[K]
24
+ : MaybeVal<T[K]>;
25
25
  };
26
26
 
27
27
  export namespace ValJSX {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/react",
3
- "version": "0.63.5",
3
+ "version": "0.64.0",
4
4
  "private": false,
5
5
  "description": "Val - React internal helpers",
6
6
  "sideEffects": false,
@@ -9,9 +9,9 @@
9
9
  "test": "jest"
10
10
  },
11
11
  "dependencies": {
12
- "@valbuild/core": "~0.63.5",
13
- "@valbuild/shared": "~0.63.5",
14
- "@valbuild/ui": "~0.63.5",
12
+ "@valbuild/core": "~0.64.0",
13
+ "@valbuild/shared": "~0.64.0",
14
+ "@valbuild/ui": "~0.64.0",
15
15
  "@vercel/stega": "^0.1.0",
16
16
  "base64-arraybuffer": "^1.0.2"
17
17
  },
@@ -206,6 +206,9 @@ function stegaEncode(input, opts) {
206
206
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isLiteralSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
207
207
  return sourceOrSelector;
208
208
  }
209
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
210
+ return sourceOrSelector;
211
+ }
209
212
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
210
213
  if (sourceOrSelector && _typeof(sourceOrSelector) === "object" && recOpts.schema.key && typeof recOpts.schema.key === "string") {
211
214
  var _key = sourceOrSelector[recOpts.schema.key];
@@ -337,6 +340,9 @@ function isRecordSchema(schema) {
337
340
  function isLiteralSchema(schema) {
338
341
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "literal";
339
342
  }
343
+ function isDateSchema(schema) {
344
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
345
+ }
340
346
  function unknownSchema(schema) {
341
347
  console.debug("Found unknown schema", schema);
342
348
  return schema;
@@ -216,6 +216,9 @@ function stegaEncode(input, opts) {
216
216
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isLiteralSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
217
217
  return sourceOrSelector;
218
218
  }
219
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
220
+ return sourceOrSelector;
221
+ }
219
222
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
220
223
  if (sourceOrSelector && slicedToArray._typeof(sourceOrSelector) === "object" && recOpts.schema.key && typeof recOpts.schema.key === "string") {
221
224
  var _key = sourceOrSelector[recOpts.schema.key];
@@ -347,6 +350,9 @@ function isRecordSchema(schema) {
347
350
  function isLiteralSchema(schema) {
348
351
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "literal";
349
352
  }
353
+ function isDateSchema(schema) {
354
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
355
+ }
350
356
  function unknownSchema(schema) {
351
357
  console.debug("Found unknown schema", schema);
352
358
  return schema;
@@ -216,6 +216,9 @@ function stegaEncode(input, opts) {
216
216
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isLiteralSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
217
217
  return sourceOrSelector;
218
218
  }
219
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
220
+ return sourceOrSelector;
221
+ }
219
222
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
220
223
  if (sourceOrSelector && slicedToArray._typeof(sourceOrSelector) === "object" && recOpts.schema.key && typeof recOpts.schema.key === "string") {
221
224
  var _key = sourceOrSelector[recOpts.schema.key];
@@ -347,6 +350,9 @@ function isRecordSchema(schema) {
347
350
  function isLiteralSchema(schema) {
348
351
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "literal";
349
352
  }
353
+ function isDateSchema(schema) {
354
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
355
+ }
350
356
  function unknownSchema(schema) {
351
357
  console.debug("Found unknown schema", schema);
352
358
  return schema;
@@ -206,6 +206,9 @@ function stegaEncode(input, opts) {
206
206
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isLiteralSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
207
207
  return sourceOrSelector;
208
208
  }
209
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
210
+ return sourceOrSelector;
211
+ }
209
212
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
210
213
  if (sourceOrSelector && _typeof(sourceOrSelector) === "object" && recOpts.schema.key && typeof recOpts.schema.key === "string") {
211
214
  var _key = sourceOrSelector[recOpts.schema.key];
@@ -337,6 +340,9 @@ function isRecordSchema(schema) {
337
340
  function isLiteralSchema(schema) {
338
341
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "literal";
339
342
  }
343
+ function isDateSchema(schema) {
344
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
345
+ }
340
346
  function unknownSchema(schema) {
341
347
  console.debug("Found unknown schema", schema);
342
348
  return schema;
@@ -206,6 +206,9 @@ function stegaEncode(input, opts) {
206
206
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isLiteralSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
207
207
  return sourceOrSelector;
208
208
  }
209
+ if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isDateSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
210
+ return sourceOrSelector;
211
+ }
209
212
  if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
210
213
  if (sourceOrSelector && _typeof(sourceOrSelector) === "object" && recOpts.schema.key && typeof recOpts.schema.key === "string") {
211
214
  var _key = sourceOrSelector[recOpts.schema.key];
@@ -337,6 +340,9 @@ function isRecordSchema(schema) {
337
340
  function isLiteralSchema(schema) {
338
341
  return (schema === null || schema === void 0 ? void 0 : schema.type) === "literal";
339
342
  }
343
+ function isDateSchema(schema) {
344
+ return (schema === null || schema === void 0 ? void 0 : schema.type) === "date";
345
+ }
340
346
  function unknownSchema(schema) {
341
347
  console.debug("Found unknown schema", schema);
342
348
  return schema;