@weaverse/hydrogen 5.10.0 → 5.10.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.d.mts CHANGED
@@ -549,7 +549,7 @@ type HydrogenThemeSchema = {
549
549
  urlStructure: 'url-path' | 'subdomain' | 'top-level-domain';
550
550
  defaultLocale: WeaverseI18n;
551
551
  shopLocales: WeaverseI18n[];
552
- staticContent: Record<string, unknown>;
552
+ staticContent?: Record<string, unknown>;
553
553
  };
554
554
  };
555
555
  type FetchProjectRequestBody = {
package/dist/index.d.ts CHANGED
@@ -549,7 +549,7 @@ type HydrogenThemeSchema = {
549
549
  urlStructure: 'url-path' | 'subdomain' | 'top-level-domain';
550
550
  defaultLocale: WeaverseI18n;
551
551
  shopLocales: WeaverseI18n[];
552
- staticContent: Record<string, unknown>;
552
+ staticContent?: Record<string, unknown>;
553
553
  };
554
554
  };
555
555
  type FetchProjectRequestBody = {
package/dist/index.js CHANGED
@@ -83,7 +83,11 @@ function ThemeTextProvider({
83
83
  }
84
84
  function useThemeText() {
85
85
  const ctx = react$1.useContext(ThemeTextContext);
86
- if (!ctx) throw new Error("useThemeText must be used within <ThemeTextProvider>. Wrap your app with withWeaverse().");
86
+ if (!ctx) {
87
+ throw new Error(
88
+ "useThemeText must be used within <ThemeTextProvider>. Wrap your app with withWeaverse()."
89
+ );
90
+ }
87
91
  return ctx;
88
92
  }
89
93
  function createFlatDataContext(matches) {