kritzel-react 0.3.17 → 0.3.19

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
@@ -93,4 +93,4 @@ Learn more in the [full documentation](https://kritzel.io/docs/react/overview).
93
93
 
94
94
  ## License
95
95
 
96
- See [LICENSE.md](./LICENSE.md). Kritzel is free for personal, hobby, and educational use. Commercial use requires a license — visit [kritzel.io](https://kritzel.io) for details.
96
+ See the [Kritzel License](https://kritzel.io/license). Kritzel is free for personal, hobby, and educational use. Commercial use requires a license — visit [kritzel.io](https://kritzel.io) for details.
@@ -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,9 +1,9 @@
1
1
  {
2
2
  "name": "kritzel-react",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
4
4
  "homepage": "https://kritzel.io/",
5
5
  "description": "Build infinite canvas experiences in minutes.",
6
- "license": "SEE LICENSE IN LICENSE.md",
6
+ "license": "PolyForm-Noncommercial-1.0.0",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
9
9
  "types": "dist/types/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "@stencil/react-output-target": "^1.2.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "kritzel-stencil": "^0.3.17"
24
+ "kritzel-stencil": "^0.3.19"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",