kritzel-react 0.1.35 → 0.1.36

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.
@@ -40,8 +40,12 @@ export const KritzelEditor = /*@__PURE__*/ createComponent({
40
40
  events: {
41
41
  onIsReady: 'isReady',
42
42
  onObjectsChange: 'objectsChange',
43
+ onObjectsAdded: 'objectsAdded',
44
+ onObjectsRemoved: 'objectsRemoved',
45
+ onObjectsUpdated: 'objectsUpdated',
43
46
  onUndoStateChange: 'undoStateChange',
44
- onThemeChange: 'themeChange'
47
+ onThemeChange: 'themeChange',
48
+ onViewportChange: 'viewportChange'
45
49
  },
46
50
  defineCustomElement: defineKritzelEditor
47
51
  });
@@ -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 IKritzelDialogCloseEvent, type IKritzelMasterDetailSelectEvent, type IKritzelMenuItem, type KritzelBackToContentCustomEvent, type KritzelBaseObject, type KritzelDialogCustomEvent, type KritzelEditorCustomEvent, type KritzelExportCustomEvent, type KritzelLineEndingsCustomEvent, type KritzelMasterDetailCustomEvent, type KritzelMoreMenuCustomEvent, type KritzelNumericInputCustomEvent, type KritzelOpacitySliderCustomEvent, type KritzelSettingsConfig, type KritzelSettingsCustomEvent, type KritzelShapeFillCustomEvent, type KritzelSlideToggleCustomEvent, type KritzelUndoState, type LineArrowConfig, type ShapeFillType, type ThemeName } from "../../../../kritzel-stencil";
6
+ import { type IKritzelDialogCloseEvent, type IKritzelMasterDetailSelectEvent, type IKritzelMenuItem, type KritzelBackToContentCustomEvent, type KritzelBaseObject, type KritzelDialogCustomEvent, type KritzelEditorCustomEvent, type KritzelExportCustomEvent, type KritzelLineEndingsCustomEvent, type KritzelMasterDetailCustomEvent, type KritzelMoreMenuCustomEvent, type KritzelNumericInputCustomEvent, type KritzelOpacitySliderCustomEvent, type KritzelSettingsConfig, type KritzelSettingsCustomEvent, type KritzelShapeFillCustomEvent, type KritzelSlideToggleCustomEvent, type KritzelUndoState, type KritzelViewportState, type LineArrowConfig, type ObjectsAddedEvent, type ObjectsRemovedEvent, type ObjectsUpdatedEvent, type ShapeFillType, type ThemeName } from "../../../../kritzel-stencil";
7
7
  import { KritzelBackToContent as KritzelBackToContentElement } from "../../../../kritzel-stencil/dist/components/kritzel-back-to-content.js";
8
8
  import { KritzelDialog as KritzelDialogElement } from "../../../../kritzel-stencil/dist/components/kritzel-dialog.js";
9
9
  import { KritzelEditor as KritzelEditorElement } from "../../../../kritzel-stencil/dist/components/kritzel-editor.js";
@@ -28,8 +28,12 @@ export declare const KritzelDialog: StencilReactComponent<KritzelDialogElement,
28
28
  export type KritzelEditorEvents = {
29
29
  onIsReady: EventName<KritzelEditorCustomEvent<HTMLElement>>;
30
30
  onObjectsChange: EventName<KritzelEditorCustomEvent<KritzelBaseObject[]>>;
31
+ onObjectsAdded: EventName<KritzelEditorCustomEvent<ObjectsAddedEvent>>;
32
+ onObjectsRemoved: EventName<KritzelEditorCustomEvent<ObjectsRemovedEvent>>;
33
+ onObjectsUpdated: EventName<KritzelEditorCustomEvent<ObjectsUpdatedEvent>>;
31
34
  onUndoStateChange: EventName<KritzelEditorCustomEvent<KritzelUndoState>>;
32
35
  onThemeChange: EventName<KritzelEditorCustomEvent<ThemeName>>;
36
+ onViewportChange: EventName<KritzelEditorCustomEvent<KritzelViewportState>>;
33
37
  };
34
38
  export declare const KritzelEditor: StencilReactComponent<KritzelEditorElement, KritzelEditorEvents>;
35
39
  export type KritzelExportEvents = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kritzel-react",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "homepage": "https://gitlab.com/kasual1/kritzel#readme",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "@stencil/react-output-target": "^1.2.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "kritzel-stencil": "^0.1.35"
23
+ "kritzel-stencil": "^0.1.36"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",