@weaverse/hydrogen 5.16.4 → 5.17.0
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 +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -954,6 +954,15 @@ type CreateHydrogenSchemaOptions = {
|
|
|
954
954
|
pages?: PageType[];
|
|
955
955
|
groups?: ('*' | 'header' | 'footer' | 'body')[];
|
|
956
956
|
};
|
|
957
|
+
enabled?: boolean | ((context: {
|
|
958
|
+
page: {
|
|
959
|
+
id: string;
|
|
960
|
+
type: PageType;
|
|
961
|
+
handle: string;
|
|
962
|
+
locale: string;
|
|
963
|
+
};
|
|
964
|
+
group: 'body' | 'header' | 'footer';
|
|
965
|
+
}) => boolean);
|
|
957
966
|
presets?: {
|
|
958
967
|
children?: ComponentPresets[];
|
|
959
968
|
[key: string]: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -954,6 +954,15 @@ type CreateHydrogenSchemaOptions = {
|
|
|
954
954
|
pages?: PageType[];
|
|
955
955
|
groups?: ('*' | 'header' | 'footer' | 'body')[];
|
|
956
956
|
};
|
|
957
|
+
enabled?: boolean | ((context: {
|
|
958
|
+
page: {
|
|
959
|
+
id: string;
|
|
960
|
+
type: PageType;
|
|
961
|
+
handle: string;
|
|
962
|
+
locale: string;
|
|
963
|
+
};
|
|
964
|
+
group: 'body' | 'header' | 'footer';
|
|
965
|
+
}) => boolean);
|
|
957
966
|
presets?: {
|
|
958
967
|
children?: ComponentPresets[];
|
|
959
968
|
[key: string]: any;
|