@qoretechnologies/reqraft 0.10.13-pr.74.gf718c08 → 0.10.14

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 (138) hide show
  1. package/.claude/CLAUDE.md +8 -11
  2. package/dist/components/form/engine/CompactToolbar.d.ts.map +1 -1
  3. package/dist/components/form/engine/CompactToolbar.js +2 -2
  4. package/dist/components/form/engine/CompactToolbar.js.map +1 -1
  5. package/dist/components/form/engine/FormEngine.d.ts +15 -3
  6. package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
  7. package/dist/components/form/engine/FormEngine.js +15 -20
  8. package/dist/components/form/engine/FormEngine.js.map +1 -1
  9. package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
  10. package/dist/components/form/engine/compactRowStyles.js +3 -8
  11. package/dist/components/form/engine/compactRowStyles.js.map +1 -1
  12. package/dist/helpers/common.d.ts +0 -5
  13. package/dist/helpers/common.d.ts.map +1 -1
  14. package/dist/helpers/common.js +1 -20
  15. package/dist/helpers/common.js.map +1 -1
  16. package/dist/index.d.ts +0 -5
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +1 -7
  19. package/dist/index.js.map +1 -1
  20. package/dist/providers/StorageProvider.d.ts +13 -0
  21. package/dist/providers/StorageProvider.d.ts.map +1 -1
  22. package/dist/providers/StorageProvider.js +29 -5
  23. package/dist/providers/StorageProvider.js.map +1 -1
  24. package/package.json +2 -2
  25. package/src/components/form/engine/CompactToolbar.tsx +117 -110
  26. package/src/components/form/engine/FormEngine.stories.tsx +27 -0
  27. package/src/components/form/engine/FormEngine.tsx +44 -25
  28. package/src/components/form/engine/compactRowStyles.ts +3 -5
  29. package/src/helpers/common.ts +0 -19
  30. package/src/hooks/useStorage/useStorage.stories.tsx +52 -0
  31. package/src/index.tsx +0 -5
  32. package/src/providers/StorageProvider.tsx +30 -4
  33. package/dist/components/composer/Composer.d.ts +0 -108
  34. package/dist/components/composer/Composer.d.ts.map +0 -1
  35. package/dist/components/composer/Composer.js +0 -238
  36. package/dist/components/composer/Composer.js.map +0 -1
  37. package/dist/components/composer/helpers.d.ts +0 -21
  38. package/dist/components/composer/helpers.d.ts.map +0 -1
  39. package/dist/components/composer/helpers.js +0 -75
  40. package/dist/components/composer/helpers.js.map +0 -1
  41. package/dist/components/composer/index.d.ts +0 -3
  42. package/dist/components/composer/index.d.ts.map +0 -1
  43. package/dist/components/composer/index.js +0 -19
  44. package/dist/components/composer/index.js.map +0 -1
  45. package/dist/components/imageLightbox/ImageLightbox.d.ts +0 -17
  46. package/dist/components/imageLightbox/ImageLightbox.d.ts.map +0 -1
  47. package/dist/components/imageLightbox/ImageLightbox.js +0 -129
  48. package/dist/components/imageLightbox/ImageLightbox.js.map +0 -1
  49. package/dist/components/imageLightbox/index.d.ts +0 -2
  50. package/dist/components/imageLightbox/index.d.ts.map +0 -1
  51. package/dist/components/imageLightbox/index.js +0 -18
  52. package/dist/components/imageLightbox/index.js.map +0 -1
  53. package/dist/components/supportTicket/AttachmentChips.d.ts +0 -10
  54. package/dist/components/supportTicket/AttachmentChips.d.ts.map +0 -1
  55. package/dist/components/supportTicket/AttachmentChips.js +0 -119
  56. package/dist/components/supportTicket/AttachmentChips.js.map +0 -1
  57. package/dist/components/supportTicket/InterfaceReferenceTags.d.ts +0 -35
  58. package/dist/components/supportTicket/InterfaceReferenceTags.d.ts.map +0 -1
  59. package/dist/components/supportTicket/InterfaceReferenceTags.js +0 -31
  60. package/dist/components/supportTicket/InterfaceReferenceTags.js.map +0 -1
  61. package/dist/components/supportTicket/ReferencePicker.d.ts +0 -41
  62. package/dist/components/supportTicket/ReferencePicker.d.ts.map +0 -1
  63. package/dist/components/supportTicket/ReferencePicker.js +0 -86
  64. package/dist/components/supportTicket/ReferencePicker.js.map +0 -1
  65. package/dist/components/supportTicket/TicketHeader.d.ts +0 -86
  66. package/dist/components/supportTicket/TicketHeader.d.ts.map +0 -1
  67. package/dist/components/supportTicket/TicketHeader.js +0 -149
  68. package/dist/components/supportTicket/TicketHeader.js.map +0 -1
  69. package/dist/components/supportTicket/TicketMetaTags.d.ts +0 -32
  70. package/dist/components/supportTicket/TicketMetaTags.d.ts.map +0 -1
  71. package/dist/components/supportTicket/TicketMetaTags.js +0 -21
  72. package/dist/components/supportTicket/TicketMetaTags.js.map +0 -1
  73. package/dist/components/supportTicket/TicketReplyBox.d.ts +0 -63
  74. package/dist/components/supportTicket/TicketReplyBox.d.ts.map +0 -1
  75. package/dist/components/supportTicket/TicketReplyBox.js +0 -115
  76. package/dist/components/supportTicket/TicketReplyBox.js.map +0 -1
  77. package/dist/components/supportTicket/fileToAttachment.d.ts +0 -9
  78. package/dist/components/supportTicket/fileToAttachment.d.ts.map +0 -1
  79. package/dist/components/supportTicket/fileToAttachment.js +0 -28
  80. package/dist/components/supportTicket/fileToAttachment.js.map +0 -1
  81. package/dist/components/supportTicket/index.d.ts +0 -9
  82. package/dist/components/supportTicket/index.d.ts.map +0 -1
  83. package/dist/components/supportTicket/index.js +0 -25
  84. package/dist/components/supportTicket/index.js.map +0 -1
  85. package/dist/components/supportTicket/meta.d.ts +0 -63
  86. package/dist/components/supportTicket/meta.d.ts.map +0 -1
  87. package/dist/components/supportTicket/meta.js +0 -79
  88. package/dist/components/supportTicket/meta.js.map +0 -1
  89. package/dist/components/ticketReferences/TicketReferences.d.ts +0 -52
  90. package/dist/components/ticketReferences/TicketReferences.d.ts.map +0 -1
  91. package/dist/components/ticketReferences/TicketReferences.js +0 -453
  92. package/dist/components/ticketReferences/TicketReferences.js.map +0 -1
  93. package/dist/components/ticketReferences/index.d.ts +0 -3
  94. package/dist/components/ticketReferences/index.d.ts.map +0 -1
  95. package/dist/components/ticketReferences/index.js +0 -6
  96. package/dist/components/ticketReferences/index.js.map +0 -1
  97. package/dist/components/ticketThread/TicketThread.d.ts +0 -52
  98. package/dist/components/ticketThread/TicketThread.d.ts.map +0 -1
  99. package/dist/components/ticketThread/TicketThread.js +0 -248
  100. package/dist/components/ticketThread/TicketThread.js.map +0 -1
  101. package/dist/components/ticketThread/index.d.ts +0 -3
  102. package/dist/components/ticketThread/index.d.ts.map +0 -1
  103. package/dist/components/ticketThread/index.js +0 -7
  104. package/dist/components/ticketThread/index.js.map +0 -1
  105. package/dist/helpers/scrollbar.d.ts +0 -2
  106. package/dist/helpers/scrollbar.d.ts.map +0 -1
  107. package/dist/helpers/scrollbar.js +0 -25
  108. package/dist/helpers/scrollbar.js.map +0 -1
  109. package/src/components/composer/Composer.stories.tsx +0 -238
  110. package/src/components/composer/Composer.tsx +0 -545
  111. package/src/components/composer/helpers.ts +0 -74
  112. package/src/components/composer/index.ts +0 -2
  113. package/src/components/imageLightbox/ImageLightbox.stories.tsx +0 -156
  114. package/src/components/imageLightbox/ImageLightbox.tsx +0 -169
  115. package/src/components/imageLightbox/index.ts +0 -1
  116. package/src/components/supportTicket/AttachmentChips.stories.tsx +0 -122
  117. package/src/components/supportTicket/AttachmentChips.tsx +0 -142
  118. package/src/components/supportTicket/InterfaceReferenceTags.stories.tsx +0 -134
  119. package/src/components/supportTicket/InterfaceReferenceTags.tsx +0 -85
  120. package/src/components/supportTicket/ReferencePicker.stories.tsx +0 -296
  121. package/src/components/supportTicket/ReferencePicker.tsx +0 -237
  122. package/src/components/supportTicket/TicketConversation.stories.tsx +0 -122
  123. package/src/components/supportTicket/TicketHeader.stories.tsx +0 -183
  124. package/src/components/supportTicket/TicketHeader.tsx +0 -247
  125. package/src/components/supportTicket/TicketMetaTags.stories.tsx +0 -103
  126. package/src/components/supportTicket/TicketMetaTags.tsx +0 -85
  127. package/src/components/supportTicket/TicketReplyBox.stories.tsx +0 -355
  128. package/src/components/supportTicket/TicketReplyBox.tsx +0 -146
  129. package/src/components/supportTicket/fileToAttachment.ts +0 -24
  130. package/src/components/supportTicket/index.ts +0 -8
  131. package/src/components/supportTicket/meta.ts +0 -145
  132. package/src/components/ticketReferences/TicketReferences.stories.tsx +0 -301
  133. package/src/components/ticketReferences/TicketReferences.tsx +0 -899
  134. package/src/components/ticketReferences/index.ts +0 -2
  135. package/src/components/ticketThread/TicketThread.stories.tsx +0 -751
  136. package/src/components/ticketThread/TicketThread.tsx +0 -650
  137. package/src/components/ticketThread/index.ts +0 -6
  138. package/src/helpers/scrollbar.ts +0 -32
package/.claude/CLAUDE.md CHANGED
@@ -44,7 +44,7 @@ ReQraft (`@qoretechnologies/reqraft`) is a **React hooks and components toolkit*
44
44
  - **Styling:** styled-components (inherited from ReQore); no CSS modules
45
45
  - **State Management:** zustand (stores) + React Context (`use-context-selector`)
46
46
  - **Data Fetching:** `@tanstack/react-query` v4 (via `query()` util + `useFetch` hook)
47
- - **Testing:** Vitest a `unit` project (jsdom, tests in `__tests__/`) + a `storybook` project (every story run in a real Chromium browser via Playwright); React Testing Library for component assertions
47
+ - **Testing:** Jest + React Testing Library (tests in `__tests__/`)
48
48
  - **Documentation:** Storybook (stories co-located in `src/` with `.stories.tsx` suffix)
49
49
  - **Storybook port:** `6008` (not 6007 — that's reqore)
50
50
 
@@ -155,9 +155,7 @@ A generic `<Field>` component dispatches to the appropriate field by type.
155
155
  ```bash
156
156
  yarn install
157
157
  yarn storybook # Dev mode on http://localhost:6008
158
- yarn test # Vitest unit tests (jsdom)
159
- yarn test:watch # Vitest unit watch mode
160
- yarn test:stories # Story / interaction tests in a real browser (+ Qlip capture)
158
+ yarn test:watch # Jest watch mode
161
159
  yarn lint # ESLint check
162
160
  yarn build # TypeScript compilation (tsconfig.prod.json)
163
161
  yarn build:test # Type-check without emit
@@ -179,17 +177,16 @@ yarn build:test # Type-check without emit
179
177
 
180
178
  ### Testing Patterns
181
179
 
182
- - Two Vitest projects (see `vitest.config.ts`): **unit** (jsdom; tests in `__tests__/`, mirroring `src/`) and **storybook** (every `*.stories.tsx` run in a real Chromium browser via Playwright). There is no Jest.
183
- - Wrap unit tests with `ReqraftProvider` (or at minimum `QueryClientProvider`)
180
+ - Tests live in `__tests__/` (mirror `src/` structure)
181
+ - Wrap tests with `ReqraftProvider` (or at minimum `QueryClientProvider`)
184
182
  - Use `mock-socket` for WebSocket testing
185
- - Run: `yarn test` (unit) · `yarn test:stories [file-substring]` (stories) · `yarn precheck` (lint + unit + `build:test:prod`)
183
+ - Run: `./node_modules/.bin/jest --passWithNoTests`
186
184
 
187
- ### Storybook Stories & visual testing
185
+ ### Storybook Stories
188
186
 
189
187
  - Stories are co-located alongside source: `src/hooks/useFetch/useFetch.stories.tsx`
190
188
  - Storybook port: **6008**
191
- - Story + interaction tests run on **Vitest browser mode** (Playwright/Chromium): `yarn test:stories [file-substring]`. Run `yarn install-playwright` once first.
192
- - **Visual regression via Qlip** (not Chromatic): the story run captures snapshots through the `qlip` Vitest plugin. Upload is gated on `QLIP_UPLOAD_TOKEN` (`vitest.config.ts`), so **local runs capture but never upload** — PNGs land in `qlip/screenshots/<ts>/stories/auto/<StoryId>.png` (gitignored); read the PNG to verify a visual change. CI (`.github/workflows/tests.yml`) sets the token and uploads a build for dashboard review. The full visual-change flow + the `qlip` MCP review skill live in the imported `stacks/frontend/FRONTEND.md`.
189
+ - Visual testing via Chromatic (`yarn chromatic`)
193
190
 
194
191
  ## Code Patterns & Conventions
195
192
 
@@ -271,7 +268,7 @@ yarn build:test # Type-check without emit
271
268
  | `src/components/log/` | Log display component |
272
269
  | `src/components/menu/` | Navigation menu component |
273
270
  | `src/types/` | Shared TypeScript types |
274
- | `__tests__/` | Vitest unit tests (jsdom) |
271
+ | `__tests__/` | Jest tests |
275
272
 
276
273
  ## Other
277
274
 
@@ -1 +1 @@
1
- {"version":3,"file":"CompactToolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/CompactToolbar.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uDAAuD,CAAC;AAKjG,OAAO,KAAe,MAAM,OAAO,CAAC;AAmFpC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,0CAAsB,QAAQ,wBAAwB,CAAC,6CA+LhF,CAAC"}
1
+ {"version":3,"file":"CompactToolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/CompactToolbar.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uDAAuD,CAAC;AAMjG,OAAO,KAAe,MAAM,OAAO,CAAC;AAyFpC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,0CAAsB,QAAQ,wBAAwB,CAAC,6CAgMhF,CAAC"}
@@ -23,8 +23,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
23
23
  var reqore_1 = require("@qoretechnologies/reqore");
24
24
  var useTheme_1 = require("@qoretechnologies/reqore/dist/hooks/useTheme");
25
25
  var react_1 = require("react");
26
- var use_context_selector_1 = require("use-context-selector");
27
26
  var styled_components_1 = __importDefault(require("styled-components"));
27
+ var use_context_selector_1 = require("use-context-selector");
28
28
  var compactToolbarContext_1 = require("./compactToolbarContext");
29
29
  // Field sort modes, listed in the Fields menu's "Sort by" submenu. 'schema' is
30
30
  // the default (the schema's declared order); the rest reorder within each group.
@@ -164,7 +164,7 @@ exports.CompactToolbar = (0, react_1.memo)(function (reqoreProps) {
164
164
  // menu keeps only the bulk actions above (Select all / Default
165
165
  // fields / filters).
166
166
  ] })
167
- : null, (0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { fixed: true, flat: true, minimal: showAllDescriptions === true, icon: showAllDescriptions ? 'InformationFill' : 'InformationLine', className: 'options-readfirst-descriptions', active: showAllDescriptions, intent: showAllDescriptions ? 'info' : undefined, tooltip: showAllDescriptions ? 'Hide all field information' : 'Show all field information', onClick: onToggleAllDescriptions })] })
167
+ : null, (0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { fixed: true, flat: true, minimal: showAllDescriptions === true, icon: showAllDescriptions ? 'InformationFill' : 'InformationLine', className: 'options-readfirst-descriptions', intent: showAllDescriptions ? 'info' : undefined, tooltip: showAllDescriptions ? 'Hide all field information' : 'Show all field information', onClick: onToggleAllDescriptions })] })
168
168
  : null })
169
169
  : null] })));
170
170
  });
@@ -1 +1 @@
1
- {"version":3,"file":"CompactToolbar.js","sourceRoot":"","sources":["../../../../src/components/form/engine/CompactToolbar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mDAKkC;AAClC,yEAA8E;AAM9E,+BAAoC;AACpC,6DAAkD;AAClD,wEAAuC;AACvC,iEAA8E;AAE9E,+EAA+E;AAC/E,iFAAiF;AACjF,IAAM,UAAU,GAA8D;IAC5E,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,mCAAmC,EAAE;IACzF,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,gCAAgC,EAAE;IAChF,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,iCAAiC,EAAE;IACtF,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,8BAA8B,EAAE;IACjF,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,gCAAgC,EAAE;CACxF,CAAC;AAEF,wEAAwE;AACxE,iFAAiF;AACjF,2DAA2D;AAC3D,IAAM,gBAAgB,GAAG,2BAAM,CAAC,GAAG,+IAAA,4EAKlC,IAAA,CAAC;AACF,IAAM,oBAAoB,GAAG,2BAAM,CAAC,GAAG,qJAAA,kFAKtC,IAAA,CAAC;AACF,IAAM,WAAW,GAAG,2BAAM,CAAC,GAAG,wrBAAsF,qHAMpG,EAAsB,2VAazB,EAAkB,sBACb,EAAsB,kFAI5B,EAAkB,iBACjB,EAA8B,sBACzB,EAAsB,UAEvC,KAtBe,UAAC,EAAU;QAAR,MAAM,YAAA;IAAO,OAAA,MAAM;AAAN,CAAM,EAazB,UAAC,EAAQ;QAAN,IAAI,UAAA;IAAO,OAAA,IAAI;AAAJ,CAAI,EACb,UAAC,EAAU;QAAR,MAAM,YAA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AAK,EAAE,oBAAoB;gDAC3B,IAAI,EAAE,aAAa;gDACnB,OAAO,EAAE,0CAA0C;gDACnD,QAAQ,EAAE,CAAC,SAAS;gDACpB,OAAO,EAAE,WAAW;6CACrB;4CACD,kEAAkE;4CAClE,+DAA+D;4CAC/D,+DAA+D;4CAC/D,qBAAqB;yCACE,GAE3B;oCACJ,CAAC,CAAC,IAAI,EACN,uBAAC,qBAAY,IACX,KAAK,QACL,IAAI,QACJ,OAAO,EAAE,mBAAmB,KAAK,IAAI,EACrC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,EACjE,SAAS,EAAC,gCAAgC,EAC1C,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAChD,OAAO,EACL,mBAAmB,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,4BAA4B,EAEnF,OAAO,EAAE,uBAAuB,GAChC,IACiB;wBACvB,CAAC,CAAC,IAAI,GACa;gBACvB,CAAC,CAAC,IAAI,KACa,CACtB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { IReqoreCollectionProps } from '@qoretechnologies/reqore/dist/components/Collection';
2
- import { IReqorePanelAction } from '@qoretechnologies/reqore/dist/components/Panel';
2
+ import { IReqorePanelAction, IReqorePanelProps } from '@qoretechnologies/reqore/dist/components/Panel';
3
3
  import { IReqoreFormTemplates } from '@qoretechnologies/reqore/dist/components/Textarea';
4
4
  import { IReqoreIconName } from '@qoretechnologies/reqore/dist/types/icons';
5
5
  import { IQorusFormField, IQorusFormFieldMessage, IQorusFormFieldOnChangeMeta, IQorusFormOperator, IQorusFormOperatorsSchema, IQorusFormSchema, TQorusFlatForm, TQorusForm, TQorusFormFieldSchema, TQorusFormOperatorValue, TQorusType } from '@qoretechnologies/ts-toolkit';
@@ -46,7 +46,7 @@ export declare const flattenOptions: (options: TQorusForm) => TQorusFlatForm;
46
46
  export declare const getTypeAndCanBeNull: (type: TQorusType | TQorusType[], allowed_values?: any[], operatorData?: TOperatorValue, operators?: IOperatorsSchema) => {
47
47
  type: TQorusType;
48
48
  defaultType: TQorusType;
49
- defaultInternalType: "string" | "number" | "boolean" | "function" | "type" | "file" | "data" | "date" | "email" | "range" | "url" | "group" | "list" | "step" | "richtext" | "fsm" | "errors" | "class" | "bool" | "int" | "float" | "hash" | "mapper" | "workflow" | "service" | "job" | "connection" | "constant" | "mapper-code" | "queue" | "pipeline" | "sla" | "value-map" | "qog" | "ai-collection" | "ai-endpoint" | "ai-guardrail" | "binary" | "long-string" | "enum" | "integer" | "free-list" | "rgbcolor" | "free-hash" | "null" | "nothing" | "data-provider" | "context" | "processor-mappings" | "tool-catalog" | "code-editor";
49
+ defaultInternalType: "string" | "number" | "boolean" | "function" | "url" | "data" | "richtext" | "type" | "group" | "list" | "fsm" | "errors" | "step" | "class" | "bool" | "int" | "float" | "hash" | "mapper" | "workflow" | "service" | "job" | "connection" | "constant" | "mapper-code" | "queue" | "pipeline" | "sla" | "value-map" | "qog" | "ai-collection" | "ai-endpoint" | "ai-guardrail" | "binary" | "date" | "email" | "long-string" | "enum" | "integer" | "range" | "free-list" | "rgbcolor" | "free-hash" | "null" | "nothing" | "data-provider" | "context" | "file" | "processor-mappings" | "tool-catalog" | "code-editor";
50
50
  canBeNull: boolean;
51
51
  };
52
52
  /** Display metadata for a read-first group, keyed by the raw `group` string;
@@ -124,6 +124,18 @@ export interface IFormEngineProps extends Omit<IReqoreCollectionProps, 'onChange
124
124
  * transparently inside the parent's edit card. Default `false`.
125
125
  */
126
126
  compactNested?: boolean;
127
+ /**
128
+ * Compact mode only: props forwarded to the read-first form's outer
129
+ * `ReqorePanel` — the panel that carries the sticky toolbar header and holds
130
+ * the status boxes. Spread AFTER the engine's own defaults, so anything set
131
+ * here wins (`flat`, `raised`, `minimal`, `stickyHeader`, `label`, `icon`,
132
+ * `intent`, `padded`, `size`, …). Two props merge instead of replacing, so a
133
+ * consumer can add to the panel without dismantling the form:
134
+ * - `actions` — appended after the engine's toolbar action.
135
+ * - `contentStyle` — merged over the engine's flex-column layout.
136
+ * No-op in classic (non-compact) mode.
137
+ */
138
+ compactPanelProps?: IReqorePanelProps;
127
139
  /** Compact mode only: per-group display metadata (label / icon / subtitle /
128
140
  * order) — the server only sends the bare group key. */
129
141
  groups?: Record<string, IFormEngineGroup>;
@@ -177,6 +189,6 @@ export interface IFormEngineProps extends Omit<IReqoreCollectionProps, 'onChange
177
189
  */
178
190
  autoFocusFirstRequired?: boolean;
179
191
  }
180
- export declare const FormEngine: ({ name, uniqueName, value, onChange, onSingleOptionsChange, onDependableOptionChange, placeholder, noValueString, isValid, url, customUrl, operatorsUrl, onOptionsLoaded, recordRequiresSearchOptions, readOnly, allowTemplates, interfaceContext, templateFieldProps, showTypeToggle, compact, compactFlush, compactNested, commitMode, expandMode, onCommit, operators: operatorsProp, groups, optionsLoader, onValidityChange, optionActions, componentOverrides, inheritedFromParent, autoFocusFirstRequired, ...rest }: IFormEngineProps) => import("react/jsx-runtime").JSX.Element;
192
+ export declare const FormEngine: ({ name, uniqueName, value, onChange, onSingleOptionsChange, onDependableOptionChange, placeholder, noValueString, isValid, url, customUrl, operatorsUrl, onOptionsLoaded, recordRequiresSearchOptions, readOnly, allowTemplates, interfaceContext, templateFieldProps, showTypeToggle, compact, compactFlush, compactNested, compactPanelProps, commitMode, expandMode, onCommit, operators: operatorsProp, groups, optionsLoader, onValidityChange, optionActions, componentOverrides, inheritedFromParent, autoFocusFirstRequired, ...rest }: IFormEngineProps) => import("react/jsx-runtime").JSX.Element;
181
193
  export default FormEngine;
182
194
  //# sourceMappingURL=FormEngine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormEngine.d.ts","sourceRoot":"","sources":["../../../../src/components/form/engine/FormEngine.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAE7F,OAA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ACtC;4DACwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC1C;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAChD,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACvE;;;;;OAKG;IACH,aAAa,CAAC,EACV,kBAAkB,EAAE,GACpB,CAAC,CAAC,OAAO,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACjC,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,KAAK,kBAAkB,EAAE,CAAC,CAAC;IAChC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEnD;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE9C;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAKD,eAAO,MAAM,UAAU,mhBAoCpB,gBAAgB,4CAguElB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -109,23 +109,23 @@ var reduce_1 = __importDefault(require("lodash/reduce"));
109
109
  var size_1 = __importDefault(require("lodash/size"));
110
110
  var react_2 = __importStar(require("react"));
111
111
  var react_use_1 = require("react-use");
112
- var use_context_selector_1 = require("use-context-selector");
113
112
  var styled_components_1 = __importDefault(require("styled-components"));
113
+ var use_context_selector_1 = require("use-context-selector");
114
114
  var common_1 = require("../../../helpers/common");
115
115
  var options_1 = require("../../../helpers/options");
116
- var fetch_1 = require("../../../utils/fetch");
117
116
  var validations_1 = require("../../../helpers/validations");
118
117
  var useQorusTypes_1 = require("../../../hooks/useQorusTypes");
119
118
  var useTemplates_1 = require("../../../hooks/useTemplates");
119
+ var fetch_1 = require("../../../utils/fetch");
120
120
  var Description_1 = require("../../Description");
121
121
  var FocusedEditing_1 = require("../../FocusedEditing");
122
122
  var Select_1 = require("../fields/select/Select");
123
123
  var TemplateField_1 = require("../fields/template/TemplateField");
124
124
  var CompactRow_1 = require("./CompactRow");
125
125
  var compactRowContext_1 = require("./compactRowContext");
126
+ var compactRowStyles_1 = require("./compactRowStyles");
126
127
  var CompactToolbar_1 = require("./CompactToolbar");
127
128
  var compactToolbarContext_1 = require("./compactToolbarContext");
128
- var compactRowStyles_1 = require("./compactRowStyles");
129
129
  var OptionFieldMessages_1 = require("./OptionFieldMessages");
130
130
  var OptionsHelpDialog_1 = require("./OptionsHelpDialog");
131
131
  var readFirst_1 = require("./readFirst");
@@ -183,10 +183,7 @@ var PositiveColorEffect = {
183
183
  };
184
184
  // Compact (read-first) layout: flat label | value | action rows in collapsible
185
185
  // group panels; colours come in as props so the layout follows the Reqore theme.
186
- var StyledCompactWrap = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-flow: column;\n gap: 10px;\n width: 100%;\n /* Allow the wrap to shrink inside flex/grid parents so its rows' ellipsis can\n engage instead of overflowing the container horizontally. */\n min-width: 0;\n max-width: 100%;\n /* A bit of horizontal breathing room for the whole form (header + content\n alike). Horizontal only \u2014 top padding would break the sticky toolbar's\n flush pin (see the scroll-context note below). Dropped to flush via the\n compactFlush prop, for embeds that own their own gutters (e.g. the\n SchemaDefinition tab body). */\n padding: ", ";\n\n /* Own our scroll context instead of borrowing the host's. The sticky toolbar\n pins to whatever scrolls; if that scroller carries top padding (e.g. a\n ReqorePanel/ReqoreContent body), sticky `top: 0` resolves against its\n padding box and leaves an unblurred strip above the toolbar. By scrolling\n here \u2014 an UNPADDED box \u2014 the toolbar always pins flush and content ghosts\n cleanly beneath it, regardless of host padding (mirrors how the IDE\n dashboard keeps its StyledScrollBody scroller unpadded).\n We cap at the host's available height and scroll past it, but do NOT grow\n to fill it \u2014 short forms still hug their content. When the host height is\n indefinite, `max-height: 100%` resolves to none and the box grows so the\n host scrolls as before (graceful fallback). */\n min-height: 0;\n max-height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n\n /* Option logos (e.g. language images) render as <img> inside ReqoreIcon's\n square box; constrain them so portrait PNGs don't overflow the row. */\n .reqore-icon img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n"], ["\n display: flex;\n flex-flow: column;\n gap: 10px;\n width: 100%;\n /* Allow the wrap to shrink inside flex/grid parents so its rows' ellipsis can\n engage instead of overflowing the container horizontally. */\n min-width: 0;\n max-width: 100%;\n /* A bit of horizontal breathing room for the whole form (header + content\n alike). Horizontal only \u2014 top padding would break the sticky toolbar's\n flush pin (see the scroll-context note below). Dropped to flush via the\n compactFlush prop, for embeds that own their own gutters (e.g. the\n SchemaDefinition tab body). */\n padding: ", ";\n\n /* Own our scroll context instead of borrowing the host's. The sticky toolbar\n pins to whatever scrolls; if that scroller carries top padding (e.g. a\n ReqorePanel/ReqoreContent body), sticky \\`top: 0\\` resolves against its\n padding box and leaves an unblurred strip above the toolbar. By scrolling\n here \u2014 an UNPADDED box \u2014 the toolbar always pins flush and content ghosts\n cleanly beneath it, regardless of host padding (mirrors how the IDE\n dashboard keeps its StyledScrollBody scroller unpadded).\n We cap at the host's available height and scroll past it, but do NOT grow\n to fill it \u2014 short forms still hug their content. When the host height is\n indefinite, \\`max-height: 100%\\` resolves to none and the box grows so the\n host scrolls as before (graceful fallback). */\n min-height: 0;\n max-height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n\n /* Option logos (e.g. language images) render as <img> inside ReqoreIcon's\n square box; constrain them so portrait PNGs don't overflow the row. */\n .reqore-icon img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n"])), function (_a) {
187
- var $flush = _a.$flush;
188
- return ($flush ? '0' : '0 12px');
189
- });
186
+ var StyledCompactWrap = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-flow: column;\n gap: 10px;\n width: 100%;\n /* Allow the wrap to shrink inside flex/grid parents so its rows' ellipsis can\n engage instead of overflowing the container horizontally. */\n min-width: 0;\n max-width: 100%;\n /* Own our scroll context instead of borrowing the host's. The sticky toolbar\n pins to whatever scrolls; if that scroller carries top padding (e.g. a\n ReqorePanel/ReqoreContent body), sticky `top: 0` resolves against its\n padding box and leaves an unblurred strip above the toolbar. By scrolling\n here \u2014 an UNPADDED box \u2014 the toolbar always pins flush and content ghosts\n cleanly beneath it, regardless of host padding (mirrors how the IDE\n dashboard keeps its StyledScrollBody scroller unpadded).\n We cap at the host's available height and scroll past it, but do NOT grow\n to fill it \u2014 short forms still hug their content. When the host height is\n indefinite, `max-height: 100%` resolves to none and the box grows so the\n host scrolls as before (graceful fallback). */\n min-height: 0;\n max-height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n\n /* Option logos (e.g. language images) render as <img> inside ReqoreIcon's\n square box; constrain them so portrait PNGs don't overflow the row. */\n .reqore-icon img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n"], ["\n display: flex;\n flex-flow: column;\n gap: 10px;\n width: 100%;\n /* Allow the wrap to shrink inside flex/grid parents so its rows' ellipsis can\n engage instead of overflowing the container horizontally. */\n min-width: 0;\n max-width: 100%;\n /* Own our scroll context instead of borrowing the host's. The sticky toolbar\n pins to whatever scrolls; if that scroller carries top padding (e.g. a\n ReqorePanel/ReqoreContent body), sticky \\`top: 0\\` resolves against its\n padding box and leaves an unblurred strip above the toolbar. By scrolling\n here \u2014 an UNPADDED box \u2014 the toolbar always pins flush and content ghosts\n cleanly beneath it, regardless of host padding (mirrors how the IDE\n dashboard keeps its StyledScrollBody scroller unpadded).\n We cap at the host's available height and scroll past it, but do NOT grow\n to fill it \u2014 short forms still hug their content. When the host height is\n indefinite, \\`max-height: 100%\\` resolves to none and the box grows so the\n host scrolls as before (graceful fallback). */\n min-height: 0;\n max-height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n\n /* Option logos (e.g. language images) render as <img> inside ReqoreIcon's\n square box; constrain them so portrait PNGs don't overflow the row. */\n .reqore-icon img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n"])));
190
187
  // Batched-commit dock: a floating Save/Discard card pinned bottom-right. Sticky
191
188
  // (not fixed) so it stays within the form's own scroll bounds when the engine
192
189
  // renders inside a drawer/panel; align-self pushes it to the right edge, and it
@@ -335,7 +332,7 @@ var FormEngine = function (_a) {
335
332
  var _b, _c, _d, _f, _g;
336
333
  var name = _a.name, uniqueName = _a.uniqueName, value = _a.value, onChange = _a.onChange, onSingleOptionsChange = _a.onSingleOptionsChange, onDependableOptionChange = _a.onDependableOptionChange, placeholder = _a.placeholder, noValueString = _a.noValueString, // eslint-disable-line @typescript-eslint/no-unused-vars
337
334
  isValid = _a.isValid, // eslint-disable-line @typescript-eslint/no-unused-vars
338
- url = _a.url, customUrl = _a.customUrl, operatorsUrl = _a.operatorsUrl, onOptionsLoaded = _a.onOptionsLoaded, recordRequiresSearchOptions = _a.recordRequiresSearchOptions, readOnly = _a.readOnly, _h = _a.allowTemplates, allowTemplates = _h === void 0 ? true : _h, interfaceContext = _a.interfaceContext, templateFieldProps = _a.templateFieldProps, _j = _a.showTypeToggle, showTypeToggle = _j === void 0 ? true : _j, compact = _a.compact, _k = _a.compactFlush, compactFlush = _k === void 0 ? false : _k, _l = _a.compactNested, compactNested = _l === void 0 ? false : _l, _m = _a.commitMode, commitMode = _m === void 0 ? 'immediate' : _m, _o = _a.expandMode, expandMode = _o === void 0 ? 'single' : _o, onCommit = _a.onCommit, operatorsProp = _a.operators, groups = _a.groups, optionsLoader = _a.optionsLoader, onValidityChange = _a.onValidityChange, optionActions = _a.optionActions, componentOverrides = _a.componentOverrides, inheritedFromParent = _a.inheritedFromParent, autoFocusFirstRequired = _a.autoFocusFirstRequired, rest = __rest(_a, ["name", "uniqueName", "value", "onChange", "onSingleOptionsChange", "onDependableOptionChange", "placeholder", "noValueString", "isValid", "url", "customUrl", "operatorsUrl", "onOptionsLoaded", "recordRequiresSearchOptions", "readOnly", "allowTemplates", "interfaceContext", "templateFieldProps", "showTypeToggle", "compact", "compactFlush", "compactNested", "commitMode", "expandMode", "onCommit", "operators", "groups", "optionsLoader", "onValidityChange", "optionActions", "componentOverrides", "inheritedFromParent", "autoFocusFirstRequired"]);
335
+ url = _a.url, customUrl = _a.customUrl, operatorsUrl = _a.operatorsUrl, onOptionsLoaded = _a.onOptionsLoaded, recordRequiresSearchOptions = _a.recordRequiresSearchOptions, readOnly = _a.readOnly, _h = _a.allowTemplates, allowTemplates = _h === void 0 ? true : _h, interfaceContext = _a.interfaceContext, templateFieldProps = _a.templateFieldProps, _j = _a.showTypeToggle, showTypeToggle = _j === void 0 ? true : _j, compact = _a.compact, _k = _a.compactFlush, compactFlush = _k === void 0 ? false : _k, _l = _a.compactNested, compactNested = _l === void 0 ? false : _l, compactPanelProps = _a.compactPanelProps, _m = _a.commitMode, commitMode = _m === void 0 ? 'immediate' : _m, _o = _a.expandMode, expandMode = _o === void 0 ? 'single' : _o, onCommit = _a.onCommit, operatorsProp = _a.operators, groups = _a.groups, optionsLoader = _a.optionsLoader, onValidityChange = _a.onValidityChange, optionActions = _a.optionActions, componentOverrides = _a.componentOverrides, inheritedFromParent = _a.inheritedFromParent, autoFocusFirstRequired = _a.autoFocusFirstRequired, rest = __rest(_a, ["name", "uniqueName", "value", "onChange", "onSingleOptionsChange", "onDependableOptionChange", "placeholder", "noValueString", "isValid", "url", "customUrl", "operatorsUrl", "onOptionsLoaded", "recordRequiresSearchOptions", "readOnly", "allowTemplates", "interfaceContext", "templateFieldProps", "showTypeToggle", "compact", "compactFlush", "compactNested", "compactPanelProps", "commitMode", "expandMode", "onCommit", "operators", "groups", "optionsLoader", "onValidityChange", "optionActions", "componentOverrides", "inheritedFromParent", "autoFocusFirstRequired"]);
339
336
  var _p = (0, react_2.useState)((rest === null || rest === void 0 ? void 0 : rest.options) || undefined), options = _p[0], setOptions = _p[1];
340
337
  // optionsLoader lifecycle: loading feeds the skeleton gate, error the banner.
341
338
  var _q = (0, react_2.useState)(!!optionsLoader && !(rest === null || rest === void 0 ? void 0 : rest.options)), optionsLoading = _q[0], setOptionsLoading = _q[1];
@@ -1228,7 +1225,9 @@ var FormEngine = function (_a) {
1228
1225
  var operatorParts = (0, exports.fixOperatorValue)(other.op);
1229
1226
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(function () {
1230
1227
  var _a;
1231
- var schemaMsgs = (suppressSchemaMessages ? [] : ((_a = options === null || options === void 0 ? void 0 : options[optionName]) === null || _a === void 0 ? void 0 : _a.messages) || []);
1228
+ var schemaMsgs = (suppressSchemaMessages ?
1229
+ []
1230
+ : ((_a = options === null || options === void 0 ? void 0 : options[optionName]) === null || _a === void 0 ? void 0 : _a.messages) || []);
1232
1231
  if (!schemaMsgs.length)
1233
1232
  return null;
1234
1233
  var items = schemaMsgs.map(function (_a, index) {
@@ -1479,7 +1478,10 @@ var FormEngine = function (_a) {
1479
1478
  handleResetToDefaultFields,
1480
1479
  handleRevertChangesClick,
1481
1480
  ]);
1482
- var compactHeaderActions = (0, react_2.useMemo)(function () { return [{ as: CompactToolbar_1.CompactToolbar, responsive: false }]; }, []);
1481
+ // The engine's own toolbar action, plus whatever the consumer added through
1482
+ // `compactPanelProps.actions` — appended, so an outside action can never
1483
+ // knock the form's toolbar out of the header.
1484
+ var compactHeaderActions = (0, react_2.useMemo)(function () { return __spreadArray([{ as: CompactToolbar_1.CompactToolbar, responsive: false }], ((compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.actions) || []), true); }, [compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.actions]);
1483
1485
  var renderCompact = function () {
1484
1486
  var headerBg = "".concat((0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.02)).concat((0, colors_1.percentToHexAlpha)(88));
1485
1487
  // Toolbar filters narrow the listed rows; the meter reflects the full set.
@@ -1662,20 +1664,13 @@ var FormEngine = function (_a) {
1662
1664
  // nested (arg_schema) sub-form owns no scroll context — drop the
1663
1665
  // sticky, the backdrop, and the stacking context so its header is
1664
1666
  // transparent inside the parent's card.
1665
- , { "$headerBg": compactNested ? 'transparent' : headerBg, "$nested": compactNested, flat: true,
1667
+ , __assign({ "$headerBg": compactNested ? 'transparent' : headerBg, "$nested": compactNested, flat: true, raised: true, minimal: true,
1666
1668
  // No panel background: the form sits transparently on whatever
1667
1669
  // hosts it (page, drawer, or — for an arg_schema field — the
1668
1670
  // parent's edit card) instead of stacking its own dark surface.
1669
1671
  // The status boxes keep their own tints; the sticky toolbar keeps
1670
1672
  // its blurred header via the $headerBg override.
1671
- transparent: true, stickyHeader: !compactNested, padded: false, actions: compactHeaderActions, contentStyle: {
1672
- display: 'flex',
1673
- flexFlow: 'column',
1674
- gap: '10px',
1675
- // Nested sub-form: no surrounding panel padding (it's flush in
1676
- // the parent card); top-level keeps a small bottom gutter.
1677
- padding: compactNested ? '0' : '0 0 12px',
1678
- }, children: [(0, size_1.default)(groupKeys) === 0 ?
1673
+ stickyHeader: !compactNested }, compactPanelProps, { actions: compactHeaderActions, contentStyle: __assign({ display: 'flex', flexFlow: 'column', gap: '10px' }, compactPanelProps === null || compactPanelProps === void 0 ? void 0 : compactPanelProps.contentStyle), children: [(0, size_1.default)(groupKeys) === 0 ?
1679
1674
  (0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { flat: true, opaque: false, size: 'small', children: "No fields match the current filters." })
1680
1675
  : null, STATUS_BOXES.map(function (box) {
1681
1676
  var groupsInBox = bucketGroups[box.key];
@@ -1712,7 +1707,7 @@ var FormEngine = function (_a) {
1712
1707
  }, children: groupConfig.subtitle })
1713
1708
  : null, renderGroupRows(buckets[box.key][groupName])] }, groupName));
1714
1709
  }) }) }, box.key));
1715
- })] }), commitMode === 'batched' && !readOnly && dirtyOptionNames.length ?
1710
+ })] })), commitMode === 'batched' && !readOnly && dirtyOptionNames.length ?
1716
1711
  (0, jsx_runtime_1.jsx)(StyledCommitDock, { "$bg": cBg, "$border": cDivider, children: (0, jsx_runtime_1.jsxs)(reqore_1.ReqoreControlGroup, { className: 'options-readfirst-commitbar', verticalAlign: 'center', wrap: true, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreTag, { size: 'tiny', minimal: true, flat: true, compact: true, effect: { uppercase: true, spaced: 1 }, intent: 'warning', icon: 'EditLine', label: "".concat(dirtyOptionNames.length, " unsaved change").concat(dirtyOptionNames.length === 1 ? '' : 's') }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { size: 'small', intent: 'success', icon: 'CheckLine', fixed: true, className: 'options-readfirst-save', disabled: !validityData.isValid, tooltip: validityData.isValid ?
1717
1712
  'Apply the staged changes'
1718
1713
  : 'Resolve the invalid fields before saving', onClick: handleCommitClick, children: "Save" }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { size: 'small', minimal: true, flat: true, fixed: true, icon: 'HistoryLine', className: 'options-readfirst-discard', onClick: handleRevertChangesClick, children: "Discard" })] }) })