@valbuild/next 0.60.18 → 0.60.20

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.
@@ -7,7 +7,7 @@ var slicedToArray = require('../../dist/slicedToArray-c03b6356.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var React = require('react');
10
- var ValContext = require('../../dist/ValContext-727c130d.cjs.dev.js');
10
+ var ValContext = require('../../dist/ValContext-a73be368.cjs.dev.js');
11
11
  require('../../dist/unsupportedIterableToArray-9e97e24a.cjs.dev.js');
12
12
 
13
13
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -7,7 +7,7 @@ var slicedToArray = require('../../dist/slicedToArray-1d91551a.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var React = require('react');
10
- var ValContext = require('../../dist/ValContext-8ee66ca6.cjs.prod.js');
10
+ var ValContext = require('../../dist/ValContext-37ea12ae.cjs.prod.js');
11
11
  require('../../dist/unsupportedIterableToArray-afbea1dd.cjs.prod.js');
12
12
 
13
13
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from '../../dist/slicedToArray-1ff80c5e.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import { getModuleIds, stegaEncode } from '@valbuild/react/stega';
5
5
  import React from 'react';
6
- import { useValEvents } from '../../dist/ValContext-5eaabd86.esm.js';
6
+ import { useValEvents } from '../../dist/ValContext-e5293493.esm.js';
7
7
  import '../../dist/unsupportedIterableToArray-51bb61c2.esm.js';
8
8
 
9
9
  function useValStega(selector) {
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValContext-37ea12ae.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValContext-37ea12ae.cjs.dev.js");
7
+ }
@@ -158,7 +158,7 @@ var ValEvents = /*#__PURE__*/function () {
158
158
  function createSubscriberId(moduleIds) {
159
159
  return moduleIds.slice().sort().join("&");
160
160
  }
161
- var ValContext = /*#__PURE__*/React.createContext({
161
+ var ValContext = /*#__PURE__*/React__default["default"].createContext({
162
162
  valEvents: undefined,
163
163
  enabled: false
164
164
  });
@@ -158,7 +158,7 @@ var ValEvents = /*#__PURE__*/function () {
158
158
  function createSubscriberId(moduleIds) {
159
159
  return moduleIds.slice().sort().join("&");
160
160
  }
161
- var ValContext = /*#__PURE__*/React.createContext({
161
+ var ValContext = /*#__PURE__*/React__default["default"].createContext({
162
162
  valEvents: undefined,
163
163
  enabled: false
164
164
  });
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-51bb61c2.esm.js';
3
3
  import { t as toPropertyKey, _ as _objectSpread2, a as _defineProperty } from './objectSpread2-439bdcdd.esm.js';
4
- import React, { createContext } from 'react';
4
+ import React from 'react';
5
5
 
6
6
  function _createForOfIteratorHelper(o, allowArrayLike) {
7
7
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -150,7 +150,7 @@ var ValEvents = /*#__PURE__*/function () {
150
150
  function createSubscriberId(moduleIds) {
151
151
  return moduleIds.slice().sort().join("&");
152
152
  }
153
- var ValContext = /*#__PURE__*/createContext({
153
+ var ValContext = /*#__PURE__*/React.createContext({
154
154
  valEvents: undefined,
155
155
  enabled: false
156
156
  });
@@ -5,7 +5,7 @@ import { VAL_APP_PATH, VAL_OVERLAY_ID } from '@valbuild/ui';
5
5
  import { usePathname, useRouter } from 'next/navigation';
6
6
  import Script from 'next/script';
7
7
  import React from 'react';
8
- import { ValEvents, ValContext } from './ValContext-5eaabd86.esm.js';
8
+ import { ValEvents, ValContext } from './ValContext-e5293493.esm.js';
9
9
  import { jsxs, jsx } from 'react/jsx-runtime';
10
10
  import './unsupportedIterableToArray-51bb61c2.esm.js';
11
11
 
@@ -9,7 +9,7 @@ var ui = require('@valbuild/ui');
9
9
  var navigation = require('next/navigation');
10
10
  var Script = require('next/script');
11
11
  var React = require('react');
12
- var ValContext = require('./ValContext-8ee66ca6.cjs.prod.js');
12
+ var ValContext = require('./ValContext-37ea12ae.cjs.prod.js');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
14
  require('./unsupportedIterableToArray-afbea1dd.cjs.prod.js');
15
15
 
@@ -9,7 +9,7 @@ var ui = require('@valbuild/ui');
9
9
  var navigation = require('next/navigation');
10
10
  var Script = require('next/script');
11
11
  var React = require('react');
12
- var ValContext = require('./ValContext-727c130d.cjs.dev.js');
12
+ var ValContext = require('./ValContext-a73be368.cjs.dev.js');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
14
  require('./unsupportedIterableToArray-9e97e24a.cjs.dev.js');
15
15
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "next",
9
9
  "react"
10
10
  ],
11
- "version": "0.60.18",
11
+ "version": "0.60.20",
12
12
  "scripts": {
13
13
  "typecheck": "tsc --noEmit",
14
14
  "test": "jest"
@@ -45,10 +45,10 @@
45
45
  "exports": true
46
46
  },
47
47
  "dependencies": {
48
- "@valbuild/core": "~0.60.18",
49
- "@valbuild/react": "~0.60.18",
50
- "@valbuild/server": "~0.60.18",
51
- "@valbuild/ui": "~0.60.18",
48
+ "@valbuild/core": "~0.60.20",
49
+ "@valbuild/react": "~0.60.20",
50
+ "@valbuild/server": "~0.60.20",
51
+ "@valbuild/ui": "~0.60.20",
52
52
  "client-only": "^0.0.1",
53
53
  "server-only": "^0.0.1"
54
54
  },
@@ -76,6 +76,8 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, isEn
76
76
  treePath: (_optimizeTreePath = optimizeTreePath(valModuleIds)) !== null && _optimizeTreePath !== void 0 ? _optimizeTreePath : undefined,
77
77
  patch: true,
78
78
  includeSource: true,
79
+ includeSchema: true,
80
+ validate: true,
79
81
  headers: getValAuthHeaders(cookies)
80
82
  }).then(function (res) {
81
83
  if (fp.result.isOk(res)) {
@@ -76,6 +76,8 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, isEn
76
76
  treePath: (_optimizeTreePath = optimizeTreePath(valModuleIds)) !== null && _optimizeTreePath !== void 0 ? _optimizeTreePath : undefined,
77
77
  patch: true,
78
78
  includeSource: true,
79
+ includeSchema: true,
80
+ validate: true,
79
81
  headers: getValAuthHeaders(cookies)
80
82
  }).then(function (res) {
81
83
  if (fp.result.isOk(res)) {
@@ -72,6 +72,8 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, isEn
72
72
  treePath: (_optimizeTreePath = optimizeTreePath(valModuleIds)) !== null && _optimizeTreePath !== void 0 ? _optimizeTreePath : undefined,
73
73
  patch: true,
74
74
  includeSource: true,
75
+ includeSchema: true,
76
+ validate: true,
75
77
  headers: getValAuthHeaders(cookies)
76
78
  }).then(function (res) {
77
79
  if (result.isOk(res)) {
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValContext-8ee66ca6.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValContext-8ee66ca6.cjs.dev.js");
7
- }