@plasmicapp/host
Advanced tools
Comparing version 1.0.97 to 1.0.98
@@ -7,3 +7,4 @@ export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasContext, } from "./canvas-host"; | ||
export { default as registerGlobalContext, GlobalContextMeta, GlobalContextRegistration, PropType as GlobalContextPropType, } from "./registerGlobalContext"; | ||
export { default as registerToken, TokenRegistration, TokenType, } from "./registerToken"; | ||
export { BasicTrait, ChoiceTrait, default as registerTrait, TraitMeta, TraitRegistration, } from "./registerTrait"; | ||
export { default as repeatedElement } from "./repeatedElement"; |
@@ -429,7 +429,15 @@ 'use client';'use strict'; | ||
var root$4 = globalThis; | ||
if (root$4.__PlasmicTraitRegistry == null) { | ||
root$4.__PlasmicTraitRegistry = []; | ||
if (root$4.__PlasmicTokenRegistry == null) { | ||
root$4.__PlasmicTokenRegistry = []; | ||
} | ||
function registerToken(token) { | ||
root$4.__PlasmicTokenRegistry.push(token); | ||
} | ||
var root$5 = globalThis; | ||
if (root$5.__PlasmicTraitRegistry == null) { | ||
root$5.__PlasmicTraitRegistry = []; | ||
} | ||
function registerTrait(trait, meta) { | ||
root$4.__PlasmicTraitRegistry.push({ | ||
root$5.__PlasmicTraitRegistry.push({ | ||
trait: trait, | ||
@@ -455,4 +463,4 @@ meta: meta | ||
}; | ||
var root$5 = globalThis; | ||
var setRepeatedElementFn = (_root$__Sub$setRepeat = root$5 == null ? void 0 : (_root$__Sub = root$5.__Sub) == null ? void 0 : _root$__Sub.setRepeatedElementFn) != null ? _root$__Sub$setRepeat : function (fn) { | ||
var root$6 = globalThis; | ||
var setRepeatedElementFn = (_root$__Sub$setRepeat = root$6 == null ? void 0 : (_root$__Sub = root$6.__Sub) == null ? void 0 : _root$__Sub.setRepeatedElementFn) != null ? _root$__Sub$setRepeat : function (fn) { | ||
_repeatedElementFn = fn; | ||
@@ -471,2 +479,3 @@ }; | ||
registerGlobalContext: registerGlobalContext, | ||
registerToken: registerToken, | ||
registerTrait: registerTrait, | ||
@@ -486,6 +495,6 @@ repeatedElement: repeatedElement, | ||
var hostVersion = "1.0.97"; | ||
var hostVersion = "1.0.98"; | ||
var root$6 = globalThis; | ||
if (root$6.__Sub == null) { | ||
var root$7 = globalThis; | ||
if (root$7.__Sub == null) { | ||
// Creating a side effect here by logging, so that vite won't | ||
@@ -496,3 +505,3 @@ // ignore this block for whatever reason. Hiding this for now | ||
// console.log("Plasmic: Setting up app host dependencies"); | ||
root$6.__Sub = /*#__PURE__*/_extends({ | ||
root$7.__Sub = /*#__PURE__*/_extends({ | ||
React: React, | ||
@@ -526,2 +535,3 @@ ReactDOM: ReactDOM, | ||
exports.registerGlobalContext = registerGlobalContext; | ||
exports.registerToken = registerToken; | ||
exports.registerTrait = registerTrait; | ||
@@ -528,0 +538,0 @@ exports.repeatedElement = repeatedElement; |
@@ -1,2 +0,2 @@ | ||
'use client';"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("@plasmicapp/query"),r=require("react"),n=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,a=require("react-dom");function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=globalThis;null==l.__PlasmicHostVersion&&(l.__PlasmicHostVersion="2");var u=[],c=new function(e){var t=this;this.value=null,this.set=function(e){t.value=e,u.forEach((function(e){return e()}))},this.get=function(){return t.value}}(null);function m(){return new URLSearchParams(location.hash.replace(/^#/,"?"))}function p(){return function(e,t){if(void 0===t&&(t=""),null==e)throw t=(function(e){return"string"==typeof e}(t)?t:t())||"",new Error("Value must not be undefined or null"+(t?"- "+t:""));return e}(m().get("origin"),"Missing information from Plasmic window.")}var d=0;function f(e){d++,c.set(e)}var v=r.createContext(!1),h=function(){return r.useContext(v)};function g(){var e,t,n,o=!!window.parent,i=!(null==(e=location.hash)||!e.match(/\bcanvas=true\b/)),s=!(null==(t=location.hash)||!t.match(/\blive=true\b/))||!o,l=o&&!document.querySelector("#plasmic-studio-tag")&&!i&&!s,f=new URLSearchParams(location.hash),h=r.useState((function(){var e;return JSON.parse(null!=(e=f.get("globalVariants"))?e:"{}")})),g=h[0],b=h[1],y=(n=r.useState(0)[1],r.useCallback((function(){n((function(e){return e+1}))}),[]));if(r.useLayoutEffect((function(){return u.push(y),function(){var e=u.indexOf(y);e>=0&&u.splice(e,1)}}),[y]),r.useEffect((function(){var e,t,r,n;l&&o&&window.parent!==window&&(t=document.createElement("script"),r=p(),n=(e=m()).has("studioHash")?e.get("studioHash"):new URL(location.href).searchParams.get("studio-hash"),t.src=r+"/static/js/studio"+(n?"."+n+".js":".js"),document.body.appendChild(t))}),[l,o]),r.useEffect((function(){if(!l&&!document.querySelector("#getlibs")&&s){var e=document.createElement("script");e.id="getlibs",e.src=p()+"/static/js/getlibs.js",e.async=!1,e.onload=function(){null==window.__GetlibsReadyResolver||window.__GetlibsReadyResolver()},document.head.append(e)}}),[l]),r.useEffect((function(){var e=function(e){try{var t=JSON.parse(e.data);"canvas-frame"===t.source&&b(t.activeGlobalVariants)}catch(e){}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[]),!o)return null;if(i||s){var _=document.querySelector("#plasmic-app.__wab_user-body");_||((_=document.createElement("div")).id="plasmic-app",_.classList.add("__wab_user-body"),document.body.appendChild(_));var x=!!i&&{componentName:f.get("componentName"),globalVariants:g};return a.createPortal(r.createElement(P,{key:""+d},r.createElement(v.Provider,{value:x},c.get())),_,"plasmic-app")}return l&&window.parent===window?r.createElement("iframe",{src:"https://docs.plasmic.app/app-content/app-host-ready#appHostUrl="+encodeURIComponent(location.href),style:{width:"100vw",height:"100vh",border:"none",position:"fixed",top:0,left:0,zIndex:99999999}}):null}var b=function(e){var t=e.enableWebpackHmr,n=r.useState(null),a=n[0],o=n[1];return r.useEffect((function(){o(r.createElement(g,null))}),[]),r.createElement(r.Fragment,null,!t&&r.createElement(x,null),a)},y=[];function _(e){return y.push(e),function(){var t=y.indexOf(e);t>=0&&y.splice(t,1)}}var P=function(e){var t,n;function a(t){var r;return(r=e.call(this,t)||this).state={},r}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),a.getDerivedStateFromError=function(e){return{error:e}};var o=a.prototype;return o.componentDidCatch=function(e){y.forEach((function(t){return t(e)}))},o.render=function(){return this.state.error?r.createElement("div",null,"Error: ",""+this.state.error.message):r.createElement(r.Fragment,null,this.props.children)},a}(r.Component);function x(){return null}var E=r.createContext(void 0);function w(e){return"__plasmic_meta_"+e}function C(e){return e}function R(e,t){if(t){for(var r,n=e,a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,void 0):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split("."));!(r=a()).done;){var o;n=null==(o=n)?void 0:o[r.value]}return n}}function S(e){return R(j(),e)}function O(e){void 0===e&&(e={});var t=j();return Object.fromEntries(Object.entries(e).filter((function(e){return!!e[0]&&!!e[1]})).map((function(e){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t}(e[0],R(t,e[1]))})))}function j(){return r.useContext(E)}function T(e){var t,r,a=e.name,i=e.data,s=e.hidden,l=e.label,u=e.children,c=null!=(t=j())?t:{};return a?n.createElement(E.Provider,{value:o({},c,(r={},r[a]=i,r[w(a)]={hidden:s,label:l},r))},u):n.createElement(n.Fragment,null,u)}function q(e){var t=e.children,r=e.params,a=void 0===r?{}:r,i=e.query,s=void 0===i?{}:i,l=j()||{};return n.createElement(T,{name:"params",data:o({},l.params,a),label:"Page route params"},n.createElement(T,{name:"query",data:o({},l.query,s),label:"Page query params"},t))}function D(e){return(0,e.children)(j())}var F=globalThis;function V(e,t){F.__PlasmicFetcherRegistry.push({fetcher:e,meta:t})}F.__PlasmicFetcherRegistry=[];var A=globalThis;function L(e,t){A.__PlasmicComponentRegistry.push({component:e,meta:t})}null==A.__PlasmicComponentRegistry&&(A.__PlasmicComponentRegistry=[]);var M=globalThis;function H(e,t){M.__PlasmicContextRegistry.push({component:e,meta:t})}null==M.__PlasmicContextRegistry&&(M.__PlasmicContextRegistry=[]);var N,k,U=globalThis;function G(e,t){U.__PlasmicTraitRegistry.push({trait:e,meta:t})}function I(e,t){return J(e,t)}null==U.__PlasmicTraitRegistry&&(U.__PlasmicTraitRegistry=[]);var J=function(e,t){return Array.isArray(t)?t.map((function(t){return J(e,t)})):t&&r.isValidElement(t)&&"string"!=typeof t?r.cloneElement(t):t},z=globalThis,Q=null!=(N=null==z||null==(k=z.__Sub)?void 0:k.setRepeatedElementFn)?N:function(e){J=e},W={__proto__:null,PlasmicCanvasContext:v,PlasmicCanvasHost:b,usePlasmicCanvasContext:h,unstable_registerFetcher:V,registerComponent:L,registerGlobalContext:H,registerTrait:G,repeatedElement:I,DataContext:E,mkMetaName:w,mkMetaValue:C,applySelector:R,useSelector:S,useSelectors:O,useDataEnv:j,DataProvider:T,PageParamsProvider:q,DataCtxReader:D},$=globalThis;null==$.__Sub&&($.__Sub=o({React:r,ReactDOM:a,PlasmicQuery:t,hostModule:W,hostVersion:"1.0.97",hostUtils:{setPlasmicRootNode:f,registerRenderErrorListener:_,setRepeatedElementFn:Q},setPlasmicRootNode:f,registerRenderErrorListener:_,setRepeatedElementFn:Q},W)),exports.DataContext=E,exports.DataCtxReader=D,exports.DataProvider=T,exports.PageParamsProvider=q,exports.PlasmicCanvasContext=v,exports.PlasmicCanvasHost=b,exports.applySelector=R,exports.mkMetaName=w,exports.mkMetaValue=C,exports.registerComponent=L,exports.registerGlobalContext=H,exports.registerTrait=G,exports.repeatedElement=I,exports.unstable_registerFetcher=V,exports.useDataEnv=j,exports.usePlasmicCanvasContext=h,exports.useSelector=S,exports.useSelectors=O; | ||
'use client';"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("@plasmicapp/query"),r=require("react"),n=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,a=require("react-dom");function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=globalThis;null==l.__PlasmicHostVersion&&(l.__PlasmicHostVersion="2");var u=[],c=new function(e){var t=this;this.value=null,this.set=function(e){t.value=e,u.forEach((function(e){return e()}))},this.get=function(){return t.value}}(null);function m(){return new URLSearchParams(location.hash.replace(/^#/,"?"))}function p(){return function(e,t){if(void 0===t&&(t=""),null==e)throw t=(function(e){return"string"==typeof e}(t)?t:t())||"",new Error("Value must not be undefined or null"+(t?"- "+t:""));return e}(m().get("origin"),"Missing information from Plasmic window.")}var d=0;function f(e){d++,c.set(e)}var v=r.createContext(!1),h=function(){return r.useContext(v)};function g(){var e,t,n,o=!!window.parent,i=!(null==(e=location.hash)||!e.match(/\bcanvas=true\b/)),s=!(null==(t=location.hash)||!t.match(/\blive=true\b/))||!o,l=o&&!document.querySelector("#plasmic-studio-tag")&&!i&&!s,f=new URLSearchParams(location.hash),h=r.useState((function(){var e;return JSON.parse(null!=(e=f.get("globalVariants"))?e:"{}")})),g=h[0],y=h[1],b=(n=r.useState(0)[1],r.useCallback((function(){n((function(e){return e+1}))}),[]));if(r.useLayoutEffect((function(){return u.push(b),function(){var e=u.indexOf(b);e>=0&&u.splice(e,1)}}),[b]),r.useEffect((function(){var e,t,r,n;l&&o&&window.parent!==window&&(t=document.createElement("script"),r=p(),n=(e=m()).has("studioHash")?e.get("studioHash"):new URL(location.href).searchParams.get("studio-hash"),t.src=r+"/static/js/studio"+(n?"."+n+".js":".js"),document.body.appendChild(t))}),[l,o]),r.useEffect((function(){if(!l&&!document.querySelector("#getlibs")&&s){var e=document.createElement("script");e.id="getlibs",e.src=p()+"/static/js/getlibs.js",e.async=!1,e.onload=function(){null==window.__GetlibsReadyResolver||window.__GetlibsReadyResolver()},document.head.append(e)}}),[l]),r.useEffect((function(){var e=function(e){try{var t=JSON.parse(e.data);"canvas-frame"===t.source&&y(t.activeGlobalVariants)}catch(e){}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[]),!o)return null;if(i||s){var _=document.querySelector("#plasmic-app.__wab_user-body");_||((_=document.createElement("div")).id="plasmic-app",_.classList.add("__wab_user-body"),document.body.appendChild(_));var x=!!i&&{componentName:f.get("componentName"),globalVariants:g};return a.createPortal(r.createElement(P,{key:""+d},r.createElement(v.Provider,{value:x},c.get())),_,"plasmic-app")}return l&&window.parent===window?r.createElement("iframe",{src:"https://docs.plasmic.app/app-content/app-host-ready#appHostUrl="+encodeURIComponent(location.href),style:{width:"100vw",height:"100vh",border:"none",position:"fixed",top:0,left:0,zIndex:99999999}}):null}var y=function(e){var t=e.enableWebpackHmr,n=r.useState(null),a=n[0],o=n[1];return r.useEffect((function(){o(r.createElement(g,null))}),[]),r.createElement(r.Fragment,null,!t&&r.createElement(x,null),a)},b=[];function _(e){return b.push(e),function(){var t=b.indexOf(e);t>=0&&b.splice(t,1)}}var P=function(e){var t,n;function a(t){var r;return(r=e.call(this,t)||this).state={},r}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),a.getDerivedStateFromError=function(e){return{error:e}};var o=a.prototype;return o.componentDidCatch=function(e){b.forEach((function(t){return t(e)}))},o.render=function(){return this.state.error?r.createElement("div",null,"Error: ",""+this.state.error.message):r.createElement(r.Fragment,null,this.props.children)},a}(r.Component);function x(){return null}var E=r.createContext(void 0);function w(e){return"__plasmic_meta_"+e}function C(e){return e}function R(e,t){if(t){for(var r,n=e,a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,void 0):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split("."));!(r=a()).done;){var o;n=null==(o=n)?void 0:o[r.value]}return n}}function S(e){return R(T(),e)}function O(e){void 0===e&&(e={});var t=T();return Object.fromEntries(Object.entries(e).filter((function(e){return!!e[0]&&!!e[1]})).map((function(e){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t}(e[0],R(t,e[1]))})))}function T(){return r.useContext(E)}function j(e){var t,r,a=e.name,i=e.data,s=e.hidden,l=e.label,u=e.children,c=null!=(t=T())?t:{};return a?n.createElement(E.Provider,{value:o({},c,(r={},r[a]=i,r[w(a)]={hidden:s,label:l},r))},u):n.createElement(n.Fragment,null,u)}function k(e){var t=e.children,r=e.params,a=void 0===r?{}:r,i=e.query,s=void 0===i?{}:i,l=T()||{};return n.createElement(j,{name:"params",data:o({},l.params,a),label:"Page route params"},n.createElement(j,{name:"query",data:o({},l.query,s),label:"Page query params"},t))}function q(e){return(0,e.children)(T())}var D=globalThis;function F(e,t){D.__PlasmicFetcherRegistry.push({fetcher:e,meta:t})}D.__PlasmicFetcherRegistry=[];var V=globalThis;function A(e,t){V.__PlasmicComponentRegistry.push({component:e,meta:t})}null==V.__PlasmicComponentRegistry&&(V.__PlasmicComponentRegistry=[]);var L=globalThis;function M(e,t){L.__PlasmicContextRegistry.push({component:e,meta:t})}null==L.__PlasmicContextRegistry&&(L.__PlasmicContextRegistry=[]);var H=globalThis;function N(e){H.__PlasmicTokenRegistry.push(e)}null==H.__PlasmicTokenRegistry&&(H.__PlasmicTokenRegistry=[]);var U,G,I=globalThis;function J(e,t){I.__PlasmicTraitRegistry.push({trait:e,meta:t})}function z(e,t){return Q(e,t)}null==I.__PlasmicTraitRegistry&&(I.__PlasmicTraitRegistry=[]);var Q=function(e,t){return Array.isArray(t)?t.map((function(t){return Q(e,t)})):t&&r.isValidElement(t)&&"string"!=typeof t?r.cloneElement(t):t},W=globalThis,$=null!=(U=null==W||null==(G=W.__Sub)?void 0:G.setRepeatedElementFn)?U:function(e){Q=e},B={__proto__:null,PlasmicCanvasContext:v,PlasmicCanvasHost:y,usePlasmicCanvasContext:h,unstable_registerFetcher:F,registerComponent:A,registerGlobalContext:M,registerToken:N,registerTrait:J,repeatedElement:z,DataContext:E,mkMetaName:w,mkMetaValue:C,applySelector:R,useSelector:S,useSelectors:O,useDataEnv:T,DataProvider:j,PageParamsProvider:k,DataCtxReader:q},K=globalThis;null==K.__Sub&&(K.__Sub=o({React:r,ReactDOM:a,PlasmicQuery:t,hostModule:B,hostVersion:"1.0.98",hostUtils:{setPlasmicRootNode:f,registerRenderErrorListener:_,setRepeatedElementFn:$},setPlasmicRootNode:f,registerRenderErrorListener:_,setRepeatedElementFn:$},B)),exports.DataContext=E,exports.DataCtxReader=q,exports.DataProvider=j,exports.PageParamsProvider=k,exports.PlasmicCanvasContext=v,exports.PlasmicCanvasHost=y,exports.applySelector=R,exports.mkMetaName=w,exports.mkMetaValue=C,exports.registerComponent=A,exports.registerGlobalContext=M,exports.registerToken=N,exports.registerTrait=J,exports.repeatedElement=z,exports.unstable_registerFetcher=F,exports.useDataEnv=T,exports.usePlasmicCanvasContext=h,exports.useSelector=S,exports.useSelectors=O; | ||
//# sourceMappingURL=host.cjs.production.min.js.map |
@@ -427,7 +427,15 @@ 'use client';import * as PlasmicQuery from '@plasmicapp/query'; | ||
var root$4 = globalThis; | ||
if (root$4.__PlasmicTraitRegistry == null) { | ||
root$4.__PlasmicTraitRegistry = []; | ||
if (root$4.__PlasmicTokenRegistry == null) { | ||
root$4.__PlasmicTokenRegistry = []; | ||
} | ||
function registerToken(token) { | ||
root$4.__PlasmicTokenRegistry.push(token); | ||
} | ||
var root$5 = globalThis; | ||
if (root$5.__PlasmicTraitRegistry == null) { | ||
root$5.__PlasmicTraitRegistry = []; | ||
} | ||
function registerTrait(trait, meta) { | ||
root$4.__PlasmicTraitRegistry.push({ | ||
root$5.__PlasmicTraitRegistry.push({ | ||
trait: trait, | ||
@@ -453,4 +461,4 @@ meta: meta | ||
}; | ||
var root$5 = globalThis; | ||
var setRepeatedElementFn = (_root$__Sub$setRepeat = root$5 == null ? void 0 : (_root$__Sub = root$5.__Sub) == null ? void 0 : _root$__Sub.setRepeatedElementFn) != null ? _root$__Sub$setRepeat : function (fn) { | ||
var root$6 = globalThis; | ||
var setRepeatedElementFn = (_root$__Sub$setRepeat = root$6 == null ? void 0 : (_root$__Sub = root$6.__Sub) == null ? void 0 : _root$__Sub.setRepeatedElementFn) != null ? _root$__Sub$setRepeat : function (fn) { | ||
_repeatedElementFn = fn; | ||
@@ -469,2 +477,3 @@ }; | ||
registerGlobalContext: registerGlobalContext, | ||
registerToken: registerToken, | ||
registerTrait: registerTrait, | ||
@@ -484,6 +493,6 @@ repeatedElement: repeatedElement, | ||
var hostVersion = "1.0.97"; | ||
var hostVersion = "1.0.98"; | ||
var root$6 = globalThis; | ||
if (root$6.__Sub == null) { | ||
var root$7 = globalThis; | ||
if (root$7.__Sub == null) { | ||
// Creating a side effect here by logging, so that vite won't | ||
@@ -494,3 +503,3 @@ // ignore this block for whatever reason. Hiding this for now | ||
// console.log("Plasmic: Setting up app host dependencies"); | ||
root$6.__Sub = /*#__PURE__*/_extends({ | ||
root$7.__Sub = /*#__PURE__*/_extends({ | ||
React: React, | ||
@@ -513,3 +522,3 @@ ReactDOM: ReactDOM, | ||
export { DataContext, DataCtxReader, DataProvider, PageParamsProvider, PlasmicCanvasContext, PlasmicCanvasHost, applySelector, mkMetaName, mkMetaValue, registerComponent, registerGlobalContext, registerTrait, repeatedElement, registerFetcher as unstable_registerFetcher, useDataEnv, usePlasmicCanvasContext, useSelector, useSelectors }; | ||
export { DataContext, DataCtxReader, DataProvider, PageParamsProvider, PlasmicCanvasContext, PlasmicCanvasHost, applySelector, mkMetaName, mkMetaValue, registerComponent, registerGlobalContext, registerToken, registerTrait, repeatedElement, registerFetcher as unstable_registerFetcher, useDataEnv, usePlasmicCanvasContext, useSelector, useSelectors }; | ||
//# sourceMappingURL=host.esm.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.97"; | ||
export declare const hostVersion = "1.0.98"; |
{ | ||
"name": "@plasmicapp/host", | ||
"version": "1.0.97", | ||
"version": "1.0.98", | ||
"description": "plasmic library for app hosting", | ||
@@ -70,3 +70,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "05e2145febebdfad5404d7d7f9347fa848d8cecc" | ||
"gitHead": "dc2378345a2104ac6bd0d3b0d69472b29f4b8a54" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304219
46
2930