@inzombieland/core 1.18.42 → 1.18.44

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/AppProvider.vue CHANGED
@@ -1,6 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { defineProps, onBeforeMount, onMounted, ref } from "vue"
3
3
  import bus from "./bus"
4
+ import VantConfigProvider from "./vant"
4
5
  import { useThemeMode, useUser } from "./index"
5
6
  import type { ConfigProviderTheme } from "vant"
6
7
 
@@ -33,10 +34,13 @@ export const useBus = () => {
33
34
  :class="{ app: appLoading }"
34
35
  >
35
36
  <slot />
36
- <van-config-provider
37
- v-if="vantEnabled && theme?.value"
38
- :theme="theme?.value as ConfigProviderTheme"
39
- />
37
+
38
+ <span v-if="vantEnabled">
39
+ <VantConfigProvider
40
+ v-if="theme?.value"
41
+ :theme="theme?.value as ConfigProviderTheme"
42
+ />
43
+ </span>
40
44
  </div>
41
45
  </template>
42
46
 
package/index.d.ts CHANGED
@@ -13,6 +13,18 @@ export declare function initApiFetch($fetch: Fetch, config: FetchConfig): {
13
13
  key: string;
14
14
  }>;
15
15
  signInByCodeVerifyCode: (body: Record<string, any>) => Promise<import("./types").GetUserResponse>;
16
+ signUp: (body: Record<string, any>) => Promise<{
17
+ key: string;
18
+ }>;
19
+ confirmEmail: (body: {
20
+ key: string;
21
+ code: string;
22
+ }) => Promise<{}>;
23
+ resendActivationEmail: (body: {
24
+ email: string;
25
+ }) => Promise<{
26
+ key: string;
27
+ }>;
16
28
  logout: () => Promise<void>;
17
29
  fetchActiveSessions: () => Promise<{
18
30
  sessions: import("./types").ActiveSession[];
@@ -76,6 +88,18 @@ export declare const useUserActions: () => Ref<{
76
88
  key: string;
77
89
  }>;
78
90
  signInByCodeVerifyCode: (body: Record<string, any>) => Promise<import("./types").GetUserResponse>;
91
+ signUp: (body: Record<string, any>) => Promise<{
92
+ key: string;
93
+ }>;
94
+ confirmEmail: (body: {
95
+ key: string;
96
+ code: string;
97
+ }) => Promise<{}>;
98
+ resendActivationEmail: (body: {
99
+ email: string;
100
+ }) => Promise<{
101
+ key: string;
102
+ }>;
79
103
  logout: () => Promise<void>;
80
104
  fetchActiveSessions: () => Promise<{
81
105
  sessions: import("./types").ActiveSession[];
@@ -137,6 +161,18 @@ export declare const useUserActions: () => Ref<{
137
161
  key: string;
138
162
  }>;
139
163
  signInByCodeVerifyCode: (body: Record<string, any>) => Promise<import("./types").GetUserResponse>;
164
+ signUp: (body: Record<string, any>) => Promise<{
165
+ key: string;
166
+ }>;
167
+ confirmEmail: (body: {
168
+ key: string;
169
+ code: string;
170
+ }) => Promise<{}>;
171
+ resendActivationEmail: (body: {
172
+ email: string;
173
+ }) => Promise<{
174
+ key: string;
175
+ }>;
140
176
  logout: () => Promise<void>;
141
177
  fetchActiveSessions: () => Promise<{
142
178
  sessions: import("./types").ActiveSession[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/core",
3
- "version": "1.18.42",
3
+ "version": "1.18.44",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "main": "./index.mjs",
package/user-actions.d.ts CHANGED
@@ -5,6 +5,18 @@ export declare const createApiUserActions: (fetch: Fetch, config: FetchConfig, g
5
5
  key: string;
6
6
  }>;
7
7
  signInByCodeVerifyCode: (body: Record<string, any>) => Promise<GetUserResponse>;
8
+ signUp: (body: Record<string, any>) => Promise<{
9
+ key: string;
10
+ }>;
11
+ confirmEmail: (body: {
12
+ key: string;
13
+ code: string;
14
+ }) => Promise<{}>;
15
+ resendActivationEmail: (body: {
16
+ email: string;
17
+ }) => Promise<{
18
+ key: string;
19
+ }>;
8
20
  logout: () => Promise<void>;
9
21
  fetchActiveSessions: () => Promise<{
10
22
  sessions: ActiveSession[];
package/user-actions.mjs CHANGED
@@ -33,6 +33,27 @@ export const createApiUserActions = once(
33
33
  setToken(accessToken);
34
34
  return await getUser();
35
35
  },
36
+ signUp: async (body) => {
37
+ return await fetch("/account/0/signup", {
38
+ body,
39
+ method: "POST",
40
+ ...config.useRequestHeaders?.(["cookie"]) ?? {}
41
+ });
42
+ },
43
+ confirmEmail: async (body) => {
44
+ return await fetch("/account/0/signup", {
45
+ body,
46
+ method: "PUT",
47
+ ...config.useRequestHeaders?.(["cookie"]) ?? {}
48
+ });
49
+ },
50
+ resendActivationEmail: async (body) => {
51
+ return await fetch("/account/0/signup", {
52
+ body,
53
+ method: "PATCH",
54
+ ...config.useRequestHeaders?.(["cookie"]) ?? {}
55
+ });
56
+ },
36
57
  logout: async () => {
37
58
  const user = useUser();
38
59
  try {
package/vant.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import ConfigProvider from "vant/es/config-provider";
2
+ export default ConfigProvider;
package/vant.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import ConfigProvider from "vant/es/config-provider";
2
+ export default ConfigProvider;