@unsource/ui 2.8.19 → 2.8.20

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.8.19",
4
+ "version": "2.8.20",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -2,7 +2,6 @@ import type { AppSetting, Booking, BookingSetting, InputOption, Provider, Servic
2
2
  export declare const useUser: () => import("@vueuse/shared").RemovableRef<User>;
3
3
  export declare const useProvider: () => import("@vueuse/shared").RemovableRef<Partial<Provider>>;
4
4
  export declare const useActiveBookings: () => import("@vueuse/shared").RemovableRef<Booking[]>;
5
- export declare const useCurrentOrderIndex: (providerId: string, activeBookings: Booking[]) => number;
6
5
  export declare const useSettings: () => import("@vueuse/shared").RemovableRef<Partial<AppSetting>>;
7
6
  export declare const useHaveLocation: () => import("vue").Ref<boolean, boolean>;
8
7
  export declare const useCatInView: () => import("vue").Ref<[InputOption, ServiceSetting[]], [InputOption, ServiceSetting[]]>;
@@ -27,7 +26,6 @@ export declare const useReload: () => import("vue").Ref<number, number>;
27
26
  export declare const useUserId: () => import("#app").CookieRef<string | null | undefined>;
28
27
  export declare const useToken: () => import("#app").CookieRef<string | null | undefined>;
29
28
  export declare const useProviderId: () => import("#app").CookieRef<string | null | undefined>;
30
- export declare const useCurrentProductIndex: (products: ServiceSetting[], p: Partial<ServiceSetting>) => number;
31
29
  export declare const SettingToType: (setting: ServiceSetting) => ServiceSettingType;
32
30
  export declare const NotInProcessBooking: (e: Booking["status"]) => boolean;
33
31
  export declare const MinPrice: (bookingSetting: BookingSetting) => number | object | null | undefined;
@@ -3,7 +3,6 @@ import { _pick, _round, navigateTo, useCookie, useLocalStorage, useRuntimeConfig
3
3
  export const useUser = () => useLocalStorage("user", {});
4
4
  export const useProvider = () => useLocalStorage("provider", {});
5
5
  export const useActiveBookings = () => useLocalStorage("activeBookings", []);
6
- export const useCurrentOrderIndex = (providerId, activeBookings) => activeBookings?.findIndex((e) => e.providerId === providerId);
7
6
  export const useSettings = () => useLocalStorage("settings", {});
8
7
  export const useHaveLocation = () => useState("locations", () => true);
9
8
  export const useCatInView = () => useState("catView");
@@ -25,7 +24,6 @@ export const useToken = () => useCookie("token", {
25
24
  export const useProviderId = () => useCookie("providerId", {
26
25
  maxAge: 365 * 24 * 60 * 60 * 1e3
27
26
  });
28
- export const useCurrentProductIndex = (products, p) => products?.findIndex((e) => e.id === p.id);
29
27
  export const SettingToType = (setting) => ({
30
28
  ..._pick(setting, ["id", "price", "discount", "duration", "subCategoryKey", "description"]),
31
29
  title: setting.subCategory?.title || "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.8.19",
3
+ "version": "2.8.20",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",