legalesign-document-viewer-react 0.2.10 → 0.2.12
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({
|
|
@@ -329,7 +335,8 @@ export const LsParticipantCard = /*@__PURE__*/ createComponent({
|
|
|
329
335
|
react: React,
|
|
330
336
|
events: {
|
|
331
337
|
onMutate: 'mutate',
|
|
332
|
-
onUpdate: 'update'
|
|
338
|
+
onUpdate: 'update',
|
|
339
|
+
onOpened: 'opened'
|
|
333
340
|
},
|
|
334
341
|
defineCustomElement: defineLsParticipantCard
|
|
335
342
|
});
|
|
@@ -393,7 +400,7 @@ export const LsTextInput = /*@__PURE__*/ createComponent({
|
|
|
393
400
|
elementClass: LsTextInputElement,
|
|
394
401
|
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
395
402
|
react: React,
|
|
396
|
-
events: {},
|
|
403
|
+
events: { onValueChange: 'valueChange' },
|
|
397
404
|
defineCustomElement: defineLsTextInput
|
|
398
405
|
});
|
|
399
406
|
export const LsTextareaInput = /*@__PURE__*/ createComponent({
|
|
@@ -409,7 +416,7 @@ export const LsToggle = /*@__PURE__*/ createComponent({
|
|
|
409
416
|
elementClass: LsToggleElement,
|
|
410
417
|
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
411
418
|
react: React,
|
|
412
|
-
events: {},
|
|
419
|
+
events: { onValueChange: 'valueChange' },
|
|
413
420
|
defineCustomElement: defineLsToggle
|
|
414
421
|
});
|
|
415
422
|
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 LSApiRole, 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 =
|
|
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 =
|
|
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 =
|
|
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>;
|
|
@@ -144,6 +152,7 @@ export declare const LsNumberInput: StencilReactComponent<LsNumberInputElement,
|
|
|
144
152
|
export type LsParticipantCardEvents = {
|
|
145
153
|
onMutate: EventName<LsParticipantCardCustomEvent<LSMutateEvent[]>>;
|
|
146
154
|
onUpdate: EventName<LsParticipantCardCustomEvent<LSMutateEvent[]>>;
|
|
155
|
+
onOpened: EventName<LsParticipantCardCustomEvent<LSApiRole>>;
|
|
147
156
|
};
|
|
148
157
|
export declare const LsParticipantCard: StencilReactComponent<LsParticipantCardElement, LsParticipantCardEvents>;
|
|
149
158
|
export type LsParticipantManagerEvents = {
|
|
@@ -165,11 +174,15 @@ export type LsSelectInputEvents = NonNullable<unknown>;
|
|
|
165
174
|
export declare const LsSelectInput: StencilReactComponent<LsSelectInputElement, LsSelectInputEvents>;
|
|
166
175
|
export type LsStatusbarEvents = NonNullable<unknown>;
|
|
167
176
|
export declare const LsStatusbar: StencilReactComponent<LsStatusbarElement, LsStatusbarEvents>;
|
|
168
|
-
export type LsTextInputEvents =
|
|
177
|
+
export type LsTextInputEvents = {
|
|
178
|
+
onValueChange: EventName<CustomEvent<string>>;
|
|
179
|
+
};
|
|
169
180
|
export declare const LsTextInput: StencilReactComponent<LsTextInputElement, LsTextInputEvents>;
|
|
170
181
|
export type LsTextareaInputEvents = NonNullable<unknown>;
|
|
171
182
|
export declare const LsTextareaInput: StencilReactComponent<LsTextareaInputElement, LsTextareaInputEvents>;
|
|
172
|
-
export type LsToggleEvents =
|
|
183
|
+
export type LsToggleEvents = {
|
|
184
|
+
onValueChange: EventName<CustomEvent<boolean>>;
|
|
185
|
+
};
|
|
173
186
|
export declare const LsToggle: StencilReactComponent<LsToggleElement, LsToggleEvents>;
|
|
174
187
|
export type LsToolbarEvents = {
|
|
175
188
|
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 LSApiRole, 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 =
|
|
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: {
|
|
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 =
|
|
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: {
|
|
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 =
|
|
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
|
|
|
@@ -458,7 +470,8 @@ export const LsNumberInput: StencilReactComponent<LsNumberInputElement, LsNumber
|
|
|
458
470
|
|
|
459
471
|
export type LsParticipantCardEvents = {
|
|
460
472
|
onMutate: EventName<LsParticipantCardCustomEvent<LSMutateEvent[]>>,
|
|
461
|
-
onUpdate: EventName<LsParticipantCardCustomEvent<LSMutateEvent[]
|
|
473
|
+
onUpdate: EventName<LsParticipantCardCustomEvent<LSMutateEvent[]>>,
|
|
474
|
+
onOpened: EventName<LsParticipantCardCustomEvent<LSApiRole>>
|
|
462
475
|
};
|
|
463
476
|
|
|
464
477
|
export const LsParticipantCard: StencilReactComponent<LsParticipantCardElement, LsParticipantCardEvents> = /*@__PURE__*/ createComponent<LsParticipantCardElement, LsParticipantCardEvents>({
|
|
@@ -468,7 +481,8 @@ export const LsParticipantCard: StencilReactComponent<LsParticipantCardElement,
|
|
|
468
481
|
react: React,
|
|
469
482
|
events: {
|
|
470
483
|
onMutate: 'mutate',
|
|
471
|
-
onUpdate: 'update'
|
|
484
|
+
onUpdate: 'update',
|
|
485
|
+
onOpened: 'opened'
|
|
472
486
|
} as LsParticipantCardEvents,
|
|
473
487
|
defineCustomElement: defineLsParticipantCard
|
|
474
488
|
});
|
|
@@ -553,14 +567,14 @@ export const LsStatusbar: StencilReactComponent<LsStatusbarElement, LsStatusbarE
|
|
|
553
567
|
defineCustomElement: defineLsStatusbar
|
|
554
568
|
});
|
|
555
569
|
|
|
556
|
-
export type LsTextInputEvents =
|
|
570
|
+
export type LsTextInputEvents = { onValueChange: EventName<CustomEvent<string>> };
|
|
557
571
|
|
|
558
572
|
export const LsTextInput: StencilReactComponent<LsTextInputElement, LsTextInputEvents> = /*@__PURE__*/ createComponent<LsTextInputElement, LsTextInputEvents>({
|
|
559
573
|
tagName: 'ls-text-input',
|
|
560
574
|
elementClass: LsTextInputElement,
|
|
561
575
|
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
562
576
|
react: React,
|
|
563
|
-
events: {} as LsTextInputEvents,
|
|
577
|
+
events: { onValueChange: 'valueChange' } as LsTextInputEvents,
|
|
564
578
|
defineCustomElement: defineLsTextInput
|
|
565
579
|
});
|
|
566
580
|
|
|
@@ -575,14 +589,14 @@ export const LsTextareaInput: StencilReactComponent<LsTextareaInputElement, LsTe
|
|
|
575
589
|
defineCustomElement: defineLsTextareaInput
|
|
576
590
|
});
|
|
577
591
|
|
|
578
|
-
export type LsToggleEvents =
|
|
592
|
+
export type LsToggleEvents = { onValueChange: EventName<CustomEvent<boolean>> };
|
|
579
593
|
|
|
580
594
|
export const LsToggle: StencilReactComponent<LsToggleElement, LsToggleEvents> = /*@__PURE__*/ createComponent<LsToggleElement, LsToggleEvents>({
|
|
581
595
|
tagName: 'ls-toggle',
|
|
582
596
|
elementClass: LsToggleElement,
|
|
583
597
|
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
584
598
|
react: React,
|
|
585
|
-
events: {} as LsToggleEvents,
|
|
599
|
+
events: { onValueChange: 'valueChange' } as LsToggleEvents,
|
|
586
600
|
defineCustomElement: defineLsToggle
|
|
587
601
|
});
|
|
588
602
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "legalesign-document-viewer-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
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.
|
|
53
|
+
"legalesign-document-viewer": "^0.2.12"
|
|
54
54
|
},
|
|
55
55
|
"pnpm": {
|
|
56
56
|
"overrides": {
|