@restaround/react 1.4.51 → 1.4.63
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/PublicMenu/ProductDetails/ProductDetails.d.ts +2 -6
- package/dist/components/PublicMenu/ProductDetails/ProductDetailsUI.d.ts +4 -1
- package/dist/components/PublicMenu/Videos/Video/Actions/Actions.d.ts +6 -0
- package/dist/components/PublicMenu/Videos/Video/Actions/index.d.ts +1 -0
- package/dist/components/PublicMenu/Videos/Video/Video.d.ts +8 -0
- package/dist/components/PublicMenu/Videos/Video/VideoData/VideoData.d.ts +6 -0
- package/dist/components/PublicMenu/Videos/Video/VideoData/index.d.ts +1 -0
- package/dist/components/PublicMenu/Videos/Video/index.d.ts +1 -0
- package/dist/components/PublicMenu/Videos/VideoFeed/VideoFeed.d.ts +2 -0
- package/dist/components/PublicMenu/Videos/VideoFeed/index.d.ts +1 -0
- 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 +1 -0
- package/dist/models/index.esm.js.map +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/models/index.d.ts +1 -0
- package/dist/models/modules/branch/hooks.d.ts +1 -2
- package/dist/models/modules/business/hooks.d.ts +6 -0
- package/dist/models/modules/menu/hooks.d.ts +1 -0
- package/dist/models/modules/menu/index.d.ts +1 -0
- package/dist/models/modules/menu/models.d.ts +3 -1
- package/dist/models/modules/video/models.d.ts +10 -0
- package/dist/models/modules/view/hooks.d.ts +2 -0
- package/dist/models/modules/view/utils.d.ts +17 -0
- package/dist/models/services/translation/locales/az/index.d.ts +1 -0
- package/dist/models/services/translation/locales/az/order.d.ts +1 -0
- package/dist/models/services/translation/locales/et/index.d.ts +1 -0
- package/dist/models/services/translation/locales/et/order.d.ts +1 -0
- package/dist/models/services/translation/locales/index.d.ts +5 -0
- package/dist/models/services/translation/locales/nl/index.d.ts +1 -0
- package/dist/models/services/translation/locales/nl/order.d.ts +1 -0
- package/dist/models/services/translation/locales/ru/index.d.ts +1 -0
- package/dist/models/services/translation/locales/ru/order.d.ts +1 -0
- package/dist/models/services/translation/locales/tr/index.d.ts +1 -0
- package/dist/models/services/translation/locales/tr/order.d.ts +1 -0
- package/dist/modules/branch/hooks.d.ts +1 -2
- package/dist/modules/business/hooks.d.ts +6 -0
- package/dist/modules/menu/hooks.d.ts +1 -0
- package/dist/modules/menu/index.d.ts +1 -0
- package/dist/modules/menu/models.d.ts +3 -1
- package/dist/modules/video/__mocks.d.ts +7 -0
- package/dist/modules/video/hooks.d.ts +13 -0
- package/dist/modules/video/hooks.test.d.ts +1 -0
- package/dist/modules/video/index.d.ts +2 -0
- package/dist/modules/video/models.d.ts +10 -0
- package/dist/modules/view/utils.d.ts +1 -0
- package/dist/modules/view/utils.test.d.ts +1 -0
- package/dist/services/translation/locales/az/index.d.ts +1 -0
- package/dist/services/translation/locales/az/order.d.ts +1 -0
- package/dist/services/translation/locales/et/index.d.ts +1 -0
- package/dist/services/translation/locales/et/order.d.ts +1 -0
- package/dist/services/translation/locales/index.d.ts +5 -0
- package/dist/services/translation/locales/nl/index.d.ts +1 -0
- package/dist/services/translation/locales/nl/order.d.ts +1 -0
- package/dist/services/translation/locales/ru/index.d.ts +1 -0
- package/dist/services/translation/locales/ru/order.d.ts +1 -0
- package/dist/services/translation/locales/tr/index.d.ts +1 -0
- package/dist/services/translation/locales/tr/order.d.ts +1 -0
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- 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/modules/menu/models.d.ts +3 -1
- package/dist/utils/modules/video/models.d.ts +10 -0
- package/dist/utils/modules/view/utils.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
product: productModels.Product;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare const ProductDetails: ({ product, onClose }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ModalComponentProps } from "@sorocraft/ui";
|
|
2
|
+
declare const ProductDetails: ({ params }: ModalComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
3
|
export default ProductDetails;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
1
2
|
import { models as productModels } from "src/modules/product";
|
|
2
3
|
import { models as orderModels } from "src/modules/order";
|
|
3
4
|
interface Props {
|
|
@@ -12,6 +13,8 @@ interface Props {
|
|
|
12
13
|
actionTitle: string;
|
|
13
14
|
isInPublicMenu?: boolean;
|
|
14
15
|
productQuantityInOrderWithAllVariants: number;
|
|
16
|
+
modalRef: RefObject<HTMLDivElement>;
|
|
17
|
+
videoUrl?: string;
|
|
15
18
|
onClose: () => void;
|
|
16
19
|
setSelectedVariant: (selectedVariant: number | null) => void;
|
|
17
20
|
onOptionSelect: ({ addonId, optionId, isSingle, isRemove, }: {
|
|
@@ -24,5 +27,5 @@ interface Props {
|
|
|
24
27
|
onSubmit: () => void;
|
|
25
28
|
removeAllProductVariants: (productId: number) => void;
|
|
26
29
|
}
|
|
27
|
-
declare const ProductDetailsUI: ({ product, language, currency, selectedVariant, focusedSection, selectedAddons, isDecreaseDisabled, quantity, actionTitle, isInPublicMenu, productQuantityInOrderWithAllVariants, onClose, setSelectedVariant, onOptionSelect, adjustQuantity, onSubmit, removeAllProductVariants, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare const ProductDetailsUI: ({ product, language, currency, selectedVariant, focusedSection, selectedAddons, isDecreaseDisabled, quantity, actionTitle, isInPublicMenu, productQuantityInOrderWithAllVariants, modalRef, videoUrl, onClose, setSelectedVariant, onOptionSelect, adjustQuantity, onSubmit, removeAllProductVariants, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
28
31
|
export default ProductDetailsUI;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Actions";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { models as videoModels } from "src/modules/video";
|
|
2
|
+
export interface Props {
|
|
3
|
+
video: videoModels.Video;
|
|
4
|
+
isActive: boolean;
|
|
5
|
+
registerVideo: (id: number, el: HTMLElement) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const Video: ({ video, isActive, registerVideo }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Video;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./VideoData";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Video";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./VideoFeed";
|