@etohq/admin-shared 1.3.0 → 1.4.0
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/LICENSE +21 -0
- package/dist/extensions/custom-fields/constants.d.ts +9 -0
- package/dist/extensions/custom-fields/constants.d.ts.map +1 -0
- package/dist/extensions/custom-fields/constants.js +23 -0
- package/dist/extensions/custom-fields/constants.js.map +1 -0
- package/dist/extensions/custom-fields/index.d.ts +4 -0
- package/dist/extensions/custom-fields/index.d.ts.map +1 -0
- package/dist/extensions/custom-fields/index.js +3 -0
- package/dist/extensions/custom-fields/index.js.map +1 -0
- package/dist/extensions/custom-fields/product/constants.d.ts +10 -0
- package/dist/extensions/custom-fields/product/constants.d.ts.map +1 -0
- package/dist/extensions/custom-fields/product/constants.js +35 -0
- package/dist/extensions/custom-fields/product/constants.js.map +1 -0
- package/dist/extensions/custom-fields/product/index.d.ts +3 -0
- package/dist/extensions/custom-fields/product/index.d.ts.map +1 -0
- package/dist/extensions/custom-fields/product/index.js +2 -0
- package/dist/extensions/custom-fields/product/index.js.map +1 -0
- package/dist/extensions/custom-fields/product/types.d.ts +5 -0
- package/dist/extensions/custom-fields/product/types.d.ts.map +1 -0
- package/dist/extensions/custom-fields/product/types.js +1 -0
- package/dist/extensions/custom-fields/product/types.js.map +1 -0
- package/dist/extensions/custom-fields/types.d.ts +28 -0
- package/dist/extensions/custom-fields/types.d.ts.map +1 -0
- package/dist/extensions/custom-fields/types.js +1 -0
- package/dist/extensions/custom-fields/types.js.map +1 -0
- package/dist/extensions/custom-fields/utils.d.ts +10 -0
- package/dist/extensions/custom-fields/utils.d.ts.map +1 -0
- package/dist/extensions/custom-fields/utils.js +27 -0
- package/dist/extensions/custom-fields/utils.js.map +1 -0
- package/dist/extensions/routes/constants.d.ts +2 -0
- package/dist/extensions/routes/constants.d.ts.map +1 -0
- package/dist/extensions/routes/constants.js +8 -0
- package/dist/extensions/routes/constants.js.map +1 -0
- package/dist/extensions/routes/index.d.ts +3 -0
- package/dist/extensions/routes/index.d.ts.map +1 -0
- package/dist/extensions/routes/index.js +2 -0
- package/dist/extensions/routes/index.js.map +1 -0
- package/dist/extensions/routes/types.d.ts +3 -0
- package/dist/extensions/routes/types.d.ts.map +1 -0
- package/dist/extensions/routes/types.js +1 -0
- package/dist/extensions/routes/types.js.map +1 -0
- package/dist/extensions/widgets/constants.d.ts +6 -0
- package/dist/extensions/widgets/constants.d.ts.map +1 -0
- package/dist/extensions/widgets/constants.js +195 -0
- package/dist/extensions/widgets/constants.js.map +1 -0
- package/dist/extensions/widgets/index.d.ts +4 -0
- package/dist/extensions/widgets/index.d.ts.map +1 -0
- package/dist/extensions/widgets/index.js +3 -0
- package/dist/extensions/widgets/index.js.map +1 -0
- package/dist/extensions/widgets/types.d.ts +3 -0
- package/dist/extensions/widgets/types.d.ts.map +1 -0
- package/dist/extensions/widgets/types.js +1 -0
- package/dist/extensions/widgets/types.js.map +1 -0
- package/dist/extensions/widgets/utils.d.ts +6 -0
- package/dist/extensions/widgets/utils.d.ts.map +1 -0
- package/dist/extensions/widgets/utils.js +7 -0
- package/dist/extensions/widgets/utils.js.map +1 -0
- package/dist/index.d.ts +5 -80
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -396
- package/dist/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/virtual-modules/constants.d.ts +8 -0
- package/dist/virtual-modules/constants.d.ts.map +1 -0
- package/dist/virtual-modules/constants.js +14 -0
- package/dist/virtual-modules/constants.js.map +1 -0
- package/dist/virtual-modules/index.d.ts +2 -0
- package/dist/virtual-modules/index.d.ts.map +1 -0
- package/dist/virtual-modules/index.js +1 -0
- package/dist/virtual-modules/index.js.map +1 -0
- package/package.json +15 -11
- package/dist/index.d.mts +0 -80
- package/dist/index.mjs +0 -343
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Etohq
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const CUSTOM_FIELD_MODELS: readonly ["product"];
|
|
2
|
+
export declare const CUSTOM_FIELD_CONTAINER_ZONES: readonly ["general", "organize", "attributes"];
|
|
3
|
+
export declare const CUSTOM_FIELD_FORM_ZONES: readonly ["create", "edit", "organize", "attributes"];
|
|
4
|
+
export declare const CUSTOM_FIELD_FORM_TABS: readonly ["general", "organize"];
|
|
5
|
+
export declare const CUSTOM_FIELD_FORM_CONFIG_PATHS: readonly string[];
|
|
6
|
+
export declare const CUSTOM_FIELD_FORM_FIELD_PATHS: readonly string[];
|
|
7
|
+
export declare const CUSTOM_FIELD_DISPLAY_PATHS: readonly string[];
|
|
8
|
+
export declare const CUSTOM_FIELD_LINK_PATHS: readonly ["product.$link"];
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/extensions/custom-fields/constants.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB,sBAAwC,CAAA;AAExE,eAAO,MAAM,4BAA4B,gDAE/B,CAAA;AAEV,eAAO,MAAM,uBAAuB,uDAE1B,CAAA;AAEV,eAAO,MAAM,sBAAsB,kCAEzB,CAAA;AAEV,eAAO,MAAM,8BAA8B,mBAEjC,CAAA;AAEV,eAAO,MAAM,6BAA6B,mBAEhC,CAAA;AAEV,eAAO,MAAM,0BAA0B,mBAE7B,CAAA;AAEV,eAAO,MAAM,uBAAuB,4BAE1B,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PRODUCT_CUSTOM_FIELD_DISPLAY_PATHS, PRODUCT_CUSTOM_FIELD_DISPLAY_ZONES, PRODUCT_CUSTOM_FIELD_FORM_CONFIG_PATHS, PRODUCT_CUSTOM_FIELD_FORM_FIELD_PATHS, PRODUCT_CUSTOM_FIELD_FORM_TABS, PRODUCT_CUSTOM_FIELD_FORM_ZONES, PRODUCT_CUSTOM_FIELD_LINK_PATHS, PRODUCT_CUSTOM_FIELD_MODEL, } from "./product";
|
|
2
|
+
export const CUSTOM_FIELD_MODELS = [PRODUCT_CUSTOM_FIELD_MODEL];
|
|
3
|
+
export const CUSTOM_FIELD_CONTAINER_ZONES = [
|
|
4
|
+
...PRODUCT_CUSTOM_FIELD_DISPLAY_ZONES,
|
|
5
|
+
];
|
|
6
|
+
export const CUSTOM_FIELD_FORM_ZONES = [
|
|
7
|
+
...PRODUCT_CUSTOM_FIELD_FORM_ZONES,
|
|
8
|
+
];
|
|
9
|
+
export const CUSTOM_FIELD_FORM_TABS = [
|
|
10
|
+
...PRODUCT_CUSTOM_FIELD_FORM_TABS,
|
|
11
|
+
];
|
|
12
|
+
export const CUSTOM_FIELD_FORM_CONFIG_PATHS = [
|
|
13
|
+
...PRODUCT_CUSTOM_FIELD_FORM_CONFIG_PATHS,
|
|
14
|
+
];
|
|
15
|
+
export const CUSTOM_FIELD_FORM_FIELD_PATHS = [
|
|
16
|
+
...PRODUCT_CUSTOM_FIELD_FORM_FIELD_PATHS,
|
|
17
|
+
];
|
|
18
|
+
export const CUSTOM_FIELD_DISPLAY_PATHS = [
|
|
19
|
+
...PRODUCT_CUSTOM_FIELD_DISPLAY_PATHS,
|
|
20
|
+
];
|
|
21
|
+
export const CUSTOM_FIELD_LINK_PATHS = [
|
|
22
|
+
...PRODUCT_CUSTOM_FIELD_LINK_PATHS,
|
|
23
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/extensions/custom-fields/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,kCAAkC,EAClC,sCAAsC,EACtC,qCAAqC,EACrC,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,WAAW,CAAA;AAElB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,0BAA0B,CAAU,CAAA;AAExE,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,GAAG,kCAAkC;CAC7B,CAAA;AAEV,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,GAAG,+BAA+B;CAC1B,CAAA;AAEV,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,GAAG,8BAA8B;CACzB,CAAA;AAEV,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,GAAG,sCAAsC;CACjC,CAAA;AAEV,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,GAAG,qCAAqC;CAChC,CAAA;AAEV,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,GAAG,kCAAkC;CAC7B,CAAA;AAEV,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,GAAG,+BAA+B;CAC1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensions/custom-fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensions/custom-fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const PRODUCT_CUSTOM_FIELD_MODEL: "product";
|
|
2
|
+
export declare const PRODUCT_CUSTOM_FIELD_FORM_ZONES: readonly ["create", "edit", "organize", "attributes"];
|
|
3
|
+
export declare const PRODUCT_CUSTOM_FIELD_CREATE_FORM_TABS: readonly ["general", "organize"];
|
|
4
|
+
export declare const PRODUCT_CUSTOM_FIELD_FORM_TABS: readonly ["general", "organize"];
|
|
5
|
+
export declare const PRODUCT_CUSTOM_FIELD_DISPLAY_ZONES: readonly ["general", "organize", "attributes"];
|
|
6
|
+
export declare const PRODUCT_CUSTOM_FIELD_LINK_PATHS: readonly ["product.$link"];
|
|
7
|
+
export declare const PRODUCT_CUSTOM_FIELD_FORM_CONFIG_PATHS: readonly string[];
|
|
8
|
+
export declare const PRODUCT_CUSTOM_FIELD_FORM_FIELD_PATHS: readonly string[];
|
|
9
|
+
export declare const PRODUCT_CUSTOM_FIELD_DISPLAY_PATHS: readonly string[];
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/extensions/custom-fields/product/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,SAAkB,CAAA;AAE5D,eAAO,MAAM,+BAA+B,uDAKlC,CAAA;AAEV,eAAO,MAAM,qCAAqC,kCAGxC,CAAA;AACV,eAAO,MAAM,8BAA8B,kCAEjC,CAAA;AAEV,eAAO,MAAM,kCAAkC,gDAIrC,CAAA;AAEV,eAAO,MAAM,+BAA+B,4BAElC,CAAA;AAEV,eAAO,MAAM,sCAAsC,mBAIzC,CAAA;AAEV,eAAO,MAAM,qCAAqC,mBAQxC,CAAA;AAEV,eAAO,MAAM,kCAAkC,mBAIrC,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const PRODUCT_CUSTOM_FIELD_MODEL = "product";
|
|
2
|
+
export const PRODUCT_CUSTOM_FIELD_FORM_ZONES = [
|
|
3
|
+
"create",
|
|
4
|
+
"edit",
|
|
5
|
+
"organize",
|
|
6
|
+
"attributes",
|
|
7
|
+
];
|
|
8
|
+
export const PRODUCT_CUSTOM_FIELD_CREATE_FORM_TABS = [
|
|
9
|
+
"general",
|
|
10
|
+
"organize",
|
|
11
|
+
];
|
|
12
|
+
export const PRODUCT_CUSTOM_FIELD_FORM_TABS = [
|
|
13
|
+
...PRODUCT_CUSTOM_FIELD_CREATE_FORM_TABS,
|
|
14
|
+
];
|
|
15
|
+
export const PRODUCT_CUSTOM_FIELD_DISPLAY_ZONES = [
|
|
16
|
+
"general",
|
|
17
|
+
"organize",
|
|
18
|
+
"attributes",
|
|
19
|
+
];
|
|
20
|
+
export const PRODUCT_CUSTOM_FIELD_LINK_PATHS = [
|
|
21
|
+
`${PRODUCT_CUSTOM_FIELD_MODEL}.$link`,
|
|
22
|
+
];
|
|
23
|
+
export const PRODUCT_CUSTOM_FIELD_FORM_CONFIG_PATHS = [
|
|
24
|
+
...PRODUCT_CUSTOM_FIELD_FORM_ZONES.map((form) => `${PRODUCT_CUSTOM_FIELD_MODEL}.${form}.$config`),
|
|
25
|
+
];
|
|
26
|
+
export const PRODUCT_CUSTOM_FIELD_FORM_FIELD_PATHS = [
|
|
27
|
+
...PRODUCT_CUSTOM_FIELD_FORM_ZONES.flatMap((form) => {
|
|
28
|
+
return form === "create"
|
|
29
|
+
? PRODUCT_CUSTOM_FIELD_CREATE_FORM_TABS.map((tab) => `${PRODUCT_CUSTOM_FIELD_MODEL}.${form}.${tab}.$field`)
|
|
30
|
+
: [`${PRODUCT_CUSTOM_FIELD_MODEL}.${form}.$field`];
|
|
31
|
+
}),
|
|
32
|
+
];
|
|
33
|
+
export const PRODUCT_CUSTOM_FIELD_DISPLAY_PATHS = [
|
|
34
|
+
...PRODUCT_CUSTOM_FIELD_DISPLAY_ZONES.map((id) => `${PRODUCT_CUSTOM_FIELD_MODEL}.${id}.$display`),
|
|
35
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/extensions/custom-fields/product/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG,SAAkB,CAAA;AAE5D,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,QAAQ;IACR,MAAM;IACN,UAAU;IACV,YAAY;CACJ,CAAA;AAEV,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,SAAS;IACT,UAAU;CACF,CAAA;AACV,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,GAAG,qCAAqC;CAChC,CAAA;AAEV,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,SAAS;IACT,UAAU;IACV,YAAY;CACJ,CAAA;AAEV,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,GAAG,0BAA0B,QAAQ;CAC7B,CAAA;AAEV,MAAM,CAAC,MAAM,sCAAsC,GAAG;IACpD,GAAG,+BAA+B,CAAC,GAAG,CACpC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,0BAA0B,IAAI,IAAI,UAAU,CAC1D;CACO,CAAA;AAEV,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,GAAG,+BAA+B,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAClD,OAAO,IAAI,KAAK,QAAQ;YACtB,CAAC,CAAC,qCAAqC,CAAC,GAAG,CACvC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,0BAA0B,IAAI,IAAI,IAAI,GAAG,SAAS,CAC/D;YACH,CAAC,CAAC,CAAC,GAAG,0BAA0B,IAAI,IAAI,SAAS,CAAC,CAAA;IACtD,CAAC,CAAC;CACM,CAAA;AAEV,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,GAAG,kCAAkC,CAAC,GAAG,CACvC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,0BAA0B,IAAI,EAAE,WAAW,CACvD;CACO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/custom-fields/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensions/custom-fields/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PRODUCT_CUSTOM_FIELD_DISPLAY_ZONES, PRODUCT_CUSTOM_FIELD_FORM_TABS, PRODUCT_CUSTOM_FIELD_FORM_ZONES } from "./constants";
|
|
2
|
+
export type ProductFormZone = (typeof PRODUCT_CUSTOM_FIELD_FORM_ZONES)[number];
|
|
3
|
+
export type ProductFormTab = (typeof PRODUCT_CUSTOM_FIELD_FORM_TABS)[number];
|
|
4
|
+
export type ProductDisplayZone = (typeof PRODUCT_CUSTOM_FIELD_DISPLAY_ZONES)[number];
|
|
5
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/extensions/custom-fields/product/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAA;AAC9E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAA;AAC5E,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/extensions/custom-fields/product/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CUSTOM_FIELD_CONTAINER_ZONES, CUSTOM_FIELD_FORM_TABS, CUSTOM_FIELD_FORM_ZONES, CUSTOM_FIELD_MODELS } from "./constants";
|
|
2
|
+
import type { ProductDisplayZone, ProductFormTab, ProductFormZone } from "./product";
|
|
3
|
+
export type CustomFieldModel = (typeof CUSTOM_FIELD_MODELS)[number];
|
|
4
|
+
export type CustomFieldFormZone = (typeof CUSTOM_FIELD_FORM_ZONES)[number];
|
|
5
|
+
export type CustomFieldFormTab = (typeof CUSTOM_FIELD_FORM_TABS)[number];
|
|
6
|
+
export type CustomFieldContainerZone = (typeof CUSTOM_FIELD_CONTAINER_ZONES)[number];
|
|
7
|
+
export type CustomFieldZone = CustomFieldFormZone | CustomFieldContainerZone;
|
|
8
|
+
export type CustomFieldImportType = "display" | "field" | "link" | "config";
|
|
9
|
+
export interface CustomFieldModelFormMap {
|
|
10
|
+
product: ProductFormZone;
|
|
11
|
+
}
|
|
12
|
+
export interface CustomFieldModelContainerMap {
|
|
13
|
+
product: ProductDisplayZone;
|
|
14
|
+
}
|
|
15
|
+
export type CustomFieldModelFormTabsMap = {
|
|
16
|
+
product: {
|
|
17
|
+
create: ProductFormTab;
|
|
18
|
+
edit: never;
|
|
19
|
+
organize: never;
|
|
20
|
+
attributes: never;
|
|
21
|
+
};
|
|
22
|
+
customer: {
|
|
23
|
+
create: never;
|
|
24
|
+
edit: never;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type CustomFieldFormKeys<T extends CustomFieldModel> = CustomFieldModelFormMap[T];
|
|
28
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/extensions/custom-fields/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,eAAe,EAChB,MAAM,WAAW,CAAA;AAElB,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnE,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE1E,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,wBAAwB,GAClC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAA;AAE/C,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,wBAAwB,CAAA;AAE5E,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AAE3E,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,eAAe,CAAA;CACzB;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,kBAAkB,CAAA;CAC5B;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,EAAE;QACP,MAAM,EAAE,cAAc,CAAA;QACtB,IAAI,EAAE,KAAK,CAAA;QACX,QAAQ,EAAE,KAAK,CAAA;QACf,UAAU,EAAE,KAAK,CAAA;KAClB,CAAA;IACD,QAAQ,EAAE;QACR,MAAM,EAAE,KAAK,CAAA;QACb,IAAI,EAAE,KAAK,CAAA;KACZ,CAAA;CACF,CAAA;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,gBAAgB,IACxD,uBAAuB,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/extensions/custom-fields/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CustomFieldContainerZone, CustomFieldFormTab, CustomFieldFormZone, CustomFieldModel } from "./types";
|
|
2
|
+
export declare function isValidCustomFieldModel(id: any): id is CustomFieldModel;
|
|
3
|
+
export declare function isValidCustomFieldFormZone(id: any): id is CustomFieldFormZone;
|
|
4
|
+
export declare function isValidCustomFieldFormTab(id: any): id is CustomFieldFormTab;
|
|
5
|
+
export declare function isValidCustomFieldDisplayZone(id: any): id is CustomFieldContainerZone;
|
|
6
|
+
export declare function isValidCustomFieldDisplayPath(id: any): id is string;
|
|
7
|
+
export declare function isValidCustomFieldFormConfigPath(id: any): id is string;
|
|
8
|
+
export declare function isValidCustomFieldFormFieldPath(id: any): id is string;
|
|
9
|
+
export declare function isValidCustomFieldLinkPath(id: any): id is string;
|
|
10
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/extensions/custom-fields/utils.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAIhB,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,gBAAgB,CAEvE;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,mBAAmB,CAE7E;AAED,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,kBAAkB,CAE3E;AAED,wBAAgB,6BAA6B,CAC3C,EAAE,EAAE,GAAG,GACN,EAAE,IAAI,wBAAwB,CAEhC;AAID,wBAAgB,6BAA6B,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,MAAM,CAEnE;AAED,wBAAgB,gCAAgC,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,MAAM,CAEtE;AAED,wBAAgB,+BAA+B,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,MAAM,CAErE;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,MAAM,CAEhE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CUSTOM_FIELD_CONTAINER_ZONES, CUSTOM_FIELD_DISPLAY_PATHS, CUSTOM_FIELD_FORM_CONFIG_PATHS, CUSTOM_FIELD_FORM_FIELD_PATHS, CUSTOM_FIELD_FORM_TABS, CUSTOM_FIELD_FORM_ZONES, CUSTOM_FIELD_LINK_PATHS, CUSTOM_FIELD_MODELS, } from "./constants";
|
|
2
|
+
// Validators for individual segments of the custom field extension system
|
|
3
|
+
export function isValidCustomFieldModel(id) {
|
|
4
|
+
return CUSTOM_FIELD_MODELS.includes(id);
|
|
5
|
+
}
|
|
6
|
+
export function isValidCustomFieldFormZone(id) {
|
|
7
|
+
return CUSTOM_FIELD_FORM_ZONES.includes(id);
|
|
8
|
+
}
|
|
9
|
+
export function isValidCustomFieldFormTab(id) {
|
|
10
|
+
return CUSTOM_FIELD_FORM_TABS.includes(id);
|
|
11
|
+
}
|
|
12
|
+
export function isValidCustomFieldDisplayZone(id) {
|
|
13
|
+
return CUSTOM_FIELD_CONTAINER_ZONES.includes(id);
|
|
14
|
+
}
|
|
15
|
+
// Validators for full paths of custom field extensions
|
|
16
|
+
export function isValidCustomFieldDisplayPath(id) {
|
|
17
|
+
return CUSTOM_FIELD_DISPLAY_PATHS.includes(id);
|
|
18
|
+
}
|
|
19
|
+
export function isValidCustomFieldFormConfigPath(id) {
|
|
20
|
+
return CUSTOM_FIELD_FORM_CONFIG_PATHS.includes(id);
|
|
21
|
+
}
|
|
22
|
+
export function isValidCustomFieldFormFieldPath(id) {
|
|
23
|
+
return CUSTOM_FIELD_FORM_FIELD_PATHS.includes(id);
|
|
24
|
+
}
|
|
25
|
+
export function isValidCustomFieldLinkPath(id) {
|
|
26
|
+
return CUSTOM_FIELD_LINK_PATHS.includes(id);
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/extensions/custom-fields/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,aAAa,CAAA;AAQpB,0EAA0E;AAE1E,MAAM,UAAU,uBAAuB,CAAC,EAAO;IAC7C,OAAO,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,EAAO;IAChD,OAAO,uBAAuB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,EAAO;IAC/C,OAAO,sBAAsB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,EAAO;IAEP,OAAO,4BAA4B,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AAClD,CAAC;AAED,uDAAuD;AAEvD,MAAM,UAAU,6BAA6B,CAAC,EAAO;IACnD,OAAO,0BAA0B,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,EAAO;IACtD,OAAO,8BAA8B,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,EAAO;IACrD,OAAO,6BAA6B,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,EAAO;IAChD,OAAO,uBAAuB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AAC7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/extensions/routes/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,8FAOzB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/extensions/routes/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,SAAS;IACT,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,cAAc;CACN,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensions/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensions/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/extensions/routes/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEpD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/extensions/routes/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* All valid injection zones in the admin panel. An injection zone is a specific place
|
|
3
|
+
* in the admin panel where a plugin can inject custom widgets.
|
|
4
|
+
*/
|
|
5
|
+
export declare const INJECTION_ZONES: readonly ["order.details.before", "order.details.after", "order.details.side.before", "order.details.side.after", "order.list.before", "order.list.after", "customer.details.before", "customer.details.after", "customer.list.before", "customer.list.after", "customer_group.details.before", "customer_group.details.after", "customer_group.list.before", "customer_group.list.after", "product.details.before", "product.details.after", "product.list.before", "product.list.after", "product.details.side.before", "product.details.side.after", "product_variant.details.before", "product_variant.details.after", "product_variant.details.side.before", "product_variant.details.side.after", "product_collection.details.before", "product_collection.details.after", "product_collection.list.before", "product_collection.list.after", "product_category.details.before", "product_category.details.after", "product_category.details.side.before", "product_category.details.side.after", "product_category.list.before", "product_category.list.after", "product_type.details.before", "product_type.details.after", "product_type.list.before", "product_type.list.after", "product_tag.details.before", "product_tag.details.after", "product_tag.list.before", "product_tag.list.after", "price_list.details.before", "price_list.details.after", "price_list.details.side.before", "price_list.details.side.after", "price_list.list.before", "price_list.list.after", "promotion.details.before", "promotion.details.after", "promotion.details.side.before", "promotion.details.side.after", "promotion.list.before", "promotion.list.after", "user.details.before", "user.details.after", "user.list.before", "user.list.after", "store.details.before", "store.details.after", "profile.details.before", "profile.details.after", "region.details.before", "region.details.after", "region.list.before", "region.list.after", "shipping_profile.details.before", "shipping_profile.details.after", "shipping_profile.list.before", "shipping_profile.list.after", "location.details.before", "location.details.after", "location.details.side.before", "location.details.side.after", "location.list.before", "location.list.after", "login.before", "login.after", "sales_channel.details.before", "sales_channel.details.after", "sales_channel.list.before", "sales_channel.list.after", "reservation.details.before", "reservation.details.after", "reservation.details.side.before", "reservation.details.side.after", "reservation.list.before", "reservation.list.after", "api_key.details.before", "api_key.details.after", "api_key.list.before", "api_key.list.after", "workflow.details.before", "workflow.details.after", "workflow.list.before", "workflow.list.after", "campaign.details.before", "campaign.details.after", "campaign.details.side.before", "campaign.details.side.after", "campaign.list.before", "campaign.list.after", "tax.details.before", "tax.details.after", "tax.list.before", "tax.list.after", "return_reason.list.before", "return_reason.list.after", "inventory_item.details.before", "inventory_item.details.after", "inventory_item.details.side.before", "inventory_item.details.side.after", "inventory_item.list.before", "inventory_item.list.after"];
|
|
6
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/extensions/widgets/constants.ts"],"names":[],"mappings":"AA6LA;;;GAGG;AACH,eAAO,MAAM,eAAe,goGA2BlB,CAAA"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
const ORDER_INJECTION_ZONES = [
|
|
2
|
+
"order.details.before",
|
|
3
|
+
"order.details.after",
|
|
4
|
+
"order.details.side.before",
|
|
5
|
+
"order.details.side.after",
|
|
6
|
+
"order.list.before",
|
|
7
|
+
"order.list.after",
|
|
8
|
+
];
|
|
9
|
+
const CUSTOMER_INJECTION_ZONES = [
|
|
10
|
+
"customer.details.before",
|
|
11
|
+
"customer.details.after",
|
|
12
|
+
"customer.list.before",
|
|
13
|
+
"customer.list.after",
|
|
14
|
+
];
|
|
15
|
+
const CUSTOMER_GROUP_INJECTION_ZONES = [
|
|
16
|
+
"customer_group.details.before",
|
|
17
|
+
"customer_group.details.after",
|
|
18
|
+
"customer_group.list.before",
|
|
19
|
+
"customer_group.list.after",
|
|
20
|
+
];
|
|
21
|
+
const PRODUCT_INJECTION_ZONES = [
|
|
22
|
+
"product.details.before",
|
|
23
|
+
"product.details.after",
|
|
24
|
+
"product.list.before",
|
|
25
|
+
"product.list.after",
|
|
26
|
+
"product.details.side.before",
|
|
27
|
+
"product.details.side.after",
|
|
28
|
+
];
|
|
29
|
+
const PRODUCT_VARIANT_INJECTION_ZONES = [
|
|
30
|
+
"product_variant.details.before",
|
|
31
|
+
"product_variant.details.after",
|
|
32
|
+
"product_variant.details.side.before",
|
|
33
|
+
"product_variant.details.side.after",
|
|
34
|
+
];
|
|
35
|
+
const PRODUCT_COLLECTION_INJECTION_ZONES = [
|
|
36
|
+
"product_collection.details.before",
|
|
37
|
+
"product_collection.details.after",
|
|
38
|
+
"product_collection.list.before",
|
|
39
|
+
"product_collection.list.after",
|
|
40
|
+
];
|
|
41
|
+
const PRODUCT_CATEGORY_INJECTION_ZONES = [
|
|
42
|
+
"product_category.details.before",
|
|
43
|
+
"product_category.details.after",
|
|
44
|
+
"product_category.details.side.before",
|
|
45
|
+
"product_category.details.side.after",
|
|
46
|
+
"product_category.list.before",
|
|
47
|
+
"product_category.list.after",
|
|
48
|
+
];
|
|
49
|
+
const PRODUCT_TYPE_INJECTION_ZONES = [
|
|
50
|
+
"product_type.details.before",
|
|
51
|
+
"product_type.details.after",
|
|
52
|
+
"product_type.list.before",
|
|
53
|
+
"product_type.list.after",
|
|
54
|
+
];
|
|
55
|
+
const PRODUCT_TAG_INJECTION_ZONES = [
|
|
56
|
+
"product_tag.details.before",
|
|
57
|
+
"product_tag.details.after",
|
|
58
|
+
"product_tag.list.before",
|
|
59
|
+
"product_tag.list.after",
|
|
60
|
+
];
|
|
61
|
+
const PRICE_LIST_INJECTION_ZONES = [
|
|
62
|
+
"price_list.details.before",
|
|
63
|
+
"price_list.details.after",
|
|
64
|
+
"price_list.details.side.before",
|
|
65
|
+
"price_list.details.side.after",
|
|
66
|
+
"price_list.list.before",
|
|
67
|
+
"price_list.list.after",
|
|
68
|
+
];
|
|
69
|
+
const PROMOTION_INJECTION_ZONES = [
|
|
70
|
+
"promotion.details.before",
|
|
71
|
+
"promotion.details.after",
|
|
72
|
+
"promotion.details.side.before",
|
|
73
|
+
"promotion.details.side.after",
|
|
74
|
+
"promotion.list.before",
|
|
75
|
+
"promotion.list.after",
|
|
76
|
+
];
|
|
77
|
+
const CAMPAIGN_INJECTION_ZONES = [
|
|
78
|
+
"campaign.details.before",
|
|
79
|
+
"campaign.details.after",
|
|
80
|
+
"campaign.details.side.before",
|
|
81
|
+
"campaign.details.side.after",
|
|
82
|
+
"campaign.list.before",
|
|
83
|
+
"campaign.list.after",
|
|
84
|
+
];
|
|
85
|
+
const USER_INJECTION_ZONES = [
|
|
86
|
+
"user.details.before",
|
|
87
|
+
"user.details.after",
|
|
88
|
+
"user.list.before",
|
|
89
|
+
"user.list.after",
|
|
90
|
+
];
|
|
91
|
+
const STORE_INJECTION_ZONES = [
|
|
92
|
+
"store.details.before",
|
|
93
|
+
"store.details.after",
|
|
94
|
+
];
|
|
95
|
+
const PROFILE_INJECTION_ZONES = [
|
|
96
|
+
"profile.details.before",
|
|
97
|
+
"profile.details.after",
|
|
98
|
+
];
|
|
99
|
+
const REGION_INJECTION_ZONES = [
|
|
100
|
+
"region.details.before",
|
|
101
|
+
"region.details.after",
|
|
102
|
+
"region.list.before",
|
|
103
|
+
"region.list.after",
|
|
104
|
+
];
|
|
105
|
+
const SHIPPING_PROFILE_INJECTION_ZONES = [
|
|
106
|
+
"shipping_profile.details.before",
|
|
107
|
+
"shipping_profile.details.after",
|
|
108
|
+
"shipping_profile.list.before",
|
|
109
|
+
"shipping_profile.list.after",
|
|
110
|
+
];
|
|
111
|
+
const LOCATION_INJECTION_ZONES = [
|
|
112
|
+
"location.details.before",
|
|
113
|
+
"location.details.after",
|
|
114
|
+
"location.details.side.before",
|
|
115
|
+
"location.details.side.after",
|
|
116
|
+
"location.list.before",
|
|
117
|
+
"location.list.after",
|
|
118
|
+
];
|
|
119
|
+
const LOGIN_INJECTION_ZONES = ["login.before", "login.after"];
|
|
120
|
+
const SALES_CHANNEL_INJECTION_ZONES = [
|
|
121
|
+
"sales_channel.details.before",
|
|
122
|
+
"sales_channel.details.after",
|
|
123
|
+
"sales_channel.list.before",
|
|
124
|
+
"sales_channel.list.after",
|
|
125
|
+
];
|
|
126
|
+
const RESERVATION_INJECTION_ZONES = [
|
|
127
|
+
"reservation.details.before",
|
|
128
|
+
"reservation.details.after",
|
|
129
|
+
"reservation.details.side.before",
|
|
130
|
+
"reservation.details.side.after",
|
|
131
|
+
"reservation.list.before",
|
|
132
|
+
"reservation.list.after",
|
|
133
|
+
];
|
|
134
|
+
const API_KEY_INJECTION_ZONES = [
|
|
135
|
+
"api_key.details.before",
|
|
136
|
+
"api_key.details.after",
|
|
137
|
+
"api_key.list.before",
|
|
138
|
+
"api_key.list.after",
|
|
139
|
+
];
|
|
140
|
+
const WORKFLOW_INJECTION_ZONES = [
|
|
141
|
+
"workflow.details.before",
|
|
142
|
+
"workflow.details.after",
|
|
143
|
+
"workflow.list.before",
|
|
144
|
+
"workflow.list.after",
|
|
145
|
+
];
|
|
146
|
+
const TAX_INJECTION_ZONES = [
|
|
147
|
+
"tax.details.before",
|
|
148
|
+
"tax.details.after",
|
|
149
|
+
"tax.list.before",
|
|
150
|
+
"tax.list.after",
|
|
151
|
+
];
|
|
152
|
+
const RETURN_REASON_INJECTION_ZONES = [
|
|
153
|
+
"return_reason.list.before",
|
|
154
|
+
"return_reason.list.after",
|
|
155
|
+
];
|
|
156
|
+
const INVENTORY_ITEM_INJECTION_ZONES = [
|
|
157
|
+
"inventory_item.details.before",
|
|
158
|
+
"inventory_item.details.after",
|
|
159
|
+
"inventory_item.details.side.before",
|
|
160
|
+
"inventory_item.details.side.after",
|
|
161
|
+
"inventory_item.list.before",
|
|
162
|
+
"inventory_item.list.after",
|
|
163
|
+
];
|
|
164
|
+
/**
|
|
165
|
+
* All valid injection zones in the admin panel. An injection zone is a specific place
|
|
166
|
+
* in the admin panel where a plugin can inject custom widgets.
|
|
167
|
+
*/
|
|
168
|
+
export const INJECTION_ZONES = [
|
|
169
|
+
...ORDER_INJECTION_ZONES,
|
|
170
|
+
...CUSTOMER_INJECTION_ZONES,
|
|
171
|
+
...CUSTOMER_GROUP_INJECTION_ZONES,
|
|
172
|
+
...PRODUCT_INJECTION_ZONES,
|
|
173
|
+
...PRODUCT_VARIANT_INJECTION_ZONES,
|
|
174
|
+
...PRODUCT_COLLECTION_INJECTION_ZONES,
|
|
175
|
+
...PRODUCT_CATEGORY_INJECTION_ZONES,
|
|
176
|
+
...PRODUCT_TYPE_INJECTION_ZONES,
|
|
177
|
+
...PRODUCT_TAG_INJECTION_ZONES,
|
|
178
|
+
...PRICE_LIST_INJECTION_ZONES,
|
|
179
|
+
...PROMOTION_INJECTION_ZONES,
|
|
180
|
+
...USER_INJECTION_ZONES,
|
|
181
|
+
...STORE_INJECTION_ZONES,
|
|
182
|
+
...PROFILE_INJECTION_ZONES,
|
|
183
|
+
...REGION_INJECTION_ZONES,
|
|
184
|
+
...SHIPPING_PROFILE_INJECTION_ZONES,
|
|
185
|
+
...LOCATION_INJECTION_ZONES,
|
|
186
|
+
...LOGIN_INJECTION_ZONES,
|
|
187
|
+
...SALES_CHANNEL_INJECTION_ZONES,
|
|
188
|
+
...RESERVATION_INJECTION_ZONES,
|
|
189
|
+
...API_KEY_INJECTION_ZONES,
|
|
190
|
+
...WORKFLOW_INJECTION_ZONES,
|
|
191
|
+
...CAMPAIGN_INJECTION_ZONES,
|
|
192
|
+
...TAX_INJECTION_ZONES,
|
|
193
|
+
...RETURN_REASON_INJECTION_ZONES,
|
|
194
|
+
...INVENTORY_ITEM_INJECTION_ZONES,
|
|
195
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/extensions/widgets/constants.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensions/widgets/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensions/widgets/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/extensions/widgets/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/extensions/widgets/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/extensions/widgets/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,aAAa,CAErE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/extensions/widgets/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAG7C;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC5C,OAAO,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AACvC,CAAC"}
|