@burdenoff/microfe-devportal 2026.1107.1 → 2026.1107.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/devportal/constants/appCategories.d.ts +26 -0
- package/dist/devportal/constants/appCategories.d.ts.map +1 -0
- package/dist/devportal/constants/appCategories.js +45 -0
- package/dist/devportal/constants/appCategories.js.map +1 -0
- package/dist/devportal/pages/ApplicationDetailPage.d.ts.map +1 -1
- package/dist/devportal/pages/ApplicationDetailPage.js +233 -232
- package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
- package/dist/devportal/pages/CreateApplicationPage.d.ts.map +1 -1
- package/dist/devportal/pages/CreateApplicationPage.js +100 -128
- package/dist/devportal/pages/CreateApplicationPage.js.map +1 -1
- package/dist/devportal/pages/EditApplicationPage.d.ts.map +1 -1
- package/dist/devportal/pages/EditApplicationPage.js +24 -52
- package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
- package/dist/devportal/pages/SetupPage.d.ts.map +1 -1
- package/dist/devportal/pages/SetupPage.js +20 -69
- package/dist/devportal/pages/SetupPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application categories offered by the developer portal.
|
|
3
|
+
*
|
|
4
|
+
* These are the canonical FluidGrids store categories, so an app maps onto
|
|
5
|
+
* the store's browse panel. Every form that sets an application's category
|
|
6
|
+
* (the setup wizard, Create Application and Edit Application) must use this
|
|
7
|
+
* one list: when the setup wizard used its own list, an app created there
|
|
8
|
+
* opened in Edit Application with an empty, required Category field, and the
|
|
9
|
+
* developer had to replace the category just to change visibility
|
|
10
|
+
* (BOFF-10636).
|
|
11
|
+
*/
|
|
12
|
+
export interface AppCategoryOption {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const APP_CATEGORY_OPTIONS: readonly AppCategoryOption[];
|
|
17
|
+
/**
|
|
18
|
+
* Category options for a form editing an existing application.
|
|
19
|
+
*
|
|
20
|
+
* Apps created before the categories were aligned can still carry an older
|
|
21
|
+
* value (for example "productivity"). That value is kept as a selectable
|
|
22
|
+
* option so opening the edit form neither blanks the field nor silently
|
|
23
|
+
* changes the app's category on save.
|
|
24
|
+
*/
|
|
25
|
+
export declare function appCategoryOptionsFor(currentCategory: string | null | undefined): AppCategoryOption[];
|
|
26
|
+
//# sourceMappingURL=appCategories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appCategories.d.ts","sourceRoot":"","sources":["../../../src/devportal/constants/appCategories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAQ5D,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACzC,iBAAiB,EAAE,CAOrB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region src/devportal/constants/appCategories.ts
|
|
2
|
+
var e = [
|
|
3
|
+
{
|
|
4
|
+
value: "ai",
|
|
5
|
+
label: "AI & Automation"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
value: "integration",
|
|
9
|
+
label: "Action in an App"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
value: "data",
|
|
13
|
+
label: "Data & Transform"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "flow",
|
|
17
|
+
label: "Flow & Logic"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
value: "core",
|
|
21
|
+
label: "Core"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
value: "communication",
|
|
25
|
+
label: "Communication"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
value: "trigger",
|
|
29
|
+
label: "Triggers"
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
function t(t) {
|
|
33
|
+
let r = [...e], i = t?.trim();
|
|
34
|
+
return i && !r.some((e) => e.value === i) && r.push({
|
|
35
|
+
value: i,
|
|
36
|
+
label: n(i)
|
|
37
|
+
}), r;
|
|
38
|
+
}
|
|
39
|
+
function n(e) {
|
|
40
|
+
return e.split(/[-_\s]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { e as APP_CATEGORY_OPTIONS, t as appCategoryOptionsFor };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=appCategories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appCategories.js","names":[],"sources":["../../../src/devportal/constants/appCategories.ts"],"sourcesContent":["/**\n * Application categories offered by the developer portal.\n *\n * These are the canonical FluidGrids store categories, so an app maps onto\n * the store's browse panel. Every form that sets an application's category\n * (the setup wizard, Create Application and Edit Application) must use this\n * one list: when the setup wizard used its own list, an app created there\n * opened in Edit Application with an empty, required Category field, and the\n * developer had to replace the category just to change visibility\n * (BOFF-10636).\n */\n\nexport interface AppCategoryOption {\n value: string;\n label: string;\n}\n\nexport const APP_CATEGORY_OPTIONS: readonly AppCategoryOption[] = [\n { value: \"ai\", label: \"AI & Automation\" },\n { value: \"integration\", label: \"Action in an App\" },\n { value: \"data\", label: \"Data & Transform\" },\n { value: \"flow\", label: \"Flow & Logic\" },\n { value: \"core\", label: \"Core\" },\n { value: \"communication\", label: \"Communication\" },\n { value: \"trigger\", label: \"Triggers\" },\n];\n\n/**\n * Category options for a form editing an existing application.\n *\n * Apps created before the categories were aligned can still carry an older\n * value (for example \"productivity\"). That value is kept as a selectable\n * option so opening the edit form neither blanks the field nor silently\n * changes the app's category on save.\n */\nexport function appCategoryOptionsFor(\n currentCategory: string | null | undefined,\n): AppCategoryOption[] {\n const options = [...APP_CATEGORY_OPTIONS];\n const current = currentCategory?.trim();\n if (current && !options.some((option) => option.value === current)) {\n options.push({ value: current, label: humanizeCategory(current) });\n }\n return options;\n}\n\nfunction humanizeCategory(value: string): string {\n return value\n .split(/[-_\\s]+/)\n .filter(Boolean)\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(\" \");\n}\n"],"mappings":";AAiBA,IAAa,IAAqD;CAChE;EAAE,OAAO;EAAM,OAAO;EAAmB;CACzC;EAAE,OAAO;EAAe,OAAO;EAAoB;CACnD;EAAE,OAAO;EAAQ,OAAO;EAAoB;CAC5C;EAAE,OAAO;EAAQ,OAAO;EAAgB;CACxC;EAAE,OAAO;EAAQ,OAAO;EAAQ;CAChC;EAAE,OAAO;EAAiB,OAAO;EAAiB;CAClD;EAAE,OAAO;EAAW,OAAO;EAAY;CACxC;AAUD,SAAgB,EACd,GACqB;CACrB,IAAM,IAAU,CAAC,GAAG,EAAqB,EACnC,IAAU,GAAiB,MAAM;AAIvC,QAHI,KAAW,CAAC,EAAQ,MAAM,MAAW,EAAO,UAAU,EAAQ,IAChE,EAAQ,KAAK;EAAE,OAAO;EAAS,OAAO,EAAiB,EAAQ;EAAE,CAAC,EAE7D;;AAGT,SAAS,EAAiB,GAAuB;AAC/C,QAAO,EACJ,MAAM,UAAU,CAChB,OAAO,QAAQ,CACf,KAAK,MAAS,EAAK,OAAO,EAAE,CAAC,aAAa,GAAG,EAAK,MAAM,EAAE,CAAC,CAC3D,KAAK,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationDetailPage.d.ts","sourceRoot":"","sources":["../../../src/devportal/pages/ApplicationDetailPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationDetailPage.d.ts","sourceRoot":"","sources":["../../../src/devportal/pages/ApplicationDetailPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAkUhC;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAigCnC,CAAC"}
|