@restaround/react 1.3.28 → 1.3.29
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/constants/constants/analytics.d.ts +6 -0
- package/dist/constants/constants/env.d.ts +1 -0
- package/dist/constants/constants/index.d.ts +3 -0
- package/dist/constants/constants/pricing.d.ts +8 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.esm.js +2 -0
- package/dist/constants/index.esm.js.map +1 -0
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/models/pricing.d.ts +17 -0
- package/dist/constants/modules/feature/constants.d.ts +4 -0
- package/dist/constants/modules/feature/models.d.ts +8 -0
- package/dist/constants/modules/view/constants.d.ts +13 -0
- package/package.json +17 -9
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const CATEGORY_SELECTED = "digital_menu_category_select";
|
|
2
|
+
export declare const CATEGORY_SCROLLED = "digital_menu_category_scroll";
|
|
3
|
+
export declare const PRODUCT_DETAILS = "digital_menu_product_details";
|
|
4
|
+
export declare const PRODUCT_ADD_ORDER = "digital_menu_product_add_cart";
|
|
5
|
+
export declare const PRODUCT_VIEW_CHANGED = "digital_menu_product_view_changed";
|
|
6
|
+
export declare const GOALS: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BASE_API_URL = "https://api.restaround.co/api/v1";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const A="digital_menu",_=`${A}_category_select`,e=`${A}_category_scroll`,D=`${A}_product_details`,t=`${A}_product_add_cart`,o=`${A}_product_view_changed`,r=[_,e,D,t];var c,n;!function(A){A.ORDER="feature_order"}(c||(c={})),function(A){A.ALPHA="ALPHA",A.BETA="BETA",A.ALL="ALL"}(n||(n={}));const a={[n.ALPHA]:[],[n.BETA]:[],[n.ALL]:[c.ORDER]},E={ADD_UPDATE_NOTES:"ADD_UPDATE_NOTES",AUTH:"AUTH",ADD_UPDATE_ADDRESS:"ADD_UPDATE_ADDRESS"},d=["en","az","nl","et","tr","ru"],T="en",L="AZN",u=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}];export{e as CATEGORY_SCROLLED,_ as CATEGORY_SELECTED,L as DEFAULT_CURRENCY,T as DEFAULT_LANGUAGE,a as FEATURES_LIST,r as GOALS,E as MODALS,t as PRODUCT_ADD_ORDER,D as PRODUCT_DETAILS,o as PRODUCT_VIEW_CHANGED,u as SUPPORTED_COUNTRIES,d as SUPPORTED_LOCALES};
|
|
2
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/constants/analytics.ts","../../../src/modules/feature/models.ts","../../../src/modules/feature/constants.ts","../../../src/modules/view/constants.ts"],"sourcesContent":["const GOAL_BASE_NAME = \"digital_menu\";\n\nexport const CATEGORY_SELECTED = `${GOAL_BASE_NAME}_category_select`;\nexport const CATEGORY_SCROLLED = `${GOAL_BASE_NAME}_category_scroll`;\nexport const PRODUCT_DETAILS = `${GOAL_BASE_NAME}_product_details`;\nexport const PRODUCT_ADD_ORDER = `${GOAL_BASE_NAME}_product_add_cart`;\nexport const PRODUCT_VIEW_CHANGED = `${GOAL_BASE_NAME}_product_view_changed`;\n\nexport const GOALS = [CATEGORY_SELECTED, CATEGORY_SCROLLED, PRODUCT_DETAILS, PRODUCT_ADD_ORDER];\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import { Feature, FeatureSegment } from \"./models\";\n\nexport const FEATURES_LIST: { [key in FeatureSegment]: Feature[] } = {\n\t[FeatureSegment.ALPHA]: [],\n\t[FeatureSegment.BETA]: [],\n\t[FeatureSegment.ALL]: [Feature.ORDER],\n};\n","export const MODALS = {\n\tADD_UPDATE_NOTES: \"ADD_UPDATE_NOTES\",\n\tAUTH: \"AUTH\",\n\tADD_UPDATE_ADDRESS: \"ADD_UPDATE_ADDRESS\",\n};\n\nexport const SUPPORTED_LOCALES = [\"en\", \"az\", \"nl\", \"et\", \"tr\", \"ru\"];\nexport const DEFAULT_LANGUAGE = \"en\";\nexport const DEFAULT_CURRENCY = \"AZN\";\nexport const SUPPORTED_COUNTRIES = [\n\t{\n\t\tname: \"Azerbaijan\",\n\t\tcode: \"AZ\",\n\t\tphoneCode: \"+994\",\n\t},\n];\n"],"names":["GOAL_BASE_NAME","CATEGORY_SELECTED","CATEGORY_SCROLLED","PRODUCT_DETAILS","PRODUCT_ADD_ORDER","PRODUCT_VIEW_CHANGED","GOALS","Feature","FeatureSegment","FEATURES_LIST","ALPHA","BETA","ALL","ORDER","MODALS","ADD_UPDATE_NOTES","AUTH","ADD_UPDATE_ADDRESS","SUPPORTED_LOCALES","DEFAULT_LANGUAGE","DEFAULT_CURRENCY","SUPPORTED_COUNTRIES","name","code","phoneCode"],"mappings":"AAAA,MAAMA,EAAiB,eAEVC,EAAoB,GAAGD,oBACvBE,EAAoB,GAAGF,oBACvBG,EAAkB,GAAGH,oBACrBI,EAAoB,GAAGJ,qBACvBK,EAAuB,GAAGL,yBAE1BM,EAAQ,CAACL,EAAmBC,EAAmBC,EAAiBC,GCR7E,IAAYG,EAGAC,GAHZ,SAAYD,GACXA,EAAA,MAAA,eACA,CAFD,CAAYA,IAAAA,EAEX,CAAA,IACD,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,KACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICLY,MAAAC,EAAwD,CACpE,CAACD,EAAeE,OAAQ,GACxB,CAACF,EAAeG,MAAO,GACvB,CAACH,EAAeI,KAAM,CAACL,EAAQM,QCLnBC,EAAS,CACrBC,iBAAkB,mBAClBC,KAAM,OACNC,mBAAoB,sBAGRC,EAAoB,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,MACnDC,EAAmB,KACnBC,EAAmB,MACnBC,EAAsB,CAClC,CACCC,KAAM,aACNC,KAAM,KACNC,UAAW"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const A="digital_menu",_=`${A}_category_select`,D=`${A}_category_scroll`,E=`${A}_product_details`,e=`${A}_product_add_cart`,t=`${A}_product_view_changed`,r=[_,D,E,e];var o,T;!function(A){A.ORDER="feature_order"}(o||(o={})),function(A){A.ALPHA="ALPHA",A.BETA="BETA",A.ALL="ALL"}(T||(T={}));const L={[T.ALPHA]:[],[T.BETA]:[],[T.ALL]:[o.ORDER]};exports.CATEGORY_SCROLLED=D,exports.CATEGORY_SELECTED=_,exports.DEFAULT_CURRENCY="AZN",exports.DEFAULT_LANGUAGE="en",exports.FEATURES_LIST=L,exports.GOALS=r,exports.MODALS={ADD_UPDATE_NOTES:"ADD_UPDATE_NOTES",AUTH:"AUTH",ADD_UPDATE_ADDRESS:"ADD_UPDATE_ADDRESS"},exports.PRODUCT_ADD_ORDER=e,exports.PRODUCT_DETAILS=E,exports.PRODUCT_VIEW_CHANGED=t,exports.SUPPORTED_COUNTRIES=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}],exports.SUPPORTED_LOCALES=["en","az","nl","et","tr","ru"];
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/constants/analytics.ts","../../../src/modules/feature/models.ts","../../../src/modules/feature/constants.ts","../../../src/modules/view/constants.ts"],"sourcesContent":["const GOAL_BASE_NAME = \"digital_menu\";\n\nexport const CATEGORY_SELECTED = `${GOAL_BASE_NAME}_category_select`;\nexport const CATEGORY_SCROLLED = `${GOAL_BASE_NAME}_category_scroll`;\nexport const PRODUCT_DETAILS = `${GOAL_BASE_NAME}_product_details`;\nexport const PRODUCT_ADD_ORDER = `${GOAL_BASE_NAME}_product_add_cart`;\nexport const PRODUCT_VIEW_CHANGED = `${GOAL_BASE_NAME}_product_view_changed`;\n\nexport const GOALS = [CATEGORY_SELECTED, CATEGORY_SCROLLED, PRODUCT_DETAILS, PRODUCT_ADD_ORDER];\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import { Feature, FeatureSegment } from \"./models\";\n\nexport const FEATURES_LIST: { [key in FeatureSegment]: Feature[] } = {\n\t[FeatureSegment.ALPHA]: [],\n\t[FeatureSegment.BETA]: [],\n\t[FeatureSegment.ALL]: [Feature.ORDER],\n};\n","export const MODALS = {\n\tADD_UPDATE_NOTES: \"ADD_UPDATE_NOTES\",\n\tAUTH: \"AUTH\",\n\tADD_UPDATE_ADDRESS: \"ADD_UPDATE_ADDRESS\",\n};\n\nexport const SUPPORTED_LOCALES = [\"en\", \"az\", \"nl\", \"et\", \"tr\", \"ru\"];\nexport const DEFAULT_LANGUAGE = \"en\";\nexport const DEFAULT_CURRENCY = \"AZN\";\nexport const SUPPORTED_COUNTRIES = [\n\t{\n\t\tname: \"Azerbaijan\",\n\t\tcode: \"AZ\",\n\t\tphoneCode: \"+994\",\n\t},\n];\n"],"names":["GOAL_BASE_NAME","CATEGORY_SELECTED","CATEGORY_SCROLLED","PRODUCT_DETAILS","PRODUCT_ADD_ORDER","PRODUCT_VIEW_CHANGED","GOALS","Feature","FeatureSegment","FEATURES_LIST","ALPHA","BETA","ALL","ORDER","ADD_UPDATE_NOTES","AUTH","ADD_UPDATE_ADDRESS","name","code","phoneCode"],"mappings":"aAAA,MAAMA,EAAiB,eAEVC,EAAoB,GAAGD,oBACvBE,EAAoB,GAAGF,oBACvBG,EAAkB,GAAGH,oBACrBI,EAAoB,GAAGJ,qBACvBK,EAAuB,GAAGL,yBAE1BM,EAAQ,CAACL,EAAmBC,EAAmBC,EAAiBC,GCR7E,IAAYG,EAGAC,GAHZ,SAAYD,GACXA,EAAA,MAAA,eACA,CAFD,CAAYA,IAAAA,EAEX,CAAA,IACD,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,KACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICLY,MAAAC,EAAwD,CACpE,CAACD,EAAeE,OAAQ,GACxB,CAACF,EAAeG,MAAO,GACvB,CAACH,EAAeI,KAAM,CAACL,EAAQM,yFCGA,+BADA,4DAPV,CACrBC,iBAAkB,mBAClBC,KAAM,OACNC,mBAAoB,uIAMc,CAClC,CACCC,KAAM,aACNC,KAAM,KACNC,UAAW,mCAPoB,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum PlanType {
|
|
2
|
+
APPETIZER = "appetizer",
|
|
3
|
+
MAIN_COURSE = "mainCourse",
|
|
4
|
+
CHEFS_SPECIAL = "chefsSpecial"
|
|
5
|
+
}
|
|
6
|
+
export interface PricingPlan {
|
|
7
|
+
title: string;
|
|
8
|
+
price: {
|
|
9
|
+
monthly: number;
|
|
10
|
+
annually: number;
|
|
11
|
+
};
|
|
12
|
+
discountedPrice?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface PricingPlans {
|
|
15
|
+
[key: string]: PricingPlan;
|
|
16
|
+
}
|
|
17
|
+
export type PricingInterval = "monthly" | "annually";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const MODALS: {
|
|
2
|
+
ADD_UPDATE_NOTES: string;
|
|
3
|
+
AUTH: string;
|
|
4
|
+
ADD_UPDATE_ADDRESS: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const SUPPORTED_LOCALES: string[];
|
|
7
|
+
export declare const DEFAULT_LANGUAGE = "en";
|
|
8
|
+
export declare const DEFAULT_CURRENCY = "AZN";
|
|
9
|
+
export declare const SUPPORTED_COUNTRIES: {
|
|
10
|
+
name: string;
|
|
11
|
+
code: string;
|
|
12
|
+
phoneCode: string;
|
|
13
|
+
}[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restaround/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.29",
|
|
4
4
|
"description": "React Library by restaround.co",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
"import": "./dist/models/index.esm.js",
|
|
26
26
|
"types": "./dist/models/index.d.ts"
|
|
27
27
|
},
|
|
28
|
+
"./constants": {
|
|
29
|
+
"require": "./dist/constants/index.js",
|
|
30
|
+
"import": "./dist/constants/index.esm.js",
|
|
31
|
+
"types": "./dist/constants/index.d.ts"
|
|
32
|
+
},
|
|
28
33
|
"./styles/ui.css": "./dist/styles/ui.css"
|
|
29
34
|
},
|
|
30
35
|
"typesVersions": {
|
|
@@ -34,6 +39,9 @@
|
|
|
34
39
|
],
|
|
35
40
|
"models": [
|
|
36
41
|
"dist/models/index.d.ts"
|
|
42
|
+
],
|
|
43
|
+
"constants": [
|
|
44
|
+
"dist/constants/index.d.ts"
|
|
37
45
|
]
|
|
38
46
|
}
|
|
39
47
|
},
|
|
@@ -59,28 +67,28 @@
|
|
|
59
67
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
60
68
|
"@rollup/plugin-terser": "^0.4.4",
|
|
61
69
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
62
|
-
"@testing-library/jest-dom": "^6.
|
|
70
|
+
"@testing-library/jest-dom": "^6.8.0",
|
|
63
71
|
"@testing-library/react": "^16.3.0",
|
|
64
72
|
"@types/google.maps": "^3.58.1",
|
|
65
73
|
"@types/jest": "^30.0.0",
|
|
66
|
-
"@types/react": "^19.1.
|
|
67
|
-
"@types/react-dom": "^19.1.
|
|
74
|
+
"@types/react": "^19.1.12",
|
|
75
|
+
"@types/react-dom": "^19.1.9",
|
|
68
76
|
"autoprefixer": "^10.4.21",
|
|
69
|
-
"eslint": "^9.
|
|
77
|
+
"eslint": "^9.34.0",
|
|
70
78
|
"eslint-plugin-react": "^7.37.5",
|
|
71
79
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
72
80
|
"eslint-plugin-unicorn": "^60.0.0",
|
|
73
|
-
"jest": "^30.
|
|
74
|
-
"jest-environment-jsdom": "^30.
|
|
81
|
+
"jest": "^30.1.1",
|
|
82
|
+
"jest-environment-jsdom": "^30.1.1",
|
|
75
83
|
"rimraf": "^6.0.1",
|
|
76
84
|
"rollup-plugin-copy": "^3.5.0",
|
|
77
85
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
78
86
|
"rollup-plugin-postcss": "^4.0.2",
|
|
79
|
-
"sass": "^1.
|
|
87
|
+
"sass": "^1.91.0",
|
|
80
88
|
"ts-jest": "^29.4.1",
|
|
81
89
|
"ts-node": "^10.9.2",
|
|
82
90
|
"tslib": "^2.8.1",
|
|
83
91
|
"typescript": "^5.9.2",
|
|
84
|
-
"typescript-eslint": "^8.
|
|
92
|
+
"typescript-eslint": "^8.41.0"
|
|
85
93
|
}
|
|
86
94
|
}
|