@restaround/react 1.1.2 → 1.2.2
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/components/Events/Events.d.ts +1 -2
- package/dist/components/PublicMenu/Branches/Branches.d.ts +1 -1
- package/dist/components/PublicMenu/Customer/CustomerAddress/CustomerAddress.d.ts +2 -0
- package/dist/components/PublicMenu/Customer/CustomerAddress/index.d.ts +1 -0
- package/dist/components/PublicMenu/FloatingOrdersButton/FloatingOrdersButton.d.ts +2 -0
- package/dist/components/PublicMenu/FloatingOrdersButton/index.d.ts +1 -0
- package/dist/components/PublicMenu/Header/Header.d.ts +1 -1
- package/dist/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/AddUpdateAddress/index.d.ts +1 -0
- package/dist/components/PublicMenu/Modals/AddUpdateNote/AddUpdateNote.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/AddUpdateNote/index.d.ts +1 -0
- package/dist/components/PublicMenu/Modals/Auth/Auth.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/Auth/EmailStep.d.ts +8 -0
- package/dist/components/PublicMenu/Modals/Auth/OTPStep.d.ts +8 -0
- package/dist/components/PublicMenu/Modals/Auth/PhoneStep.d.ts +7 -0
- package/dist/components/PublicMenu/Modals/Auth/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawer.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerCart.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerCompleted.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerDetails.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerFooter.d.ts +5 -0
- package/dist/components/PublicMenu/OrderDrawer/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderItemsList/OrderItemsList.d.ts +5 -0
- package/dist/components/PublicMenu/OrderItemsList/OrderNoItems.d.ts +2 -0
- package/dist/components/PublicMenu/OrderItemsList/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderListItem/OptionsInfo/OptionsInfo.d.ts +9 -0
- package/dist/components/PublicMenu/OrderListItem/OrderListItem.d.ts +7 -0
- package/dist/components/PublicMenu/OrderListItem/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderStepper/OrderStepper.d.ts +7 -0
- package/dist/components/PublicMenu/OrderStepper/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductAddons/ProductAddons.d.ts +4 -4
- package/dist/components/PublicMenu/ProductDetails/ProductDetails.d.ts +2 -2
- package/dist/components/PublicMenu/ProductInOrder/ProductInOrder.d.ts +6 -0
- package/dist/components/PublicMenu/ProductInOrder/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductQuantity/ProductQuantity.d.ts +4 -3
- package/dist/components/PublicMenu/ProductVariants/ProductVariants.d.ts +2 -2
- package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItem.d.ts +1 -1
- package/dist/components/PublicMenu/ProductsListItem/ProductsListItem.d.ts +1 -1
- package/dist/constants/analytics.d.ts +1 -1
- package/dist/constants/env.d.ts +1 -0
- package/dist/hooks/product.d.ts +4 -4
- package/dist/hooks/translation.d.ts +4 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.esm.js.map +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/menu.d.ts +4 -3
- package/dist/models/models/category.d.ts +10 -0
- package/dist/models/models/index.d.ts +6 -0
- package/dist/models/models/menu.d.ts +30 -0
- package/dist/models/models/pricing.d.ts +17 -0
- package/dist/models/{addon.d.ts → modules/addon/models.d.ts} +0 -3
- package/dist/{utils/models/product.d.ts → models/modules/product/models.d.ts} +5 -4
- package/dist/modules/addon/index.d.ts +2 -0
- package/dist/{utils/models/addon.d.ts → modules/addon/models.d.ts} +0 -3
- package/dist/{utils/utils/addon.d.ts → modules/addon/utils.d.ts} +1 -1
- package/dist/modules/branch/index.d.ts +1 -0
- package/dist/modules/business/index.d.ts +1 -0
- package/dist/modules/common/index.d.ts +1 -0
- package/dist/modules/common/services.d.ts +1 -0
- package/dist/modules/customer/hooks.d.ts +3 -0
- package/dist/modules/customer/index.d.ts +4 -0
- package/dist/modules/customer/models.d.ts +47 -0
- package/dist/modules/customer/services.d.ts +7 -0
- package/dist/modules/customer/utils.d.ts +6 -0
- package/dist/modules/feature/hooks.d.ts +2 -0
- package/dist/modules/feature/index.d.ts +2 -0
- package/dist/modules/feature/models.d.ts +3 -0
- package/dist/modules/order/constants.d.ts +9 -0
- package/dist/modules/order/hooks.d.ts +22 -0
- package/dist/modules/order/index.d.ts +5 -0
- package/dist/modules/order/models.d.ts +80 -0
- package/dist/modules/order/services.d.ts +2 -0
- package/dist/modules/order/utils.d.ts +20 -0
- package/dist/modules/product/index.d.ts +2 -0
- package/dist/{models/product.d.ts → modules/product/models.d.ts} +5 -4
- package/dist/{utils/product.d.ts → modules/product/utils.d.ts} +9 -8
- package/dist/modules/view/constants.d.ts +15 -0
- package/dist/modules/view/index.d.ts +3 -0
- package/dist/modules/view/services.d.ts +2 -0
- package/dist/modules/view/utils.d.ts +6 -0
- package/dist/services/api/index.d.ts +5 -0
- package/dist/services/translation/index.d.ts +3 -0
- package/dist/services/translation/locales/az/auth.d.ts +7 -0
- package/dist/services/translation/locales/az/common.d.ts +6 -0
- package/dist/services/translation/locales/az/customer.d.ts +75 -0
- package/dist/services/translation/locales/az/error.d.ts +11 -0
- package/dist/services/translation/locales/az/events.d.ts +8 -0
- package/dist/services/translation/locales/az/index.d.ts +164 -0
- package/dist/services/translation/locales/az/order.d.ts +32 -0
- package/dist/services/translation/locales/az/pricing.d.ts +29 -0
- package/dist/services/translation/locales/en/auth.d.ts +2 -0
- package/dist/services/translation/locales/en/common.d.ts +2 -0
- package/dist/services/translation/locales/en/customer.d.ts +2 -0
- package/dist/services/translation/locales/en/error.d.ts +7 -0
- package/dist/services/translation/locales/en/events.d.ts +2 -0
- package/dist/services/translation/locales/en/index.d.ts +15 -0
- package/dist/services/translation/locales/en/order.d.ts +2 -0
- package/dist/services/translation/locales/en/pricing.d.ts +2 -0
- package/dist/services/translation/locales/et/auth.d.ts +7 -0
- package/dist/services/translation/locales/et/common.d.ts +6 -0
- package/dist/services/translation/locales/et/customer.d.ts +75 -0
- package/dist/services/translation/locales/et/error.d.ts +11 -0
- package/dist/services/translation/locales/et/events.d.ts +8 -0
- package/dist/services/translation/locales/et/index.d.ts +165 -0
- package/dist/services/translation/locales/et/order.d.ts +33 -0
- package/dist/services/translation/locales/et/pricing.d.ts +29 -0
- package/dist/services/translation/locales/index.d.ts +836 -0
- package/dist/services/translation/locales/nl/auth.d.ts +7 -0
- package/dist/services/translation/locales/nl/common.d.ts +6 -0
- package/dist/services/translation/locales/nl/customer.d.ts +75 -0
- package/dist/services/translation/locales/nl/error.d.ts +11 -0
- package/dist/services/translation/locales/nl/events.d.ts +8 -0
- package/dist/services/translation/locales/nl/index.d.ts +165 -0
- package/dist/services/translation/locales/nl/order.d.ts +33 -0
- package/dist/services/translation/locales/nl/pricing.d.ts +29 -0
- package/dist/services/translation/locales/ru/auth.d.ts +7 -0
- package/dist/services/translation/locales/ru/common.d.ts +6 -0
- package/dist/services/translation/locales/ru/customer.d.ts +75 -0
- package/dist/services/translation/locales/ru/error.d.ts +11 -0
- package/dist/services/translation/locales/ru/events.d.ts +8 -0
- package/dist/services/translation/locales/ru/index.d.ts +165 -0
- package/dist/services/translation/locales/ru/order.d.ts +33 -0
- package/dist/services/translation/locales/ru/pricing.d.ts +29 -0
- package/dist/services/translation/locales/tr/auth.d.ts +7 -0
- package/dist/services/translation/locales/tr/common.d.ts +6 -0
- package/dist/services/translation/locales/tr/customer.d.ts +75 -0
- package/dist/services/translation/locales/tr/error.d.ts +11 -0
- package/dist/services/translation/locales/tr/events.d.ts +8 -0
- package/dist/services/translation/locales/tr/index.d.ts +165 -0
- package/dist/services/translation/locales/tr/order.d.ts +33 -0
- package/dist/services/translation/locales/tr/pricing.d.ts +29 -0
- package/dist/store/order.d.ts +30 -0
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/models/index.d.ts +3 -3
- package/dist/utils/models/menu.d.ts +4 -3
- package/dist/utils/modules/addon/models.d.ts +27 -0
- package/dist/utils/{addon.d.ts → modules/addon/utils.d.ts} +1 -1
- package/dist/utils/modules/branch/models.d.ts +11 -0
- package/dist/utils/modules/business/models.d.ts +20 -0
- package/dist/utils/modules/order/models.d.ts +80 -0
- package/dist/utils/modules/order/utils.d.ts +20 -0
- package/dist/utils/modules/product/models.d.ts +40 -0
- package/dist/utils/{utils/product.d.ts → modules/product/utils.d.ts} +9 -8
- package/dist/utils/utils/index.d.ts +3 -3
- package/package.json +17 -15
- package/dist/components/PublicMenu/Cart/Cart.d.ts +0 -2
- package/dist/components/PublicMenu/Cart/index.d.ts +0 -1
- package/dist/components/PublicMenu/CartDrawer/CartDrawer.d.ts +0 -2
- package/dist/components/PublicMenu/CartDrawer/index.d.ts +0 -1
- package/dist/components/PublicMenu/CartItem/CartItem.d.ts +0 -6
- package/dist/components/PublicMenu/CartItem/OptionsInfo/OptionsInfo.d.ts +0 -9
- package/dist/components/PublicMenu/CartItem/index.d.ts +0 -1
- package/dist/components/PublicMenu/CartStepper/CartStepper.d.ts +0 -6
- package/dist/components/PublicMenu/CartStepper/index.d.ts +0 -1
- package/dist/components/PublicMenu/ProductInCart/ProductInCart.d.ts +0 -6
- package/dist/components/PublicMenu/ProductInCart/index.d.ts +0 -1
- package/dist/constants/translations.d.ts +0 -212
- package/dist/hooks/cart.d.ts +0 -12
- package/dist/models/order.d.ts +0 -47
- package/dist/store/cart.d.ts +0 -23
- package/dist/utils/cart.d.ts +0 -7
- package/dist/utils/cart.test.d.ts +0 -1
- package/dist/utils/models/order.d.ts +0 -47
- package/dist/utils/utils/cart.d.ts +0 -7
- package/dist/utils/utils/cart.test.d.ts +0 -1
- /package/dist/components/PublicMenu/{CartItem → OrderListItem}/OptionsInfo/index.d.ts +0 -0
- /package/dist/models/{branch.d.ts → modules/branch/models.d.ts} +0 -0
- /package/dist/models/{business.d.ts → modules/business/models.d.ts} +0 -0
- /package/dist/{utils/models/branch.d.ts → modules/branch/models.d.ts} +0 -0
- /package/dist/{utils/models/business.d.ts → modules/business/models.d.ts} +0 -0
|
@@ -2,10 +2,9 @@ import { BarChartData } from "@sorocraft/ui";
|
|
|
2
2
|
interface Props {
|
|
3
3
|
data: BarChartData[];
|
|
4
4
|
isLoading?: boolean;
|
|
5
|
-
loadingImage?: string;
|
|
6
5
|
language?: string;
|
|
7
6
|
goal: string;
|
|
8
7
|
setGoal: (goal: string) => void;
|
|
9
8
|
}
|
|
10
|
-
declare const Events: ({ data, isLoading,
|
|
9
|
+
declare const Events: ({ data, isLoading, language, goal, setGoal }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export default Events;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./CustomerAddress";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./FloatingOrdersButton";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { models as branchModels } from "src/modules/branch";
|
|
2
2
|
import * as menuModels from "src/models/menu";
|
|
3
3
|
interface Props extends Pick<menuModels.PublicMenuData, "coverImage" | "logoImage" | "name" | "instagram" | "facebook" | "whatsapp" | "telegram" | "tiktok"> {
|
|
4
4
|
branch?: branchModels.Branch;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./AddUpdateAddress";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./AddUpdateNote";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormErrors } from "@sorocraft/ui";
|
|
2
|
+
interface Props {
|
|
3
|
+
formErrors: FormErrors;
|
|
4
|
+
onChange: (email: string) => void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const EmailStep: ({ formErrors, onChange, onCancel }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default EmailStep;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormErrors } from "@sorocraft/ui";
|
|
2
|
+
interface Props {
|
|
3
|
+
address: string;
|
|
4
|
+
formErrors: FormErrors;
|
|
5
|
+
onChange: (otp: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const OTPStep: ({ address, formErrors, onChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default OTPStep;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormErrors } from "@sorocraft/ui";
|
|
2
|
+
interface Props {
|
|
3
|
+
formErrors: FormErrors;
|
|
4
|
+
onChange: (phoneNumber: string) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const PhoneStep: ({ formErrors, onChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PhoneStep;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Auth";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./OrderDrawer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./OrderItemsList";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { models as productModels } from "src/modules/product";
|
|
3
|
+
import { models as orderModels } from "src/modules/order";
|
|
4
|
+
declare const OrderItemOptionsInfo: ({ item, product, language, }: {
|
|
5
|
+
item: orderModels.OrderItem;
|
|
6
|
+
product: productModels.Product;
|
|
7
|
+
language: string;
|
|
8
|
+
}) => ReactNode;
|
|
9
|
+
export default OrderItemOptionsInfo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { models as orderModels } from "src/modules/order";
|
|
2
|
+
interface Props {
|
|
3
|
+
item: orderModels.OrderItem;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const OrderListItem: ({ item, isDisabled }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default OrderListItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./OrderListItem";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./OrderStepper";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { models as productModels } from "src/modules/product";
|
|
2
|
+
import { models as orderModels } from "src/modules/order";
|
|
3
3
|
interface Props {
|
|
4
|
-
product: Product;
|
|
5
|
-
selectedAddons: SelectedAddons;
|
|
4
|
+
product: productModels.Product;
|
|
5
|
+
selectedAddons: orderModels.SelectedAddons;
|
|
6
6
|
onOptionSelect: (selection: {
|
|
7
7
|
addonId: number;
|
|
8
8
|
optionId: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { models as productModels } from "src/modules/product";
|
|
2
2
|
interface Props {
|
|
3
|
-
product: Product;
|
|
3
|
+
product: productModels.Product;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
}
|
|
6
6
|
declare const ProductDetails: ({ product, onClose }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ProductInOrder";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { SIZE } from "@sorocraft/ui";
|
|
2
|
-
import {
|
|
2
|
+
import { models as orderModels } from "src/modules/order";
|
|
3
3
|
interface Props {
|
|
4
4
|
productId: number;
|
|
5
5
|
variantId?: number;
|
|
6
|
-
selectedAddons?: SelectedAddons;
|
|
6
|
+
selectedAddons?: orderModels.SelectedAddons;
|
|
7
7
|
min?: number;
|
|
8
8
|
size?: SIZE;
|
|
9
|
+
isDisabled: boolean;
|
|
9
10
|
}
|
|
10
|
-
declare const ProductQuantity: ({ productId, variantId, min, size, selectedAddons }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const ProductQuantity: ({ productId, variantId, min, size, selectedAddons, isDisabled, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export default ProductQuantity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { models as productModels } from "src/modules/product";
|
|
2
2
|
interface Props {
|
|
3
|
-
product: Product;
|
|
3
|
+
product: productModels.Product;
|
|
4
4
|
selectedVariant: number;
|
|
5
5
|
focusedSection: string;
|
|
6
6
|
onSelectVariant: (id: number) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const CATEGORY_SELECTED = "digital_menu_category_select";
|
|
2
2
|
export declare const CATEGORY_SCROLLED = "digital_menu_category_scroll";
|
|
3
3
|
export declare const PRODUCT_DETAILS = "digital_menu_product_details";
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const PRODUCT_ADD_ORDER = "digital_menu_product_add_cart";
|
|
5
5
|
export declare const PRODUCT_VIEW_CHANGED = "digital_menu_product_view_changed";
|
|
6
6
|
export declare const GOALS: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BASE_API_URL = "https://api.restaround.co/api/v1";
|
package/dist/hooks/product.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
export declare const useProductById: (productId: number) => Product;
|
|
1
|
+
import { models as productModels } from "src/modules/product";
|
|
2
|
+
import * as orderModels from "src/modules/order/models";
|
|
3
|
+
export declare const useProductById: (productId: number) => productModels.Product;
|
|
4
4
|
export declare const useProductQuantity: ({ productId, variantId, selectedAddons, }: {
|
|
5
5
|
productId: number;
|
|
6
6
|
variantId?: number;
|
|
7
|
-
selectedAddons: SelectedAddons;
|
|
7
|
+
selectedAddons: orderModels.SelectedAddons;
|
|
8
8
|
}) => number;
|