@jay-framework/wix-stores 0.20.0 → 0.22.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/README.md +8 -1
- package/agent-kit/aiditor/add-menu.template.yaml +109 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/category-list.svg +12 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/category-products.svg +15 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/product-page.svg +12 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/product-search.svg +17 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/related-products.svg +15 -0
- package/agent-kit/designer/related-products.md +123 -0
- package/dist/agent-kit/aiditor/add-menu.template.yaml +30 -8
- package/dist/agent-kit/aiditor/thumbnails/wix-stores/related-products.svg +15 -0
- package/dist/index.client.js +130 -14
- package/dist/index.d.ts +39 -13
- package/dist/index.js +408 -150
- package/package.json +17 -20
- package/plugin.yaml +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -6,13 +6,8 @@ import * as _jay_framework_component from '@jay-framework/component';
|
|
|
6
6
|
import * as _jay_framework_runtime from '@jay-framework/runtime';
|
|
7
7
|
import { HTMLElementCollectionProxy, HTMLElementProxy } from '@jay-framework/runtime';
|
|
8
8
|
import { WixClient } from '@wix/sdk';
|
|
9
|
-
import { BuildDescriptors } from '@wix/sdk-types';
|
|
10
|
-
import { productsV3, inventoryItemsV3, customizationsV3 } from '@wix/stores';
|
|
11
|
-
import { categories } from '@wix/categories';
|
|
12
|
-
import { Customization } from '@wix/auto_sdk_stores_customizations-v-3';
|
|
13
9
|
import { Getter } from '@jay-framework/reactive';
|
|
14
|
-
import {
|
|
15
|
-
import { PluginSetupContext, PluginSetupResult, PluginReferencesContext, PluginReferencesResult } from '@jay-framework/stack-server-runtime';
|
|
10
|
+
import { PluginSetupContext, PluginSetupResult, PluginAgentKitContext, PluginAgentKitResult } from '@jay-framework/stack-server-runtime';
|
|
16
11
|
|
|
17
12
|
declare enum OptionRenderType$2 {
|
|
18
13
|
TEXT_CHOICES,
|
|
@@ -472,11 +467,42 @@ interface DataExtensionSchema {
|
|
|
472
467
|
revision?: string | null;
|
|
473
468
|
}
|
|
474
469
|
|
|
470
|
+
interface VariantChoice {
|
|
471
|
+
optionChoiceIds: {
|
|
472
|
+
optionId: string;
|
|
473
|
+
choiceId: string;
|
|
474
|
+
};
|
|
475
|
+
optionChoiceNames?: {
|
|
476
|
+
optionName?: string;
|
|
477
|
+
choiceName?: string;
|
|
478
|
+
renderType?: string;
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
interface Customization {
|
|
482
|
+
_id?: string;
|
|
483
|
+
name?: string;
|
|
484
|
+
productId?: string;
|
|
485
|
+
title?: string;
|
|
486
|
+
customizationType?: string;
|
|
487
|
+
customizationRenderType?: string;
|
|
488
|
+
visible?: boolean;
|
|
489
|
+
choicesSettings?: {
|
|
490
|
+
choices?: CustomizationChoice[];
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
interface CustomizationChoice {
|
|
494
|
+
_id?: string;
|
|
495
|
+
name?: string;
|
|
496
|
+
value?: string;
|
|
497
|
+
description?: string;
|
|
498
|
+
colorCode?: string;
|
|
499
|
+
inStock?: boolean;
|
|
500
|
+
surcharge?: number;
|
|
501
|
+
}
|
|
502
|
+
|
|
475
503
|
interface WixStoresService {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
inventory: BuildDescriptors<typeof inventoryItemsV3, {}>;
|
|
479
|
-
customizations: BuildDescriptors<typeof customizationsV3, {}>;
|
|
504
|
+
/** The authenticated Wix client (server-side, API key auth) */
|
|
505
|
+
wixClient: WixClient;
|
|
480
506
|
/** URL templates for building canonical links */
|
|
481
507
|
urls: UrlTemplates;
|
|
482
508
|
/** Slug of the fallback category for pages without category context */
|
|
@@ -846,7 +872,7 @@ interface InteractiveVariant {
|
|
|
846
872
|
sku: string;
|
|
847
873
|
price: string;
|
|
848
874
|
strikethroughPrice: string;
|
|
849
|
-
choices:
|
|
875
|
+
choices: VariantChoice[];
|
|
850
876
|
mediaId?: string;
|
|
851
877
|
inventoryStatus: StockStatus;
|
|
852
878
|
}
|
|
@@ -1123,7 +1149,7 @@ declare function setupWixStores(ctx: PluginSetupContext): Promise<PluginSetupRes
|
|
|
1123
1149
|
* Generate a YAML reference file with the full category tree.
|
|
1124
1150
|
* Shows all categories with IDs, names, product counts, and parent-child hierarchy.
|
|
1125
1151
|
*/
|
|
1126
|
-
declare function
|
|
1152
|
+
declare function generateWixStoresAgentKit(ctx: PluginAgentKitContext): Promise<PluginAgentKitResult>;
|
|
1127
1153
|
|
|
1128
1154
|
/**
|
|
1129
1155
|
* Product Page Contract Generator
|
|
@@ -1140,4 +1166,4 @@ declare function generateWixStoresReferences(ctx: PluginReferencesContext): Prom
|
|
|
1140
1166
|
*/
|
|
1141
1167
|
declare const generator: _jay_framework_fullstack_component.DynamicContractGenerator<[WixStoresService]>;
|
|
1142
1168
|
|
|
1143
|
-
export { type CategoryListParams, type CategoryProductsProps, type CategoryTree, type GetProductBySlugInput, type ProductPageParams, type ProductSearchParams, type ProductSpotlightProps, WIX_STORES_CONTEXT, WIX_STORES_SERVICE_MARKER, type WixStoresContext, type WixStoresInitData, type WixStoresService, type WixStoresServiceOptions, buildCategoryUrl, buildProductUrl, categoryList, categoryProducts, findCategoryImage, findRootCategoryId, findRootCategorySlug,
|
|
1169
|
+
export { type CategoryListParams, type CategoryProductsProps, type CategoryTree, type GetProductBySlugInput, type ProductPageParams, type ProductSearchParams, type ProductSpotlightProps, WIX_STORES_CONTEXT, WIX_STORES_SERVICE_MARKER, type WixStoresContext, type WixStoresInitData, type WixStoresService, type WixStoresServiceOptions, buildCategoryUrl, buildProductUrl, categoryList, categoryProducts, findCategoryImage, findRootCategoryId, findRootCategorySlug, generateWixStoresAgentKit, getCategories, getProductBySlug, getVariantStock, init, productPage, generator as productPageContractGenerator, productSearch, productSpotlight, provideWixStoresService, searchProducts, setupWixStores };
|