@gravitee/graphene-core 3.44.0 → 3.44.1

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/USAGE_GUIDE.md CHANGED
@@ -1052,7 +1052,7 @@ The platform e2e suite selects elements by `data-testid` only. These are the rul
1052
1052
 
1053
1053
  **Rules**
1054
1054
 
1055
- - **One attribute.** The test id is the `data-testid` attribute, on every component, base and composed. There is no `testId` or `testIdPrefix` prop, and no `data-test`, `data-cy` or `id` alias.
1055
+ - **One attribute.** The test id is the `data-testid` attribute, on every component, base and composed. There is no `testId` or `testIdPrefix` prop, and no `data-test`, `data-cy` or `id` alias. The one exception is toasts (below).
1056
1056
  - **Your id wins.** The id you pass always wins. An element you compose yourself (a `DialogClose`, a `SelectItem`, a `Button` placed in a slot such as `actions` or `children`) keeps your own id.
1057
1057
  - **No default ids.** Graphene never sets an id when you pass none. The one exception is `PolicyStudio` (below).
1058
1058
  - **Where the id lands.**
@@ -1117,7 +1117,7 @@ The `Calendar` day keys are dates as react-day-picker formats them: they assume
1117
1117
 
1118
1118
  **Exception: toasts**
1119
1119
 
1120
- A toast is created by a function call, so pass `toast(message, { testId })`. Sonner renders it as `data-testid` on the toast element. It is the only entry point that is not the `data-testid` attribute. Sonner's built-in close and action buttons can't be tagged.
1120
+ A toast is created by a function call, so pass `toast(message, { testId })`. Sonner renders it as `data-testid` on the toast element (`li[data-sonner-toast]`). It is the only entry point that is not the `data-testid` attribute. Sonner's built-in close and action buttons can't be tagged. `Toaster` has no target: a `data-testid` on it reaches no element.
1121
1121
 
1122
1122
  **Exception: `PolicyStudio`**
1123
1123
 
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAgBhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAejD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAG1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAQD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAS,EAAE,WAAW,EAAE,EAAE,gBAAgB,+TAgC5E;AAsFD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAiBhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAejD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAG1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAQD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAS,EAAE,WAAW,EAAE,EAAE,gBAAgB,+TAgC5E;AA0FD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { SchemaNode } from '../../schema/types';
2
+ interface ConstFieldProps {
3
+ readonly node: SchemaNode;
4
+ readonly name: string;
5
+ }
6
+ declare function ConstField({ node, name }: ConstFieldProps): import("react").JSX.Element | null;
7
+ export { ConstField };
8
+ //# sourceMappingURL=ConstField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConstField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/const/ConstField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrD,UAAU,eAAe;IACvB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAID,iBAAS,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,eAAe,sCAmBlD;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}