legalesign-document-viewer-react 0.2.10 → 0.2.11

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.
@@ -49,7 +49,10 @@ export const LsDocumentOptions = /*@__PURE__*/ createComponent({
49
49
  elementClass: LsDocumentOptionsElement,
50
50
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
51
51
  react: React,
52
- events: {},
52
+ events: {
53
+ onMutate: 'mutate',
54
+ onUpdate: 'update'
55
+ },
53
56
  defineCustomElement: defineLsDocumentOptions
54
57
  });
55
58
  export const LsDocumentViewer = /*@__PURE__*/ createComponent({
@@ -106,7 +109,10 @@ export const LsFieldContent = /*@__PURE__*/ createComponent({
106
109
  elementClass: LsFieldContentElement,
107
110
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
108
111
  react: React,
109
- events: {},
112
+ events: {
113
+ onMutate: 'mutate',
114
+ onUpdate: 'update'
115
+ },
110
116
  defineCustomElement: defineLsFieldContent
111
117
  });
112
118
  export const LsFieldDimensions = /*@__PURE__*/ createComponent({
@@ -295,7 +301,7 @@ export const LsFormfield = /*@__PURE__*/ createComponent({
295
301
  elementClass: LsFormfieldElement,
296
302
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
297
303
  react: React,
298
- events: {},
304
+ events: { onValueChange: 'valueChange' },
299
305
  defineCustomElement: defineLsFormfield
300
306
  });
301
307
  export const LsIcon = /*@__PURE__*/ createComponent({
@@ -393,7 +399,7 @@ export const LsTextInput = /*@__PURE__*/ createComponent({
393
399
  elementClass: LsTextInputElement,
394
400
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
395
401
  react: React,
396
- events: {},
402
+ events: { onValueChange: 'valueChange' },
397
403
  defineCustomElement: defineLsTextInput
398
404
  });
399
405
  export const LsTextareaInput = /*@__PURE__*/ createComponent({
@@ -409,7 +415,7 @@ export const LsToggle = /*@__PURE__*/ createComponent({
409
415
  elementClass: LsToggleElement,
410
416
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
411
417
  react: React,
412
- events: {},
418
+ events: { onValueChange: 'valueChange' },
413
419
  defineCustomElement: defineLsToggle
414
420
  });
415
421
  export const LsToolbar = /*@__PURE__*/ createComponent({
@@ -3,7 +3,7 @@
3
3
  * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
4
  */
5
5
  import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
6
- import { type LSApiElement, type LSMutateEvent, type LsDocumentViewerCustomEvent, type LsFieldAlignmentCustomEvent, type LsFieldDimensionsCustomEvent, type LsFieldDistributeCustomEvent, type LsFieldFooterCustomEvent, type LsFieldFormatCustomEvent, type LsFieldPlacementCustomEvent, type LsFieldPropertiesAdvancedCustomEvent, type LsFieldSizeCustomEvent, type LsParticipantCardCustomEvent, type LsParticipantManagerCustomEvent, type LsParticipantSelectCustomEvent, type LsToolbarCustomEvent } from "legalesign-document-viewer";
6
+ import { type LSApiElement, type LSMutateEvent, type LsDocumentOptionsCustomEvent, type LsDocumentViewerCustomEvent, type LsFieldAlignmentCustomEvent, type LsFieldContentCustomEvent, type LsFieldDimensionsCustomEvent, type LsFieldDistributeCustomEvent, type LsFieldFooterCustomEvent, type LsFieldFormatCustomEvent, type LsFieldPlacementCustomEvent, type LsFieldPropertiesAdvancedCustomEvent, type LsFieldSizeCustomEvent, type LsParticipantCardCustomEvent, type LsParticipantManagerCustomEvent, type LsParticipantSelectCustomEvent, type LsToolbarCustomEvent } from "legalesign-document-viewer";
7
7
  import { LsDocumentOptions as LsDocumentOptionsElement } from "legalesign-document-viewer/dist/components/ls-document-options.js";
8
8
  import { LsDocumentViewer as LsDocumentViewerElement } from "legalesign-document-viewer/dist/components/ls-document-viewer.js";
9
9
  import { LsEditorField as LsEditorFieldElement } from "legalesign-document-viewer/dist/components/ls-editor-field.js";
@@ -47,7 +47,10 @@ import { LsTextareaInput as LsTextareaInputElement } from "legalesign-document-v
47
47
  import { LsToggle as LsToggleElement } from "legalesign-document-viewer/dist/components/ls-toggle.js";
48
48
  import { LsToolbar as LsToolbarElement } from "legalesign-document-viewer/dist/components/ls-toolbar.js";
49
49
  import { LsToolboxField as LsToolboxFieldElement } from "legalesign-document-viewer/dist/components/ls-toolbox-field.js";
50
- export type LsDocumentOptionsEvents = NonNullable<unknown>;
50
+ export type LsDocumentOptionsEvents = {
51
+ onMutate: EventName<LsDocumentOptionsCustomEvent<LSMutateEvent[]>>;
52
+ onUpdate: EventName<LsDocumentOptionsCustomEvent<LSMutateEvent[]>>;
53
+ };
51
54
  export declare const LsDocumentOptions: StencilReactComponent<LsDocumentOptionsElement, LsDocumentOptionsEvents>;
52
55
  export type LsDocumentViewerEvents = {
53
56
  onPageRendered: EventName<CustomEvent<number>>;
@@ -70,7 +73,10 @@ export type LsFieldAlignmentEvents = {
70
73
  onUpdate: EventName<LsFieldAlignmentCustomEvent<LSMutateEvent[]>>;
71
74
  };
72
75
  export declare const LsFieldAlignment: StencilReactComponent<LsFieldAlignmentElement, LsFieldAlignmentEvents>;
73
- export type LsFieldContentEvents = NonNullable<unknown>;
76
+ export type LsFieldContentEvents = {
77
+ onMutate: EventName<LsFieldContentCustomEvent<LSMutateEvent[]>>;
78
+ onUpdate: EventName<LsFieldContentCustomEvent<LSMutateEvent[]>>;
79
+ };
74
80
  export declare const LsFieldContent: StencilReactComponent<LsFieldContentElement, LsFieldContentEvents>;
75
81
  export type LsFieldDimensionsEvents = {
76
82
  onMutate: EventName<LsFieldDimensionsCustomEvent<LSMutateEvent[]>>;
@@ -133,7 +139,9 @@ export type LsFieldSizeEvents = {
133
139
  export declare const LsFieldSize: StencilReactComponent<LsFieldSizeElement, LsFieldSizeEvents>;
134
140
  export type LsFieldTypeDisplayEvents = NonNullable<unknown>;
135
141
  export declare const LsFieldTypeDisplay: StencilReactComponent<LsFieldTypeDisplayElement, LsFieldTypeDisplayEvents>;
136
- export type LsFormfieldEvents = NonNullable<unknown>;
142
+ export type LsFormfieldEvents = {
143
+ onValueChange: EventName<CustomEvent<string>>;
144
+ };
137
145
  export declare const LsFormfield: StencilReactComponent<LsFormfieldElement, LsFormfieldEvents>;
138
146
  export type LsIconEvents = NonNullable<unknown>;
139
147
  export declare const LsIcon: StencilReactComponent<LsIconElement, LsIconEvents>;
@@ -165,11 +173,15 @@ export type LsSelectInputEvents = NonNullable<unknown>;
165
173
  export declare const LsSelectInput: StencilReactComponent<LsSelectInputElement, LsSelectInputEvents>;
166
174
  export type LsStatusbarEvents = NonNullable<unknown>;
167
175
  export declare const LsStatusbar: StencilReactComponent<LsStatusbarElement, LsStatusbarEvents>;
168
- export type LsTextInputEvents = NonNullable<unknown>;
176
+ export type LsTextInputEvents = {
177
+ onValueChange: EventName<CustomEvent<string>>;
178
+ };
169
179
  export declare const LsTextInput: StencilReactComponent<LsTextInputElement, LsTextInputEvents>;
170
180
  export type LsTextareaInputEvents = NonNullable<unknown>;
171
181
  export declare const LsTextareaInput: StencilReactComponent<LsTextareaInputElement, LsTextareaInputEvents>;
172
- export type LsToggleEvents = NonNullable<unknown>;
182
+ export type LsToggleEvents = {
183
+ onValueChange: EventName<CustomEvent<boolean>>;
184
+ };
173
185
  export declare const LsToggle: StencilReactComponent<LsToggleElement, LsToggleEvents>;
174
186
  export type LsToolbarEvents = {
175
187
  onMutate: EventName<LsToolbarCustomEvent<LSMutateEvent[]>>;
@@ -9,7 +9,7 @@
9
9
 
10
10
  import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
11
11
  import { createComponent } from '@stencil/react-output-target/runtime';
12
- import { type LSApiElement, type LSMutateEvent, type LsDocumentViewerCustomEvent, type LsFieldAlignmentCustomEvent, type LsFieldDimensionsCustomEvent, type LsFieldDistributeCustomEvent, type LsFieldFooterCustomEvent, type LsFieldFormatCustomEvent, type LsFieldPlacementCustomEvent, type LsFieldPropertiesAdvancedCustomEvent, type LsFieldSizeCustomEvent, type LsParticipantCardCustomEvent, type LsParticipantManagerCustomEvent, type LsParticipantSelectCustomEvent, type LsToolbarCustomEvent } from "legalesign-document-viewer";
12
+ import { type LSApiElement, type LSMutateEvent, type LsDocumentOptionsCustomEvent, type LsDocumentViewerCustomEvent, type LsFieldAlignmentCustomEvent, type LsFieldContentCustomEvent, type LsFieldDimensionsCustomEvent, type LsFieldDistributeCustomEvent, type LsFieldFooterCustomEvent, type LsFieldFormatCustomEvent, type LsFieldPlacementCustomEvent, type LsFieldPropertiesAdvancedCustomEvent, type LsFieldSizeCustomEvent, type LsParticipantCardCustomEvent, type LsParticipantManagerCustomEvent, type LsParticipantSelectCustomEvent, type LsToolbarCustomEvent } from "legalesign-document-viewer";
13
13
  import { LsDocumentOptions as LsDocumentOptionsElement, defineCustomElement as defineLsDocumentOptions } from "legalesign-document-viewer/dist/components/ls-document-options.js";
14
14
  import { LsDocumentViewer as LsDocumentViewerElement, defineCustomElement as defineLsDocumentViewer } from "legalesign-document-viewer/dist/components/ls-document-viewer.js";
15
15
  import { LsEditorField as LsEditorFieldElement, defineCustomElement as defineLsEditorField } from "legalesign-document-viewer/dist/components/ls-editor-field.js";
@@ -55,14 +55,20 @@ import { LsToolbar as LsToolbarElement, defineCustomElement as defineLsToolbar }
55
55
  import { LsToolboxField as LsToolboxFieldElement, defineCustomElement as defineLsToolboxField } from "legalesign-document-viewer/dist/components/ls-toolbox-field.js";
56
56
  import React from 'react';
57
57
 
58
- export type LsDocumentOptionsEvents = NonNullable<unknown>;
58
+ export type LsDocumentOptionsEvents = {
59
+ onMutate: EventName<LsDocumentOptionsCustomEvent<LSMutateEvent[]>>,
60
+ onUpdate: EventName<LsDocumentOptionsCustomEvent<LSMutateEvent[]>>
61
+ };
59
62
 
60
63
  export const LsDocumentOptions: StencilReactComponent<LsDocumentOptionsElement, LsDocumentOptionsEvents> = /*@__PURE__*/ createComponent<LsDocumentOptionsElement, LsDocumentOptionsEvents>({
61
64
  tagName: 'ls-document-options',
62
65
  elementClass: LsDocumentOptionsElement,
63
66
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
64
67
  react: React,
65
- events: {} as LsDocumentOptionsEvents,
68
+ events: {
69
+ onMutate: 'mutate',
70
+ onUpdate: 'update'
71
+ } as LsDocumentOptionsEvents,
66
72
  defineCustomElement: defineLsDocumentOptions
67
73
  });
68
74
 
@@ -139,14 +145,20 @@ export const LsFieldAlignment: StencilReactComponent<LsFieldAlignmentElement, Ls
139
145
  defineCustomElement: defineLsFieldAlignment
140
146
  });
141
147
 
142
- export type LsFieldContentEvents = NonNullable<unknown>;
148
+ export type LsFieldContentEvents = {
149
+ onMutate: EventName<LsFieldContentCustomEvent<LSMutateEvent[]>>,
150
+ onUpdate: EventName<LsFieldContentCustomEvent<LSMutateEvent[]>>
151
+ };
143
152
 
144
153
  export const LsFieldContent: StencilReactComponent<LsFieldContentElement, LsFieldContentEvents> = /*@__PURE__*/ createComponent<LsFieldContentElement, LsFieldContentEvents>({
145
154
  tagName: 'ls-field-content',
146
155
  elementClass: LsFieldContentElement,
147
156
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
148
157
  react: React,
149
- events: {} as LsFieldContentEvents,
158
+ events: {
159
+ onMutate: 'mutate',
160
+ onUpdate: 'update'
161
+ } as LsFieldContentEvents,
150
162
  defineCustomElement: defineLsFieldContent
151
163
  });
152
164
 
@@ -412,14 +424,14 @@ export const LsFieldTypeDisplay: StencilReactComponent<LsFieldTypeDisplayElement
412
424
  defineCustomElement: defineLsFieldTypeDisplay
413
425
  });
414
426
 
415
- export type LsFormfieldEvents = NonNullable<unknown>;
427
+ export type LsFormfieldEvents = { onValueChange: EventName<CustomEvent<string>> };
416
428
 
417
429
  export const LsFormfield: StencilReactComponent<LsFormfieldElement, LsFormfieldEvents> = /*@__PURE__*/ createComponent<LsFormfieldElement, LsFormfieldEvents>({
418
430
  tagName: 'ls-formfield',
419
431
  elementClass: LsFormfieldElement,
420
432
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
421
433
  react: React,
422
- events: {} as LsFormfieldEvents,
434
+ events: { onValueChange: 'valueChange' } as LsFormfieldEvents,
423
435
  defineCustomElement: defineLsFormfield
424
436
  });
425
437
 
@@ -553,14 +565,14 @@ export const LsStatusbar: StencilReactComponent<LsStatusbarElement, LsStatusbarE
553
565
  defineCustomElement: defineLsStatusbar
554
566
  });
555
567
 
556
- export type LsTextInputEvents = NonNullable<unknown>;
568
+ export type LsTextInputEvents = { onValueChange: EventName<CustomEvent<string>> };
557
569
 
558
570
  export const LsTextInput: StencilReactComponent<LsTextInputElement, LsTextInputEvents> = /*@__PURE__*/ createComponent<LsTextInputElement, LsTextInputEvents>({
559
571
  tagName: 'ls-text-input',
560
572
  elementClass: LsTextInputElement,
561
573
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
562
574
  react: React,
563
- events: {} as LsTextInputEvents,
575
+ events: { onValueChange: 'valueChange' } as LsTextInputEvents,
564
576
  defineCustomElement: defineLsTextInput
565
577
  });
566
578
 
@@ -575,14 +587,14 @@ export const LsTextareaInput: StencilReactComponent<LsTextareaInputElement, LsTe
575
587
  defineCustomElement: defineLsTextareaInput
576
588
  });
577
589
 
578
- export type LsToggleEvents = NonNullable<unknown>;
590
+ export type LsToggleEvents = { onValueChange: EventName<CustomEvent<boolean>> };
579
591
 
580
592
  export const LsToggle: StencilReactComponent<LsToggleElement, LsToggleEvents> = /*@__PURE__*/ createComponent<LsToggleElement, LsToggleEvents>({
581
593
  tagName: 'ls-toggle',
582
594
  elementClass: LsToggleElement,
583
595
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
584
596
  react: React,
585
- events: {} as LsToggleEvents,
597
+ events: { onValueChange: 'valueChange' } as LsToggleEvents,
586
598
  defineCustomElement: defineLsToggle
587
599
  });
588
600
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "legalesign-document-viewer-react",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "Legalesign React Editor / Viewers",
5
5
  "keywords": [
6
6
  "stencilJS",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@stencil/react-output-target": "^1.2.0",
53
- "legalesign-document-viewer": "^0.2.10"
53
+ "legalesign-document-viewer": "^0.2.11"
54
54
  },
55
55
  "pnpm": {
56
56
  "overrides": {