@adobe/aio-commerce-lib-app 2.1.0 → 2.2.0-beta-20261105172845

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/actions/app-config/index.cjs +5 -5
  3. package/dist/cjs/actions/app-config/index.d.cts +1 -1
  4. package/dist/cjs/actions/association/index.cjs +2 -2
  5. package/dist/cjs/actions/config/index.cjs +2 -2
  6. package/dist/cjs/actions/installation/index.cjs +5 -5
  7. package/dist/cjs/actions/installation/index.d.cts +2 -2
  8. package/dist/cjs/actions/scope-tree/index.cjs +2 -2
  9. package/dist/cjs/{app-Ch19CR6g.d.cts → app-CiZuhrsm.d.cts} +326 -0
  10. package/dist/cjs/commands/index.cjs +10 -9
  11. package/dist/cjs/config/index.browser.d.cts +1 -1
  12. package/dist/cjs/config/index.node.cjs +3 -3
  13. package/dist/cjs/config/index.node.d.cts +88 -4
  14. package/dist/{es/define-C95h_wa0.d.mts → cjs/define-CZRjG5N_.d.cts} +1 -1
  15. package/dist/cjs/{index-D-Qn-irL.d.cts → index-Bu2X-HUh.d.cts} +2 -2
  16. package/dist/cjs/{index.node-CxdwPrOg.cjs → index.node-Boszndri.cjs} +1 -1
  17. package/dist/cjs/management/index.cjs +1 -1
  18. package/dist/cjs/management/index.d.cts +1 -1
  19. package/dist/cjs/{management-C_JQpgVB.cjs → management-C_cVbr0s.cjs} +17 -5
  20. package/dist/cjs/{openapi-DFoMdZzI.cjs → openapi-c06taOv1.cjs} +412 -45
  21. package/dist/cjs/{validate-B0rOILvG.cjs → validate-CunJ4fUD.cjs} +1 -1
  22. package/dist/cjs/{router-DpB8wpR2.cjs → version-CUu8Ks59.cjs} +77 -19
  23. package/dist/cjs/{webhooks-TvDm57xt.cjs → webhooks-C5ONLbQ4.cjs} +53 -12
  24. package/dist/{es/webhooks-C9vMZZDZ.d.mts → cjs/webhooks-DX7km8wk.d.cts} +266 -10
  25. package/dist/es/actions/app-config/index.d.mts +1 -1
  26. package/dist/es/actions/app-config/index.mjs +5 -5
  27. package/dist/es/actions/association/index.mjs +2 -2
  28. package/dist/es/actions/config/index.mjs +2 -2
  29. package/dist/es/actions/installation/index.d.mts +2 -2
  30. package/dist/es/actions/installation/index.mjs +5 -5
  31. package/dist/es/actions/scope-tree/index.mjs +2 -2
  32. package/dist/es/{app-Ch19CR6g.d.mts → app-CiZuhrsm.d.mts} +326 -0
  33. package/dist/es/commands/index.mjs +10 -9
  34. package/dist/es/config/index.browser.d.mts +1 -1
  35. package/dist/es/config/index.node.d.mts +88 -4
  36. package/dist/es/config/index.node.mjs +3 -3
  37. package/dist/{cjs/define-C12IwNNN.d.cts → es/define-9bwRE_UG.d.mts} +1 -1
  38. package/dist/es/{index-VgCNSlLP.d.mts → index-Cho-eRFD.d.mts} +2 -2
  39. package/dist/es/{index.node-C8EXBW94.mjs → index.node-BVO6sC7z.mjs} +1 -1
  40. package/dist/es/management/index.d.mts +1 -1
  41. package/dist/es/management/index.mjs +1 -1
  42. package/dist/es/{management-DKDR7-fX.mjs → management-BYmbjhGb.mjs} +17 -5
  43. package/dist/es/{openapi-E_1RFhAr.mjs → openapi-C_TGWLou.mjs} +412 -45
  44. package/dist/es/{validate-CiJIjyOr.mjs → validate-D-Oh-sxE.mjs} +1 -1
  45. package/dist/es/{router-C23GIyGQ.mjs → version-C-Pkqohl.mjs} +71 -20
  46. package/dist/{cjs/webhooks-Buu1d7AB.d.cts → es/webhooks-B7UjO8dd.d.mts} +266 -10
  47. package/dist/es/{webhooks-CfrYeMy_.mjs → webhooks-CMb_05b6.mjs} +48 -13
  48. package/package.json +3 -3
@@ -14,9 +14,9 @@
14
14
  */
15
15
 
16
16
  const require_rolldown_runtime = require("../rolldown-runtime-CoOt0iuZ.cjs");
17
- const require_index_node = require("../index.node-CxdwPrOg.cjs");
18
- const require_webhooks = require("../webhooks-TvDm57xt.cjs");
19
- const require_validate = require("../validate-B0rOILvG.cjs");
17
+ const require_index_node = require("../index.node-Boszndri.cjs");
18
+ const require_webhooks = require("../webhooks-C5ONLbQ4.cjs");
19
+ const require_validate = require("../validate-CunJ4fUD.cjs");
20
20
  const require_utils = require("../utils-DSS0XlXq.cjs");
21
21
  const require_schemas = require("../schemas-B6ITl1bG.cjs");
22
22
  const require_logging = require("../logging-Emi7P923.cjs");
@@ -367,7 +367,7 @@ const LEADING_DOT_SLASH_PATTERN$1 = /^\.\//u;
367
367
  const WEB_SOURCE_DEPENDENCIES = [
368
368
  {
369
369
  name: "@adobe/aio-commerce-lib-admin-ui",
370
- version: "^1.2.0"
370
+ version: "^1.3.0-beta-20261105172845"
371
371
  },
372
372
  {
373
373
  name: "react",
@@ -701,7 +701,7 @@ function buildBusinessConfigurationExtConfig() {
701
701
  function collectUniqueRuntimeActions(adminUi) {
702
702
  const gridRuntimeActions = require_webhooks.ADMIN_UI_GRID_COLUMN_ENTITIES.map((key) => adminUi?.[key]?.gridColumns?.runtimeAction).filter((action) => action !== void 0);
703
703
  const massActionRuntimeActions = require_webhooks.ADMIN_UI_MASS_ACTION_ENTITIES.flatMap((key) => adminUi?.[key]?.massActions ?? []).filter((action) => action.type === "worker").map((action) => action.runtimeAction);
704
- const viewButtonRuntimeActions = (adminUi?.order?.viewButtons ?? []).filter((button) => button.type === "worker").map((button) => button.runtimeAction);
704
+ const viewButtonRuntimeActions = require_webhooks.ADMIN_UI_VIEW_BUTTON_ENTITIES.flatMap((key) => adminUi?.[key]?.viewButtons ?? []).filter((button) => button.type === "worker").map((button) => button.runtimeAction);
705
705
  return [.../* @__PURE__ */ new Set([
706
706
  ...gridRuntimeActions,
707
707
  ...massActionRuntimeActions,
@@ -711,13 +711,14 @@ function collectUniqueRuntimeActions(adminUi) {
711
711
  /** Returns true if the `adminUi` config requires a `view` operation and `web` source in ext.config.yaml. */
712
712
  function requiresWebSource(adminUi) {
713
713
  if (adminUi?.menu !== void 0) return true;
714
- if ((adminUi?.order?.viewButtons ?? []).some((button) => button.type === "view")) return true;
714
+ if (adminUi?.nativeUi?.replacedPages.length) return true;
715
+ if (require_webhooks.ADMIN_UI_VIEW_BUTTON_ENTITIES.flatMap((key) => adminUi?.[key]?.viewButtons ?? []).some((button) => button.type === "view")) return true;
715
716
  return require_webhooks.ADMIN_UI_MASS_ACTION_ENTITIES.flatMap((key) => adminUi?.[key]?.massActions ?? []).some((action) => action.type === "view");
716
717
  }
717
718
  /**
718
719
  * Builds the ext.config.yaml for the Admin UI v2 extension (`commerce/backend-ui/2`).
719
720
  * Derives `workerProcess` and `view` operation declarations from `adminUi` config.
720
- * Adds a `view` operation and `web` source when view-type entries or `adminUi.menu` is configured.
721
+ * Adds a `view` operation and `web` source when view-type entries, native UI replaced pages, or `adminUi.menu` is configured.
721
722
  * @param appConfig - Parsed app configuration.
722
723
  */
723
724
  function buildAdminUiV2ExtConfig(appConfig) {
@@ -3029,7 +3030,7 @@ async function ensureAppConfig(domains, config, projectRoot) {
3029
3030
  */
3030
3031
  function installDependencies(packageManager, domains, projectRoot) {
3031
3032
  const packages = [];
3032
- if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.1`);
3033
+ if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.2-beta-20261105172845`);
3033
3034
  if (packages.length === 0) {
3034
3035
  consola.consola.info("No additional domain dependencies to install.");
3035
3036
  return;
@@ -3064,7 +3065,7 @@ async function ensureInstallYaml(domains, config, projectRoot) {
3064
3065
  }
3065
3066
 
3066
3067
  // source/commands/init/main.ts
3067
- const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.1.0`];
3068
+ const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.2.0-beta-20261105172845`];
3068
3069
  /**
3069
3070
  * Initializes a Commerce App project.
3070
3071
  * @param flags - Non-interactive initialization answers.
@@ -12,5 +12,5 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as defineConfig } from "../define-C12IwNNN.cjs";
15
+ import { t as defineConfig } from "../define-CZRjG5N_.cjs";
16
16
  export { defineConfig };
@@ -13,10 +13,10 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_index_node = require("../index.node-CxdwPrOg.cjs");
16
+ const require_index_node = require("../index.node-Boszndri.cjs");
17
17
  const require_define = require("../define-BKJjE97w.cjs");
18
- const require_webhooks = require("../webhooks-TvDm57xt.cjs");
19
- const require_validate = require("../validate-B0rOILvG.cjs");
18
+ const require_webhooks = require("../webhooks-C5ONLbQ4.cjs");
19
+ const require_validate = require("../validate-CunJ4fUD.cjs");
20
20
 
21
21
  exports.CommerceAppConfigSchemas = require_validate.CommerceAppConfigSchemas;
22
22
  exports.defineConfig = require_define.defineConfig;
@@ -12,9 +12,9 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as defineConfig } from "../define-C12IwNNN.cjs";
16
- import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-Ch19CR6g.cjs";
17
- import { A as AdminUiConfig, B as hasAdminUi, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as Menu, I as Notifications, L as OrderViewButton, M as GridColumn, N as GridColumns, O as hasExternalEvents, P as MassAction, R as ViewMassAction, S as ExternalEvent, T as ExternalEventsConfig, V as hasBackendUiV2Components, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as WorkerMassAction } from "../webhooks-Buu1d7AB.cjs";
15
+ import { t as defineConfig } from "../define-CZRjG5N_.cjs";
16
+ import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-CiZuhrsm.cjs";
17
+ import { A as AdminUiConfig, B as OrderViewButton, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as InvoiceViewButton, H as WorkerMassAction, I as MassAction, L as Menu, M as CreditMemoViewButton, N as GridColumn, O as hasExternalEvents, P as GridColumns, R as NativeUiReplacedPage, S as ExternalEvent, T as ExternalEventsConfig, U as hasAdminUi, V as ViewMassAction, W as hasBackendUiV2Components, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as Notifications } from "../webhooks-DX7km8wk.cjs";
18
18
  import { Get } from "type-fest";
19
19
  import * as v from "valibot";
20
20
  import "@adobe/aio-commerce-lib-config";
@@ -82,6 +82,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
82
82
  label: string;
83
83
  runtimeAction: string;
84
84
  } | undefined;
85
+ viewButtons?: ({
86
+ title?: string | undefined;
87
+ aclProtected?: boolean | undefined;
88
+ confirm?: {
89
+ message?: string | undefined;
90
+ title?: string | undefined;
91
+ } | undefined;
92
+ description?: string | undefined;
93
+ id: string;
94
+ label: string;
95
+ level?: 0 | 1 | -1 | undefined;
96
+ notifications?: {
97
+ error?: string | undefined;
98
+ success?: string | undefined;
99
+ } | undefined;
100
+ path: string;
101
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
102
+ sortOrder?: number | undefined;
103
+ type: "view";
104
+ } | {
105
+ aclProtected?: boolean | undefined;
106
+ confirm?: {
107
+ message?: string | undefined;
108
+ title?: string | undefined;
109
+ } | undefined;
110
+ description?: string | undefined;
111
+ id: string;
112
+ label: string;
113
+ level?: 0 | 1 | -1 | undefined;
114
+ notifications?: {
115
+ error?: string | undefined;
116
+ success?: string | undefined;
117
+ } | undefined;
118
+ runtimeAction: string;
119
+ sortOrder?: number | undefined;
120
+ timeout?: number | undefined;
121
+ type: "worker";
122
+ })[] | undefined;
85
123
  } | undefined;
86
124
  customer?: {
87
125
  gridColumns?: {
@@ -147,6 +185,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
147
185
  label: string;
148
186
  runtimeAction: string;
149
187
  } | undefined;
188
+ viewButtons?: ({
189
+ aclProtected?: boolean | undefined;
190
+ confirm?: {
191
+ message?: string | undefined;
192
+ title?: string | undefined;
193
+ } | undefined;
194
+ description?: string | undefined;
195
+ id: string;
196
+ label: string;
197
+ level?: 0 | 1 | -1 | undefined;
198
+ notifications?: {
199
+ error?: string | undefined;
200
+ success?: string | undefined;
201
+ } | undefined;
202
+ runtimeAction: string;
203
+ sortOrder?: number | undefined;
204
+ timeout?: number | undefined;
205
+ type: "worker";
206
+ } | {
207
+ title?: string | undefined;
208
+ aclProtected?: boolean | undefined;
209
+ confirm?: {
210
+ message?: string | undefined;
211
+ title?: string | undefined;
212
+ } | undefined;
213
+ description?: string | undefined;
214
+ id: string;
215
+ label: string;
216
+ level?: 0 | 1 | -1 | undefined;
217
+ notifications?: {
218
+ error?: string | undefined;
219
+ success?: string | undefined;
220
+ } | undefined;
221
+ path: string;
222
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
223
+ sortOrder?: number | undefined;
224
+ type: "view";
225
+ })[] | undefined;
150
226
  } | undefined;
151
227
  menu?: {
152
228
  aclProtected?: boolean | undefined;
@@ -157,6 +233,14 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
157
233
  parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
158
234
  sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
159
235
  } | undefined;
236
+ nativeUi?: {
237
+ replacedPages: {
238
+ path: string;
239
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
240
+ target: "order.create";
241
+ title: string;
242
+ }[];
243
+ } | undefined;
160
244
  newsletter?: {
161
245
  gridColumns?: {
162
246
  columns: {
@@ -673,4 +757,4 @@ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
673
757
  * @param config - The configuration to check.
674
758
  */
675
759
  export declare function hasMetadata<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithMetadata<T>;
676
- export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type MassAction, type Menu, type Notifications, type OrderViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasWebhooks };
760
+ export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type CreditMemoViewButton, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type InvoiceViewButton, type MassAction, type Menu, type NativeUiReplacedPage, type Notifications, type OrderViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasWebhooks };
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfig } from "./app-Ch19CR6g.mjs";
15
+ import { n as CommerceAppConfig } from "./app-CiZuhrsm.cjs";
16
16
  /**
17
17
  * Helper to type-safely define the app config.
18
18
  * @param config - The app config to define.
@@ -12,8 +12,8 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { r as CommerceAppConfigOutputModel } from "./app-Ch19CR6g.cjs";
16
- import { k as AdminUiComponentConfig, n as WebhookEntry, p as AppEvent, u as CustomInstallationStep } from "./webhooks-Buu1d7AB.cjs";
15
+ import { r as CommerceAppConfigOutputModel } from "./app-CiZuhrsm.cjs";
16
+ import { k as AdminUiComponentConfig, n as WebhookEntry, p as AppEvent, u as CustomInstallationStep } from "./webhooks-DX7km8wk.cjs";
17
17
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
18
18
  import AioLogger from "@adobe/aio-lib-core-logging";
19
19
  import * as v from "valibot";
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  const require_rolldown_runtime = require("./rolldown-runtime-CoOt0iuZ.cjs");
16
- const require_validate = require("./validate-B0rOILvG.cjs");
16
+ const require_validate = require("./validate-CunJ4fUD.cjs");
17
17
  let _adobe_aio_commerce_lib_core_error = require("@adobe/aio-commerce-lib-core/error");
18
18
  let fs = require("fs");
19
19
  let fs_promises = require("fs/promises");
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_management = require("../management-C_JQpgVB.cjs");
16
+ const require_management = require("../management-C_cVbr0s.cjs");
17
17
 
18
18
  exports.createInitialInstallationState = require_management.createInitialInstallationState;
19
19
  exports.createInitialUninstallationState = require_management.createInitialUninstallationState;
@@ -12,5 +12,5 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { $ as defineLeafStep, A as createInitialState, B as BranchStepOptions, C as defineCustomInstallationStep, D as executePlannedWorkflow, E as createInitialPlanExecutionState, F as StepStartedEvent, G as LifecycleContext, H as InferStepOutput, I as StepSucceededEvent, J as StepMeta, K as Step, L as WorkflowHooks, M as executeWorkflow, N as StepEvent, O as ValidateStepTreeOptions, P as StepFailedEvent, Q as defineBranchStep, R as AnyStep, S as CustomInstallationStepHandler, T as planWorkflow, U as LeafStep, V as ExecutionContext, W as LeafStepOptions, X as ValidationContext, Y as StepMetaInfo, Z as ValidationExecutionContext, _ as createInitialUninstallationState, _t as isFailedState, a as InstallationError, at as ValidationResult, b as runValidation, c as InstallationStatus, ct as FailedWorkflowState, d as CreateInitialUninstallationStateOptions, dt as SucceededWorkflowState, et as isBranchStep, f as InstallationHooks, ft as WorkflowData, g as createInitialInstallationState, gt as isCompletedState, h as RunValidationOptions, ht as WorkflowStateMetadata, i as InstallationData, it as ValidationIssueSeverity, j as executeUninstallWorkflow, k as validateStepTree, l as SucceededInstallationState, lt as InProgressWorkflowState, m as RunUninstallationOptions, mt as WorkflowRunState, n as InProgressInstallationState, nt as StepValidationResult, o as InstallationRetryMetadata, ot as ValidationSummary, p as RunInstallationOptions, pt as WorkflowError, q as StepContextFactory, r as InstallationContext, rt as ValidationIssue, s as InstallationState, st as ExecutionStatus, t as FailedInstallationState, tt as isLeafStep, u as CreateInitialInstallationStateOptions, ut as StepStatus, v as runInstallation, vt as isInProgressState, w as createRetryState, x as CustomInstallationStepDefinition, y as runUninstallation, yt as isSucceededState, z as BranchStep } from "../index-D-Qn-irL.cjs";
15
+ import { $ as defineLeafStep, A as createInitialState, B as BranchStepOptions, C as defineCustomInstallationStep, D as executePlannedWorkflow, E as createInitialPlanExecutionState, F as StepStartedEvent, G as LifecycleContext, H as InferStepOutput, I as StepSucceededEvent, J as StepMeta, K as Step, L as WorkflowHooks, M as executeWorkflow, N as StepEvent, O as ValidateStepTreeOptions, P as StepFailedEvent, Q as defineBranchStep, R as AnyStep, S as CustomInstallationStepHandler, T as planWorkflow, U as LeafStep, V as ExecutionContext, W as LeafStepOptions, X as ValidationContext, Y as StepMetaInfo, Z as ValidationExecutionContext, _ as createInitialUninstallationState, _t as isFailedState, a as InstallationError, at as ValidationResult, b as runValidation, c as InstallationStatus, ct as FailedWorkflowState, d as CreateInitialUninstallationStateOptions, dt as SucceededWorkflowState, et as isBranchStep, f as InstallationHooks, ft as WorkflowData, g as createInitialInstallationState, gt as isCompletedState, h as RunValidationOptions, ht as WorkflowStateMetadata, i as InstallationData, it as ValidationIssueSeverity, j as executeUninstallWorkflow, k as validateStepTree, l as SucceededInstallationState, lt as InProgressWorkflowState, m as RunUninstallationOptions, mt as WorkflowRunState, n as InProgressInstallationState, nt as StepValidationResult, o as InstallationRetryMetadata, ot as ValidationSummary, p as RunInstallationOptions, pt as WorkflowError, q as StepContextFactory, r as InstallationContext, rt as ValidationIssue, s as InstallationState, st as ExecutionStatus, t as FailedInstallationState, tt as isLeafStep, u as CreateInitialInstallationStateOptions, ut as StepStatus, v as runInstallation, vt as isInProgressState, w as createRetryState, x as CustomInstallationStepDefinition, y as runUninstallation, yt as isSucceededState, z as BranchStep } from "../index-Bu2X-HUh.cjs";
16
16
  export { type AnyStep, type BranchStep, type BranchStepOptions, type CreateInitialInstallationStateOptions, type CreateInitialUninstallationStateOptions, type CustomInstallationStepDefinition, type CustomInstallationStepHandler, type ExecutionContext, type ExecutionStatus, type FailedInstallationState, type FailedWorkflowState, type InProgressInstallationState, type InProgressWorkflowState, type InferStepOutput, type InstallationContext, type InstallationData, type InstallationError, type InstallationHooks, type InstallationRetryMetadata, type InstallationState, type InstallationStatus, type LeafStep, type LeafStepOptions, type LifecycleContext, type RunInstallationOptions, type RunUninstallationOptions, type RunValidationOptions, type Step, type StepContextFactory, type StepEvent, type StepFailedEvent, type StepMeta, type StepMetaInfo, type StepStartedEvent, type StepStatus, type StepSucceededEvent, type StepValidationResult, type SucceededInstallationState, type SucceededWorkflowState, type ValidateStepTreeOptions, type ValidationContext, type ValidationExecutionContext, type ValidationIssue, type ValidationIssueSeverity, type ValidationResult, type ValidationSummary, type WorkflowData, type WorkflowError, type WorkflowHooks, type WorkflowRunState, type WorkflowStateMetadata, createInitialInstallationState, type createInitialPlanExecutionState, type createInitialState, createInitialUninstallationState, type createRetryState, type defineBranchStep, defineCustomInstallationStep, type defineLeafStep, type executePlannedWorkflow, type executeUninstallWorkflow, type executeWorkflow, type isBranchStep, isCompletedState, isFailedState, isInProgressState, type isLeafStep, isSucceededState, type planWorkflow, runInstallation, runUninstallation, runValidation, type validateStepTree };
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  const require_rolldown_runtime = require("./rolldown-runtime-CoOt0iuZ.cjs");
16
- const require_webhooks = require("./webhooks-TvDm57xt.cjs");
16
+ const require_webhooks = require("./webhooks-C5ONLbQ4.cjs");
17
17
  const require_constants = require("./constants-CgeVvu6f.cjs");
18
18
  const require_utils = require("./utils-DSS0XlXq.cjs");
19
19
  const require_environment = require("./environment-CW6M76gS.cjs");
@@ -773,19 +773,31 @@ function enumerateComponents(adminUi) {
773
773
  });
774
774
  }
775
775
  }
776
- for (const viewButton of adminUi.order?.viewButtons ?? []) {
777
- const key = `order.view-button.${viewButton.id}`;
776
+ for (const entity of require_webhooks.ADMIN_UI_VIEW_BUTTON_ENTITIES) for (const viewButton of adminUi[entity]?.viewButtons ?? []) {
777
+ const key = `${entity}.view-button.${viewButton.id}`;
778
778
  components.set(key, {
779
779
  config: viewButton,
780
780
  key,
781
- label: `order view button "${viewButton.id}"`,
781
+ label: `${entity} view button "${viewButton.id}"`,
782
782
  ref: {
783
- entity: "order",
783
+ entity,
784
784
  id: viewButton.id,
785
785
  kind: "viewButtons"
786
786
  }
787
787
  });
788
788
  }
789
+ for (const replacedPage of adminUi.nativeUi?.replacedPages ?? []) {
790
+ const key = `nativeUi.replacedPages.${replacedPage.target}`;
791
+ components.set(key, {
792
+ config: replacedPage,
793
+ key,
794
+ label: `native UI page replacement "${replacedPage.target}"`,
795
+ ref: {
796
+ id: replacedPage.target,
797
+ kind: "replacedPages"
798
+ }
799
+ });
800
+ }
789
801
  return components;
790
802
  }
791
803
  /** Reads the baseline's persisted `extensionId`, or `null` when there is no baseline. */