kritzel-react 0.0.114 → 0.0.116
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,172 +1,12 @@
|
|
|
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";
|
|
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";
|
|
13
4
|
import { KritzelEditor as KritzelEditorElement, defineCustomElement as defineKritzelEditor } from "../../../../kritzel-stencil/dist/components/kritzel-editor.js";
|
|
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";
|
|
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 { KritzelTooltip as KritzelTooltipElement, defineCustomElement as defineKritzelTooltip } from "../../../../kritzel-stencil/dist/components/kritzel-tooltip.js";
|
|
21
|
-
import { KritzelUtilityPanel as KritzelUtilityPanelElement, defineCustomElement as defineKritzelUtilityPanel } from "../../../../kritzel-stencil/dist/components/kritzel-utility-panel.js";
|
|
22
|
-
export const KritzelBrushStyle = /*@__PURE__*/ createComponent({
|
|
23
|
-
tagName: 'kritzel-brush-style',
|
|
24
|
-
elementClass: KritzelBrushStyleElement,
|
|
25
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
26
|
-
react: React,
|
|
27
|
-
events: { onTypeChange: 'typeChange' },
|
|
28
|
-
defineCustomElement: defineKritzelBrushStyle
|
|
29
|
-
});
|
|
30
|
-
export const KritzelColor = /*@__PURE__*/ createComponent({
|
|
31
|
-
tagName: 'kritzel-color',
|
|
32
|
-
elementClass: KritzelColorElement,
|
|
33
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
34
|
-
react: React,
|
|
35
|
-
events: {},
|
|
36
|
-
defineCustomElement: defineKritzelColor
|
|
37
|
-
});
|
|
38
|
-
export const KritzelColorPalette = /*@__PURE__*/ createComponent({
|
|
39
|
-
tagName: 'kritzel-color-palette',
|
|
40
|
-
elementClass: KritzelColorPaletteElement,
|
|
41
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
42
|
-
react: React,
|
|
43
|
-
events: { onColorChange: 'colorChange' },
|
|
44
|
-
defineCustomElement: defineKritzelColorPalette
|
|
45
|
-
});
|
|
46
|
-
export const KritzelContextMenu = /*@__PURE__*/ createComponent({
|
|
47
|
-
tagName: 'kritzel-context-menu',
|
|
48
|
-
elementClass: KritzelContextMenuElement,
|
|
49
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
50
|
-
react: React,
|
|
51
|
-
events: { onActionSelected: 'actionSelected' },
|
|
52
|
-
defineCustomElement: defineKritzelContextMenu
|
|
53
|
-
});
|
|
54
|
-
export const KritzelControlBrushConfig = /*@__PURE__*/ createComponent({
|
|
55
|
-
tagName: 'kritzel-control-brush-config',
|
|
56
|
-
elementClass: KritzelControlBrushConfigElement,
|
|
57
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
58
|
-
react: React,
|
|
59
|
-
events: { onToolChange: 'toolChange' },
|
|
60
|
-
defineCustomElement: defineKritzelControlBrushConfig
|
|
61
|
-
});
|
|
62
|
-
export const KritzelControlTextConfig = /*@__PURE__*/ createComponent({
|
|
63
|
-
tagName: 'kritzel-control-text-config',
|
|
64
|
-
elementClass: KritzelControlTextConfigElement,
|
|
65
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
66
|
-
react: React,
|
|
67
|
-
events: { onToolChange: 'toolChange' },
|
|
68
|
-
defineCustomElement: defineKritzelControlTextConfig
|
|
69
|
-
});
|
|
70
|
-
export const KritzelControls = /*@__PURE__*/ createComponent({
|
|
71
|
-
tagName: 'kritzel-controls',
|
|
72
|
-
elementClass: KritzelControlsElement,
|
|
73
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
74
|
-
react: React,
|
|
75
|
-
events: { onControlsReady: 'controlsReady' },
|
|
76
|
-
defineCustomElement: defineKritzelControls
|
|
77
|
-
});
|
|
78
|
-
export const KritzelCursorTrail = /*@__PURE__*/ createComponent({
|
|
79
|
-
tagName: 'kritzel-cursor-trail',
|
|
80
|
-
elementClass: KritzelCursorTrailElement,
|
|
81
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
82
|
-
react: React,
|
|
83
|
-
events: {},
|
|
84
|
-
defineCustomElement: defineKritzelCursorTrail
|
|
85
|
-
});
|
|
86
|
-
export const KritzelDropdown = /*@__PURE__*/ createComponent({
|
|
87
|
-
tagName: 'kritzel-dropdown',
|
|
88
|
-
elementClass: KritzelDropdownElement,
|
|
89
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
90
|
-
react: React,
|
|
91
|
-
events: { onValueChanged: 'valueChanged' },
|
|
92
|
-
defineCustomElement: defineKritzelDropdown
|
|
93
|
-
});
|
|
94
5
|
export const KritzelEditor = /*@__PURE__*/ createComponent({
|
|
95
6
|
tagName: 'kritzel-editor',
|
|
96
7
|
elementClass: KritzelEditorElement,
|
|
97
8
|
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
98
9
|
react: React,
|
|
99
|
-
events: {},
|
|
10
|
+
events: { onIsReady: 'isReady' },
|
|
100
11
|
defineCustomElement: defineKritzelEditor
|
|
101
12
|
});
|
|
102
|
-
export const KritzelEngine = /*@__PURE__*/ createComponent({
|
|
103
|
-
tagName: 'kritzel-engine',
|
|
104
|
-
elementClass: KritzelEngineElement,
|
|
105
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
106
|
-
react: React,
|
|
107
|
-
events: {
|
|
108
|
-
onEngineReady: 'engineReady',
|
|
109
|
-
onActiveToolChange: 'activeToolChange'
|
|
110
|
-
},
|
|
111
|
-
defineCustomElement: defineKritzelEngine
|
|
112
|
-
});
|
|
113
|
-
export const KritzelFont = /*@__PURE__*/ createComponent({
|
|
114
|
-
tagName: 'kritzel-font',
|
|
115
|
-
elementClass: KritzelFontElement,
|
|
116
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
117
|
-
react: React,
|
|
118
|
-
events: {},
|
|
119
|
-
defineCustomElement: defineKritzelFont
|
|
120
|
-
});
|
|
121
|
-
export const KritzelFontFamily = /*@__PURE__*/ createComponent({
|
|
122
|
-
tagName: 'kritzel-font-family',
|
|
123
|
-
elementClass: KritzelFontFamilyElement,
|
|
124
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
125
|
-
react: React,
|
|
126
|
-
events: { onFontFamilyChange: 'fontFamilyChange' },
|
|
127
|
-
defineCustomElement: defineKritzelFontFamily
|
|
128
|
-
});
|
|
129
|
-
export const KritzelFontSize = /*@__PURE__*/ createComponent({
|
|
130
|
-
tagName: 'kritzel-font-size',
|
|
131
|
-
elementClass: KritzelFontSizeElement,
|
|
132
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
133
|
-
react: React,
|
|
134
|
-
events: { onSizeChange: 'sizeChange' },
|
|
135
|
-
defineCustomElement: defineKritzelFontSize
|
|
136
|
-
});
|
|
137
|
-
export const KritzelIcon = /*@__PURE__*/ createComponent({
|
|
138
|
-
tagName: 'kritzel-icon',
|
|
139
|
-
elementClass: KritzelIconElement,
|
|
140
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
141
|
-
react: React,
|
|
142
|
-
events: {},
|
|
143
|
-
defineCustomElement: defineKritzelIcon
|
|
144
|
-
});
|
|
145
|
-
export const KritzelStrokeSize = /*@__PURE__*/ createComponent({
|
|
146
|
-
tagName: 'kritzel-stroke-size',
|
|
147
|
-
elementClass: KritzelStrokeSizeElement,
|
|
148
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
149
|
-
react: React,
|
|
150
|
-
events: { onSizeChange: 'sizeChange' },
|
|
151
|
-
defineCustomElement: defineKritzelStrokeSize
|
|
152
|
-
});
|
|
153
|
-
export const KritzelTooltip = /*@__PURE__*/ createComponent({
|
|
154
|
-
tagName: 'kritzel-tooltip',
|
|
155
|
-
elementClass: KritzelTooltipElement,
|
|
156
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
157
|
-
react: React,
|
|
158
|
-
events: {},
|
|
159
|
-
defineCustomElement: defineKritzelTooltip
|
|
160
|
-
});
|
|
161
|
-
export const KritzelUtilityPanel = /*@__PURE__*/ createComponent({
|
|
162
|
-
tagName: 'kritzel-utility-panel',
|
|
163
|
-
elementClass: KritzelUtilityPanelElement,
|
|
164
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
165
|
-
react: React,
|
|
166
|
-
events: {
|
|
167
|
-
onUndo: 'undo',
|
|
168
|
-
onRedo: 'redo',
|
|
169
|
-
onDelete: 'delete'
|
|
170
|
-
},
|
|
171
|
-
defineCustomElement: defineKritzelUtilityPanel
|
|
172
|
-
});
|
package/dist/index.js
CHANGED
|
@@ -3,85 +3,8 @@
|
|
|
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 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";
|
|
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";
|
|
16
6
|
import { KritzelEditor as KritzelEditorElement } from "../../../../kritzel-stencil/dist/components/kritzel-editor.js";
|
|
17
|
-
|
|
18
|
-
|
|
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";
|
|
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 { KritzelTooltip as KritzelTooltipElement } from "../../../../kritzel-stencil/dist/components/kritzel-tooltip.js";
|
|
24
|
-
import { KritzelUtilityPanel as KritzelUtilityPanelElement } from "../../../../kritzel-stencil/dist/components/kritzel-utility-panel.js";
|
|
25
|
-
export type KritzelBrushStyleEvents = {
|
|
26
|
-
onTypeChange: EventName<CustomEvent<'pen' | 'highlighter'>>;
|
|
7
|
+
export type KritzelEditorEvents = {
|
|
8
|
+
onIsReady: EventName<CustomEvent<boolean>>;
|
|
27
9
|
};
|
|
28
|
-
export declare const KritzelBrushStyle: StencilReactComponent<KritzelBrushStyleElement, KritzelBrushStyleEvents>;
|
|
29
|
-
export type KritzelColorEvents = NonNullable<unknown>;
|
|
30
|
-
export declare const KritzelColor: StencilReactComponent<KritzelColorElement, KritzelColorEvents>;
|
|
31
|
-
export type KritzelColorPaletteEvents = {
|
|
32
|
-
onColorChange: EventName<CustomEvent<string>>;
|
|
33
|
-
};
|
|
34
|
-
export declare const KritzelColorPalette: StencilReactComponent<KritzelColorPaletteElement, KritzelColorPaletteEvents>;
|
|
35
|
-
export type KritzelContextMenuEvents = {
|
|
36
|
-
onActionSelected: EventName<KritzelContextMenuCustomEvent<ContextMenuItem>>;
|
|
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>;
|
|
47
|
-
export type KritzelControlsEvents = {
|
|
48
|
-
onControlsReady: EventName<CustomEvent<void>>;
|
|
49
|
-
};
|
|
50
|
-
export declare const KritzelControls: StencilReactComponent<KritzelControlsElement, KritzelControlsEvents>;
|
|
51
|
-
export type KritzelCursorTrailEvents = NonNullable<unknown>;
|
|
52
|
-
export declare const KritzelCursorTrail: StencilReactComponent<KritzelCursorTrailElement, KritzelCursorTrailEvents>;
|
|
53
|
-
export type KritzelDropdownEvents = {
|
|
54
|
-
onValueChanged: EventName<CustomEvent<string>>;
|
|
55
|
-
};
|
|
56
|
-
export declare const KritzelDropdown: StencilReactComponent<KritzelDropdownElement, KritzelDropdownEvents>;
|
|
57
|
-
export type KritzelEditorEvents = NonNullable<unknown>;
|
|
58
10
|
export declare const KritzelEditor: StencilReactComponent<KritzelEditorElement, KritzelEditorEvents>;
|
|
59
|
-
export type KritzelEngineEvents = {
|
|
60
|
-
onEngineReady: EventName<CustomEvent<void>>;
|
|
61
|
-
onActiveToolChange: EventName<KritzelEngineCustomEvent<KritzelBaseTool>>;
|
|
62
|
-
};
|
|
63
|
-
export declare const KritzelEngine: StencilReactComponent<KritzelEngineElement, KritzelEngineEvents>;
|
|
64
|
-
export type KritzelFontEvents = NonNullable<unknown>;
|
|
65
|
-
export declare const KritzelFont: StencilReactComponent<KritzelFontElement, KritzelFontEvents>;
|
|
66
|
-
export type KritzelFontFamilyEvents = {
|
|
67
|
-
onFontFamilyChange: EventName<CustomEvent<string>>;
|
|
68
|
-
};
|
|
69
|
-
export declare const KritzelFontFamily: StencilReactComponent<KritzelFontFamilyElement, KritzelFontFamilyEvents>;
|
|
70
|
-
export type KritzelFontSizeEvents = {
|
|
71
|
-
onSizeChange: EventName<CustomEvent<number>>;
|
|
72
|
-
};
|
|
73
|
-
export declare const KritzelFontSize: StencilReactComponent<KritzelFontSizeElement, KritzelFontSizeEvents>;
|
|
74
|
-
export type KritzelIconEvents = NonNullable<unknown>;
|
|
75
|
-
export declare const KritzelIcon: StencilReactComponent<KritzelIconElement, KritzelIconEvents>;
|
|
76
|
-
export type KritzelStrokeSizeEvents = {
|
|
77
|
-
onSizeChange: EventName<CustomEvent<number>>;
|
|
78
|
-
};
|
|
79
|
-
export declare const KritzelStrokeSize: StencilReactComponent<KritzelStrokeSizeElement, KritzelStrokeSizeEvents>;
|
|
80
|
-
export type KritzelTooltipEvents = NonNullable<unknown>;
|
|
81
|
-
export declare const KritzelTooltip: StencilReactComponent<KritzelTooltipElement, KritzelTooltipEvents>;
|
|
82
|
-
export type KritzelUtilityPanelEvents = {
|
|
83
|
-
onUndo: EventName<CustomEvent<void>>;
|
|
84
|
-
onRedo: EventName<CustomEvent<void>>;
|
|
85
|
-
onDelete: EventName<CustomEvent<void>>;
|
|
86
|
-
};
|
|
87
|
-
export declare const KritzelUtilityPanel: StencilReactComponent<KritzelUtilityPanelElement, KritzelUtilityPanelEvents>;
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kritzel-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.116",
|
|
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.116"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|