@moonbase.sh/vue 0.1.50 → 0.1.52

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.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, PricingVariation, OpenLineItem } from '@moonbase.sh/api-client';
1
+ import { Address, LineItem } from '@moonbase.sh/api-client/src';
2
+ import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, PricingVariation } from '@moonbase.sh/api-client';
2
3
  export * from '@moonbase.sh/api-client';
3
4
  import * as vue from 'vue';
4
5
  import { Plugin, Ref, App, InjectionKey } from 'vue';
5
- import { Address } from '@moonbase.sh/api-client/src';
6
6
 
7
7
  interface StorefrontContext extends Pick<Plugin, keyof Plugin> {
8
8
  storefront: Ref<Storefront>;
@@ -103,7 +103,7 @@ declare const storefrontKey: InjectionKey<StorefrontContext>;
103
103
  interface Cart {
104
104
  items: CartItem[];
105
105
  }
106
- type CartItem = OpenLineItem & {};
106
+ type CartItem = LineItem & {};
107
107
  declare function createStorefront(endpoint: string, stateFactory?: StateFactory): StorefrontContext;
108
108
 
109
109
  export { type Cart, type CartItem, createStorefront, storefrontKey, useAuth, useBundle, useBundles, useCart, useProduct, useProducts };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, PricingVariation, OpenLineItem } from '@moonbase.sh/api-client';
1
+ import { Address, LineItem } from '@moonbase.sh/api-client/src';
2
+ import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, PricingVariation } from '@moonbase.sh/api-client';
2
3
  export * from '@moonbase.sh/api-client';
3
4
  import * as vue from 'vue';
4
5
  import { Plugin, Ref, App, InjectionKey } from 'vue';
5
- import { Address } from '@moonbase.sh/api-client/src';
6
6
 
7
7
  interface StorefrontContext extends Pick<Plugin, keyof Plugin> {
8
8
  storefront: Ref<Storefront>;
@@ -103,7 +103,7 @@ declare const storefrontKey: InjectionKey<StorefrontContext>;
103
103
  interface Cart {
104
104
  items: CartItem[];
105
105
  }
106
- type CartItem = OpenLineItem & {};
106
+ type CartItem = LineItem & {};
107
107
  declare function createStorefront(endpoint: string, stateFactory?: StateFactory): StorefrontContext;
108
108
 
109
109
  export { type Cart, type CartItem, createStorefront, storefrontKey, useAuth, useBundle, useBundles, useCart, useProduct, useProducts };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.1.50",
4
+ "version": "0.1.52",
5
5
  "description": "Package to let you build vue.js storefronts with Moonbase.sh as payment and delivery provider",
6
6
  "author": "Tobias Lønnerød Madsen <m@dsen.tv>",
7
7
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@vue/devtools-api": "^6.5.1",
20
20
  "uuid": "^9.0.1",
21
- "@moonbase.sh/api-client": "0.1.50"
21
+ "@moonbase.sh/api-client": "0.1.52"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/uuid": "^9.0.7",