@gravitee/graphene-policy-studio 3.56.0 → 3.57.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.
@@ -11,7 +11,8 @@ export type { ConnectorRole, PhaseConfig, PhaseLayout, PhaseLayoutFlat, PhaseLay
11
11
  export { filterByCategory, filterBySearch, filterPoliciesForPhase, filterSharedPolicyGroups, getCatalogPoliciesForPhase, getCategories, getCategoryCounts, getPhaseLabel, groupByCategory, SHARED_POLICY_GROUP_CATEGORY, sharedPolicyGroupsToCatalogPolicies, } from './policy-filter';
12
12
  export { adjustStepIndexAfterReorder, adjustStepIndexAfterSwap } from './step-selection';
13
13
  export { PolicyIcon } from './resolve-policy-icon';
14
- export { computeSaveOutput, countInvalidSteps, hasChanges, stripVmFields } from './save';
14
+ export { computeSaveOutput, countInvalidSteps, countUnverifiedSteps, describeBlockingSteps, hasChanges, stripVmFields, } from './save';
15
+ export type { StepValidity, UnverifiedReason } from './step-validity';
15
16
  export { buildGenericPolicies, resolveStep, resolveStepPolicy, resolveStepsForPhase } from './step-matching';
16
17
  export type { GenericPolicy, GenericPolicyType, ResolvedStep } from './step-matching';
17
18
  export { getAvailablePolicyCategories, getEmptyPhaseWhisper, getFlowPolicyCount, getPhaseCategoryCTAs, getPhaseWhisper, } from './phase-whisper';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,YAAY,GACb,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBA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B,EACpB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,YAAY,GACb,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,YAAY,EACV,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,cAAc,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACxF,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/D,YAAY,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,4BAA4B,EAC5B,mCAAmC,GACpC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,UAAU,EACV,aAAa,GACd,MAAM,QAAQ,CAAC;AAChB,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC7G,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACtF,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Flow, FlowExecution, FlowGroupVM, FlowVM, SaveOutput } from '../types';
2
+ import { StepValidity } from './step-validity';
2
3
  /**
3
4
  * Strips internal view-model fields from a `FlowVM`, producing a
4
5
  * plain `Flow` suitable for persistence.
@@ -26,8 +27,13 @@ export declare function computeSaveOutput({ initialGroups, currentGroups, initia
26
27
  */
27
28
  export declare function hasChanges(args: ComputeSaveOutputArgs): boolean;
28
29
  /**
29
- * Counts the number of invalid step entries in the validity map.
30
+ * Counts the steps whose configuration breaks its schema. Steps that could not be checked are
31
+ * counted apart (`countUnverifiedSteps`).
30
32
  */
31
- export declare function countInvalidSteps(stepValidity: Map<string, boolean>): number;
33
+ export declare function countInvalidSteps(stepValidity: ReadonlyMap<string, StepValidity>): number;
34
+ /** Counts the steps whose configuration could not be checked (schema fetch or compile failure). */
35
+ export declare function countUnverifiedSteps(stepValidity: ReadonlyMap<string, StepValidity>): number;
36
+ /** Why steps block Save (the Save tooltip), `null` when none does. */
37
+ export declare function describeBlockingSteps(invalidStepCount: number, unverifiedStepCount: number): string | null;
32
38
  export {};
33
39
  //# sourceMappingURL=save.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../../src/lib/save.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,EAAQ,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3F;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAGhD;AAED,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,aAAa,EAAE,SAAS,WAAW,EAAE,CAAC;IAC/C,QAAQ,CAAC,aAAa,EAAE,SAAS,WAAW,EAAE,CAAC;IAC/C,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC;IAC7C,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC;CAC9C;AAeD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,oBAAoB,GACrB,EAAE,qBAAqB,GAAG,UAAU,GAAG,IAAI,CAyD3C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAE/D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAM5E"}
1
+ {"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../../src/lib/save.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,EAAQ,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAGhD;AAED,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,aAAa,EAAE,SAAS,WAAW,EAAE,CAAC;IAC/C,QAAQ,CAAC,aAAa,EAAE,SAAS,WAAW,EAAE,CAAC;IAC/C,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC;IAC7C,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC;CAC9C;AAeD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,oBAAoB,GACrB,EAAE,qBAAqB,GAAG,UAAU,GAAG,IAAI,CAyD3C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAE/D;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,MAAM,CAEzF;AAED,mGAAmG;AACnG,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,MAAM,CAE5F;AAUD,sEAAsE;AACtE,wBAAgB,qBAAqB,CAAC,gBAAgB,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAS1G"}
@@ -1,6 +1,7 @@
1
1
  import { JsonSchema } from '@gravitee/graphene-core';
2
- import { Resolver } from 'react-hook-form';
2
+ import { FieldErrors, Resolver } from 'react-hook-form';
3
3
  import { FlowPhase, Policy, Step } from '../types';
4
+ import { StepValidity } from './step-validity';
4
5
  type FormContext = Readonly<Record<string, unknown>>;
5
6
  /** The `context` a step's form reads (`context.X` conditions): the studio context and the step's phase. */
6
7
  export declare function stepFormContext(studioContext: object | undefined, flowPhase: FlowPhase): FormContext;
@@ -14,6 +15,19 @@ export declare function stepFormContext(studioContext: object | undefined, flowP
14
15
  * pick to give.
15
16
  */
16
17
  export declare function stepConfigResolver(schema: JsonSchema, formContext?: FormContext, variantPicks?: ReadonlyMap<string, number>): Resolver<Record<string, unknown>>;
17
- export declare function validateStepConfiguration(policy: Policy, step: Step, fetchPolicySchema: (policy: Policy) => Promise<unknown>, formContext?: FormContext): Promise<boolean>;
18
+ /**
19
+ * The message of the resolver's answer when the schema itself could not be compiled, `undefined`
20
+ * otherwise. `jsonSchemaResolver` does not throw on such a schema: it answers every validation with
21
+ * a single `root` error of type `schema`, which is no verdict on the configuration. A configuration
22
+ * error never has that type (ajv keywords and the `gioConfig` rules do not).
23
+ */
24
+ export declare function schemaCompileMessage(errors: FieldErrors): string | undefined;
25
+ /**
26
+ * Checks a step's configuration against its policy schema. A step whose configuration could not be
27
+ * checked is `unverified`, never `valid`: the schema could not be fetched, does not compile, or the
28
+ * check threw. A stored configuration that is not an object is `invalid`. A policy without schema,
29
+ * and a shared policy group, are `valid`.
30
+ */
31
+ export declare function validateStepConfiguration(policy: Policy, step: Step, fetchPolicySchema: (policy: Policy) => Promise<unknown>, formContext?: FormContext): Promise<StepValidity>;
18
32
  export {};
19
33
  //# sourceMappingURL=step-config-validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"step-config-validation.d.ts","sourceRoot":"","sources":["../../src/lib/step-config-validation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGxD,KAAK,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAErD,2GAA2G;AAC3G,wBAAgB,eAAe,CAAC,aAAa,EAAE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MAAM,EAAE,OAAO,CAAC,CAAC,CAInC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAG5E;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,EACvD,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,YAAY,CAAC,CA+BvB"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * What the studio knows about a step's configuration:
3
+ * - `valid`: checked against its schema, no error;
4
+ * - `invalid`: checked, and the configuration breaks the schema (or the policy cannot be resolved);
5
+ * - `unverified`: could not be checked (the schema could not be fetched, does not compile, or the
6
+ * check threw). The studio must not save a configuration it could not check, so it blocks Save
7
+ * like `invalid`, but with a different message and, when a retry can help, a retry action.
8
+ */
9
+ export type StepValidity = 'valid' | 'invalid' | 'unverified';
10
+ /** Why a step could not be verified. A `fetch` failure may go away on retry; a `schema` failure cannot. */
11
+ export type UnverifiedReason = 'fetch' | 'schema';
12
+ //# sourceMappingURL=step-validity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-validity.d.ts","sourceRoot":"","sources":["../../src/lib/step-validity.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,CAAC;AAE9D,2GAA2G;AAC3G,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,CAAC"}
package/docs/test-ids.md CHANGED
@@ -37,7 +37,7 @@ These ids are public API under the contract's stability rule. Renaming or removi
37
37
 
38
38
  Inner Graphene components derive their own parts from the id the studio hands them (nesting): a `ComboboxChip`'s `-remove`, a sheet's `-close`, an `ElCheatSheetTrigger`'s `-el-content`. The studio composes its combobox options and chips itself, so it sets `-option-<key>` and `-chip-<key>` directly. Each table only lists the parts a journey needs; the inner component's docs list the rest.
39
39
 
40
- States: a selected flow or step has `aria-current="true"`. Invalid and unresolved steps render an icon that only exists in that state, tagged `-invalid` or `-unresolved`. A disabled flow or step has `data-disabled`, because the state otherwise only shows as opacity.
40
+ States: a selected flow or step has `aria-current="true"`. Invalid and unresolved steps render an icon that only exists in that state, tagged `-invalid` or `-unresolved`. A step whose configuration could not be verified carries the `-invalid` icon too. A disabled flow or step has `data-disabled`, because the state otherwise only shows as opacity.
41
41
 
42
42
  Journeys: **J1** Ola's MCP method and tool scoping, **J2** `api-producer/apply-policies-to-a-flow`, **J3** `api-producer/reuse-shared-policy-group`. A dash means no journey uses the id yet: the stories tests still cover it in the three contexts (API flows, MCP proxy, organization scope).
43
43
 
@@ -68,17 +68,17 @@ Journeys: **J1** Ola's MCP method and tool scoping, **J2** `api-producer/apply-p
68
68
 
69
69
  `<flow>` is `${p}-flows-<group>-flow-<n>`, or `${p}-flows-plan-<planId>-flow-<n>` for a plan flow.
70
70
 
71
- | Id | Element | Key rule | Journeys |
72
- | ----------------------- | ------------------------------------------------------------------------------------- | ----------------------------- | -------- |
73
- | `<flow>` | Flow item button. `aria-current="true"` when selected, `data-disabled` when disabled. | `<group>`, `<n>` (positional) | J1, J2 |
74
- | `<flow>-name` | Displayed name | — | J2 |
75
- | `<flow>-path` | Path or channel label | — | — |
76
- | `<flow>-invalid` | "Has configuration errors" icon, rendered only then | — | — |
77
- | `<flow>-actions` | Row menu trigger | — | J2 |
78
- | `<flow>-edit` | Edit item | — | — |
79
- | `<flow>-duplicate` | Duplicate item | — | — |
80
- | `<flow>-toggle-enabled` | Enable or disable item | — | — |
81
- | `<flow>-delete` | Delete item | — | J2 |
71
+ | Id | Element | Key rule | Journeys |
72
+ | ----------------------- | ------------------------------------------------------------------------------------------------ | ----------------------------- | -------- |
73
+ | `<flow>` | Flow item button. `aria-current="true"` when selected, `data-disabled` when disabled. | `<group>`, `<n>` (positional) | J1, J2 |
74
+ | `<flow>-name` | Displayed name | — | J2 |
75
+ | `<flow>-path` | Path or channel label | — | — |
76
+ | `<flow>-invalid` | "Has configuration errors" icon, rendered only then (a step is invalid or could not be verified) | — | — |
77
+ | `<flow>-actions` | Row menu trigger | — | J2 |
78
+ | `<flow>-edit` | Edit item | — | — |
79
+ | `<flow>-duplicate` | Duplicate item | — | — |
80
+ | `<flow>-toggle-enabled` | Enable or disable item | — | — |
81
+ | `<flow>-delete` | Delete item | — | J2 |
82
82
 
83
83
  ## Delete flow dialog (FOUND-403)
84
84
 
@@ -92,21 +92,21 @@ Journeys: **J1** Ola's MCP method and tool scoping, **J2** `api-producer/apply-p
92
92
 
93
93
  These ids act on the selected flow, so they need no flow key. The badges have no element around them, so each badge gets its own keyed id.
94
94
 
95
- | Id | Element | Key rule | Journeys |
96
- | --------------------------- | --------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------- |
97
- | `${p}-flow-name` | Selected flow's name, rendered only when the flow has one | — | J1, J2 |
98
- | `${p}-flow-path` | Path or channel label | — | — |
99
- | `${p}-flow-methods-<value>` | One method, operation or MCP method badge | `<METHOD>`, `<operation>`, `<method>`, or `all` for the one badge of a flow that sets no method | J1 |
100
- | `${p}-flow-condition` | Condition badge | — | J1 |
101
- | `${p}-flow-tags-<tagId>` | One visible sharding tag badge (organization scope) | `<tagId>` | — |
102
- | `${p}-flow-tags-more` | The "+N" badge for the tags that don't fit | — | — |
103
- | `${p}-flow-actions` | Flow actions menu trigger | — | J1 |
104
- | `${p}-flow-edit` | Edit item | — | J1 |
105
- | `${p}-flow-toggle-enabled` | Enable or disable item | — | — |
106
- | `${p}-flow-delete` | Delete item | — | — |
107
- | `${p}-phases-back` | "Back to phases view" button, when one phase is focused | — | — |
108
- | `${p}-save` | Save button | — | J1, J2, J3 |
109
- | `${p}-save-tooltip` | Save tooltip: the save error, or the invalid step count | — | J1 |
95
+ | Id | Element | Key rule | Journeys |
96
+ | --------------------------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------- |
97
+ | `${p}-flow-name` | Selected flow's name, rendered only when the flow has one | — | J1, J2 |
98
+ | `${p}-flow-path` | Path or channel label | — | — |
99
+ | `${p}-flow-methods-<value>` | One method, operation or MCP method badge | `<METHOD>`, `<operation>`, `<method>`, or `all` for the one badge of a flow that sets no method | J1 |
100
+ | `${p}-flow-condition` | Condition badge | — | J1 |
101
+ | `${p}-flow-tags-<tagId>` | One visible sharding tag badge (organization scope) | `<tagId>` | — |
102
+ | `${p}-flow-tags-more` | The "+N" badge for the tags that don't fit | — | — |
103
+ | `${p}-flow-actions` | Flow actions menu trigger | — | J1 |
104
+ | `${p}-flow-edit` | Edit item | — | J1 |
105
+ | `${p}-flow-toggle-enabled` | Enable or disable item | — | — |
106
+ | `${p}-flow-delete` | Delete item | — | — |
107
+ | `${p}-phases-back` | "Back to phases view" button, when one phase is focused | — | — |
108
+ | `${p}-save` | Save button | — | J1, J2, J3 |
109
+ | `${p}-save-tooltip` | Save tooltip: the save error, or the count of invalid steps and of steps that could not be verified | — | J1 |
110
110
 
111
111
  ## Flow execution settings (FOUND-403)
112
112
 
@@ -177,7 +177,7 @@ The add sheet has no close button; the edit sheet hides it while Discard shows.
177
177
  | `${p}-phase-<phase>-suggestion` | The "browse a suggested category" link in the phase hint | `<phase>` | — |
178
178
  | `<step>` | Step card. `aria-current="true"` when selected, `data-disabled` when disabled. The card is its own drag handle. | `<phase>`, `<n>` (positional) | J2, J3 |
179
179
  | `<step>-name` | Displayed policy or step name | — | J2, J3 |
180
- | `<step>-invalid` | Config error icon, rendered only then | — | — |
180
+ | `<step>-invalid` | Config error icon, rendered only then (the step is invalid or could not be verified) | — | — |
181
181
  | `<step>-unresolved` | Unknown policy icon, rendered only then | — | — |
182
182
  | `<step>-actions` | Step menu trigger | — | J3 |
183
183
  | `<step>-edit` | Edit item | — | — |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/graphene-policy-studio",
3
- "version": "3.56.0",
3
+ "version": "3.57.0",
4
4
  "type": "module",
5
5
  "description": "Gravitee Policy Studio UI for the Graphene design system.",
6
6
  "keywords": [
@@ -65,7 +65,7 @@
65
65
  "zod": "4.4.3"
66
66
  },
67
67
  "peerDependencies": {
68
- "@gravitee/graphene-core": "^3.56.0",
68
+ "@gravitee/graphene-core": "^3.57.0",
69
69
  "react": "^19.0.0",
70
70
  "react-dom": "^19.0.0",
71
71
  "tailwindcss": "^4.0.0"