kritzel-react 0.0.42 → 0.0.44
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.
|
@@ -1,10 +1,74 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { KritzelBrushStyle as KritzelBrushStyleElement, defineCustomElement as defineKritzelBrushStyle } from "../../../../kritzel-stencil/dist/components/kritzel-brush-style.js";
|
|
5
|
+
import { KritzelColorPalette as KritzelColorPaletteElement, defineCustomElement as defineKritzelColorPalette } from "../../../../kritzel-stencil/dist/components/kritzel-color-palette.js";
|
|
6
|
+
import { KritzelColor as KritzelColorElement, defineCustomElement as defineKritzelColor } from "../../../../kritzel-stencil/dist/components/kritzel-color.js";
|
|
7
|
+
import { KritzelContextMenu as KritzelContextMenuElement, defineCustomElement as defineKritzelContextMenu } from "../../../../kritzel-stencil/dist/components/kritzel-context-menu.js";
|
|
8
|
+
import { KritzelControlBrushConfig as KritzelControlBrushConfigElement, defineCustomElement as defineKritzelControlBrushConfig } from "../../../../kritzel-stencil/dist/components/kritzel-control-brush-config.js";
|
|
9
|
+
import { KritzelControlTextConfig as KritzelControlTextConfigElement, defineCustomElement as defineKritzelControlTextConfig } from "../../../../kritzel-stencil/dist/components/kritzel-control-text-config.js";
|
|
4
10
|
import { KritzelControls as KritzelControlsElement, defineCustomElement as defineKritzelControls } from "../../../../kritzel-stencil/dist/components/kritzel-controls.js";
|
|
11
|
+
import { KritzelCursorTrail as KritzelCursorTrailElement, defineCustomElement as defineKritzelCursorTrail } from "../../../../kritzel-stencil/dist/components/kritzel-cursor-trail.js";
|
|
12
|
+
import { KritzelDropdown as KritzelDropdownElement, defineCustomElement as defineKritzelDropdown } from "../../../../kritzel-stencil/dist/components/kritzel-dropdown.js";
|
|
5
13
|
import { KritzelEditor as KritzelEditorElement, defineCustomElement as defineKritzelEditor } from "../../../../kritzel-stencil/dist/components/kritzel-editor.js";
|
|
6
14
|
import { KritzelEngine as KritzelEngineElement, defineCustomElement as defineKritzelEngine } from "../../../../kritzel-stencil/dist/components/kritzel-engine.js";
|
|
15
|
+
import { KritzelFontFamily as KritzelFontFamilyElement, defineCustomElement as defineKritzelFontFamily } from "../../../../kritzel-stencil/dist/components/kritzel-font-family.js";
|
|
16
|
+
import { KritzelFontSize as KritzelFontSizeElement, defineCustomElement as defineKritzelFontSize } from "../../../../kritzel-stencil/dist/components/kritzel-font-size.js";
|
|
17
|
+
import { KritzelFont as KritzelFontElement, defineCustomElement as defineKritzelFont } from "../../../../kritzel-stencil/dist/components/kritzel-font.js";
|
|
7
18
|
import { KritzelIcon as KritzelIconElement, defineCustomElement as defineKritzelIcon } from "../../../../kritzel-stencil/dist/components/kritzel-icon.js";
|
|
19
|
+
import { KritzelStrokeSize as KritzelStrokeSizeElement, defineCustomElement as defineKritzelStrokeSize } from "../../../../kritzel-stencil/dist/components/kritzel-stroke-size.js";
|
|
20
|
+
import { KritzelUtilityPanel as KritzelUtilityPanelElement, defineCustomElement as defineKritzelUtilityPanel } from "../../../../kritzel-stencil/dist/components/kritzel-utility-panel.js";
|
|
21
|
+
export const KritzelBrushStyle = /*@__PURE__*/ createComponent({
|
|
22
|
+
tagName: 'kritzel-brush-style',
|
|
23
|
+
elementClass: KritzelBrushStyleElement,
|
|
24
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
25
|
+
react: React,
|
|
26
|
+
events: { onTypeChange: 'typeChange' },
|
|
27
|
+
defineCustomElement: defineKritzelBrushStyle
|
|
28
|
+
});
|
|
29
|
+
export const KritzelColor = /*@__PURE__*/ createComponent({
|
|
30
|
+
tagName: 'kritzel-color',
|
|
31
|
+
elementClass: KritzelColorElement,
|
|
32
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
33
|
+
react: React,
|
|
34
|
+
events: {},
|
|
35
|
+
defineCustomElement: defineKritzelColor
|
|
36
|
+
});
|
|
37
|
+
export const KritzelColorPalette = /*@__PURE__*/ createComponent({
|
|
38
|
+
tagName: 'kritzel-color-palette',
|
|
39
|
+
elementClass: KritzelColorPaletteElement,
|
|
40
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
41
|
+
react: React,
|
|
42
|
+
events: { onColorChange: 'colorChange' },
|
|
43
|
+
defineCustomElement: defineKritzelColorPalette
|
|
44
|
+
});
|
|
45
|
+
export const KritzelContextMenu = /*@__PURE__*/ createComponent({
|
|
46
|
+
tagName: 'kritzel-context-menu',
|
|
47
|
+
elementClass: KritzelContextMenuElement,
|
|
48
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
49
|
+
react: React,
|
|
50
|
+
events: {
|
|
51
|
+
onActionSelected: 'actionSelected',
|
|
52
|
+
onClose: 'close'
|
|
53
|
+
},
|
|
54
|
+
defineCustomElement: defineKritzelContextMenu
|
|
55
|
+
});
|
|
56
|
+
export const KritzelControlBrushConfig = /*@__PURE__*/ createComponent({
|
|
57
|
+
tagName: 'kritzel-control-brush-config',
|
|
58
|
+
elementClass: KritzelControlBrushConfigElement,
|
|
59
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
60
|
+
react: React,
|
|
61
|
+
events: { onToolChange: 'toolChange' },
|
|
62
|
+
defineCustomElement: defineKritzelControlBrushConfig
|
|
63
|
+
});
|
|
64
|
+
export const KritzelControlTextConfig = /*@__PURE__*/ createComponent({
|
|
65
|
+
tagName: 'kritzel-control-text-config',
|
|
66
|
+
elementClass: KritzelControlTextConfigElement,
|
|
67
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
68
|
+
react: React,
|
|
69
|
+
events: { onToolChange: 'toolChange' },
|
|
70
|
+
defineCustomElement: defineKritzelControlTextConfig
|
|
71
|
+
});
|
|
8
72
|
export const KritzelControls = /*@__PURE__*/ createComponent({
|
|
9
73
|
tagName: 'kritzel-controls',
|
|
10
74
|
elementClass: KritzelControlsElement,
|
|
@@ -13,6 +77,22 @@ export const KritzelControls = /*@__PURE__*/ createComponent({
|
|
|
13
77
|
events: {},
|
|
14
78
|
defineCustomElement: defineKritzelControls
|
|
15
79
|
});
|
|
80
|
+
export const KritzelCursorTrail = /*@__PURE__*/ createComponent({
|
|
81
|
+
tagName: 'kritzel-cursor-trail',
|
|
82
|
+
elementClass: KritzelCursorTrailElement,
|
|
83
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
84
|
+
react: React,
|
|
85
|
+
events: {},
|
|
86
|
+
defineCustomElement: defineKritzelCursorTrail
|
|
87
|
+
});
|
|
88
|
+
export const KritzelDropdown = /*@__PURE__*/ createComponent({
|
|
89
|
+
tagName: 'kritzel-dropdown',
|
|
90
|
+
elementClass: KritzelDropdownElement,
|
|
91
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
92
|
+
react: React,
|
|
93
|
+
events: { onValueChanged: 'valueChanged' },
|
|
94
|
+
defineCustomElement: defineKritzelDropdown
|
|
95
|
+
});
|
|
16
96
|
export const KritzelEditor = /*@__PURE__*/ createComponent({
|
|
17
97
|
tagName: 'kritzel-editor',
|
|
18
98
|
elementClass: KritzelEditorElement,
|
|
@@ -26,9 +106,33 @@ export const KritzelEngine = /*@__PURE__*/ createComponent({
|
|
|
26
106
|
elementClass: KritzelEngineElement,
|
|
27
107
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
28
108
|
react: React,
|
|
29
|
-
events: {},
|
|
109
|
+
events: { onActiveToolChange: 'activeToolChange' },
|
|
30
110
|
defineCustomElement: defineKritzelEngine
|
|
31
111
|
});
|
|
112
|
+
export const KritzelFont = /*@__PURE__*/ createComponent({
|
|
113
|
+
tagName: 'kritzel-font',
|
|
114
|
+
elementClass: KritzelFontElement,
|
|
115
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
116
|
+
react: React,
|
|
117
|
+
events: {},
|
|
118
|
+
defineCustomElement: defineKritzelFont
|
|
119
|
+
});
|
|
120
|
+
export const KritzelFontFamily = /*@__PURE__*/ createComponent({
|
|
121
|
+
tagName: 'kritzel-font-family',
|
|
122
|
+
elementClass: KritzelFontFamilyElement,
|
|
123
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
124
|
+
react: React,
|
|
125
|
+
events: { onFontFamilyChange: 'fontFamilyChange' },
|
|
126
|
+
defineCustomElement: defineKritzelFontFamily
|
|
127
|
+
});
|
|
128
|
+
export const KritzelFontSize = /*@__PURE__*/ createComponent({
|
|
129
|
+
tagName: 'kritzel-font-size',
|
|
130
|
+
elementClass: KritzelFontSizeElement,
|
|
131
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
132
|
+
react: React,
|
|
133
|
+
events: { onSizeChange: 'sizeChange' },
|
|
134
|
+
defineCustomElement: defineKritzelFontSize
|
|
135
|
+
});
|
|
32
136
|
export const KritzelIcon = /*@__PURE__*/ createComponent({
|
|
33
137
|
tagName: 'kritzel-icon',
|
|
34
138
|
elementClass: KritzelIconElement,
|
|
@@ -37,3 +141,23 @@ export const KritzelIcon = /*@__PURE__*/ createComponent({
|
|
|
37
141
|
events: {},
|
|
38
142
|
defineCustomElement: defineKritzelIcon
|
|
39
143
|
});
|
|
144
|
+
export const KritzelStrokeSize = /*@__PURE__*/ createComponent({
|
|
145
|
+
tagName: 'kritzel-stroke-size',
|
|
146
|
+
elementClass: KritzelStrokeSizeElement,
|
|
147
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
148
|
+
react: React,
|
|
149
|
+
events: { onSizeChange: 'sizeChange' },
|
|
150
|
+
defineCustomElement: defineKritzelStrokeSize
|
|
151
|
+
});
|
|
152
|
+
export const KritzelUtilityPanel = /*@__PURE__*/ createComponent({
|
|
153
|
+
tagName: 'kritzel-utility-panel',
|
|
154
|
+
elementClass: KritzelUtilityPanelElement,
|
|
155
|
+
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
156
|
+
react: React,
|
|
157
|
+
events: {
|
|
158
|
+
onUndo: 'undo',
|
|
159
|
+
onRedo: 'redo',
|
|
160
|
+
onDelete: 'delete'
|
|
161
|
+
},
|
|
162
|
+
defineCustomElement: defineKritzelUtilityPanel
|
|
163
|
+
});
|
|
@@ -2,16 +2,81 @@
|
|
|
2
2
|
* This file was automatically generated by the Stencil React Output Target.
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
|
-
import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
5
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { type ContextMenuItem, type KritzelBaseTool, type KritzelBrushTool, type KritzelContextMenuCustomEvent, type KritzelControlBrushConfigCustomEvent, type KritzelControlTextConfigCustomEvent, type KritzelEngineCustomEvent, type KritzelTextTool } from "../../../../kritzel-stencil";
|
|
7
|
+
import { KritzelBrushStyle as KritzelBrushStyleElement } from "../../../../kritzel-stencil/dist/components/kritzel-brush-style.js";
|
|
8
|
+
import { KritzelColorPalette as KritzelColorPaletteElement } from "../../../../kritzel-stencil/dist/components/kritzel-color-palette.js";
|
|
9
|
+
import { KritzelColor as KritzelColorElement } from "../../../../kritzel-stencil/dist/components/kritzel-color.js";
|
|
10
|
+
import { KritzelContextMenu as KritzelContextMenuElement } from "../../../../kritzel-stencil/dist/components/kritzel-context-menu.js";
|
|
11
|
+
import { KritzelControlBrushConfig as KritzelControlBrushConfigElement } from "../../../../kritzel-stencil/dist/components/kritzel-control-brush-config.js";
|
|
12
|
+
import { KritzelControlTextConfig as KritzelControlTextConfigElement } from "../../../../kritzel-stencil/dist/components/kritzel-control-text-config.js";
|
|
6
13
|
import { KritzelControls as KritzelControlsElement } from "../../../../kritzel-stencil/dist/components/kritzel-controls.js";
|
|
14
|
+
import { KritzelCursorTrail as KritzelCursorTrailElement } from "../../../../kritzel-stencil/dist/components/kritzel-cursor-trail.js";
|
|
15
|
+
import { KritzelDropdown as KritzelDropdownElement } from "../../../../kritzel-stencil/dist/components/kritzel-dropdown.js";
|
|
7
16
|
import { KritzelEditor as KritzelEditorElement } from "../../../../kritzel-stencil/dist/components/kritzel-editor.js";
|
|
8
17
|
import { KritzelEngine as KritzelEngineElement } from "../../../../kritzel-stencil/dist/components/kritzel-engine.js";
|
|
18
|
+
import { KritzelFontFamily as KritzelFontFamilyElement } from "../../../../kritzel-stencil/dist/components/kritzel-font-family.js";
|
|
19
|
+
import { KritzelFontSize as KritzelFontSizeElement } from "../../../../kritzel-stencil/dist/components/kritzel-font-size.js";
|
|
20
|
+
import { KritzelFont as KritzelFontElement } from "../../../../kritzel-stencil/dist/components/kritzel-font.js";
|
|
9
21
|
import { KritzelIcon as KritzelIconElement } from "../../../../kritzel-stencil/dist/components/kritzel-icon.js";
|
|
22
|
+
import { KritzelStrokeSize as KritzelStrokeSizeElement } from "../../../../kritzel-stencil/dist/components/kritzel-stroke-size.js";
|
|
23
|
+
import { KritzelUtilityPanel as KritzelUtilityPanelElement } from "../../../../kritzel-stencil/dist/components/kritzel-utility-panel.js";
|
|
24
|
+
export type KritzelBrushStyleEvents = {
|
|
25
|
+
onTypeChange: EventName<CustomEvent<'pen' | 'highlighter'>>;
|
|
26
|
+
};
|
|
27
|
+
export declare const KritzelBrushStyle: StencilReactComponent<KritzelBrushStyleElement, KritzelBrushStyleEvents>;
|
|
28
|
+
export type KritzelColorEvents = NonNullable<unknown>;
|
|
29
|
+
export declare const KritzelColor: StencilReactComponent<KritzelColorElement, KritzelColorEvents>;
|
|
30
|
+
export type KritzelColorPaletteEvents = {
|
|
31
|
+
onColorChange: EventName<CustomEvent<string>>;
|
|
32
|
+
};
|
|
33
|
+
export declare const KritzelColorPalette: StencilReactComponent<KritzelColorPaletteElement, KritzelColorPaletteEvents>;
|
|
34
|
+
export type KritzelContextMenuEvents = {
|
|
35
|
+
onActionSelected: EventName<KritzelContextMenuCustomEvent<ContextMenuItem>>;
|
|
36
|
+
onClose: EventName<CustomEvent<void>>;
|
|
37
|
+
};
|
|
38
|
+
export declare const KritzelContextMenu: StencilReactComponent<KritzelContextMenuElement, KritzelContextMenuEvents>;
|
|
39
|
+
export type KritzelControlBrushConfigEvents = {
|
|
40
|
+
onToolChange: EventName<KritzelControlBrushConfigCustomEvent<KritzelBrushTool>>;
|
|
41
|
+
};
|
|
42
|
+
export declare const KritzelControlBrushConfig: StencilReactComponent<KritzelControlBrushConfigElement, KritzelControlBrushConfigEvents>;
|
|
43
|
+
export type KritzelControlTextConfigEvents = {
|
|
44
|
+
onToolChange: EventName<KritzelControlTextConfigCustomEvent<KritzelTextTool>>;
|
|
45
|
+
};
|
|
46
|
+
export declare const KritzelControlTextConfig: StencilReactComponent<KritzelControlTextConfigElement, KritzelControlTextConfigEvents>;
|
|
10
47
|
export type KritzelControlsEvents = NonNullable<unknown>;
|
|
11
48
|
export declare const KritzelControls: StencilReactComponent<KritzelControlsElement, KritzelControlsEvents>;
|
|
49
|
+
export type KritzelCursorTrailEvents = NonNullable<unknown>;
|
|
50
|
+
export declare const KritzelCursorTrail: StencilReactComponent<KritzelCursorTrailElement, KritzelCursorTrailEvents>;
|
|
51
|
+
export type KritzelDropdownEvents = {
|
|
52
|
+
onValueChanged: EventName<CustomEvent<string>>;
|
|
53
|
+
};
|
|
54
|
+
export declare const KritzelDropdown: StencilReactComponent<KritzelDropdownElement, KritzelDropdownEvents>;
|
|
12
55
|
export type KritzelEditorEvents = NonNullable<unknown>;
|
|
13
56
|
export declare const KritzelEditor: StencilReactComponent<KritzelEditorElement, KritzelEditorEvents>;
|
|
14
|
-
export type KritzelEngineEvents =
|
|
57
|
+
export type KritzelEngineEvents = {
|
|
58
|
+
onActiveToolChange: EventName<KritzelEngineCustomEvent<KritzelBaseTool>>;
|
|
59
|
+
};
|
|
15
60
|
export declare const KritzelEngine: StencilReactComponent<KritzelEngineElement, KritzelEngineEvents>;
|
|
61
|
+
export type KritzelFontEvents = NonNullable<unknown>;
|
|
62
|
+
export declare const KritzelFont: StencilReactComponent<KritzelFontElement, KritzelFontEvents>;
|
|
63
|
+
export type KritzelFontFamilyEvents = {
|
|
64
|
+
onFontFamilyChange: EventName<CustomEvent<string>>;
|
|
65
|
+
};
|
|
66
|
+
export declare const KritzelFontFamily: StencilReactComponent<KritzelFontFamilyElement, KritzelFontFamilyEvents>;
|
|
67
|
+
export type KritzelFontSizeEvents = {
|
|
68
|
+
onSizeChange: EventName<CustomEvent<number>>;
|
|
69
|
+
};
|
|
70
|
+
export declare const KritzelFontSize: StencilReactComponent<KritzelFontSizeElement, KritzelFontSizeEvents>;
|
|
16
71
|
export type KritzelIconEvents = NonNullable<unknown>;
|
|
17
72
|
export declare const KritzelIcon: StencilReactComponent<KritzelIconElement, KritzelIconEvents>;
|
|
73
|
+
export type KritzelStrokeSizeEvents = {
|
|
74
|
+
onSizeChange: EventName<CustomEvent<number>>;
|
|
75
|
+
};
|
|
76
|
+
export declare const KritzelStrokeSize: StencilReactComponent<KritzelStrokeSizeElement, KritzelStrokeSizeEvents>;
|
|
77
|
+
export type KritzelUtilityPanelEvents = {
|
|
78
|
+
onUndo: EventName<CustomEvent<void>>;
|
|
79
|
+
onRedo: EventName<CustomEvent<void>>;
|
|
80
|
+
onDelete: EventName<CustomEvent<void>>;
|
|
81
|
+
};
|
|
82
|
+
export declare const KritzelUtilityPanel: StencilReactComponent<KritzelUtilityPanelElement, KritzelUtilityPanelEvents>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kritzel-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
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.
|
|
23
|
+
"kritzel-stencil": "^0.0.44"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|