@plasmicapp/react-web 0.2.233 → 0.2.234

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.
@@ -13,6 +13,7 @@ export interface TransProps {
13
13
  transKey?: string;
14
14
  children?: React.ReactNode;
15
15
  }
16
+ export declare function usePlasmicTranslator(): PlasmicTranslator | undefined;
16
17
  export declare function genTranslatableString(elt: React.ReactNode, opts?: {
17
18
  tagPrefix?: string;
18
19
  }): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.233",
3
+ "version": "0.2.234",
4
4
  "description": "plasmic library for rendering in the presentational style",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
@@ -155,5 +155,5 @@
155
155
  "react": ">=16.8.0",
156
156
  "react-dom": ">=16.8.0"
157
157
  },
158
- "gitHead": "44f8c8ab413dee1f09112df30df9bdf323ac5214"
158
+ "gitHead": "ff42d1b747943bedcc21cb39f8ffb92d38347292"
159
159
  }
@@ -12,7 +12,7 @@ export { PlasmicSlot, renderPlasmicSlot } from "./render/PlasmicSlot";
12
12
  export { createUseScreenVariants } from "./render/screen-variants";
13
13
  export { PlasmicDataSourceContextProvider, PlasmicRootProvider, useCurrentUser, useIsSSR, } from "./render/ssr";
14
14
  export { Stack } from "./render/Stack";
15
- export { genTranslatableString, Trans, PlasmicTranslator, } from "./render/translation";
15
+ export { genTranslatableString, Trans, PlasmicTranslator, usePlasmicTranslator, } from "./render/translation";
16
16
  export { useTrigger } from "./render/triggers";
17
17
  export * from "./states";
18
18
  export declare const classNames: typeof _classNames;
@@ -10,8 +10,8 @@ import { _ as __awaiter, a as __generator, b as __assign, c as __rest, d as __sp
10
10
  export { o as omit, p as pick } from './common-ed411407.js';
11
11
  export { PlasmicHead, plasmicHeadMeta } from './render/PlasmicHead/index.js';
12
12
  export { PlasmicImg } from './render/PlasmicImg/index.js';
13
- import { T as Trans } from './ssr-3a7c5af2.js';
14
- export { P as PlasmicLink, a as PlasmicRootProvider, T as Trans, g as genTranslatableString, u as useIsSSR } from './ssr-3a7c5af2.js';
13
+ import { T as Trans } from './ssr-d19c2950.js';
14
+ export { P as PlasmicLink, a as PlasmicRootProvider, T as Trans, g as genTranslatableString, u as useIsSSR, b as usePlasmicTranslator } from './ssr-d19c2950.js';
15
15
  import ReactDOM__default from 'react-dom';
16
16
  import { useFocusRing } from '@react-aria/focus';
17
17
  import { proxy, ref, useSnapshot, getVersion, subscribe } from 'valtio';