@praxisui/manual-form 8.0.0-beta.7 → 8.0.0-beta.71

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/package.json CHANGED
@@ -1,14 +1,20 @@
1
1
  {
2
2
  "name": "@praxisui/manual-form",
3
- "version": "8.0.0-beta.7",
3
+ "version": "8.0.0-beta.71",
4
4
  "description": "Manual form toolkit for Praxis UI: container, instance factory and editor bridge for @praxisui/* fields.",
5
5
  "peerDependencies": {
6
- "@angular/common": "^20.1.0",
7
- "@angular/core": "^20.1.0",
8
- "@praxisui/core": "^8.0.0-beta.7",
9
- "@praxisui/dynamic-fields": "^8.0.0-beta.7",
10
- "@praxisui/settings-panel": "^8.0.0-beta.7",
11
- "@praxisui/metadata-editor": "^8.0.0-beta.7"
6
+ "@angular/common": "^21.0.0",
7
+ "@angular/core": "^21.0.0",
8
+ "@praxisui/core": "^8.0.0-beta.71",
9
+ "@praxisui/dynamic-fields": "^8.0.0-beta.71",
10
+ "@praxisui/settings-panel": "^8.0.0-beta.71",
11
+ "@praxisui/metadata-editor": "^8.0.0-beta.71",
12
+ "@angular/cdk": "^21.0.0",
13
+ "@angular/forms": "^21.0.0",
14
+ "@angular/material": "^21.0.0",
15
+ "@angular/router": "^21.0.0",
16
+ "@praxisui/ai": "^8.0.0-beta.71",
17
+ "rxjs": "~7.8.0"
12
18
  },
13
19
  "dependencies": {
14
20
  "tslib": "^2.3.0"
@@ -35,14 +41,15 @@
35
41
  ],
36
42
  "sideEffects": false,
37
43
  "module": "fesm2022/praxisui-manual-form.mjs",
38
- "typings": "index.d.ts",
44
+ "typings": "types/praxisui-manual-form.d.ts",
39
45
  "exports": {
40
46
  "./package.json": {
41
47
  "default": "./package.json"
42
48
  },
43
49
  ".": {
44
- "types": "./index.d.ts",
50
+ "types": "./types/praxisui-manual-form.d.ts",
45
51
  "default": "./fesm2022/praxisui-manual-form.mjs"
46
52
  }
47
- }
53
+ },
54
+ "type": "module"
48
55
  }
@@ -1,9 +1,9 @@
1
- import { FormConfig, FieldMetadata, DynamicFormService, AsyncConfigStorage, FormActionsLayout, FormActionButton, AiCapability, FormMessagesLayout, FormBehaviorLayout, FormHookStage, FieldDefinition, FieldControlType, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
1
+ import { FormConfig, FieldMetadata, DynamicFormService, AsyncConfigStorage, FormActionsLayout, FormActionButton, AiCapability, FormMessagesLayout, FormBehaviorLayout, FormHookStage, FieldDefinition, FieldControlType, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
2
2
  import { FormGroup, FormControlName, FormGroupName, AbstractControl, FormControl } from '@angular/forms';
3
3
  import { Observable, BehaviorSubject } from 'rxjs';
4
4
  import * as _angular_core from '@angular/core';
5
5
  import { AfterContentInit, OnDestroy, OnInit, OnChanges, TemplateRef, ViewContainerRef, SimpleChanges, InjectionToken } from '@angular/core';
6
- import { BaseAiAdapter, PatchResult } from '@praxisui/ai';
6
+ import { BaseAiAdapter, PatchResult, PraxisAssistantTurnViewState, PraxisAssistantShellLayout, PraxisAssistantShellLabels, PraxisAssistantSessionSnapshot, PraxisAssistantShellQuickReply, PraxisAssistantShellMessage } from '@praxisui/ai';
7
7
  import { SettingsPanelRef } from '@praxisui/settings-panel';
8
8
 
9
9
  type ManualFormId = string;
@@ -154,10 +154,15 @@ declare class ManualFormActionsComponent {
154
154
  declare class ManualFormAiAdapter extends BaseAiAdapter<FormConfig> {
155
155
  private host;
156
156
  componentName: string;
157
+ componentId: string;
158
+ componentType: string;
157
159
  constructor(host: ManualFormComponent);
158
160
  getCurrentConfig(): FormConfig;
159
161
  getCapabilities(): AiCapability[];
160
162
  getRuntimeState(): Record<string, any>;
163
+ getDataProfile(): Record<string, any>;
164
+ getSchemaFields(): Record<string, any>[];
165
+ getAuthoringContext(): Record<string, any>;
161
166
  createSnapshot(): FormConfig;
162
167
  restoreSnapshot(snapshot: FormConfig): Promise<void>;
163
168
  applyPatch(patch: Partial<FormConfig>, _intent?: string): Promise<PatchResult>;
@@ -179,6 +184,10 @@ declare class ManualFormComponent implements AfterContentInit, OnDestroy {
179
184
  private readonly fieldKeyService;
180
185
  private readonly platformId;
181
186
  private readonly route;
187
+ private readonly aiApi;
188
+ private readonly assistantSessions;
189
+ private readonly aiTurnOrchestrator;
190
+ private readonly aiAssistantSessionEffect;
182
191
  private warnedMissingId;
183
192
  private readonly disableSelectorDefaults;
184
193
  private readonly selectorToControlType;
@@ -216,6 +225,13 @@ declare class ManualFormComponent implements AfterContentInit, OnDestroy {
216
225
  instance?: ManualFormInstance;
217
226
  resolvedActions?: FormActionsLayout;
218
227
  aiAdapter: ManualFormAiAdapter;
228
+ aiAssistantOpen: boolean;
229
+ aiAssistantPrompt: string;
230
+ aiAssistantViewState: PraxisAssistantTurnViewState | null;
231
+ aiAssistantLayout: PraxisAssistantShellLayout;
232
+ readonly aiAssistantLabels: Partial<PraxisAssistantShellLabels>;
233
+ private aiAssistantController;
234
+ private aiAssistantStateSubscription;
219
235
  formGroup: FormGroup;
220
236
  private readonly registeredDirectives;
221
237
  constructor();
@@ -246,6 +262,32 @@ declare class ManualFormComponent implements AfterContentInit, OnDestroy {
246
262
  /** Opens a simple form-level editor listing the fields and their visibility. */
247
263
  openFormEditor(): Promise<void>;
248
264
  applyConfigFromAdapter(config: FormConfig): void;
265
+ openAiAssistant(): void;
266
+ openAiAssistantFromSession(session: PraxisAssistantSessionSnapshot): void;
267
+ closeAiAssistant(): void;
268
+ onAiAssistantPromptChange(prompt: string): void;
269
+ onAiAssistantSubmit(prompt: string): void;
270
+ onAiAssistantApply(): void;
271
+ onAiAssistantRetry(): void;
272
+ onAiAssistantCancel(): void;
273
+ onAiAssistantQuickReply(reply: PraxisAssistantShellQuickReply): void;
274
+ onAiAssistantEditMessage(message: PraxisAssistantShellMessage): void;
275
+ onAiAssistantResendMessage(message: PraxisAssistantShellMessage): void;
276
+ onAiAssistantLayoutChange(layout: PraxisAssistantShellLayout): void;
277
+ private initializeAiAssistantController;
278
+ private buildAiAssistantContextItems;
279
+ private buildAiAssistantContextSnapshot;
280
+ private syncAiAssistantSession;
281
+ private hasAiAssistantSessionState;
282
+ private resolveAiAssistantSessionId;
283
+ private resolveAiAssistantOwnerId;
284
+ private safeAiAssistantFormId;
285
+ private resolveAiAssistantRouteKey;
286
+ private resolveAiAssistantSummary;
287
+ private resolveAiAssistantBadge;
288
+ private resolveAiAssistantIcon;
289
+ private collectAiAssistantFieldNames;
290
+ private collectAiAssistantCounts;
249
291
  private initialize;
250
292
  private collectFields;
251
293
  private componentKeyId;
@@ -524,5 +566,7 @@ interface CapabilityCatalog extends AiCapabilityCatalog {
524
566
  }
525
567
  declare const MANUAL_FORM_AI_CAPABILITIES: CapabilityCatalog;
526
568
 
527
- export { MANUAL_FORM_AI_CAPABILITIES, MANUAL_FORM_CONSTRUCTOR_TO_CONTROL_TYPE, MANUAL_FORM_SELECTOR_TO_CONTROL_TYPE, ManualFieldDirective, ManualFieldEditorOnDblclickDirective, ManualFieldKeyService, ManualFieldMetadataBridgeService, ManualFormActionsComponent, ManualFormComponent, ManualFormConfigEditorComponent, ManualFormDocExampleComponent, ManualFormDocExampleShowcaseComponent, ManualFormHeaderComponent, ManualFormInstance, ManualFormInstanceFactory, createManualFormSeed, toFieldMetadataMap };
569
+ declare const PRAXIS_MANUAL_FORM_AUTHORING_MANIFEST: ComponentAuthoringManifest;
570
+
571
+ export { MANUAL_FORM_AI_CAPABILITIES, MANUAL_FORM_CONSTRUCTOR_TO_CONTROL_TYPE, MANUAL_FORM_SELECTOR_TO_CONTROL_TYPE, ManualFieldDirective, ManualFieldEditorOnDblclickDirective, ManualFieldKeyService, ManualFieldMetadataBridgeService, ManualFormActionsComponent, ManualFormComponent, ManualFormConfigEditorComponent, ManualFormDocExampleComponent, ManualFormDocExampleShowcaseComponent, ManualFormHeaderComponent, ManualFormInstance, ManualFormInstanceFactory, PRAXIS_MANUAL_FORM_AUTHORING_MANIFEST, createManualFormSeed, toFieldMetadataMap };
528
572
  export type { Capability, CapabilityCatalog, CapabilityCategory, ManualFieldKeyResolution, ManualFieldMetadataMap, ManualFormDocExampleLevel, ManualFormDocExampleTab, ManualFormId, ManualFormPersistenceOptions, ManualFormSeed, ManualFormSeedOptions, ManualFormSnapshot, ManualFormState, ValueKind };