@feedmepos/mf-common 1.29.33 → 1.29.36-dev.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.
- package/dist/{CustomAttributesForm-72fdb2df.js → CustomAttributesForm-73c7d7c5.js} +1 -1
- package/dist/{ItemSelector-711b81ae.js → ItemSelector-642dd9b5.js} +21977 -18468
- package/dist/{RestaurantSelector-88923427.js → RestaurantSelector-b09ffed2.js} +1 -1
- package/dist/api/index.d.ts +21 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/{app-5ebc3cee.js → app-e443ee8a.js} +15664 -15218
- package/dist/app.d.ts +1 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +32 -30
- package/dist/components/AllBusinessDialog.vue.d.ts.map +1 -1
- package/dist/components/FoodCourtSelectList.vue.d.ts +8 -0
- package/dist/components/FoodCourtSelectList.vue.d.ts.map +1 -0
- package/dist/components/Portal/BusinessDialogMobile.vue.d.ts.map +1 -1
- package/dist/components/Portal/PortalDesktop.vue.d.ts.map +1 -1
- package/dist/components/Portal/PortalMobile.vue.d.ts.map +1 -1
- package/dist/components/Portal/PortalTablet.vue.d.ts.map +1 -1
- package/dist/components/UserInfo/index.vue.d.ts.map +1 -1
- package/dist/composables/useContextSelector.d.ts +23 -0
- package/dist/composables/useContextSelector.d.ts.map +1 -0
- package/dist/composables/usePaginatedFoodCourts.d.ts +214 -0
- package/dist/composables/usePaginatedFoodCourts.d.ts.map +1 -0
- package/dist/i18n.d.ts +77 -0
- package/dist/i18n.d.ts.map +1 -1
- package/dist/router/context.d.ts +11 -0
- package/dist/router/context.d.ts.map +1 -0
- package/dist/router/query.d.ts.map +1 -1
- package/dist/store.d.ts +73 -5
- package/dist/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/utils/businessStorage.d.ts +17 -0
- package/dist/utils/businessStorage.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -1,12 +1,29 @@
|
|
|
1
|
+
/** The portal's top-level context: a business (with its restaurants) or a food court. */
|
|
2
|
+
export type PortalContextType = "business" | "foodCourt";
|
|
1
3
|
export declare const businessStorage: {
|
|
4
|
+
/**
|
|
5
|
+
* The URL wins over the cache, so a link carrying `foodCourtId` or `businessId`
|
|
6
|
+
* opens in that context regardless of what this browser used last. The portal
|
|
7
|
+
* never writes both; if a link has both, `businessId` wins, matching the shell
|
|
8
|
+
* bootstrap that selects a `businessId` + `country` pair for embedding hosts.
|
|
9
|
+
*/
|
|
10
|
+
getContextType: () => PortalContextType;
|
|
2
11
|
getBusinessId: () => string | null;
|
|
3
12
|
setBusinessId: (businessId: string) => void;
|
|
4
13
|
getRestaurantId: () => string | null;
|
|
5
14
|
setRestaurantId: (restaurantId: string) => void;
|
|
15
|
+
getFoodCourtId: () => string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Enters the food court context. The cached business stays in storage so the
|
|
18
|
+
* portal can fall back to it, but leaves the URL: a URL carries one context.
|
|
19
|
+
*/
|
|
20
|
+
setFoodCourtId: (foodCourtId: string) => void;
|
|
6
21
|
getCountry: () => string | null;
|
|
7
22
|
setCountry: (country: string) => void;
|
|
8
23
|
clearBusinessId: () => void;
|
|
9
24
|
clearCountry: () => void;
|
|
10
25
|
clearRestaurantId: () => void;
|
|
26
|
+
/** Leaves the food court context and returns to the business one. */
|
|
27
|
+
clearFoodCourtId: () => void;
|
|
11
28
|
};
|
|
12
29
|
//# sourceMappingURL=businessStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businessStorage.d.ts","sourceRoot":"","sources":["../../../src/utils/businessStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"businessStorage.d.ts","sourceRoot":"","sources":["../../../src/utils/businessStorage.ts"],"names":[],"mappings":"AAQA,yFAAyF;AACzF,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,WAAW,CAAA;AA6CxD,eAAO,MAAM,eAAe;IAC1B;;;;;OAKG;0BACiB,iBAAiB;;gCAST,MAAM;;oCASF,MAAM;;IAOtC;;;OAGG;kCAC2B,MAAM;;0BASd,MAAM;;;;IAgB5B,qEAAqE;;CAMtE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-common",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.36-dev.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
"@casl/ability": "^3.2.0",
|
|
20
20
|
"@feedmepos/auth": "1.3.1",
|
|
21
21
|
"@feedmepos/core": "2.15.21",
|
|
22
|
-
"@feedmepos/menu": "1.7.7",
|
|
23
|
-
"@feedmepos/i18n": "0.3.1",
|
|
24
22
|
"@feedmepos/custom-attributes": "0.0.1-rc.4",
|
|
23
|
+
"@feedmepos/entity": "0.0.29",
|
|
24
|
+
"@feedmepos/i18n": "0.3.1",
|
|
25
|
+
"@feedmepos/menu": "1.7.7",
|
|
25
26
|
"@feedmepos/ui-library": "1.10.17",
|
|
26
27
|
"@feedmepos/vue-client-monitoring": "0.1.0-beta.6",
|
|
27
28
|
"@vue/devtools-api": "^6.5.0",
|