@vuetify/one 2.10.0 → 2.11.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 CHANGED
@@ -181,7 +181,7 @@ interface AuthState {
181
181
  isEditor: Ref<boolean>;
182
182
  verify: (force?: boolean) => Promise<void>;
183
183
  findIdentity: (provider: string) => VOneIdentity | undefined;
184
- login: (provider?: 'github' | 'discord' | 'shopify') => Promise<void>;
184
+ login: (provider?: 'github' | 'discord' | 'shopify' | 'google') => Promise<void>;
185
185
  logout: (identity?: string) => Promise<void>;
186
186
  lastLoginProvider: () => string | null;
187
187
  sync: () => Promise<void>;
@@ -232,6 +232,7 @@ declare const useBannersStore: pinia.StoreDefinition<"banners", Pick<BannerState
232
232
 
233
233
  type VOneBin = {
234
234
  id: string;
235
+ title: string;
235
236
  content: string;
236
237
  favorite: boolean;
237
238
  pinned: boolean;
@@ -409,7 +410,12 @@ interface VOneLink {
409
410
  updatedAt: string;
410
411
  visits?: number;
411
412
  totalVisits?: number;
413
+ lastVisitedAt?: string | null;
412
414
  scoped: boolean;
415
+ contentType?: 'url' | 'content';
416
+ payload?: string | null;
417
+ language?: string | null;
418
+ source?: 'bin' | 'play' | 'manual';
413
419
  }
414
420
  interface CreateLinkOptions {
415
421
  title: string;
@@ -422,18 +428,23 @@ interface CreateLinkOptions {
422
428
  password?: string | null;
423
429
  timer?: number | null;
424
430
  expiresAt?: Date | null;
431
+ contentType?: 'url' | 'content';
432
+ payload?: string | null;
433
+ language?: string | null;
434
+ source?: 'bin' | 'play' | 'manual';
425
435
  }
426
436
  interface LinksState {
427
437
  isLoading: ShallowRef<boolean>;
428
438
  isSaving: ShallowRef<boolean>;
429
439
  canCreate: ComputedRef<boolean>;
440
+ canUseCustomSlug: ComputedRef<boolean>;
430
441
  pinned: ComputedRef<VOneLink[]>;
431
442
  favorites: ComputedRef<VOneLink[]>;
432
443
  all: Ref<VOneLink[]>;
433
444
  index: () => Promise<VOneLink[]>;
434
445
  create: (options: CreateLinkOptions) => Promise<VOneLink | undefined>;
435
446
  }
436
- declare const useLinksStore: pinia.StoreDefinition<"links", Pick<LinksState, "isLoading" | "all" | "isSaving">, Pick<LinksState, "favorites" | "pinned" | "canCreate">, Pick<LinksState, "create" | "index">>;
447
+ declare const useLinksStore: pinia.StoreDefinition<"links", Pick<LinksState, "isLoading" | "all" | "isSaving">, Pick<LinksState, "favorites" | "pinned" | "canCreate" | "canUseCustomSlug">, Pick<LinksState, "create" | "index">>;
437
448
 
438
449
  interface VOneNotification {
439
450
  id: string;