legalesign-document-viewer-react 0.9.21 → 0.9.23

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.
@@ -750,7 +750,10 @@ export const LsToolboxField = /*@__PURE__*/ createComponent({
750
750
  elementClass: LsToolboxFieldElement,
751
751
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
752
752
  react: React,
753
- events: { onFieldTypeSelected: 'fieldTypeSelected' },
753
+ events: {
754
+ onFieldTypeSelected: 'fieldTypeSelected',
755
+ onToolboxDragStart: 'toolboxDragStart'
756
+ },
754
757
  defineCustomElement: defineLsToolboxField
755
758
  });
756
759
  export const LsTooltip = /*@__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 IToolboxField, type LSApiElement, type LSApiRole, type LSApiRoleType, type LSApiTemplate, type LSMutateEvent, type LsDocumentOptionsCustomEvent, type LsDocumentViewerCustomEvent, type LsEditorFieldCustomEvent, type LsFieldAlignmentCustomEvent, type LsFieldContentCustomEvent, type LsFieldDimensionsCustomEvent, type LsFieldDistributeCustomEvent, type LsFieldFooterCustomEvent, type LsFieldFormatCustomEvent, type LsFieldPlacementCustomEvent, type LsFieldPropertiesAdvancedCustomEvent, type LsFieldPropertiesMultipleCustomEvent, type LsFieldSizeCustomEvent, type LsParticipantCardCustomEvent, type LsParticipantManagerCustomEvent, type LsParticipantSelectCustomEvent, type LsRecipientCardCustomEvent, type LsTitleInputCustomEvent, type LsToolbarCustomEvent } from "legalesign-document-viewer";
6
+ import { type IToolboxField, type LSApiElement, type LSApiRole, type LSApiRoleType, type LSApiTemplate, type LSMutateEvent, type LsDocumentOptionsCustomEvent, type LsDocumentViewerCustomEvent, type LsEditorFieldCustomEvent, type LsFieldAlignmentCustomEvent, type LsFieldContentCustomEvent, type LsFieldDimensionsCustomEvent, type LsFieldDistributeCustomEvent, type LsFieldFooterCustomEvent, type LsFieldFormatCustomEvent, type LsFieldPlacementCustomEvent, type LsFieldPropertiesAdvancedCustomEvent, type LsFieldPropertiesMultipleCustomEvent, type LsFieldSizeCustomEvent, type LsParticipantCardCustomEvent, type LsParticipantManagerCustomEvent, type LsParticipantSelectCustomEvent, type LsRecipientCardCustomEvent, type LsTitleInputCustomEvent, type LsToolbarCustomEvent, type LsToolboxFieldCustomEvent } from "legalesign-document-viewer";
7
7
  import { LsAddNewButton as LsAddNewButtonElement } from "legalesign-document-viewer/dist/components/ls-add-new-button.js";
8
8
  import { LsBadge as LsBadgeElement } from "legalesign-document-viewer/dist/components/ls-badge.js";
9
9
  import { LsBanner as LsBannerElement } from "legalesign-document-viewer/dist/components/ls-banner.js";
@@ -252,7 +252,7 @@ export declare const LsKeyboardShortcuts: StencilReactComponent<LsKeyboardShortc
252
252
  export type LsLabelEvents = NonNullable<unknown>;
253
253
  export declare const LsLabel: StencilReactComponent<LsLabelElement, LsLabelEvents>;
254
254
  export type LsLeftBarEvents = {
255
- onManagerChange: EventName<CustomEvent<string>>;
255
+ onManagerChange: EventName<CustomEvent<'document' | 'toolbox' | 'participant' | 'recipient' | 'validation'>>;
256
256
  onClearSelected: EventName<CustomEvent<void>>;
257
257
  };
258
258
  export declare const LsLeftBar: StencilReactComponent<LsLeftBarElement, LsLeftBarEvents>;
@@ -370,6 +370,7 @@ export type LsToolboxFieldEvents = {
370
370
  validation: number;
371
371
  fixedAspect: number | null;
372
372
  }>>;
373
+ onToolboxDragStart: EventName<LsToolboxFieldCustomEvent<IToolboxField>>;
373
374
  };
374
375
  export declare const LsToolboxField: StencilReactComponent<LsToolboxFieldElement, LsToolboxFieldEvents>;
375
376
  export type LsTooltipEvents = 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 IToolboxField, type LSApiElement, type LSApiRole, type LSApiRoleType, type LSApiTemplate, type LSMutateEvent, type LsDocumentOptionsCustomEvent, type LsDocumentViewerCustomEvent, type LsEditorFieldCustomEvent, type LsFieldAlignmentCustomEvent, type LsFieldContentCustomEvent, type LsFieldDimensionsCustomEvent, type LsFieldDistributeCustomEvent, type LsFieldFooterCustomEvent, type LsFieldFormatCustomEvent, type LsFieldPlacementCustomEvent, type LsFieldPropertiesAdvancedCustomEvent, type LsFieldPropertiesMultipleCustomEvent, type LsFieldSizeCustomEvent, type LsParticipantCardCustomEvent, type LsParticipantManagerCustomEvent, type LsParticipantSelectCustomEvent, type LsRecipientCardCustomEvent, type LsTitleInputCustomEvent, type LsToolbarCustomEvent } from "legalesign-document-viewer";
12
+ import { type IToolboxField, type LSApiElement, type LSApiRole, type LSApiRoleType, type LSApiTemplate, type LSMutateEvent, type LsDocumentOptionsCustomEvent, type LsDocumentViewerCustomEvent, type LsEditorFieldCustomEvent, type LsFieldAlignmentCustomEvent, type LsFieldContentCustomEvent, type LsFieldDimensionsCustomEvent, type LsFieldDistributeCustomEvent, type LsFieldFooterCustomEvent, type LsFieldFormatCustomEvent, type LsFieldPlacementCustomEvent, type LsFieldPropertiesAdvancedCustomEvent, type LsFieldPropertiesMultipleCustomEvent, type LsFieldSizeCustomEvent, type LsParticipantCardCustomEvent, type LsParticipantManagerCustomEvent, type LsParticipantSelectCustomEvent, type LsRecipientCardCustomEvent, type LsTitleInputCustomEvent, type LsToolbarCustomEvent, type LsToolboxFieldCustomEvent } from "legalesign-document-viewer";
13
13
  import { LsAddNewButton as LsAddNewButtonElement, defineCustomElement as defineLsAddNewButton } from "legalesign-document-viewer/dist/components/ls-add-new-button.js";
14
14
  import { LsBadge as LsBadgeElement, defineCustomElement as defineLsBadge } from "legalesign-document-viewer/dist/components/ls-badge.js";
15
15
  import { LsBanner as LsBannerElement, defineCustomElement as defineLsBanner } from "legalesign-document-viewer/dist/components/ls-banner.js";
@@ -690,7 +690,7 @@ export const LsLabel: StencilReactComponent<LsLabelElement, LsLabelEvents> = /*@
690
690
  });
691
691
 
692
692
  export type LsLeftBarEvents = {
693
- onManagerChange: EventName<CustomEvent<string>>,
693
+ onManagerChange: EventName<CustomEvent<'document' | 'toolbox' | 'participant' | 'recipient' | 'validation'>>,
694
694
  onClearSelected: EventName<CustomEvent<void>>
695
695
  };
696
696
 
@@ -1048,7 +1048,8 @@ export type LsToolboxFieldEvents = {
1048
1048
  formElementType: string;
1049
1049
  validation: number;
1050
1050
  fixedAspect: number | null;
1051
- }>>
1051
+ }>>,
1052
+ onToolboxDragStart: EventName<LsToolboxFieldCustomEvent<IToolboxField>>
1052
1053
  };
1053
1054
 
1054
1055
  export const LsToolboxField: StencilReactComponent<LsToolboxFieldElement, LsToolboxFieldEvents> = /*@__PURE__*/ createComponent<LsToolboxFieldElement, LsToolboxFieldEvents>({
@@ -1056,7 +1057,10 @@ export const LsToolboxField: StencilReactComponent<LsToolboxFieldElement, LsTool
1056
1057
  elementClass: LsToolboxFieldElement,
1057
1058
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
1058
1059
  react: React,
1059
- events: { onFieldTypeSelected: 'fieldTypeSelected' } as LsToolboxFieldEvents,
1060
+ events: {
1061
+ onFieldTypeSelected: 'fieldTypeSelected',
1062
+ onToolboxDragStart: 'toolboxDragStart'
1063
+ } as LsToolboxFieldEvents,
1060
1064
  defineCustomElement: defineLsToolboxField
1061
1065
  });
1062
1066
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "legalesign-document-viewer-react",
3
- "version": "0.9.21",
3
+ "version": "0.9.23",
4
4
  "description": "Legalesign React Editor / Viewers",
5
5
  "keywords": [
6
6
  "stencilJS",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@stencil/react-output-target": "^1.2.0",
48
- "legalesign-document-viewer": "^0.9.21"
48
+ "legalesign-document-viewer": "^0.9.23"
49
49
  },
50
50
  "repository": {
51
51
  "type": "git",