@openzeppelin/ui-utils 1.2.2 → 1.3.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/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2468,6 +2468,19 @@ function analyzeServiceError(errorMessage) {
|
|
|
2468
2468
|
};
|
|
2469
2469
|
}
|
|
2470
2470
|
|
|
2471
|
+
//#endregion
|
|
2472
|
+
//#region src/networkServiceFilter.ts
|
|
2473
|
+
/**
|
|
2474
|
+
* Filters network service forms based on feature flags.
|
|
2475
|
+
*
|
|
2476
|
+
* Forms without `requiredFeature` are always included (backward compatible).
|
|
2477
|
+
* Forms with `requiredFeature` are only included when the corresponding
|
|
2478
|
+
* feature flag is enabled in AppConfigService.
|
|
2479
|
+
*/
|
|
2480
|
+
function filterEnabledServiceForms(forms) {
|
|
2481
|
+
return forms.filter((form) => !form.requiredFeature || appConfigService.isFeatureEnabled(form.requiredFeature));
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2471
2484
|
//#endregion
|
|
2472
2485
|
exports.AnalyticsService = AnalyticsService;
|
|
2473
2486
|
exports.AppConfigService = AppConfigService;
|
|
@@ -2493,6 +2506,7 @@ exports.deserializeSnapshot = deserializeSnapshot;
|
|
|
2493
2506
|
exports.detectBytesEncoding = detectBytesEncoding;
|
|
2494
2507
|
exports.detectServiceType = detectServiceType;
|
|
2495
2508
|
exports.enhanceNumericValidation = enhanceNumericValidation;
|
|
2509
|
+
exports.filterEnabledServiceForms = filterEnabledServiceForms;
|
|
2496
2510
|
exports.findRoleAssignment = findRoleAssignment;
|
|
2497
2511
|
exports.formatAccessControlError = formatAccessControlError;
|
|
2498
2512
|
exports.formatSecondsToReadable = formatSecondsToReadable;
|