legalesign-document-viewer-react 0.2.13 → 0.2.15

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.
@@ -348,7 +348,8 @@ export const LsParticipantManager = /*@__PURE__*/ createComponent({
348
348
  react: React,
349
349
  events: {
350
350
  onMutate: 'mutate',
351
- onUpdate: 'update'
351
+ onUpdate: 'update',
352
+ onAddParticipant: 'addParticipant'
352
353
  },
353
354
  defineCustomElement: defineLsParticipantManager
354
355
  });
@@ -358,9 +359,8 @@ export const LsParticipantSelect = /*@__PURE__*/ createComponent({
358
359
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
359
360
  react: React,
360
361
  events: {
361
- onMutate: 'mutate',
362
- onUpdate: 'update',
363
- onRoleChange: 'roleChange'
362
+ onRoleChange: 'roleChange',
363
+ onAddParticipant: 'addParticipant'
364
364
  },
365
365
  defineCustomElement: defineLsParticipantSelect
366
366
  });
@@ -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 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";
6
+ import { type LSApiElement, type LSApiRole, type LSApiRoleType, 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";
@@ -159,12 +159,18 @@ export declare const LsParticipantCard: StencilReactComponent<LsParticipantCardE
159
159
  export type LsParticipantManagerEvents = {
160
160
  onMutate: EventName<LsParticipantManagerCustomEvent<LSMutateEvent[]>>;
161
161
  onUpdate: EventName<LsParticipantManagerCustomEvent<LSMutateEvent[]>>;
162
+ onAddParticipant: EventName<LsParticipantManagerCustomEvent<{
163
+ type: LSApiRoleType;
164
+ parent?: string | null;
165
+ }>>;
162
166
  };
163
167
  export declare const LsParticipantManager: StencilReactComponent<LsParticipantManagerElement, LsParticipantManagerEvents>;
164
168
  export type LsParticipantSelectEvents = {
165
- onMutate: EventName<LsParticipantSelectCustomEvent<LSMutateEvent[]>>;
166
- onUpdate: EventName<LsParticipantSelectCustomEvent<LSMutateEvent[]>>;
167
169
  onRoleChange: EventName<CustomEvent<number>>;
170
+ onAddParticipant: EventName<LsParticipantSelectCustomEvent<{
171
+ type: LSApiRoleType;
172
+ parent?: string | null;
173
+ }>>;
168
174
  };
169
175
  export declare const LsParticipantSelect: StencilReactComponent<LsParticipantSelectElement, LsParticipantSelectEvents>;
170
176
  export type LsPropsSectionEvents = NonNullable<unknown>;
@@ -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 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";
12
+ import { type LSApiElement, type LSApiRole, type LSApiRoleType, 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";
@@ -490,7 +490,8 @@ export const LsParticipantCard: StencilReactComponent<LsParticipantCardElement,
490
490
 
491
491
  export type LsParticipantManagerEvents = {
492
492
  onMutate: EventName<LsParticipantManagerCustomEvent<LSMutateEvent[]>>,
493
- onUpdate: EventName<LsParticipantManagerCustomEvent<LSMutateEvent[]>>
493
+ onUpdate: EventName<LsParticipantManagerCustomEvent<LSMutateEvent[]>>,
494
+ onAddParticipant: EventName<LsParticipantManagerCustomEvent<{ type: LSApiRoleType, parent?: string | null }>>
494
495
  };
495
496
 
496
497
  export const LsParticipantManager: StencilReactComponent<LsParticipantManagerElement, LsParticipantManagerEvents> = /*@__PURE__*/ createComponent<LsParticipantManagerElement, LsParticipantManagerEvents>({
@@ -500,15 +501,15 @@ export const LsParticipantManager: StencilReactComponent<LsParticipantManagerEle
500
501
  react: React,
501
502
  events: {
502
503
  onMutate: 'mutate',
503
- onUpdate: 'update'
504
+ onUpdate: 'update',
505
+ onAddParticipant: 'addParticipant'
504
506
  } as LsParticipantManagerEvents,
505
507
  defineCustomElement: defineLsParticipantManager
506
508
  });
507
509
 
508
510
  export type LsParticipantSelectEvents = {
509
- onMutate: EventName<LsParticipantSelectCustomEvent<LSMutateEvent[]>>,
510
- onUpdate: EventName<LsParticipantSelectCustomEvent<LSMutateEvent[]>>,
511
- onRoleChange: EventName<CustomEvent<number>>
511
+ onRoleChange: EventName<CustomEvent<number>>,
512
+ onAddParticipant: EventName<LsParticipantSelectCustomEvent<{ type: LSApiRoleType, parent?: string | null }>>
512
513
  };
513
514
 
514
515
  export const LsParticipantSelect: StencilReactComponent<LsParticipantSelectElement, LsParticipantSelectEvents> = /*@__PURE__*/ createComponent<LsParticipantSelectElement, LsParticipantSelectEvents>({
@@ -517,9 +518,8 @@ export const LsParticipantSelect: StencilReactComponent<LsParticipantSelectEleme
517
518
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
518
519
  react: React,
519
520
  events: {
520
- onMutate: 'mutate',
521
- onUpdate: 'update',
522
- onRoleChange: 'roleChange'
521
+ onRoleChange: 'roleChange',
522
+ onAddParticipant: 'addParticipant'
523
523
  } as LsParticipantSelectEvents,
524
524
  defineCustomElement: defineLsParticipantSelect
525
525
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "legalesign-document-viewer-react",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
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.13"
53
+ "legalesign-document-viewer": "^0.2.15"
54
54
  },
55
55
  "pnpm": {
56
56
  "overrides": {