@altazion/commerce-sdk-vue 26.519.8051 → 26.601.8204

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +24 -23
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,32 +1,33 @@
1
1
  import { App } from 'vue';
2
- import { AssociatedProductWithDetails } from '@altazion/commerce-sdk-core';
3
- import { AvailabilityLevel } from '@altazion/commerce-sdk-core';
4
- import { AvailabilitySource } from '@altazion/commerce-sdk-core';
5
- import { Cart } from '@altazion/commerce-sdk-core';
6
- import { CartContentType } from '@altazion/commerce-sdk-core';
7
- import { CartErrorSeverity } from '@altazion/commerce-sdk-core';
8
- import { CartStatus } from '@altazion/commerce-sdk-core';
9
- import { CommerceClient } from '@altazion/commerce-sdk-core';
10
- import { CommerceMode } from '@altazion/commerce-sdk-core';
2
+ import { AssociatedProductWithDetails } from '../../../core/src/index.ts';
3
+ import { AvailabilityLevel } from '../../../core/src/index.ts';
4
+ import { AvailabilitySource } from '../../../core/src/index.ts';
5
+ import { Cart } from '../../../core/src/index.ts';
6
+ import { CartContentType } from '../../../core/src/index.ts';
7
+ import { CartErrorSeverity } from '../../../core/src/index.ts';
8
+ import { CartStatus } from '../../../core/src/index.ts';
9
+ import { CommerceClient } from '../../core/src/index.ts';
10
+ import { CommerceClient as CommerceClient_2 } from '../../../core/src/index.ts';
11
+ import { CommerceMode } from '../../../core/src/index.ts';
11
12
  import { ComponentOptionsMixin } from 'vue';
12
13
  import { ComponentProvideOptions } from 'vue';
13
14
  import { ComputedRef } from 'vue';
14
- import { ConnectivityStatus } from '@altazion/commerce-sdk-core';
15
+ import { ConnectivityStatus } from '../../../core/src/index.ts';
15
16
  import { DefineComponent } from 'vue';
16
17
  import { ExtractPropTypes } from 'vue';
17
18
  import { Pinia } from 'pinia';
18
- import { ProductDetails } from '@altazion/commerce-sdk-core';
19
- import { ProductMetaType } from '@altazion/commerce-sdk-core';
20
- import { ProductStoreAvailability } from '@altazion/commerce-sdk-core';
19
+ import { ProductDetails } from '../../../core/src/index.ts';
20
+ import { ProductMetaType } from '../../../core/src/index.ts';
21
+ import { ProductStoreAvailability } from '../../../core/src/index.ts';
21
22
  import { PropType } from 'vue';
22
23
  import { PublicProps } from 'vue';
23
24
  import { Ref } from 'vue';
24
- import { SearchRequest } from '@altazion/commerce-sdk-core';
25
- import { SearchResult } from '@altazion/commerce-sdk-core';
26
- import { SessionInfo } from '@altazion/commerce-sdk-core';
27
- import { StockManagementMode } from '@altazion/commerce-sdk-core';
25
+ import { SearchRequest } from '../../../core/src/index.ts';
26
+ import { SearchResult } from '../../../core/src/index.ts';
27
+ import { SessionInfo } from '../../../core/src/index.ts';
28
+ import { StockManagementMode } from '../../../core/src/index.ts';
28
29
  import { StoreDefinition } from 'pinia';
29
- import { WebProduct } from '@altazion/commerce-sdk-core';
30
+ import { WebProduct } from '../../../core/src/index.ts';
30
31
 
31
32
  declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
32
33
  reference: string;
@@ -765,7 +766,7 @@ addItem: (reference: string, quantity: number, options?: Record<string, unknown>
765
766
  updateItem: (lineId: string, quantity: number) => Promise<void>;
766
767
  removeItem: (lineId: string) => Promise<void>;
767
768
  applyCoupon: (code: string) => Promise<void>;
768
- }, "cart" | "loading" | "error">, Pick<{
769
+ }, "error" | "cart" | "loading">, Pick<{
769
770
  cart: Ref< {
770
771
  guid: string;
771
772
  orderNumber?: string | null | undefined;
@@ -2903,7 +2904,7 @@ error: Ref<string | null, string | null>;
2903
2904
  isOffline: ComputedRef<boolean>;
2904
2905
  loadProduct: (reference: string) => Promise<void>;
2905
2906
  loadCategory: (categoryCode: string, pageIndex?: number, pageSize?: number) => Promise<void>;
2906
- }, "loading" | "error" | "currentProduct" | "categoryResult">, Pick<{
2907
+ }, "error" | "loading" | "currentProduct" | "categoryResult">, Pick<{
2907
2908
  currentProduct: Ref< {
2908
2909
  dimensions: {
2909
2910
  netHeight?: number | null | undefined;
@@ -4641,7 +4642,7 @@ loadCategory: (categoryCode: string, pageIndex?: number, pageSize?: number) => P
4641
4642
  * Composable pour accéder au CommerceClient injecté par AltazionCommercePlugin.
4642
4643
  * Doit être utilisé dans un composant Vue (setup()) ou un store Pinia.
4643
4644
  */
4644
- export declare function useCommerceClient(): CommerceClient;
4645
+ export declare function useCommerceClient(): CommerceClient_2;
4645
4646
 
4646
4647
  export declare const useConnectivityStore: StoreDefinition<"altazion:connectivity", Pick<{
4647
4648
  status: Ref<ConnectivityStatus, ConnectivityStatus>;
@@ -4838,7 +4839,7 @@ query: Ref<string, string>;
4838
4839
  search: (request: SearchRequest) => Promise<void>;
4839
4840
  suggest: (q: string) => Promise<void>;
4840
4841
  clear: () => void;
4841
- }, "loading" | "error" | "result" | "suggestions" | "query">, Pick<{
4842
+ }, "error" | "result" | "loading" | "suggestions" | "query">, Pick<{
4842
4843
  result: Ref< {
4843
4844
  totalCount: number;
4844
4845
  offset: number;
@@ -5224,7 +5225,7 @@ isKiosk: ComputedRef<boolean>;
5224
5225
  isReady: ComputedRef<boolean>;
5225
5226
  load: () => Promise<void>;
5226
5227
  associateStore: (storeGuid: string) => Promise<void>;
5227
- }, "loading" | "error" | "isOnline" | "session">, Pick<{
5228
+ }, "error" | "loading" | "isOnline" | "session">, Pick<{
5228
5229
  session: Ref< {
5229
5230
  id: string;
5230
5231
  expiresOn?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altazion/commerce-sdk-vue",
3
- "version": "26.519.8051",
3
+ "version": "26.601.8204",
4
4
  "description": "Altazion Commerce SDK — Plugin Vue 3 avec stores Pinia et composants",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",