@vuetify/one 1.4.2 → 1.5.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +41 -4
  2. package/dist/index.js +1198 -1151
  3. package/package.json +2 -1
package/dist/index.d.ts CHANGED
@@ -364,7 +364,7 @@ interface Banner {
364
364
  site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
365
365
  };
366
366
  }
367
- interface State$1 {
367
+ interface State$2 {
368
368
  all: Ref<Banner[]>;
369
369
  aall: Ref<Banner[]>;
370
370
  isLoading: ShallowRef<boolean>;
@@ -378,7 +378,7 @@ interface State$1 {
378
378
  store: (data: FormData) => Promise<Banner>;
379
379
  update: (slug: string, data: FormData) => Promise<Banner>;
380
380
  }
381
- declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State$1, "isLoading" | "all" | "aall" | "record">>, Pick<State$1, "server" | "banner">, Pick<State$1, "show" | "admin" | "destroy" | "index" | "store" | "update">>;
381
+ declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State$2, "isLoading" | "all" | "aall" | "record">>, Pick<State$2, "server" | "banner">, Pick<State$2, "show" | "admin" | "destroy" | "index" | "store" | "update">>;
382
382
 
383
383
  type Bin = {
384
384
  id: string;
@@ -1716,6 +1716,24 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
1716
1716
  verify: () => Promise<void>;
1717
1717
  }, "verify" | "cancel" | "activate" | "manage" | "modify" | "resetQuery" | "subscribe" | "subscriptionInfo">>;
1718
1718
 
1719
+ interface ShopifyProduct {
1720
+ id: string;
1721
+ title: string;
1722
+ vendor: string;
1723
+ product_type: string;
1724
+ tags: string[];
1725
+ handle: string;
1726
+ price: string;
1727
+ image: string;
1728
+ }
1729
+ interface State$1 {
1730
+ all: Ref<ShopifyProduct[]>;
1731
+ themes: ComputedRef<ShopifyProduct[]>;
1732
+ index: () => Promise<ShopifyProduct[]>;
1733
+ randomize: (array: ShopifyProduct[]) => ShopifyProduct[];
1734
+ }
1735
+ declare const useProductsStore: pinia.StoreDefinition<"products", pinia._UnwrapAll<Pick<State$1, "all">>, Pick<State$1, "themes">, Pick<State$1, "index" | "randomize">>;
1736
+
1719
1737
  type CosmicImage = {
1720
1738
  url: string;
1721
1739
  } | null;
@@ -1725,6 +1743,7 @@ interface Promotion {
1725
1743
  title: string;
1726
1744
  metadata: {
1727
1745
  active: boolean;
1746
+ color: string;
1728
1747
  text: string;
1729
1748
  short_text: string;
1730
1749
  images: {
@@ -1750,6 +1769,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
1750
1769
  title: string;
1751
1770
  metadata: {
1752
1771
  active: boolean;
1772
+ color: string;
1753
1773
  text: string;
1754
1774
  short_text: string;
1755
1775
  images: {
@@ -1784,6 +1804,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
1784
1804
  title: string;
1785
1805
  metadata: {
1786
1806
  active: boolean;
1807
+ color: string;
1787
1808
  text: string;
1788
1809
  short_text: string;
1789
1810
  images: {
@@ -1820,6 +1841,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
1820
1841
  title: string;
1821
1842
  metadata: {
1822
1843
  active: boolean;
1844
+ color: string;
1823
1845
  text: string;
1824
1846
  short_text: string;
1825
1847
  images: {
@@ -1855,6 +1877,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
1855
1877
  title: string;
1856
1878
  metadata: {
1857
1879
  active: boolean;
1880
+ color: string;
1858
1881
  text: string;
1859
1882
  short_text: string;
1860
1883
  images: {
@@ -1890,6 +1913,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
1890
1913
  title: string;
1891
1914
  metadata: {
1892
1915
  active: boolean;
1916
+ color: string;
1893
1917
  text: string;
1894
1918
  short_text: string;
1895
1919
  images: {
@@ -1929,6 +1953,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
1929
1953
  title: string;
1930
1954
  metadata: {
1931
1955
  active: boolean;
1956
+ color: string;
1932
1957
  text: string;
1933
1958
  short_text: string;
1934
1959
  images: {
@@ -1963,6 +1988,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
1963
1988
  title: string;
1964
1989
  metadata: {
1965
1990
  active: boolean;
1991
+ color: string;
1966
1992
  text: string;
1967
1993
  short_text: string;
1968
1994
  images: {
@@ -1999,6 +2025,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
1999
2025
  title: string;
2000
2026
  metadata: {
2001
2027
  active: boolean;
2028
+ color: string;
2002
2029
  text: string;
2003
2030
  short_text: string;
2004
2031
  images: {
@@ -2034,6 +2061,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
2034
2061
  title: string;
2035
2062
  metadata: {
2036
2063
  active: boolean;
2064
+ color: string;
2037
2065
  text: string;
2038
2066
  short_text: string;
2039
2067
  images: {
@@ -2069,6 +2097,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
2069
2097
  title: string;
2070
2098
  metadata: {
2071
2099
  active: boolean;
2100
+ color: string;
2072
2101
  text: string;
2073
2102
  short_text: string;
2074
2103
  images: {
@@ -2108,6 +2137,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
2108
2137
  title: string;
2109
2138
  metadata: {
2110
2139
  active: boolean;
2140
+ color: string;
2111
2141
  text: string;
2112
2142
  short_text: string;
2113
2143
  images: {
@@ -2142,6 +2172,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
2142
2172
  title: string;
2143
2173
  metadata: {
2144
2174
  active: boolean;
2175
+ color: string;
2145
2176
  text: string;
2146
2177
  short_text: string;
2147
2178
  images: {
@@ -2178,6 +2209,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
2178
2209
  title: string;
2179
2210
  metadata: {
2180
2211
  active: boolean;
2212
+ color: string;
2181
2213
  text: string;
2182
2214
  short_text: string;
2183
2215
  images: {
@@ -2213,6 +2245,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
2213
2245
  title: string;
2214
2246
  metadata: {
2215
2247
  active: boolean;
2248
+ color: string;
2216
2249
  text: string;
2217
2250
  short_text: string;
2218
2251
  images: {
@@ -2248,6 +2281,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._Unw
2248
2281
  title: string;
2249
2282
  metadata: {
2250
2283
  active: boolean;
2284
+ color: string;
2251
2285
  text: string;
2252
2286
  short_text: string;
2253
2287
  images: {
@@ -2345,6 +2379,7 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
2345
2379
  pwaRefresh: globalThis.Ref<boolean>;
2346
2380
  slashSearch: globalThis.Ref<boolean>;
2347
2381
  syncSettings: globalThis.Ref<boolean>;
2382
+ showHouseAds: globalThis.Ref<boolean>;
2348
2383
  theme: globalThis.Ref<string>;
2349
2384
  mixedTheme: globalThis.Ref<boolean>;
2350
2385
  direction: globalThis.Ref<"rtl" | "ltr">;
@@ -2373,7 +2408,7 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
2373
2408
  jobs: null | number;
2374
2409
  };
2375
2410
  }>;
2376
- }, "v" | "api" | "avatar" | "dev" | "disableAds" | "composition" | "pwaRefresh" | "slashSearch" | "syncSettings" | "theme" | "mixedTheme" | "direction" | "quickbar" | "railDrawer" | "pins" | "pinned" | "suits" | "colors" | "notifications">>, Pick<{
2411
+ }, "v" | "api" | "avatar" | "dev" | "disableAds" | "composition" | "pwaRefresh" | "slashSearch" | "syncSettings" | "showHouseAds" | "theme" | "mixedTheme" | "direction" | "quickbar" | "railDrawer" | "pins" | "pinned" | "suits" | "colors" | "notifications">>, Pick<{
2377
2412
  load: () => void;
2378
2413
  save: () => void;
2379
2414
  reset: () => void;
@@ -2386,6 +2421,7 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
2386
2421
  pwaRefresh: globalThis.Ref<boolean>;
2387
2422
  slashSearch: globalThis.Ref<boolean>;
2388
2423
  syncSettings: globalThis.Ref<boolean>;
2424
+ showHouseAds: globalThis.Ref<boolean>;
2389
2425
  theme: globalThis.Ref<string>;
2390
2426
  mixedTheme: globalThis.Ref<boolean>;
2391
2427
  direction: globalThis.Ref<"rtl" | "ltr">;
@@ -2427,6 +2463,7 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
2427
2463
  pwaRefresh: globalThis.Ref<boolean>;
2428
2464
  slashSearch: globalThis.Ref<boolean>;
2429
2465
  syncSettings: globalThis.Ref<boolean>;
2466
+ showHouseAds: globalThis.Ref<boolean>;
2430
2467
  theme: globalThis.Ref<string>;
2431
2468
  mixedTheme: globalThis.Ref<boolean>;
2432
2469
  direction: globalThis.Ref<"rtl" | "ltr">;
@@ -2462,4 +2499,4 @@ declare function createOne(): {
2462
2499
  };
2463
2500
  declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
2464
2501
 
2465
- export { createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, usePromotionsStore, useSettingsStore, useSpotsStore, useUserStore };
2502
+ export { createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, useProductsStore, usePromotionsStore, useSettingsStore, useSpotsStore, useUserStore };