kritzel-react 0.0.153 → 0.0.154

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.
@@ -7,6 +7,10 @@ export const KritzelEditor = /*@__PURE__*/ createComponent({
7
7
  elementClass: KritzelEditorElement,
8
8
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
9
9
  react: React,
10
- events: { onIsReady: 'isReady' },
10
+ events: {
11
+ onIsReady: 'isReady',
12
+ onObjectsChange: 'objectsChange',
13
+ onUndoStateChange: 'undoStateChange'
14
+ },
11
15
  defineCustomElement: defineKritzelEditor
12
16
  });
@@ -3,9 +3,11 @@
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 KritzelEditorCustomEvent } from "../../../../kritzel-stencil";
6
+ import { type KritzelBaseObject, type KritzelEditorCustomEvent, type KritzelUndoState } from "../../../../kritzel-stencil";
7
7
  import { KritzelEditor as KritzelEditorElement } from "../../../../kritzel-stencil/dist/components/kritzel-editor.js";
8
8
  export type KritzelEditorEvents = {
9
9
  onIsReady: EventName<KritzelEditorCustomEvent<HTMLElement>>;
10
+ onObjectsChange: EventName<KritzelEditorCustomEvent<KritzelBaseObject[]>>;
11
+ onUndoStateChange: EventName<KritzelEditorCustomEvent<KritzelUndoState>>;
10
12
  };
11
13
  export declare const KritzelEditor: StencilReactComponent<KritzelEditorElement, KritzelEditorEvents>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kritzel-react",
3
- "version": "0.0.153",
3
+ "version": "0.0.154",
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": "^0.7.4"
21
21
  },
22
22
  "peerDependencies": {
23
- "kritzel-stencil": "^0.0.153"
23
+ "kritzel-stencil": "^0.0.154"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",