@burdenoff/microfe-devportal 2026.917.1 → 2026.917.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/hooks/index.d.ts +1 -0
- package/dist/devportal/hooks/index.d.ts.map +1 -1
- package/dist/devportal/hooks/index.js +1 -0
- package/dist/devportal/hooks/useProducts.d.ts +18 -0
- package/dist/devportal/hooks/useProducts.d.ts.map +1 -0
- package/dist/devportal/hooks/useProducts.js +14 -0
- package/dist/devportal/hooks/useProducts.js.map +1 -0
- package/dist/devportal/pages/CreateApplicationPage.d.ts.map +1 -1
- package/dist/devportal/pages/CreateApplicationPage.js +137 -156
- 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 +271 -290
- package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
- package/dist/generated/global-operations.d.ts +39 -0
- package/dist/generated/global-operations.d.ts.map +1 -1
- package/dist/generated/global-operations.js +72 -54
- package/dist/generated/global-operations.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,5 +7,6 @@ export { apolloClient, parseGraphQLError, getErrorMessage, isAuthError, isValida
|
|
|
7
7
|
export { DevPortalProvider } from './DevPortalProvider';
|
|
8
8
|
export { useDevportalPermission } from './usePermission';
|
|
9
9
|
export { useCarrierPickupLocations, capitalizeCarrierName, type CarrierPickupLocation, type UseCarrierPickupLocationsResult, } from './useCarrierPickupLocations';
|
|
10
|
+
export { useProducts, type ProductOption } from './useProducts';
|
|
10
11
|
export * from '../../generated/global-operations';
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/devportal/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC;AAGrC,cAAc,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/devportal/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAGhE,cAAc,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ProductOption {
|
|
2
|
+
id: string;
|
|
3
|
+
/**
|
|
4
|
+
* The slug is what actually gets stored in StoreProduct.compatibleProducts
|
|
5
|
+
* and what browseStore/homeGroupedProducts match against — never the
|
|
6
|
+
* catalog row's `id`, which is a different UUID.
|
|
7
|
+
*/
|
|
8
|
+
slug: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
interface UseProductsResult {
|
|
12
|
+
products: ProductOption[];
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
error: Error | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare function useProducts(): UseProductsResult;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=useProducts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useProducts.d.ts","sourceRoot":"","sources":["../../../src/devportal/hooks/useProducts.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,iBAAiB;IACzB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B;AAED,wBAAgB,WAAW,IAAI,iBAAiB,CAU/C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useListProductsForSelectorQuery as e } from "../../generated/global-operations.js";
|
|
2
|
+
//#region src/devportal/hooks/useProducts.ts
|
|
3
|
+
function t() {
|
|
4
|
+
let { data: t, loading: n, error: r } = e({ fetchPolicy: "cache-and-network" });
|
|
5
|
+
return {
|
|
6
|
+
products: t?.platformProducts.items ?? [],
|
|
7
|
+
isLoading: n,
|
|
8
|
+
error: r
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as useProducts };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=useProducts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useProducts.js","names":[],"sources":["../../../src/devportal/hooks/useProducts.ts"],"sourcesContent":["/**\n * Shared hook for fetching the active platform products list — backs the\n * Compatible Products selector on the node/workflow create and edit forms,\n * so publishers pick from every real platform product instead of a\n * hardcoded handful that goes stale as new products launch.\n */\nimport { useListProductsForSelectorQuery } from \"../../generated/global-operations\";\n\nexport interface ProductOption {\n id: string;\n /**\n * The slug is what actually gets stored in StoreProduct.compatibleProducts\n * and what browseStore/homeGroupedProducts match against — never the\n * catalog row's `id`, which is a different UUID.\n */\n slug: string;\n name: string;\n}\n\ninterface UseProductsResult {\n products: ProductOption[];\n isLoading: boolean;\n error: Error | undefined;\n}\n\nexport function useProducts(): UseProductsResult {\n const { data, loading, error } = useListProductsForSelectorQuery({\n fetchPolicy: \"cache-and-network\",\n });\n\n return {\n products: data?.platformProducts.items ?? [],\n isLoading: loading,\n error: error as Error | undefined,\n };\n}\n"],"mappings":";;AAyBA,SAAgB,IAAiC;CAC/C,IAAM,EAAE,SAAM,YAAS,aAAU,EAAgC,EAC/D,aAAa,qBACd,CAAC;AAEF,QAAO;EACL,UAAU,GAAM,iBAAiB,SAAS,EAAE;EAC5C,WAAW;EACJ;EACR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateApplicationPage.d.ts","sourceRoot":"","sources":["../../../src/devportal/pages/CreateApplicationPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateApplicationPage.d.ts","sourceRoot":"","sources":["../../../src/devportal/pages/CreateApplicationPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAuahC,eAAO,MAAM,qBAAqB,EAAE,EAujBnC,CAAC"}
|