@valbuild/next 0.55.1 → 0.55.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.
@@ -0,0 +1,20 @@
1
+ export { Schema, type SerializedSchema } from "@valbuild/core";
2
+ export type { SourceObject, SourcePrimitive, Source } from "@valbuild/core";
3
+ export type { ValModule, SerializedModule } from "@valbuild/core";
4
+ export type { FileSource } from "@valbuild/core";
5
+ export type { RichTextSource, RichText } from "@valbuild/core";
6
+ export { type Val, type SerializedVal, type ModuleId, type ModulePath, type SourcePath, type JsonOfSource, } from "@valbuild/core";
7
+ export type { Json, JsonPrimitive } from "@valbuild/core";
8
+ export type { ValidationErrors, ValidationError } from "@valbuild/core";
9
+ export type { ValidationFix } from "@valbuild/core";
10
+ export * as expr from "@valbuild/core";
11
+ export { FILE_REF_PROP } from "@valbuild/core";
12
+ export { VAL_EXTENSION, type SourceArray } from "@valbuild/core";
13
+ export { derefPatch } from "@valbuild/core";
14
+ export { type SelectorSource, type SelectorOf, GenericSelector, } from "@valbuild/core";
15
+ export { ValRichText } from "@valbuild/react/internal";
16
+ export { type ValEncodedString, type Image } from "@valbuild/react/stega";
17
+ export { ValProvider } from "./ValProvider.js";
18
+ export { ValImage, type ValImageProps } from "./ValImage.js";
19
+ export { ValApp } from "./ValApp.js";
20
+ export type * as t from "./ValTypes.js";
@@ -1,21 +1,2 @@
1
- export { Schema, type SerializedSchema } from "@valbuild/core";
2
- export type { SourceObject, SourcePrimitive, Source } from "@valbuild/core";
3
- export type { ValModule, SerializedModule } from "@valbuild/core";
4
- export type { FileSource } from "@valbuild/core";
5
- export type { RichTextSource, RichText } from "@valbuild/core";
6
- export { type Val, type SerializedVal, type ModuleId, type ModulePath, type SourcePath, type JsonOfSource, } from "@valbuild/core";
7
- export type { Json, JsonPrimitive } from "@valbuild/core";
8
- export type { ValidationErrors, ValidationError } from "@valbuild/core";
9
- export type { ValidationFix } from "@valbuild/core";
10
- export * as expr from "@valbuild/core";
11
- export { FILE_REF_PROP } from "@valbuild/core";
12
- export { VAL_EXTENSION, type SourceArray } from "@valbuild/core";
13
- export { derefPatch } from "@valbuild/core";
14
- export { type SelectorSource, type SelectorOf, GenericSelector, } from "@valbuild/core";
15
- export { ValRichText } from "@valbuild/react/internal";
16
- export { type ValEncodedString, type Image } from "@valbuild/react/stega";
17
- export { ValProvider } from "./ValProvider.js";
18
- export { ValImage, type ValImageProps } from "./ValImage.js";
19
- export { ValApp } from "./ValApp.js";
20
1
  export { initVal } from "./initVal.js";
21
- export type * as t from "./ValTypes.js";
2
+ export * from "./external_exempt_from_val_quickjs.js";
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@valbuild/core');
6
+ var stega = require('@valbuild/react/stega');
6
7
  var internal = require('@valbuild/react/internal');
7
8
  var ValNextProvider = require('./ValNextProvider-49d2bec1.cjs.dev.js');
8
9
  var NextImage = require('next/image');
9
- var stega = require('@valbuild/react/stega');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  var ValApp = require('./ValApp-cbf9b1c3.cjs.dev.js');
12
12
 
@@ -33,8 +33,6 @@ function _interopNamespace(e) {
33
33
  var core__namespace = /*#__PURE__*/_interopNamespace(core);
34
34
  var NextImage__default = /*#__PURE__*/_interopDefault(NextImage);
35
35
 
36
- var ValProvider = ValNextProvider.ValNextProvider;
37
-
38
36
  function toPrimitive(t, r) {
39
37
  if ("object" != typeof t || !t) return t;
40
38
  var e = t[Symbol.toPrimitive];
@@ -88,6 +86,36 @@ function _objectSpread2(e) {
88
86
  return e;
89
87
  }
90
88
 
89
+ function raw(encodedString) {
90
+ return stega.stegaClean(encodedString);
91
+ }
92
+
93
+ function decodeValPathOfString(encodedString) {
94
+ return stega.stegaDecodeString(encodedString);
95
+ }
96
+
97
+ var initVal = function initVal(config) {
98
+ var _createValSystem = core.initVal(),
99
+ s = _createValSystem.s,
100
+ c = _createValSystem.c,
101
+ val = _createValSystem.val,
102
+ systemConfig = _createValSystem.config;
103
+ var currentConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, systemConfig), config), {}, {
104
+ valConfigPath: (config === null || config === void 0 ? void 0 : config.valConfigPath) || "./val.config"
105
+ });
106
+ return {
107
+ s: s,
108
+ c: c,
109
+ val: _objectSpread2(_objectSpread2({}, val), {}, {
110
+ decodeValPathOfString: decodeValPathOfString,
111
+ raw: raw
112
+ }),
113
+ config: currentConfig
114
+ };
115
+ };
116
+
117
+ var ValProvider = ValNextProvider.ValNextProvider;
118
+
91
119
  function _objectWithoutPropertiesLoose(source, excluded) {
92
120
  if (source == null) return {};
93
121
  var target = {};
@@ -117,14 +145,6 @@ function _objectWithoutProperties(source, excluded) {
117
145
  return target;
118
146
  }
119
147
 
120
- function raw(encodedString) {
121
- return stega.stegaClean(encodedString);
122
- }
123
-
124
- function decodeValPathOfString(encodedString) {
125
- return stega.stegaDecodeString(encodedString);
126
- }
127
-
128
148
  var _excluded = ["src", "alt", "style", "width", "disableHotspot", "height"];
129
149
  function ValImage(props) {
130
150
  var _src$metadata, _src$metadata2, _src$metadata3;
@@ -165,26 +185,6 @@ function ValImage(props) {
165
185
  }));
166
186
  }
167
187
 
168
- var initVal = function initVal(config) {
169
- var _createValSystem = core.initVal(),
170
- s = _createValSystem.s,
171
- c = _createValSystem.c,
172
- val = _createValSystem.val,
173
- systemConfig = _createValSystem.config;
174
- var currentConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, systemConfig), config), {}, {
175
- valConfigPath: (config === null || config === void 0 ? void 0 : config.valConfigPath) || "./val.config"
176
- });
177
- return {
178
- s: s,
179
- c: c,
180
- val: _objectSpread2(_objectSpread2({}, val), {}, {
181
- decodeValPathOfString: decodeValPathOfString,
182
- raw: raw
183
- }),
184
- config: currentConfig
185
- };
186
- };
187
-
188
188
  // Core (excluding initVal)
189
189
 
190
190
  // NOTE! Side effects:
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@valbuild/core');
6
+ var stega = require('@valbuild/react/stega');
6
7
  var internal = require('@valbuild/react/internal');
7
8
  var ValNextProvider = require('./ValNextProvider-7750e412.cjs.prod.js');
8
9
  var NextImage = require('next/image');
9
- var stega = require('@valbuild/react/stega');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  var ValApp = require('./ValApp-09d3eba7.cjs.prod.js');
12
12
 
@@ -33,8 +33,6 @@ function _interopNamespace(e) {
33
33
  var core__namespace = /*#__PURE__*/_interopNamespace(core);
34
34
  var NextImage__default = /*#__PURE__*/_interopDefault(NextImage);
35
35
 
36
- var ValProvider = ValNextProvider.ValNextProvider;
37
-
38
36
  function toPrimitive(t, r) {
39
37
  if ("object" != typeof t || !t) return t;
40
38
  var e = t[Symbol.toPrimitive];
@@ -88,6 +86,36 @@ function _objectSpread2(e) {
88
86
  return e;
89
87
  }
90
88
 
89
+ function raw(encodedString) {
90
+ return stega.stegaClean(encodedString);
91
+ }
92
+
93
+ function decodeValPathOfString(encodedString) {
94
+ return stega.stegaDecodeString(encodedString);
95
+ }
96
+
97
+ var initVal = function initVal(config) {
98
+ var _createValSystem = core.initVal(),
99
+ s = _createValSystem.s,
100
+ c = _createValSystem.c,
101
+ val = _createValSystem.val,
102
+ systemConfig = _createValSystem.config;
103
+ var currentConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, systemConfig), config), {}, {
104
+ valConfigPath: (config === null || config === void 0 ? void 0 : config.valConfigPath) || "./val.config"
105
+ });
106
+ return {
107
+ s: s,
108
+ c: c,
109
+ val: _objectSpread2(_objectSpread2({}, val), {}, {
110
+ decodeValPathOfString: decodeValPathOfString,
111
+ raw: raw
112
+ }),
113
+ config: currentConfig
114
+ };
115
+ };
116
+
117
+ var ValProvider = ValNextProvider.ValNextProvider;
118
+
91
119
  function _objectWithoutPropertiesLoose(source, excluded) {
92
120
  if (source == null) return {};
93
121
  var target = {};
@@ -117,14 +145,6 @@ function _objectWithoutProperties(source, excluded) {
117
145
  return target;
118
146
  }
119
147
 
120
- function raw(encodedString) {
121
- return stega.stegaClean(encodedString);
122
- }
123
-
124
- function decodeValPathOfString(encodedString) {
125
- return stega.stegaDecodeString(encodedString);
126
- }
127
-
128
148
  var _excluded = ["src", "alt", "style", "width", "disableHotspot", "height"];
129
149
  function ValImage(props) {
130
150
  var _src$metadata, _src$metadata2, _src$metadata3;
@@ -165,26 +185,6 @@ function ValImage(props) {
165
185
  }));
166
186
  }
167
187
 
168
- var initVal = function initVal(config) {
169
- var _createValSystem = core.initVal(),
170
- s = _createValSystem.s,
171
- c = _createValSystem.c,
172
- val = _createValSystem.val,
173
- systemConfig = _createValSystem.config;
174
- var currentConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, systemConfig), config), {}, {
175
- valConfigPath: (config === null || config === void 0 ? void 0 : config.valConfigPath) || "./val.config"
176
- });
177
- return {
178
- s: s,
179
- c: c,
180
- val: _objectSpread2(_objectSpread2({}, val), {}, {
181
- decodeValPathOfString: decodeValPathOfString,
182
- raw: raw
183
- }),
184
- config: currentConfig
185
- };
186
- };
187
-
188
188
  // Core (excluding initVal)
189
189
 
190
190
  // NOTE! Side effects:
@@ -2,15 +2,13 @@ import { initVal as initVal$1 } from '@valbuild/core';
2
2
  import * as core from '@valbuild/core';
3
3
  export { core as expr };
4
4
  export { FILE_REF_PROP, GenericSelector, Schema, VAL_EXTENSION, derefPatch } from '@valbuild/core';
5
+ import { stegaClean, stegaDecodeString, autoTagJSX } from '@valbuild/react/stega';
5
6
  export { ValRichText } from '@valbuild/react/internal';
6
7
  import { ValNextProvider } from './ValNextProvider-c5c9fcb0.esm.js';
7
8
  import NextImage from 'next/image';
8
- import { stegaClean, stegaDecodeString, autoTagJSX } from '@valbuild/react/stega';
9
9
  import { jsx } from 'react/jsx-runtime';
10
10
  export { ValApp } from './ValApp-6827827a.esm.js';
11
11
 
12
- var ValProvider = ValNextProvider;
13
-
14
12
  function toPrimitive(t, r) {
15
13
  if ("object" != typeof t || !t) return t;
16
14
  var e = t[Symbol.toPrimitive];
@@ -64,6 +62,36 @@ function _objectSpread2(e) {
64
62
  return e;
65
63
  }
66
64
 
65
+ function raw(encodedString) {
66
+ return stegaClean(encodedString);
67
+ }
68
+
69
+ function decodeValPathOfString(encodedString) {
70
+ return stegaDecodeString(encodedString);
71
+ }
72
+
73
+ var initVal = function initVal(config) {
74
+ var _createValSystem = initVal$1(),
75
+ s = _createValSystem.s,
76
+ c = _createValSystem.c,
77
+ val = _createValSystem.val,
78
+ systemConfig = _createValSystem.config;
79
+ var currentConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, systemConfig), config), {}, {
80
+ valConfigPath: (config === null || config === void 0 ? void 0 : config.valConfigPath) || "./val.config"
81
+ });
82
+ return {
83
+ s: s,
84
+ c: c,
85
+ val: _objectSpread2(_objectSpread2({}, val), {}, {
86
+ decodeValPathOfString: decodeValPathOfString,
87
+ raw: raw
88
+ }),
89
+ config: currentConfig
90
+ };
91
+ };
92
+
93
+ var ValProvider = ValNextProvider;
94
+
67
95
  function _objectWithoutPropertiesLoose(source, excluded) {
68
96
  if (source == null) return {};
69
97
  var target = {};
@@ -93,14 +121,6 @@ function _objectWithoutProperties(source, excluded) {
93
121
  return target;
94
122
  }
95
123
 
96
- function raw(encodedString) {
97
- return stegaClean(encodedString);
98
- }
99
-
100
- function decodeValPathOfString(encodedString) {
101
- return stegaDecodeString(encodedString);
102
- }
103
-
104
124
  var _excluded = ["src", "alt", "style", "width", "disableHotspot", "height"];
105
125
  function ValImage(props) {
106
126
  var _src$metadata, _src$metadata2, _src$metadata3;
@@ -141,26 +161,6 @@ function ValImage(props) {
141
161
  }));
142
162
  }
143
163
 
144
- var initVal = function initVal(config) {
145
- var _createValSystem = initVal$1(),
146
- s = _createValSystem.s,
147
- c = _createValSystem.c,
148
- val = _createValSystem.val,
149
- systemConfig = _createValSystem.config;
150
- var currentConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, systemConfig), config), {}, {
151
- valConfigPath: (config === null || config === void 0 ? void 0 : config.valConfigPath) || "./val.config"
152
- });
153
- return {
154
- s: s,
155
- c: c,
156
- val: _objectSpread2(_objectSpread2({}, val), {}, {
157
- decodeValPathOfString: decodeValPathOfString,
158
- raw: raw
159
- }),
160
- config: currentConfig
161
- };
162
- };
163
-
164
164
  // Core (excluding initVal)
165
165
 
166
166
  // NOTE! Side effects:
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "next",
9
9
  "react"
10
10
  ],
11
- "version": "0.55.1",
11
+ "version": "0.55.2",
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.55.1",
49
- "@valbuild/react": "~0.55.1",
50
- "@valbuild/server": "~0.55.1",
51
- "@valbuild/ui": "~0.55.1",
48
+ "@valbuild/core": "~0.55.2",
49
+ "@valbuild/react": "~0.55.2",
50
+ "@valbuild/server": "~0.55.2",
51
+ "@valbuild/ui": "~0.55.2",
52
52
  "client-only": "^0.0.1",
53
53
  "server-only": "^0.0.1"
54
54
  },