@vuetify/one 1.0.16 → 1.1.1
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.ts +58 -8
- package/dist/index.js +1612 -1220
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { App } from 'vue';
|
|
2
|
+
import { Ref, ShallowRef, ComputedRef, App } from 'vue';
|
|
3
3
|
import * as pinia from 'pinia';
|
|
4
4
|
import { PiniaPluginContext } from 'pinia';
|
|
5
5
|
|
|
@@ -92,6 +92,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
92
92
|
}[];
|
|
93
93
|
} | null>;
|
|
94
94
|
url: string;
|
|
95
|
+
dialog: vue.Ref<boolean>;
|
|
95
96
|
isLoading: vue.ShallowRef<boolean>;
|
|
96
97
|
findIdentity: (provider: string) => {
|
|
97
98
|
id: string;
|
|
@@ -110,7 +111,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
110
111
|
isSubscriber: vue.ComputedRef<boolean>;
|
|
111
112
|
lastLoginProvider: () => string | null;
|
|
112
113
|
sync: () => Promise<void>;
|
|
113
|
-
}, "url" | "user" | "isLoading">>, Pick<{
|
|
114
|
+
}, "dialog" | "url" | "user" | "isLoading">>, Pick<{
|
|
114
115
|
user: vue.Ref<{
|
|
115
116
|
id: string;
|
|
116
117
|
isAdmin: boolean;
|
|
@@ -199,6 +200,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
199
200
|
}[];
|
|
200
201
|
} | null>;
|
|
201
202
|
url: string;
|
|
203
|
+
dialog: vue.Ref<boolean>;
|
|
202
204
|
isLoading: vue.ShallowRef<boolean>;
|
|
203
205
|
findIdentity: (provider: string) => {
|
|
204
206
|
id: string;
|
|
@@ -306,6 +308,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
306
308
|
}[];
|
|
307
309
|
} | null>;
|
|
308
310
|
url: string;
|
|
311
|
+
dialog: vue.Ref<boolean>;
|
|
309
312
|
isLoading: vue.ShallowRef<boolean>;
|
|
310
313
|
findIdentity: (provider: string) => {
|
|
311
314
|
id: string;
|
|
@@ -326,6 +329,50 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
326
329
|
sync: () => Promise<void>;
|
|
327
330
|
}, "sync" | "findIdentity" | "verify" | "login" | "logout" | "lastLoginProvider">>;
|
|
328
331
|
|
|
332
|
+
interface Banner {
|
|
333
|
+
status: 'published' | 'unpublished';
|
|
334
|
+
created_at: string;
|
|
335
|
+
modified_at: string;
|
|
336
|
+
slug: string;
|
|
337
|
+
title: string;
|
|
338
|
+
metadata: {
|
|
339
|
+
active: boolean;
|
|
340
|
+
closable: boolean;
|
|
341
|
+
color: string;
|
|
342
|
+
label: string;
|
|
343
|
+
height: number;
|
|
344
|
+
text: string;
|
|
345
|
+
subtext: string;
|
|
346
|
+
link: string;
|
|
347
|
+
link_text: string;
|
|
348
|
+
link_color: string;
|
|
349
|
+
attributes: Record<string, any>;
|
|
350
|
+
start_date: string;
|
|
351
|
+
end_date: string;
|
|
352
|
+
theme: {
|
|
353
|
+
key: 'light' | 'dark';
|
|
354
|
+
value: 'Light' | 'Dark';
|
|
355
|
+
};
|
|
356
|
+
images: {
|
|
357
|
+
bg: {
|
|
358
|
+
url: string;
|
|
359
|
+
};
|
|
360
|
+
logo: {
|
|
361
|
+
url: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
interface State {
|
|
368
|
+
all: Ref<Banner[]>;
|
|
369
|
+
isLoading: ShallowRef<boolean>;
|
|
370
|
+
server: ComputedRef<Banner | undefined>;
|
|
371
|
+
banner: ComputedRef<Banner | undefined>;
|
|
372
|
+
get: () => Promise<Banner[]>;
|
|
373
|
+
}
|
|
374
|
+
declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State, "all" | "isLoading">>, Pick<State, "server" | "banner">, Pick<State, "get">>;
|
|
375
|
+
|
|
329
376
|
type Bin = {
|
|
330
377
|
id: string;
|
|
331
378
|
content: string;
|
|
@@ -519,7 +566,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
519
566
|
status: string;
|
|
520
567
|
pdf: string;
|
|
521
568
|
}[]>;
|
|
522
|
-
sessionId: string |
|
|
569
|
+
sessionId: string | string[];
|
|
523
570
|
subscription: vue.ComputedRef<{
|
|
524
571
|
id: string;
|
|
525
572
|
platform: string;
|
|
@@ -817,6 +864,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
817
864
|
cancel: () => Promise<void>;
|
|
818
865
|
manage: () => Promise<void>;
|
|
819
866
|
modify: (interval: SubscriptionItemPlan['interval']) => Promise<void>;
|
|
867
|
+
resetQuery: () => void;
|
|
820
868
|
subscribe: (interval: string) => Promise<void>;
|
|
821
869
|
subscriptionInfo: () => Promise<any>;
|
|
822
870
|
verify: () => Promise<void>;
|
|
@@ -829,7 +877,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
829
877
|
status: string;
|
|
830
878
|
pdf: string;
|
|
831
879
|
}[]>;
|
|
832
|
-
sessionId: string |
|
|
880
|
+
sessionId: string | string[];
|
|
833
881
|
subscription: vue.ComputedRef<{
|
|
834
882
|
id: string;
|
|
835
883
|
platform: string;
|
|
@@ -1127,6 +1175,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1127
1175
|
cancel: () => Promise<void>;
|
|
1128
1176
|
manage: () => Promise<void>;
|
|
1129
1177
|
modify: (interval: SubscriptionItemPlan['interval']) => Promise<void>;
|
|
1178
|
+
resetQuery: () => void;
|
|
1130
1179
|
subscribe: (interval: string) => Promise<void>;
|
|
1131
1180
|
subscriptionInfo: () => Promise<any>;
|
|
1132
1181
|
verify: () => Promise<void>;
|
|
@@ -1139,7 +1188,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1139
1188
|
status: string;
|
|
1140
1189
|
pdf: string;
|
|
1141
1190
|
}[]>;
|
|
1142
|
-
sessionId: string |
|
|
1191
|
+
sessionId: string | string[];
|
|
1143
1192
|
subscription: vue.ComputedRef<{
|
|
1144
1193
|
id: string;
|
|
1145
1194
|
platform: string;
|
|
@@ -1437,10 +1486,11 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1437
1486
|
cancel: () => Promise<void>;
|
|
1438
1487
|
manage: () => Promise<void>;
|
|
1439
1488
|
modify: (interval: SubscriptionItemPlan['interval']) => Promise<void>;
|
|
1489
|
+
resetQuery: () => void;
|
|
1440
1490
|
subscribe: (interval: string) => Promise<void>;
|
|
1441
1491
|
subscriptionInfo: () => Promise<any>;
|
|
1442
1492
|
verify: () => Promise<void>;
|
|
1443
|
-
}, "cancel" | "verify" | "activate" | "manage" | "modify" | "subscribe" | "subscriptionInfo">>;
|
|
1493
|
+
}, "cancel" | "verify" | "activate" | "manage" | "modify" | "resetQuery" | "subscribe" | "subscriptionInfo">>;
|
|
1444
1494
|
|
|
1445
1495
|
interface Suit {
|
|
1446
1496
|
'app-bar': string;
|
|
@@ -1586,6 +1636,6 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
|
|
|
1586
1636
|
declare function createOne(): {
|
|
1587
1637
|
install: (app: App) => void;
|
|
1588
1638
|
};
|
|
1589
|
-
declare function one(
|
|
1639
|
+
declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
|
|
1590
1640
|
|
|
1591
|
-
export { createOne, one, useAuthStore, useBinsStore, useHttpStore, useOneStore, useSettingsStore, useUserStore };
|
|
1641
|
+
export { createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, useSettingsStore, useUserStore };
|