@plasmicapp/host
Advanced tools
Comparing version 1.0.207 to 1.0.208
@@ -14,1 +14,2 @@ export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host"; | ||
export { default as repeatedElement } from "./repeatedElement"; | ||
export * from "./translation"; |
@@ -555,2 +555,13 @@ 'use client'; | ||
var PlasmicTranslatorContext = React__default.createContext(undefined); | ||
function usePlasmicTranslator() { | ||
var _t = React__default.useContext(PlasmicTranslatorContext); | ||
var translator = _t | ||
? typeof _t === "function" | ||
? _t | ||
: _t.translator | ||
: undefined; | ||
return translator; | ||
} | ||
var hostModule = /*#__PURE__*/Object.freeze({ | ||
@@ -567,2 +578,3 @@ __proto__: null, | ||
PlasmicLinkProvider: PlasmicLinkProvider, | ||
PlasmicTranslatorContext: PlasmicTranslatorContext, | ||
applySelector: applySelector, | ||
@@ -585,2 +597,3 @@ mkMetaName: mkMetaName, | ||
usePlasmicLinkMaybe: usePlasmicLinkMaybe, | ||
usePlasmicTranslator: usePlasmicTranslator, | ||
useSelector: useSelector, | ||
@@ -590,3 +603,3 @@ useSelectors: useSelectors | ||
var hostVersion = "1.0.207"; | ||
var hostVersion = "1.0.208"; | ||
@@ -615,3 +628,3 @@ var _a; | ||
export { DataContext, DataCtxReader, DataProvider, GlobalActionsContext, GlobalActionsProvider, PageParamsProvider, PlasmicCanvasContext, PlasmicCanvasHost, PlasmicLinkProvider, applySelector, mkMetaName, mkMetaValue, registerComponent, registerFunction, registerGlobalContext, registerToken, registerTrait, repeatedElement, stateHelpersKeys, registerFetcher as unstable_registerFetcher, useDataEnv, useGlobalActions, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, usePlasmicLink, usePlasmicLinkMaybe, useSelector, useSelectors }; | ||
export { DataContext, DataCtxReader, DataProvider, GlobalActionsContext, GlobalActionsProvider, PageParamsProvider, PlasmicCanvasContext, PlasmicCanvasHost, PlasmicLinkProvider, PlasmicTranslatorContext, applySelector, mkMetaName, mkMetaValue, registerComponent, registerFunction, registerGlobalContext, registerToken, registerTrait, repeatedElement, stateHelpersKeys, registerFetcher as unstable_registerFetcher, useDataEnv, useGlobalActions, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, usePlasmicLink, usePlasmicLinkMaybe, usePlasmicTranslator, useSelector, useSelectors }; | ||
//# sourceMappingURL=host.esm.js.map |
@@ -577,2 +577,13 @@ 'use client'; | ||
var PlasmicTranslatorContext = React.createContext(undefined); | ||
function usePlasmicTranslator() { | ||
var _t = React.useContext(PlasmicTranslatorContext); | ||
var translator = _t | ||
? typeof _t === "function" | ||
? _t | ||
: _t.translator | ||
: undefined; | ||
return translator; | ||
} | ||
var hostModule = /*#__PURE__*/Object.freeze({ | ||
@@ -589,2 +600,3 @@ __proto__: null, | ||
PlasmicLinkProvider: PlasmicLinkProvider, | ||
PlasmicTranslatorContext: PlasmicTranslatorContext, | ||
applySelector: applySelector, | ||
@@ -607,2 +619,3 @@ mkMetaName: mkMetaName, | ||
usePlasmicLinkMaybe: usePlasmicLinkMaybe, | ||
usePlasmicTranslator: usePlasmicTranslator, | ||
useSelector: useSelector, | ||
@@ -612,3 +625,3 @@ useSelectors: useSelectors | ||
var hostVersion = "1.0.207"; | ||
var hostVersion = "1.0.208"; | ||
@@ -646,2 +659,3 @@ var _a; | ||
exports.PlasmicLinkProvider = PlasmicLinkProvider; | ||
exports.PlasmicTranslatorContext = PlasmicTranslatorContext; | ||
exports.applySelector = applySelector; | ||
@@ -664,4 +678,5 @@ exports.mkMetaName = mkMetaName; | ||
exports.usePlasmicLinkMaybe = usePlasmicLinkMaybe; | ||
exports.usePlasmicTranslator = usePlasmicTranslator; | ||
exports.useSelector = useSelector; | ||
exports.useSelectors = useSelectors; | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.207"; | ||
export declare const hostVersion = "1.0.208"; |
{ | ||
"name": "@plasmicapp/host", | ||
"version": "1.0.207", | ||
"version": "1.0.208", | ||
"description": "plasmic library for app hosting", | ||
@@ -69,3 +69,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"gitHead": "9097835f7f37064c7aeefbdcdbf7d2ba0ca652c9" | ||
"gitHead": "879304149b902b453a47fe674997fcad01ae4af8" | ||
} |
@@ -14,1 +14,2 @@ export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host"; | ||
export { default as repeatedElement } from "./repeatedElement"; | ||
export * from "./translation"; |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.207"; | ||
export declare const hostVersion = "1.0.208"; |
@@ -14,1 +14,2 @@ export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host"; | ||
export { default as repeatedElement } from "./repeatedElement"; | ||
export * from "./translation"; |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.207"; | ||
export declare const hostVersion = "1.0.208"; |
@@ -14,1 +14,2 @@ export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host"; | ||
export { default as repeatedElement } from "./repeatedElement"; | ||
export * from "./translation"; |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.207"; | ||
export declare const hostVersion = "1.0.208"; |
@@ -14,1 +14,2 @@ export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host"; | ||
export { default as repeatedElement } from "./repeatedElement"; | ||
export * from "./translation"; |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.207"; | ||
export declare const hostVersion = "1.0.208"; |
@@ -14,1 +14,2 @@ export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host"; | ||
export { default as repeatedElement } from "./repeatedElement"; | ||
export * from "./translation"; |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.207"; | ||
export declare const hostVersion = "1.0.208"; |
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
559298
158
9537
0
22