@moonbase.sh/vue 0.1.40 → 0.1.41
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.cjs +2 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +2 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -319,11 +319,12 @@ function useAuth() {
|
|
|
319
319
|
const _ = storefront.updateStorefront();
|
|
320
320
|
return user;
|
|
321
321
|
},
|
|
322
|
-
signUp: async (name, email, password, acceptedPrivacyPolicy, acceptedTermsAndConditions) => {
|
|
322
|
+
signUp: async (name, email, password, address, acceptedPrivacyPolicy, acceptedTermsAndConditions) => {
|
|
323
323
|
const user = await storefront.client.identity.signUp(
|
|
324
324
|
name,
|
|
325
325
|
email,
|
|
326
326
|
password,
|
|
327
|
+
address,
|
|
327
328
|
acceptedPrivacyPolicy,
|
|
328
329
|
acceptedTermsAndConditions
|
|
329
330
|
);
|
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,7 @@ import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontPr
|
|
|
2
2
|
export * from '@moonbase.sh/api-client';
|
|
3
3
|
import * as vue from 'vue';
|
|
4
4
|
import { Ref, App, InjectionKey } from 'vue';
|
|
5
|
+
import { Address } from '@moonbase.sh/api-client/src';
|
|
5
6
|
|
|
6
7
|
interface StorefrontContext {
|
|
7
8
|
storefront: Ref<Storefront>;
|
|
@@ -49,6 +50,14 @@ declare function useAuth(): {
|
|
|
49
50
|
email: string;
|
|
50
51
|
name: string;
|
|
51
52
|
tenantId: string;
|
|
53
|
+
address?: {
|
|
54
|
+
countryCode: string;
|
|
55
|
+
streetAddress1: string;
|
|
56
|
+
streetAddress2: string | null;
|
|
57
|
+
locality: string | null;
|
|
58
|
+
region: string | null;
|
|
59
|
+
postCode: string;
|
|
60
|
+
} | undefined;
|
|
52
61
|
} | null>;
|
|
53
62
|
loaded: vue.Ref<boolean>;
|
|
54
63
|
signIn: (email: string, password: string) => Promise<{
|
|
@@ -56,12 +65,28 @@ declare function useAuth(): {
|
|
|
56
65
|
email: string;
|
|
57
66
|
name: string;
|
|
58
67
|
tenantId: string;
|
|
68
|
+
address?: {
|
|
69
|
+
countryCode: string;
|
|
70
|
+
streetAddress1: string;
|
|
71
|
+
streetAddress2: string | null;
|
|
72
|
+
locality: string | null;
|
|
73
|
+
region: string | null;
|
|
74
|
+
postCode: string;
|
|
75
|
+
} | undefined;
|
|
59
76
|
}>;
|
|
60
|
-
signUp: (name: string, email: string, password: string, acceptedPrivacyPolicy: boolean, acceptedTermsAndConditions: boolean) => Promise<{
|
|
77
|
+
signUp: (name: string, email: string, password: string, address: Address | null | undefined, acceptedPrivacyPolicy: boolean, acceptedTermsAndConditions: boolean) => Promise<{
|
|
61
78
|
id: string;
|
|
62
79
|
email: string;
|
|
63
80
|
name: string;
|
|
64
81
|
tenantId: string;
|
|
82
|
+
address?: {
|
|
83
|
+
countryCode: string;
|
|
84
|
+
streetAddress1: string;
|
|
85
|
+
streetAddress2: string | null;
|
|
86
|
+
locality: string | null;
|
|
87
|
+
region: string | null;
|
|
88
|
+
postCode: string;
|
|
89
|
+
} | undefined;
|
|
65
90
|
}>;
|
|
66
91
|
signOut: () => void;
|
|
67
92
|
update: (name: string, email: string, emailConfirmationToken?: string) => Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontPr
|
|
|
2
2
|
export * from '@moonbase.sh/api-client';
|
|
3
3
|
import * as vue from 'vue';
|
|
4
4
|
import { Ref, App, InjectionKey } from 'vue';
|
|
5
|
+
import { Address } from '@moonbase.sh/api-client/src';
|
|
5
6
|
|
|
6
7
|
interface StorefrontContext {
|
|
7
8
|
storefront: Ref<Storefront>;
|
|
@@ -49,6 +50,14 @@ declare function useAuth(): {
|
|
|
49
50
|
email: string;
|
|
50
51
|
name: string;
|
|
51
52
|
tenantId: string;
|
|
53
|
+
address?: {
|
|
54
|
+
countryCode: string;
|
|
55
|
+
streetAddress1: string;
|
|
56
|
+
streetAddress2: string | null;
|
|
57
|
+
locality: string | null;
|
|
58
|
+
region: string | null;
|
|
59
|
+
postCode: string;
|
|
60
|
+
} | undefined;
|
|
52
61
|
} | null>;
|
|
53
62
|
loaded: vue.Ref<boolean>;
|
|
54
63
|
signIn: (email: string, password: string) => Promise<{
|
|
@@ -56,12 +65,28 @@ declare function useAuth(): {
|
|
|
56
65
|
email: string;
|
|
57
66
|
name: string;
|
|
58
67
|
tenantId: string;
|
|
68
|
+
address?: {
|
|
69
|
+
countryCode: string;
|
|
70
|
+
streetAddress1: string;
|
|
71
|
+
streetAddress2: string | null;
|
|
72
|
+
locality: string | null;
|
|
73
|
+
region: string | null;
|
|
74
|
+
postCode: string;
|
|
75
|
+
} | undefined;
|
|
59
76
|
}>;
|
|
60
|
-
signUp: (name: string, email: string, password: string, acceptedPrivacyPolicy: boolean, acceptedTermsAndConditions: boolean) => Promise<{
|
|
77
|
+
signUp: (name: string, email: string, password: string, address: Address | null | undefined, acceptedPrivacyPolicy: boolean, acceptedTermsAndConditions: boolean) => Promise<{
|
|
61
78
|
id: string;
|
|
62
79
|
email: string;
|
|
63
80
|
name: string;
|
|
64
81
|
tenantId: string;
|
|
82
|
+
address?: {
|
|
83
|
+
countryCode: string;
|
|
84
|
+
streetAddress1: string;
|
|
85
|
+
streetAddress2: string | null;
|
|
86
|
+
locality: string | null;
|
|
87
|
+
region: string | null;
|
|
88
|
+
postCode: string;
|
|
89
|
+
} | undefined;
|
|
65
90
|
}>;
|
|
66
91
|
signOut: () => void;
|
|
67
92
|
update: (name: string, email: string, emailConfirmationToken?: string) => Promise<{
|
package/dist/index.js
CHANGED
|
@@ -287,11 +287,12 @@ function useAuth() {
|
|
|
287
287
|
const _ = storefront.updateStorefront();
|
|
288
288
|
return user;
|
|
289
289
|
},
|
|
290
|
-
signUp: async (name, email, password, acceptedPrivacyPolicy, acceptedTermsAndConditions) => {
|
|
290
|
+
signUp: async (name, email, password, address, acceptedPrivacyPolicy, acceptedTermsAndConditions) => {
|
|
291
291
|
const user = await storefront.client.identity.signUp(
|
|
292
292
|
name,
|
|
293
293
|
email,
|
|
294
294
|
password,
|
|
295
|
+
address,
|
|
295
296
|
acceptedPrivacyPolicy,
|
|
296
297
|
acceptedTermsAndConditions
|
|
297
298
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.41",
|
|
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",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"dist/**"
|
|
14
14
|
],
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"vue": "^3.2.0"
|
|
17
|
+
},
|
|
15
18
|
"dependencies": {
|
|
16
19
|
"@vue/devtools-api": "^6.5.0",
|
|
17
20
|
"uuid": "^9.0.0",
|
|
18
|
-
"@moonbase.sh/api-client": "0.1.
|
|
19
|
-
},
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"vue": "^3.2.0"
|
|
21
|
+
"@moonbase.sh/api-client": "0.1.41"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/uuid": "^9.0.1",
|