@feedmepos/mf-common 0.0.10 → 0.26.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 +18 -31
- package/dist/App.vue.d.ts +19 -5
- package/dist/App.vue.d.ts.map +1 -0
- package/dist/CustomAttributesForm-84d67123.js +96 -0
- package/dist/Entry.vue.d.ts +3 -0
- package/dist/Entry.vue.d.ts.map +1 -0
- package/dist/ItemSelector-0ef7086f.js +24797 -0
- package/dist/RestaurantSelector-065f80f3.js +218 -0
- package/dist/api/index.d.ts +54 -3
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/menu.d.ts +7 -0
- package/dist/api/menu.d.ts.map +1 -0
- package/dist/app-7518a4c8.js +41042 -0
- package/dist/app-9575c6c7.js +7846 -0
- package/dist/app.d.ts +703 -1326
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +37 -16301
- package/dist/components/AllBusinessDialog.vue.d.ts +17 -0
- package/dist/components/AllBusinessDialog.vue.d.ts.map +1 -0
- package/dist/components/ChangePassword/ConfirmPassword.vue.d.ts +3 -0
- package/dist/components/ChangePassword/ConfirmPassword.vue.d.ts.map +1 -0
- package/dist/components/ChangePassword/NewPassword.vue.d.ts +3 -0
- package/dist/components/ChangePassword/NewPassword.vue.d.ts.map +1 -0
- package/dist/components/ChangePassword/PasswordField.vue.d.ts +15 -0
- package/dist/components/ChangePassword/PasswordField.vue.d.ts.map +1 -0
- package/dist/components/DebugUserDialog.vue.d.ts +3 -0
- package/dist/components/DebugUserDialog.vue.d.ts.map +1 -0
- package/dist/components/FeedmeLogo.vue.d.ts +3 -0
- package/dist/components/FeedmeLogo.vue.d.ts.map +1 -0
- package/dist/components/ItemSelector.vue.d.ts +46 -0
- package/dist/components/ItemSelector.vue.d.ts.map +1 -0
- package/dist/components/ManageAccountDialog.vue.d.ts +15 -0
- package/dist/components/ManageAccountDialog.vue.d.ts.map +1 -0
- package/dist/components/MyBusinessDialog.vue.d.ts +15 -0
- package/dist/components/MyBusinessDialog.vue.d.ts.map +1 -0
- package/dist/components/NoPermission.vue.d.ts +3 -0
- package/dist/components/NoPermission.vue.d.ts.map +1 -0
- package/dist/components/PermissionWrapper.vue.d.ts +10 -0
- package/dist/components/PermissionWrapper.vue.d.ts.map +1 -0
- package/dist/components/Portal/Ads.vue.d.ts +16 -0
- package/dist/components/Portal/Ads.vue.d.ts.map +1 -0
- package/dist/components/Portal/BusinessDialogMobile.vue.d.ts +17 -0
- package/dist/components/Portal/BusinessDialogMobile.vue.d.ts.map +1 -0
- package/dist/components/Portal/PortalDesktop.vue.d.ts +34 -0
- package/dist/components/Portal/PortalDesktop.vue.d.ts.map +1 -0
- package/dist/components/Portal/PortalMobile.vue.d.ts +34 -0
- package/dist/components/Portal/PortalMobile.vue.d.ts.map +1 -0
- package/dist/components/Portal/PortalSidebar.vue.d.ts +3 -0
- package/dist/components/Portal/PortalSidebar.vue.d.ts.map +1 -0
- package/dist/components/Portal/PortalTablet.vue.d.ts +33 -0
- package/dist/components/Portal/PortalTablet.vue.d.ts.map +1 -0
- package/dist/components/Portal/index.d.ts +28 -0
- package/dist/components/Portal/index.d.ts.map +1 -0
- package/dist/components/Portal/index.vue.d.ts +40 -0
- package/dist/components/Portal/index.vue.d.ts.map +1 -0
- package/dist/components/RestaurantSelector.vue.d.ts +48 -0
- package/dist/components/RestaurantSelector.vue.d.ts.map +1 -0
- package/dist/components/SelectCountryDialog.vue.d.ts +93 -0
- package/dist/components/SelectCountryDialog.vue.d.ts.map +1 -0
- package/dist/components/UserInfo/ProfileMenuItem.vue.d.ts +25 -0
- package/dist/components/UserInfo/ProfileMenuItem.vue.d.ts.map +1 -0
- package/dist/components/UserInfo/index.vue.d.ts +72 -0
- package/dist/components/UserInfo/index.vue.d.ts.map +1 -0
- package/dist/components/attribute/CustomAttributesForm.vue.d.ts +25 -0
- package/dist/components/attribute/CustomAttributesForm.vue.d.ts.map +1 -0
- package/dist/components/attribute/MongoQueryBuilder.vue.d.ts +22 -0
- package/dist/components/attribute/MongoQueryBuilder.vue.d.ts.map +1 -0
- package/dist/components/attribute/OptionChip.vue.d.ts +16 -0
- package/dist/components/attribute/OptionChip.vue.d.ts.map +1 -0
- package/dist/composables/filterSelector.d.ts +13 -0
- package/dist/composables/filterSelector.d.ts.map +1 -0
- package/dist/composables/search.d.ts +6 -0
- package/dist/composables/search.d.ts.map +1 -0
- package/dist/composables/useDebugUser.d.ts +6 -0
- package/dist/composables/useDebugUser.d.ts.map +1 -0
- package/dist/composables/useLocale.d.ts +27 -0
- package/dist/composables/useLocale.d.ts.map +1 -0
- package/dist/composables/usePaginatedBusinesses.d.ts +145 -0
- package/dist/composables/usePaginatedBusinesses.d.ts.map +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/locales/en-US.json +33 -0
- package/dist/locales/th-TH.json +33 -0
- package/dist/locales/types.d.ts +104 -0
- package/dist/locales/zh-CN.json +33 -0
- package/dist/logo.svg +15 -0
- package/dist/main.d.ts +2 -1
- package/dist/main.d.ts.map +1 -0
- package/dist/object-27ce045b.js +16 -0
- package/dist/permission/permission.d.ts +107 -0
- package/dist/permission/permission.d.ts.map +1 -0
- package/dist/plugin/loading.d.ts +18 -0
- package/dist/plugin/loading.d.ts.map +1 -0
- package/dist/router/index.d.ts +3 -0
- package/dist/router/index.d.ts.map +1 -0
- package/dist/router/query.d.ts +3 -0
- package/dist/router/query.d.ts.map +1 -0
- package/dist/store.d.ts +13951 -301
- package/dist/store.d.ts.map +1 -0
- package/dist/stores/menu.d.ts +7231 -0
- package/dist/stores/menu.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/utils/businessStorage.d.ts +12 -0
- package/dist/utils/businessStorage.d.ts.map +1 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/country.d.ts +11 -0
- package/dist/utils/country.d.ts.map +1 -0
- package/dist/utils/object.d.ts +2 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/postMessageMethodCall.d.ts +16 -0
- package/dist/utils/postMessageMethodCall.d.ts.map +1 -0
- package/dist/utils/storage.d.ts +6 -0
- package/dist/utils/storage.d.ts.map +1 -0
- package/dist/vite-preset.d.ts +12 -2
- package/dist/vite-preset.d.ts.map +1 -0
- package/dist/vite-preset.js +89 -47
- package/package.json +27 -13
- package/dist/FeedmeLogo.vue.d.ts +0 -2
- package/dist/UserInfo.vue.d.ts +0 -268
- package/dist/auth.d.ts +0 -106
package/dist/auth.d.ts
DELETED
@@ -1,106 +0,0 @@
|
|
1
|
-
export interface FeedMeAuthOptions {
|
2
|
-
clientId: string;
|
3
|
-
}
|
4
|
-
export interface FeedMeUser {
|
5
|
-
id: string;
|
6
|
-
email?: string | null;
|
7
|
-
photoURL?: string | null;
|
8
|
-
displayName?: string | null;
|
9
|
-
phoneNumber?: string | null;
|
10
|
-
}
|
11
|
-
export declare class FeedMeAuth {
|
12
|
-
static clientId: string;
|
13
|
-
static baseUrl: string;
|
14
|
-
private static _token;
|
15
|
-
private static _currentUser;
|
16
|
-
private static authStateChangeCallbacks;
|
17
|
-
private static bgIframe;
|
18
|
-
static setBaseUrl(url: string): void;
|
19
|
-
private static startBackground;
|
20
|
-
static initialize(options: FeedMeAuthOptions): void;
|
21
|
-
static prompt(root?: HTMLElement): void;
|
22
|
-
static onAuthStateChanged(callback: (user: FeedMeUser | null, token: string | null) => void): void;
|
23
|
-
static signOut(): void;
|
24
|
-
static unmountPrompt(): void;
|
25
|
-
static get currentUser(): {
|
26
|
-
id: string;
|
27
|
-
email?: string | null | undefined;
|
28
|
-
photoURL?: string | null | undefined;
|
29
|
-
displayName?: string | null | undefined;
|
30
|
-
phoneNumber?: string | null | undefined;
|
31
|
-
} | null;
|
32
|
-
static get token(): string | null;
|
33
|
-
static refreshToken(): Promise<string>;
|
34
|
-
static getUserClaims(): Promise<{
|
35
|
-
/** in seconds since the Unix epoch. */
|
36
|
-
exp: number;
|
37
|
-
customClaims: Record<string, unknown>;
|
38
|
-
}>;
|
39
|
-
}
|
40
|
-
export declare const useAuth: import("pinia").StoreDefinition<"auth", import("pinia")._UnwrapAll<Pick<{
|
41
|
-
config: (config: {
|
42
|
-
clientId: string;
|
43
|
-
customUrl?: string;
|
44
|
-
}) => void;
|
45
|
-
currentUser: import("vue").Ref<{
|
46
|
-
id: string;
|
47
|
-
email?: string | null | undefined;
|
48
|
-
photoURL?: string | null | undefined;
|
49
|
-
displayName?: string | null | undefined;
|
50
|
-
phoneNumber?: string | null | undefined;
|
51
|
-
} | null>;
|
52
|
-
token: import("vue").Ref<string | null>;
|
53
|
-
refreshToken: () => Promise<string>;
|
54
|
-
signOut: () => void;
|
55
|
-
prompt: (root?: HTMLElement) => void;
|
56
|
-
onAuthStateChanged: (callback: (user: FeedMeUser | null, token: string | null) => void) => void;
|
57
|
-
getUserClaims: () => Promise<{
|
58
|
-
/** in seconds since the Unix epoch. */
|
59
|
-
exp: number;
|
60
|
-
customClaims: Record<string, unknown>;
|
61
|
-
}>;
|
62
|
-
}, "currentUser" | "token">>, Pick<{
|
63
|
-
config: (config: {
|
64
|
-
clientId: string;
|
65
|
-
customUrl?: string;
|
66
|
-
}) => void;
|
67
|
-
currentUser: import("vue").Ref<{
|
68
|
-
id: string;
|
69
|
-
email?: string | null | undefined;
|
70
|
-
photoURL?: string | null | undefined;
|
71
|
-
displayName?: string | null | undefined;
|
72
|
-
phoneNumber?: string | null | undefined;
|
73
|
-
} | null>;
|
74
|
-
token: import("vue").Ref<string | null>;
|
75
|
-
refreshToken: () => Promise<string>;
|
76
|
-
signOut: () => void;
|
77
|
-
prompt: (root?: HTMLElement) => void;
|
78
|
-
onAuthStateChanged: (callback: (user: FeedMeUser | null, token: string | null) => void) => void;
|
79
|
-
getUserClaims: () => Promise<{
|
80
|
-
/** in seconds since the Unix epoch. */
|
81
|
-
exp: number;
|
82
|
-
customClaims: Record<string, unknown>;
|
83
|
-
}>;
|
84
|
-
}, never>, Pick<{
|
85
|
-
config: (config: {
|
86
|
-
clientId: string;
|
87
|
-
customUrl?: string;
|
88
|
-
}) => void;
|
89
|
-
currentUser: import("vue").Ref<{
|
90
|
-
id: string;
|
91
|
-
email?: string | null | undefined;
|
92
|
-
photoURL?: string | null | undefined;
|
93
|
-
displayName?: string | null | undefined;
|
94
|
-
phoneNumber?: string | null | undefined;
|
95
|
-
} | null>;
|
96
|
-
token: import("vue").Ref<string | null>;
|
97
|
-
refreshToken: () => Promise<string>;
|
98
|
-
signOut: () => void;
|
99
|
-
prompt: (root?: HTMLElement) => void;
|
100
|
-
onAuthStateChanged: (callback: (user: FeedMeUser | null, token: string | null) => void) => void;
|
101
|
-
getUserClaims: () => Promise<{
|
102
|
-
/** in seconds since the Unix epoch. */
|
103
|
-
exp: number;
|
104
|
-
customClaims: Record<string, unknown>;
|
105
|
-
}>;
|
106
|
-
}, "config" | "refreshToken" | "signOut" | "prompt" | "onAuthStateChanged" | "getUserClaims">>;
|