@weaverse/hydrogen 5.16.4 → 5.17.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 +5 -5
- package/dist/index.d.ts +5 -5
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SelectedOptionInput } from '@shopify/hydrogen/storefront-api-types';
|
|
2
2
|
import { Weaverse, WeaverseItemStore, ElementData, WeaverseElement, WeaverseProjectDataType, WeaverseCoreParams, WeaverseResourcePickerData } from '@weaverse/react';
|
|
3
3
|
export { PositionInputValue, WeaverseImage, WeaverseVideo, isBrowser, isIframe, useChildInstances, useItemInstance, useParentInstance, useWeaverse } from '@weaverse/react';
|
|
4
|
-
import { PageType, InspectorGroup, SchemaType, PageSEOData, ComponentPresets, SchemaValidationResult } from '@weaverse/schema';
|
|
4
|
+
import { PageType, InspectorGroup, SchemaType, PageSEOData, Resolvable, ComponentAvailabilityContext, ComponentPresets, SchemaValidationResult } from '@weaverse/schema';
|
|
5
5
|
export * from '@weaverse/schema';
|
|
6
|
-
export { BasicInput, HeadingInput, InputType, InspectorGroup, PageType, SchemaValidationIssue, SchemaValidationResult } from '@weaverse/schema';
|
|
6
|
+
export { BasicInput, ComponentAvailabilityContext, ComponentGroup, HeadingInput, InputType, InspectorGroup, PageType, Resolvable, SchemaValidationIssue, SchemaValidationResult } from '@weaverse/schema';
|
|
7
7
|
import { createWithCache, CachingStrategy, I18nBase, HydrogenContext, HydrogenEnv } from '@shopify/hydrogen';
|
|
8
8
|
export { CachingStrategy } from '@shopify/hydrogen';
|
|
9
9
|
import { LoaderFunctionArgs, AppLoadContext } from '@shopify/remix-oxygen';
|
|
@@ -941,19 +941,19 @@ type HydrogenSchemaValidationResult = SchemaValidationResult<HydrogenComponentSc
|
|
|
941
941
|
* ```
|
|
942
942
|
*/
|
|
943
943
|
declare function isValidHydrogenSchema(schema: unknown): schema is HydrogenComponentSchema;
|
|
944
|
-
/**
|
|
945
|
-
* Type-safe helper to create component schemas with validation
|
|
946
|
-
*/
|
|
944
|
+
/** Type-safe component schema authoring options. */
|
|
947
945
|
type CreateHydrogenSchemaOptions = {
|
|
948
946
|
title: string;
|
|
949
947
|
type: string;
|
|
950
948
|
limit?: number;
|
|
951
949
|
settings?: InspectorGroup[];
|
|
952
950
|
childTypes?: string[];
|
|
951
|
+
/** @deprecated Use `enabled` instead. */
|
|
953
952
|
enabledOn?: {
|
|
954
953
|
pages?: PageType[];
|
|
955
954
|
groups?: ('*' | 'header' | 'footer' | 'body')[];
|
|
956
955
|
};
|
|
956
|
+
enabled?: Resolvable<boolean, ComponentAvailabilityContext>;
|
|
957
957
|
presets?: {
|
|
958
958
|
children?: ComponentPresets[];
|
|
959
959
|
[key: string]: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SelectedOptionInput } from '@shopify/hydrogen/storefront-api-types';
|
|
2
2
|
import { Weaverse, WeaverseItemStore, ElementData, WeaverseElement, WeaverseProjectDataType, WeaverseCoreParams, WeaverseResourcePickerData } from '@weaverse/react';
|
|
3
3
|
export { PositionInputValue, WeaverseImage, WeaverseVideo, isBrowser, isIframe, useChildInstances, useItemInstance, useParentInstance, useWeaverse } from '@weaverse/react';
|
|
4
|
-
import { PageType, InspectorGroup, SchemaType, PageSEOData, ComponentPresets, SchemaValidationResult } from '@weaverse/schema';
|
|
4
|
+
import { PageType, InspectorGroup, SchemaType, PageSEOData, Resolvable, ComponentAvailabilityContext, ComponentPresets, SchemaValidationResult } from '@weaverse/schema';
|
|
5
5
|
export * from '@weaverse/schema';
|
|
6
|
-
export { BasicInput, HeadingInput, InputType, InspectorGroup, PageType, SchemaValidationIssue, SchemaValidationResult } from '@weaverse/schema';
|
|
6
|
+
export { BasicInput, ComponentAvailabilityContext, ComponentGroup, HeadingInput, InputType, InspectorGroup, PageType, Resolvable, SchemaValidationIssue, SchemaValidationResult } from '@weaverse/schema';
|
|
7
7
|
import { createWithCache, CachingStrategy, I18nBase, HydrogenContext, HydrogenEnv } from '@shopify/hydrogen';
|
|
8
8
|
export { CachingStrategy } from '@shopify/hydrogen';
|
|
9
9
|
import { LoaderFunctionArgs, AppLoadContext } from '@shopify/remix-oxygen';
|
|
@@ -941,19 +941,19 @@ type HydrogenSchemaValidationResult = SchemaValidationResult<HydrogenComponentSc
|
|
|
941
941
|
* ```
|
|
942
942
|
*/
|
|
943
943
|
declare function isValidHydrogenSchema(schema: unknown): schema is HydrogenComponentSchema;
|
|
944
|
-
/**
|
|
945
|
-
* Type-safe helper to create component schemas with validation
|
|
946
|
-
*/
|
|
944
|
+
/** Type-safe component schema authoring options. */
|
|
947
945
|
type CreateHydrogenSchemaOptions = {
|
|
948
946
|
title: string;
|
|
949
947
|
type: string;
|
|
950
948
|
limit?: number;
|
|
951
949
|
settings?: InspectorGroup[];
|
|
952
950
|
childTypes?: string[];
|
|
951
|
+
/** @deprecated Use `enabled` instead. */
|
|
953
952
|
enabledOn?: {
|
|
954
953
|
pages?: PageType[];
|
|
955
954
|
groups?: ('*' | 'header' | 'footer' | 'body')[];
|
|
956
955
|
};
|
|
956
|
+
enabled?: Resolvable<boolean, ComponentAvailabilityContext>;
|
|
957
957
|
presets?: {
|
|
958
958
|
children?: ComponentPresets[];
|
|
959
959
|
[key: string]: any;
|