@valbuild/next 0.60.16 → 0.60.18

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-b1d2da47.cjs.dev.js');
10
+ var ValContext = require('../../dist/ValContext-727c130d.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-b64043dd.cjs.prod.js');
10
+ var ValContext = require('../../dist/ValContext-8ee66ca6.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-059d6dd7.esm.js';
6
+ import { useValEvents } from '../../dist/ValContext-5eaabd86.esm.js';
7
7
  import '../../dist/unsupportedIterableToArray-51bb61c2.esm.js';
8
8
 
9
9
  function useValStega(selector) {
@@ -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 from 'react';
4
+ import React, { createContext } from 'react';
5
5
 
6
6
  function _createForOfIteratorHelper(o, allowArrayLike) {
7
7
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -150,8 +150,9 @@ var ValEvents = /*#__PURE__*/function () {
150
150
  function createSubscriberId(moduleIds) {
151
151
  return moduleIds.slice().sort().join("&");
152
152
  }
153
- var ValContext = /*#__PURE__*/React.createContext({
154
- valEvents: undefined
153
+ var ValContext = /*#__PURE__*/createContext({
154
+ valEvents: undefined,
155
+ enabled: false
155
156
  });
156
157
  var useValEvents = function useValEvents() {
157
158
  return React.useContext(ValContext).valEvents;
@@ -158,8 +158,9 @@ var ValEvents = /*#__PURE__*/function () {
158
158
  function createSubscriberId(moduleIds) {
159
159
  return moduleIds.slice().sort().join("&");
160
160
  }
161
- var ValContext = /*#__PURE__*/React__default["default"].createContext({
162
- valEvents: undefined
161
+ var ValContext = /*#__PURE__*/React.createContext({
162
+ valEvents: undefined,
163
+ enabled: false
163
164
  });
164
165
  var useValEvents = function useValEvents() {
165
166
  return React__default["default"].useContext(ValContext).valEvents;
@@ -0,0 +1,7 @@
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
+ }
@@ -158,8 +158,9 @@ var ValEvents = /*#__PURE__*/function () {
158
158
  function createSubscriberId(moduleIds) {
159
159
  return moduleIds.slice().sort().join("&");
160
160
  }
161
- var ValContext = /*#__PURE__*/React__default["default"].createContext({
162
- valEvents: undefined
161
+ var ValContext = /*#__PURE__*/React.createContext({
162
+ valEvents: undefined,
163
+ enabled: false
163
164
  });
164
165
  var useValEvents = function useValEvents() {
165
166
  return React__default["default"].useContext(ValContext).valEvents;
@@ -5,8 +5,8 @@ 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-059d6dd7.esm.js';
9
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
8
+ import { ValEvents, ValContext } from './ValContext-5eaabd86.esm.js';
9
+ import { jsxs, jsx } from 'react/jsx-runtime';
10
10
  import './unsupportedIterableToArray-51bb61c2.esm.js';
11
11
 
12
12
  var ValNextProvider = function ValNextProvider(props) {
@@ -72,9 +72,10 @@ var ValNextProvider = function ValNextProvider(props) {
72
72
  // TODO: use portal to mount overlay
73
73
  return /*#__PURE__*/jsxs(ValContext.Provider, {
74
74
  value: {
75
- valEvents: valEvents
75
+ valEvents: valEvents,
76
+ enabled: enabled
76
77
  },
77
- children: [props.children, enabled && /*#__PURE__*/jsxs(Fragment, {
78
+ children: [props.children, enabled && /*#__PURE__*/jsxs(React.Fragment, {
78
79
  children: [/*#__PURE__*/jsx(Script, {
79
80
  type: "module",
80
81
  src: "".concat(route, "/static").concat(VAL_APP_PATH)
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValNextProvider-676d6cb8.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValNextProvider-676d6cb8.cjs.dev.js");
7
+ }
@@ -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-b64043dd.cjs.prod.js');
12
+ var ValContext = require('./ValContext-8ee66ca6.cjs.prod.js');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
14
  require('./unsupportedIterableToArray-afbea1dd.cjs.prod.js');
15
15
 
@@ -81,9 +81,10 @@ var ValNextProvider = function ValNextProvider(props) {
81
81
  // TODO: use portal to mount overlay
82
82
  return /*#__PURE__*/jsxRuntime.jsxs(ValContext.ValContext.Provider, {
83
83
  value: {
84
- valEvents: valEvents
84
+ valEvents: valEvents,
85
+ enabled: enabled
85
86
  },
86
- children: [props.children, enabled && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
87
+ children: [props.children, enabled && /*#__PURE__*/jsxRuntime.jsxs(React__default["default"].Fragment, {
87
88
  children: [/*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
88
89
  type: "module",
89
90
  src: "".concat(route, "/static").concat(ui.VAL_APP_PATH)
@@ -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-b1d2da47.cjs.dev.js');
12
+ var ValContext = require('./ValContext-727c130d.cjs.dev.js');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
14
  require('./unsupportedIterableToArray-9e97e24a.cjs.dev.js');
15
15
 
@@ -81,9 +81,10 @@ var ValNextProvider = function ValNextProvider(props) {
81
81
  // TODO: use portal to mount overlay
82
82
  return /*#__PURE__*/jsxRuntime.jsxs(ValContext.ValContext.Provider, {
83
83
  value: {
84
- valEvents: valEvents
84
+ valEvents: valEvents,
85
+ enabled: enabled
85
86
  },
86
- children: [props.children, enabled && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
87
+ children: [props.children, enabled && /*#__PURE__*/jsxRuntime.jsxs(React__default["default"].Fragment, {
87
88
  children: [/*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
88
89
  type: "module",
89
90
  src: "".concat(route, "/static").concat(ui.VAL_APP_PATH)
@@ -6,7 +6,7 @@ var objectSpread2 = require('./objectSpread2-bb9509e8.cjs.dev.js');
6
6
  var core = require('@valbuild/core');
7
7
  var stega = require('@valbuild/react/stega');
8
8
  var internal = require('@valbuild/react/internal');
9
- var ValNextProvider = require('./ValNextProvider-2ea4452a.cjs.dev.js');
9
+ var ValNextProvider = require('./ValNextProvider-ef4fdca6.cjs.dev.js');
10
10
  var NextImage = require('next/image');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
12
  var ValApp = require('./ValApp-aff60572.cjs.dev.js');
@@ -6,7 +6,7 @@ var objectSpread2 = require('./objectSpread2-24e737a6.cjs.prod.js');
6
6
  var core = require('@valbuild/core');
7
7
  var stega = require('@valbuild/react/stega');
8
8
  var internal = require('@valbuild/react/internal');
9
- var ValNextProvider = require('./ValNextProvider-2360873d.cjs.prod.js');
9
+ var ValNextProvider = require('./ValNextProvider-676d6cb8.cjs.prod.js');
10
10
  var NextImage = require('next/image');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
12
  var ValApp = require('./ValApp-0ec0c7f3.cjs.prod.js');
@@ -5,7 +5,7 @@ export { core as expr };
5
5
  export { FILE_REF_PROP, GenericSelector, Schema, VAL_EXTENSION, derefPatch } from '@valbuild/core';
6
6
  import { stegaClean, stegaDecodeString, autoTagJSX } from '@valbuild/react/stega';
7
7
  export { ValRichText } from '@valbuild/react/internal';
8
- import { ValNextProvider } from './ValNextProvider-fcb9e0c7.esm.js';
8
+ import { ValNextProvider } from './ValNextProvider-23099a43.esm.js';
9
9
  import NextImage from 'next/image';
10
10
  import { jsx } from 'react/jsx-runtime';
11
11
  export { ValApp } from './ValApp-61103149.esm.js';
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "next",
9
9
  "react"
10
10
  ],
11
- "version": "0.60.16",
11
+ "version": "0.60.18",
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.16",
49
- "@valbuild/react": "~0.60.16",
50
- "@valbuild/server": "~0.60.16",
51
- "@valbuild/ui": "~0.60.16",
48
+ "@valbuild/core": "~0.60.18",
49
+ "@valbuild/react": "~0.60.18",
50
+ "@valbuild/server": "~0.60.18",
51
+ "@valbuild/ui": "~0.60.18",
52
52
  "client-only": "^0.0.1",
53
53
  "server-only": "^0.0.1"
54
54
  },
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValContext-b64043dd.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValContext-b64043dd.cjs.dev.js");
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValNextProvider-2360873d.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValNextProvider-2360873d.cjs.dev.js");
7
- }