@commercetools-demo/puck-editor 0.6.0 → 0.6.1

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.
package/dist/index.mjs CHANGED
@@ -3810,12 +3810,28 @@ var nimbusFieldTypes = {
3810
3810
  import { Stack as Stack5 } from "@commercetools/nimbus";
3811
3811
 
3812
3812
  // src/EnsureNimbusProvider.tsx
3813
- import { NimbusProvider } from "@commercetools/nimbus";
3813
+ import { ChakraProvider, createSystem } from "@chakra-ui/react/styled-system";
3814
+ import {
3815
+ NimbusI18nProvider,
3816
+ _RegionProvider,
3817
+ system as nimbusSystem
3818
+ } from "@commercetools/nimbus";
3814
3819
  import { jsx as jsx43 } from "react/jsx-runtime";
3820
+ var SCOPED_SYSTEM_KEY = /* @__PURE__ */ Symbol.for(
3821
+ "@commercetools-demo/puck:nimbus-scoped-system"
3822
+ );
3823
+ var globalScope = globalThis;
3824
+ var scopedSystem = globalScope[SCOPED_SYSTEM_KEY] ?? (globalScope[SCOPED_SYSTEM_KEY] = createSystem({
3825
+ // `_config` is the fully-merged Nimbus + Chakra config used to build the
3826
+ // stock system; reusing it keeps all Nimbus theming intact.
3827
+ ...nimbusSystem._config,
3828
+ preflight: false,
3829
+ globalCss: {}
3830
+ }));
3815
3831
  var EnsureNimbusProvider = ({
3816
3832
  locale = "en",
3817
3833
  children
3818
- }) => /* @__PURE__ */ jsx43(NimbusProvider, { locale, children });
3834
+ }) => /* @__PURE__ */ jsx43(ChakraProvider, { value: scopedSystem, children: /* @__PURE__ */ jsx43(NimbusI18nProvider, { locale, children: /* @__PURE__ */ jsx43(_RegionProvider, { children }) }) });
3819
3835
 
3820
3836
  // src/PuckEditor.tsx
3821
3837
  import { jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";