kritzel-react 0.1.8 → 0.1.9
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.
|
@@ -4,6 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { KritzelBackToContent as KritzelBackToContentElement, defineCustomElement as defineKritzelBackToContent } from "../../../../kritzel-stencil/dist/components/kritzel-back-to-content.js";
|
|
5
5
|
import { KritzelDialog as KritzelDialogElement, defineCustomElement as defineKritzelDialog } from "../../../../kritzel-stencil/dist/components/kritzel-dialog.js";
|
|
6
6
|
import { KritzelEditor as KritzelEditorElement, defineCustomElement as defineKritzelEditor } from "../../../../kritzel-stencil/dist/components/kritzel-editor.js";
|
|
7
|
+
import { KritzelExport as KritzelExportElement, defineCustomElement as defineKritzelExport } from "../../../../kritzel-stencil/dist/components/kritzel-export.js";
|
|
7
8
|
import { KritzelLineEndings as KritzelLineEndingsElement, defineCustomElement as defineKritzelLineEndings } from "../../../../kritzel-stencil/dist/components/kritzel-line-endings.js";
|
|
8
9
|
import { KritzelMasterDetail as KritzelMasterDetailElement, defineCustomElement as defineKritzelMasterDetail } from "../../../../kritzel-stencil/dist/components/kritzel-master-detail.js";
|
|
9
10
|
import { KritzelMoreMenu as KritzelMoreMenuElement, defineCustomElement as defineKritzelMoreMenu } from "../../../../kritzel-stencil/dist/components/kritzel-more-menu.js";
|
|
@@ -43,6 +44,17 @@ export const KritzelEditor = /*@__PURE__*/ createComponent({
|
|
|
43
44
|
},
|
|
44
45
|
defineCustomElement: defineKritzelEditor
|
|
45
46
|
});
|
|
47
|
+
export const KritzelExport = /*@__PURE__*/ createComponent({
|
|
48
|
+
tagName: 'kritzel-export',
|
|
49
|
+
elementClass: KritzelExportElement,
|
|
50
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
51
|
+
react: React,
|
|
52
|
+
events: {
|
|
53
|
+
onExportPng: 'exportPng',
|
|
54
|
+
onExportSvg: 'exportSvg'
|
|
55
|
+
},
|
|
56
|
+
defineCustomElement: defineKritzelExport
|
|
57
|
+
});
|
|
46
58
|
export const KritzelLineEndings = /*@__PURE__*/ createComponent({
|
|
47
59
|
tagName: 'kritzel-line-endings',
|
|
48
60
|
elementClass: KritzelLineEndingsElement,
|
|
@@ -3,10 +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 IKritzelDialogCloseEvent, type IKritzelMasterDetailSelectEvent, type IKritzelMenuItem, type KritzelBackToContentCustomEvent, type KritzelBaseObject, type KritzelDialogCustomEvent, type KritzelEditorCustomEvent, type KritzelLineEndingsCustomEvent, type KritzelMasterDetailCustomEvent, type KritzelMoreMenuCustomEvent, type KritzelNumericInputCustomEvent, type KritzelOpacitySliderCustomEvent, type KritzelSettingsConfig, type KritzelSettingsCustomEvent, type KritzelShapeFillCustomEvent, type KritzelSlideToggleCustomEvent, type KritzelUndoState, type LineArrowConfig, type ShapeFillType } 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 LineArrowConfig, type ShapeFillType } 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";
|
|
10
|
+
import { KritzelExport as KritzelExportElement } from "../../../../kritzel-stencil/dist/components/kritzel-export.js";
|
|
10
11
|
import { KritzelLineEndings as KritzelLineEndingsElement } from "../../../../kritzel-stencil/dist/components/kritzel-line-endings.js";
|
|
11
12
|
import { KritzelMasterDetail as KritzelMasterDetailElement } from "../../../../kritzel-stencil/dist/components/kritzel-master-detail.js";
|
|
12
13
|
import { KritzelMoreMenu as KritzelMoreMenuElement } from "../../../../kritzel-stencil/dist/components/kritzel-more-menu.js";
|
|
@@ -30,6 +31,11 @@ export type KritzelEditorEvents = {
|
|
|
30
31
|
onUndoStateChange: EventName<KritzelEditorCustomEvent<KritzelUndoState>>;
|
|
31
32
|
};
|
|
32
33
|
export declare const KritzelEditor: StencilReactComponent<KritzelEditorElement, KritzelEditorEvents>;
|
|
34
|
+
export type KritzelExportEvents = {
|
|
35
|
+
onExportPng: EventName<KritzelExportCustomEvent<void>>;
|
|
36
|
+
onExportSvg: EventName<KritzelExportCustomEvent<void>>;
|
|
37
|
+
};
|
|
38
|
+
export declare const KritzelExport: StencilReactComponent<KritzelExportElement, KritzelExportEvents>;
|
|
33
39
|
export type KritzelLineEndingsEvents = {
|
|
34
40
|
onValueChange: EventName<KritzelLineEndingsCustomEvent<LineArrowConfig>>;
|
|
35
41
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kritzel-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
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.
|
|
23
|
+
"kritzel-stencil": "^0.1.9"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|