kritzel-react 0.3.18 → 0.3.20
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.
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Kritzel is a framework-agnostic infinite canvas and collaborative whiteboard eng
|
|
|
6
6
|
|
|
7
7
|
Kritzel handles the hard parts of canvas-based applications — infinite pan and zoom, hit-testing, CRDT-based collaboration, undo and redo, and cross-browser rendering — so you can focus on your product's domain logic.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Full documentation:** [kritzel.io/docs/react/overview](https://kritzel.io/docs/react/overview)
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -13,6 +13,7 @@ import { KritzelInput as KritzelInputElement, defineCustomElement as defineKritz
|
|
|
13
13
|
import { KritzelLineEndings as KritzelLineEndingsElement, defineCustomElement as defineKritzelLineEndings } from "../../../../kritzel-stencil/dist/components/kritzel-line-endings.js";
|
|
14
14
|
import { KritzelLoginDialog as KritzelLoginDialogElement, defineCustomElement as defineKritzelLoginDialog } from "../../../../kritzel-stencil/dist/components/kritzel-login-dialog.js";
|
|
15
15
|
import { KritzelMasterDetail as KritzelMasterDetailElement, defineCustomElement as defineKritzelMasterDetail } from "../../../../kritzel-stencil/dist/components/kritzel-master-detail.js";
|
|
16
|
+
import { KritzelNotificationCard as KritzelNotificationCardElement, defineCustomElement as defineKritzelNotificationCard } from "../../../../kritzel-stencil/dist/components/kritzel-notification-card.js";
|
|
16
17
|
import { KritzelNumericInput as KritzelNumericInputElement, defineCustomElement as defineKritzelNumericInput } from "../../../../kritzel-stencil/dist/components/kritzel-numeric-input.js";
|
|
17
18
|
import { KritzelOpacitySlider as KritzelOpacitySliderElement, defineCustomElement as defineKritzelOpacitySlider } from "../../../../kritzel-stencil/dist/components/kritzel-opacity-slider.js";
|
|
18
19
|
import { KritzelPillTabs as KritzelPillTabsElement, defineCustomElement as defineKritzelPillTabs } from "../../../../kritzel-stencil/dist/components/kritzel-pill-tabs.js";
|
|
@@ -104,7 +105,8 @@ export const KritzelEngine = /*@__PURE__*/ createComponent({
|
|
|
104
105
|
onUndoStateChange: 'undoStateChange',
|
|
105
106
|
onObjectsInViewportChange: 'objectsInViewportChange',
|
|
106
107
|
onViewportChange: 'viewportChange',
|
|
107
|
-
onAwarenessChange: 'awarenessChange'
|
|
108
|
+
onAwarenessChange: 'awarenessChange',
|
|
109
|
+
onNotificationsChange: 'notificationsChange'
|
|
108
110
|
},
|
|
109
111
|
defineCustomElement: defineKritzelEngine
|
|
110
112
|
});
|
|
@@ -155,6 +157,17 @@ export const KritzelMasterDetail = /*@__PURE__*/ createComponent({
|
|
|
155
157
|
events: { onItemSelect: 'itemSelect' },
|
|
156
158
|
defineCustomElement: defineKritzelMasterDetail
|
|
157
159
|
});
|
|
160
|
+
export const KritzelNotificationCard = /*@__PURE__*/ createComponent({
|
|
161
|
+
tagName: 'kritzel-notification-card',
|
|
162
|
+
elementClass: KritzelNotificationCardElement,
|
|
163
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
164
|
+
react: React,
|
|
165
|
+
events: {
|
|
166
|
+
onDismiss: 'dismiss',
|
|
167
|
+
onHoverChange: 'hoverChange'
|
|
168
|
+
},
|
|
169
|
+
defineCustomElement: defineKritzelNotificationCard
|
|
170
|
+
});
|
|
158
171
|
export const KritzelNumericInput = /*@__PURE__*/ createComponent({
|
|
159
172
|
tagName: 'kritzel-numeric-input',
|
|
160
173
|
elementClass: KritzelNumericInputElement,
|
|
@@ -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 ActiveWorkspaceChangeEvent, type EditorIsReadyEvent, type IKritzelDialogCloseEvent, type IKritzelIsPublicChangedEvent, type IKritzelMasterDetailSelectEvent, type KritzelBackToContentCustomEvent, type KritzelBaseObject, type KritzelBaseTool, type KritzelButtonCustomEvent, type KritzelDialogCustomEvent, type KritzelEditorCustomEvent, type KritzelEngineCustomEvent, type KritzelEngineState, type KritzelExportCustomEvent, type KritzelInputCustomEvent, type KritzelLineEndingsCustomEvent, type KritzelLoginDialogCustomEvent, type KritzelMasterDetailCustomEvent, type KritzelNumericInputCustomEvent, type KritzelOpacitySliderCustomEvent, type KritzelPillTabsCustomEvent, type KritzelSettingsConfig, type KritzelSettingsCustomEvent, type KritzelUndoState, type KritzelViewportState, type KritzelWorkspace, type KritzelZoomPanelCustomEvent, type LineArrowConfig, type LocaleCode, type LoginEvent, type ObjectsAddedEvent, type ObjectsInViewportChangeEvent, type ObjectsRemovedEvent, type ObjectsUpdatedEvent, type ThemeName } from "../../../../kritzel-stencil";
|
|
6
|
+
import { type ActiveWorkspaceChangeEvent, type EditorIsReadyEvent, type IKritzelDialogCloseEvent, type IKritzelIsPublicChangedEvent, type IKritzelMasterDetailSelectEvent, type KritzelBackToContentCustomEvent, type KritzelBaseObject, type KritzelBaseTool, type KritzelButtonCustomEvent, type KritzelDialogCustomEvent, type KritzelEditorCustomEvent, type KritzelEngineCustomEvent, type KritzelEngineState, type KritzelExportCustomEvent, type KritzelInputCustomEvent, type KritzelLineEndingsCustomEvent, type KritzelLoginDialogCustomEvent, type KritzelMasterDetailCustomEvent, type KritzelNotification, type KritzelNotificationCardCustomEvent, type KritzelNumericInputCustomEvent, type KritzelOpacitySliderCustomEvent, type KritzelPillTabsCustomEvent, type KritzelSettingsConfig, type KritzelSettingsCustomEvent, type KritzelUndoState, type KritzelViewportState, type KritzelWorkspace, type KritzelZoomPanelCustomEvent, type LineArrowConfig, type LocaleCode, type LoginEvent, type ObjectsAddedEvent, type ObjectsInViewportChangeEvent, type ObjectsRemovedEvent, type ObjectsUpdatedEvent, type ThemeName } from "../../../../kritzel-stencil";
|
|
7
7
|
import type { Components } from "../../../../kritzel-stencil/dist/components";
|
|
8
8
|
import { KritzelAwarenessCursors as KritzelAwarenessCursorsElement } from "../../../../kritzel-stencil/dist/components/kritzel-awareness-cursors.js";
|
|
9
9
|
import { KritzelBackToContent as KritzelBackToContentElement } from "../../../../kritzel-stencil/dist/components/kritzel-back-to-content.js";
|
|
@@ -17,6 +17,7 @@ import { KritzelInput as KritzelInputElement } from "../../../../kritzel-stencil
|
|
|
17
17
|
import { KritzelLineEndings as KritzelLineEndingsElement } from "../../../../kritzel-stencil/dist/components/kritzel-line-endings.js";
|
|
18
18
|
import { KritzelLoginDialog as KritzelLoginDialogElement } from "../../../../kritzel-stencil/dist/components/kritzel-login-dialog.js";
|
|
19
19
|
import { KritzelMasterDetail as KritzelMasterDetailElement } from "../../../../kritzel-stencil/dist/components/kritzel-master-detail.js";
|
|
20
|
+
import { KritzelNotificationCard as KritzelNotificationCardElement } from "../../../../kritzel-stencil/dist/components/kritzel-notification-card.js";
|
|
20
21
|
import { KritzelNumericInput as KritzelNumericInputElement } from "../../../../kritzel-stencil/dist/components/kritzel-numeric-input.js";
|
|
21
22
|
import { KritzelOpacitySlider as KritzelOpacitySliderElement } from "../../../../kritzel-stencil/dist/components/kritzel-opacity-slider.js";
|
|
22
23
|
import { KritzelPillTabs as KritzelPillTabsElement } from "../../../../kritzel-stencil/dist/components/kritzel-pill-tabs.js";
|
|
@@ -72,6 +73,7 @@ export type KritzelEngineEvents = {
|
|
|
72
73
|
onObjectsInViewportChange: EventName<KritzelEngineCustomEvent<ObjectsInViewportChangeEvent>>;
|
|
73
74
|
onViewportChange: EventName<KritzelEngineCustomEvent<KritzelViewportState>>;
|
|
74
75
|
onAwarenessChange: EventName<KritzelEngineCustomEvent<Map<number, Record<string, any>>>>;
|
|
76
|
+
onNotificationsChange: EventName<KritzelEngineCustomEvent<KritzelNotification>>;
|
|
75
77
|
};
|
|
76
78
|
export declare const KritzelEngine: StencilReactComponent<KritzelEngineElement, KritzelEngineEvents, Components.KritzelEngine>;
|
|
77
79
|
export type KritzelExportEvents = {
|
|
@@ -97,6 +99,11 @@ export type KritzelMasterDetailEvents = {
|
|
|
97
99
|
onItemSelect: EventName<KritzelMasterDetailCustomEvent<IKritzelMasterDetailSelectEvent>>;
|
|
98
100
|
};
|
|
99
101
|
export declare const KritzelMasterDetail: StencilReactComponent<KritzelMasterDetailElement, KritzelMasterDetailEvents, Components.KritzelMasterDetail>;
|
|
102
|
+
export type KritzelNotificationCardEvents = {
|
|
103
|
+
onDismiss: EventName<KritzelNotificationCardCustomEvent<void>>;
|
|
104
|
+
onHoverChange: EventName<KritzelNotificationCardCustomEvent<boolean>>;
|
|
105
|
+
};
|
|
106
|
+
export declare const KritzelNotificationCard: StencilReactComponent<KritzelNotificationCardElement, KritzelNotificationCardEvents, Components.KritzelNotificationCard>;
|
|
100
107
|
export type KritzelNumericInputEvents = {
|
|
101
108
|
onValueChange: EventName<KritzelNumericInputCustomEvent<number | undefined>>;
|
|
102
109
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kritzel-react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"homepage": "https://kritzel.io/",
|
|
5
5
|
"description": "Build infinite canvas experiences in minutes.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"infinite canvas",
|
|
8
|
+
"collaboration",
|
|
9
|
+
"whiteboard",
|
|
10
|
+
"drawing",
|
|
11
|
+
"react"
|
|
12
|
+
],
|
|
6
13
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
7
14
|
"main": "dist/index.js",
|
|
8
15
|
"module": "dist/index.js",
|
|
@@ -21,7 +28,7 @@
|
|
|
21
28
|
"@stencil/react-output-target": "^1.2.0"
|
|
22
29
|
},
|
|
23
30
|
"peerDependencies": {
|
|
24
|
-
"kritzel-stencil": "^0.3.
|
|
31
|
+
"kritzel-stencil": "^0.3.20"
|
|
25
32
|
},
|
|
26
33
|
"repository": {
|
|
27
34
|
"type": "git",
|