@vuetify/one 2.7.0 → 2.8.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/dist/index.d.ts +44 -2
- package/dist/index.js +789 -736
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -388,6 +388,48 @@ declare const useHttpStore: pinia.StoreDefinition<"http", {
|
|
|
388
388
|
delete(url: string, options?: RequestInit): Promise<Response>;
|
|
389
389
|
}>;
|
|
390
390
|
|
|
391
|
+
interface VOneLink {
|
|
392
|
+
id: string;
|
|
393
|
+
slug: string;
|
|
394
|
+
title: string;
|
|
395
|
+
url: string;
|
|
396
|
+
favorite: boolean;
|
|
397
|
+
pinned: boolean;
|
|
398
|
+
owner: Record<string, unknown>;
|
|
399
|
+
expiresAt: string | null;
|
|
400
|
+
expired: boolean;
|
|
401
|
+
timer: number | null;
|
|
402
|
+
passwordProtection: boolean;
|
|
403
|
+
createdAt: string;
|
|
404
|
+
updatedAt: string;
|
|
405
|
+
visits?: number;
|
|
406
|
+
totalVisits?: number;
|
|
407
|
+
scoped: boolean;
|
|
408
|
+
}
|
|
409
|
+
interface CreateLinkOptions {
|
|
410
|
+
title: string;
|
|
411
|
+
url: string;
|
|
412
|
+
slug?: string;
|
|
413
|
+
favorite?: boolean;
|
|
414
|
+
pinned?: boolean;
|
|
415
|
+
scoped?: boolean;
|
|
416
|
+
passwordProtection?: boolean;
|
|
417
|
+
password?: string | null;
|
|
418
|
+
timer?: number | null;
|
|
419
|
+
expiresAt?: Date | null;
|
|
420
|
+
}
|
|
421
|
+
interface LinksState {
|
|
422
|
+
isLoading: ShallowRef<boolean>;
|
|
423
|
+
isSaving: ShallowRef<boolean>;
|
|
424
|
+
canCreate: ComputedRef<boolean>;
|
|
425
|
+
pinned: ComputedRef<VOneLink[]>;
|
|
426
|
+
favorites: ComputedRef<VOneLink[]>;
|
|
427
|
+
all: Ref<VOneLink[]>;
|
|
428
|
+
index: () => Promise<VOneLink[]>;
|
|
429
|
+
create: (options: CreateLinkOptions) => Promise<VOneLink | undefined>;
|
|
430
|
+
}
|
|
431
|
+
declare const useLinksStore: pinia.StoreDefinition<"links", Pick<LinksState, "isLoading" | "all" | "isSaving">, Pick<LinksState, "favorites" | "pinned" | "canCreate">, Pick<LinksState, "index" | "create">>;
|
|
432
|
+
|
|
391
433
|
interface VOneNotification {
|
|
392
434
|
id: string;
|
|
393
435
|
slug: string;
|
|
@@ -1659,5 +1701,5 @@ declare function createOne(): {
|
|
|
1659
1701
|
};
|
|
1660
1702
|
declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
|
|
1661
1703
|
|
|
1662
|
-
export { aliases, createOne, one, useAuthStore, useBannersStore, useBinsStore, useDownloadsStore, useHttpStore, useNotificationsStore, useOneStore, useProductsStore, usePromotionsStore, useQueueStore, useSettingsStore, useSiteStore, useSponsorsStore, useSpotsStore, useTeamStore, useUserStore };
|
|
1663
|
-
export type { ShopifyProduct, VOneBanner, VOneBin, VOneIdentity, VOneNotification, VOnePromotion, VOneSendowlDownload, VOneSendowlDownloadItem, VOneSponsor, VOneSponsorship, VOneSpot, VOneSuit, VOneTeam, VOneUser };
|
|
1704
|
+
export { aliases, createOne, one, useAuthStore, useBannersStore, useBinsStore, useDownloadsStore, useHttpStore, useLinksStore, useNotificationsStore, useOneStore, useProductsStore, usePromotionsStore, useQueueStore, useSettingsStore, useSiteStore, useSponsorsStore, useSpotsStore, useTeamStore, useUserStore };
|
|
1705
|
+
export type { CreateLinkOptions, ShopifyProduct, VOneBanner, VOneBin, VOneIdentity, VOneLink, VOneNotification, VOnePromotion, VOneSendowlDownload, VOneSendowlDownloadItem, VOneSponsor, VOneSponsorship, VOneSpot, VOneSuit, VOneTeam, VOneUser };
|