@vuetify/one 1.1.0 → 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 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
 
@@ -329,6 +329,50 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
329
329
  sync: () => Promise<void>;
330
330
  }, "sync" | "findIdentity" | "verify" | "login" | "logout" | "lastLoginProvider">>;
331
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
+
332
376
  type Bin = {
333
377
  id: string;
334
378
  content: string;
@@ -1594,4 +1638,4 @@ declare function createOne(): {
1594
1638
  };
1595
1639
  declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
1596
1640
 
1597
- export { createOne, one, useAuthStore, useBinsStore, useHttpStore, useOneStore, useSettingsStore, useUserStore };
1641
+ export { createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, useSettingsStore, useUserStore };
package/dist/index.js CHANGED
@@ -3355,6 +3355,7 @@ export {
3355
3355
  Qs as createOne,
3356
3356
  Js as one,
3357
3357
  F as useAuthStore,
3358
+ Ne as useBannersStore,
3358
3359
  Zs as useBinsStore,
3359
3360
  he as useHttpStore,
3360
3361
  j as useOneStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuetify/one",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",