@tesouro/embedded-components-react 0.5.49 → 0.5.51

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.
@@ -5,15 +5,22 @@ import { jsx as n } from "@emotion/react/jsx-runtime";
5
5
  import r from "@emotion/cache";
6
6
  import { CacheProvider as i } from "@emotion/react";
7
7
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js
8
- var a = ({ cacheKey: a, children: o }) => {
9
- let s = e(), [c] = t(() => r({
10
- key: a,
11
- container: s.styles
8
+ var a = ({ cacheKey: e, container: t, prebuiltStylesheet: n = !1 }) => {
9
+ let i = r({
10
+ key: e,
11
+ container: t
12
+ });
13
+ return n && (i.compat = !0), i;
14
+ }, o = ({ cacheKey: r, prebuiltStylesheet: o = !1, children: s }) => {
15
+ let c = e(), [l] = t(() => a({
16
+ cacheKey: r,
17
+ container: c.styles,
18
+ prebuiltStylesheet: o
12
19
  }));
13
20
  return /* @__PURE__ */ n(i, {
14
- value: c,
15
- children: o
21
+ value: l,
22
+ children: s
16
23
  });
17
24
  };
18
25
  //#endregion
19
- export { a as EmotionCacheProvider };
26
+ export { o as EmotionCacheProvider, a as createEmotionCache };
@@ -15,6 +15,7 @@ var l = /* @__PURE__ */ new Set(), u = ({ monite: u, theme: d, componentSettings
15
15
  userPermissions: g,
16
16
  children: [/* @__PURE__ */ s(r, {
17
17
  cacheKey: "monite-css-baseline",
18
+ prebuiltStylesheet: !0,
18
19
  children: /* @__PURE__ */ c(o, {
19
20
  onThemeMounted: () => {
20
21
  h?.();
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.49", n = "35cfe2ead26ab15b6504fc73ea208acfe15f4b89", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.51", n = "d60d2bca5670b827bcb6520361de3c7f5312bd3f", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.49",
3
+ "version": "0.5.51",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {