@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260326104921 → 0.8.1-dev.20260326110644

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/dist/index.d.mts CHANGED
@@ -1,37 +1,28 @@
1
- import React, { ComponentType } from 'react';
2
-
3
- type WidgetRegistryType = Record<string, ComponentType<any>>;
4
- declare function registerWidgets(widgets: WidgetRegistryType): void;
5
- declare function getWidget(code: string): ComponentType<any> | undefined;
1
+ import React from 'react';
6
2
 
7
3
  interface ViewControlProps {
8
4
  value?: any;
9
- controlType?: string;
5
+ controlType: string;
10
6
  format?: string;
11
7
  width?: string;
12
8
  apiBaseUrl?: string;
13
- customProps?: Record<string, unknown>;
9
+ customProps?: Record<string, any>;
14
10
  }
15
11
 
16
- declare const ViewControl: React.FC<ViewControlProps>;
12
+ declare const ViewControl: React.ForwardRefExoticComponent<ViewControlProps & React.RefAttributes<HTMLDivElement>>;
17
13
 
18
14
  declare const ViewControlTypes: {
19
- lineText: string;
20
- asset: string;
21
- multilineTextBullets: string;
22
- money: string;
23
- date: string;
24
- time: string;
25
- datetime: string;
26
- number: string;
27
- multilineText: string;
28
- moneyText: string;
29
- percentage: string;
30
- statusBg: string;
31
- progressIndicator: string;
32
- timeUntilStarts: string;
33
- timeUntilStartsStyled: string;
34
- aiGeneratedSummary: string;
15
+ lineTextView: string;
16
+ emailTextView: string;
17
+ multilineTextBulletsView: string;
18
+ moneyView: string;
19
+ numberView: string;
20
+ dateView: string;
21
+ statusView: string;
22
+ statusBgView: string;
23
+ multilinetextView: string;
24
+ booleanView: string;
25
+ text: string;
35
26
  };
36
27
 
37
28
  interface InputCallbackValues<T> {
@@ -200,7 +191,7 @@ interface Session {
200
191
  interface PageBodyRendererProps {
201
192
  rawBody?: string;
202
193
  routeParameters?: {
203
- [key: string]: unknown;
194
+ [key: string]: any;
204
195
  };
205
196
  query?: {
206
197
  [key: string]: string;
@@ -209,13 +200,7 @@ interface PageBodyRendererProps {
209
200
  host: string;
210
201
  path: string;
211
202
  apiBaseUrl: string;
212
- breadcrumb?: string;
213
- donotApplyContainerClass?: boolean;
214
- donotApplyContainerLargeClass?: boolean;
215
- serviceClient?: ServiceClientInterface;
216
- assetBaseUrl?: string;
217
- device?: string;
218
203
  }
219
204
  declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
220
205
 
221
- export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes, type WidgetRegistryType, getWidget, registerWidgets };
206
+ export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes };
package/dist/index.d.ts CHANGED
@@ -1,37 +1,28 @@
1
- import React, { ComponentType } from 'react';
2
-
3
- type WidgetRegistryType = Record<string, ComponentType<any>>;
4
- declare function registerWidgets(widgets: WidgetRegistryType): void;
5
- declare function getWidget(code: string): ComponentType<any> | undefined;
1
+ import React from 'react';
6
2
 
7
3
  interface ViewControlProps {
8
4
  value?: any;
9
- controlType?: string;
5
+ controlType: string;
10
6
  format?: string;
11
7
  width?: string;
12
8
  apiBaseUrl?: string;
13
- customProps?: Record<string, unknown>;
9
+ customProps?: Record<string, any>;
14
10
  }
15
11
 
16
- declare const ViewControl: React.FC<ViewControlProps>;
12
+ declare const ViewControl: React.ForwardRefExoticComponent<ViewControlProps & React.RefAttributes<HTMLDivElement>>;
17
13
 
18
14
  declare const ViewControlTypes: {
19
- lineText: string;
20
- asset: string;
21
- multilineTextBullets: string;
22
- money: string;
23
- date: string;
24
- time: string;
25
- datetime: string;
26
- number: string;
27
- multilineText: string;
28
- moneyText: string;
29
- percentage: string;
30
- statusBg: string;
31
- progressIndicator: string;
32
- timeUntilStarts: string;
33
- timeUntilStartsStyled: string;
34
- aiGeneratedSummary: string;
15
+ lineTextView: string;
16
+ emailTextView: string;
17
+ multilineTextBulletsView: string;
18
+ moneyView: string;
19
+ numberView: string;
20
+ dateView: string;
21
+ statusView: string;
22
+ statusBgView: string;
23
+ multilinetextView: string;
24
+ booleanView: string;
25
+ text: string;
35
26
  };
36
27
 
37
28
  interface InputCallbackValues<T> {
@@ -200,7 +191,7 @@ interface Session {
200
191
  interface PageBodyRendererProps {
201
192
  rawBody?: string;
202
193
  routeParameters?: {
203
- [key: string]: unknown;
194
+ [key: string]: any;
204
195
  };
205
196
  query?: {
206
197
  [key: string]: string;
@@ -209,13 +200,7 @@ interface PageBodyRendererProps {
209
200
  host: string;
210
201
  path: string;
211
202
  apiBaseUrl: string;
212
- breadcrumb?: string;
213
- donotApplyContainerClass?: boolean;
214
- donotApplyContainerLargeClass?: boolean;
215
- serviceClient?: ServiceClientInterface;
216
- assetBaseUrl?: string;
217
- device?: string;
218
203
  }
219
204
  declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
220
205
 
221
- export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes, type WidgetRegistryType, getWidget, registerWidgets };
206
+ export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes };