kritzel-react 0.3.34 → 0.3.36

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.
@@ -11,6 +11,7 @@ import { KritzelEngine as KritzelEngineElement, defineCustomElement as defineKri
11
11
  import { KritzelExport as KritzelExportElement, defineCustomElement as defineKritzelExport } from "../../../../kritzel-stencil/dist/components/kritzel-export.js";
12
12
  import { KritzelInput as KritzelInputElement, defineCustomElement as defineKritzelInput } from "../../../../kritzel-stencil/dist/components/kritzel-input.js";
13
13
  import { KritzelLineEndings as KritzelLineEndingsElement, defineCustomElement as defineKritzelLineEndings } from "../../../../kritzel-stencil/dist/components/kritzel-line-endings.js";
14
+ import { KritzelLoadingOverlay as KritzelLoadingOverlayElement, defineCustomElement as defineKritzelLoadingOverlay } from "../../../../kritzel-stencil/dist/components/kritzel-loading-overlay.js";
14
15
  import { KritzelLoginDialog as KritzelLoginDialogElement, defineCustomElement as defineKritzelLoginDialog } from "../../../../kritzel-stencil/dist/components/kritzel-login-dialog.js";
15
16
  import { KritzelMasterDetail as KritzelMasterDetailElement, defineCustomElement as defineKritzelMasterDetail } from "../../../../kritzel-stencil/dist/components/kritzel-master-detail.js";
16
17
  import { KritzelNotificationCard as KritzelNotificationCardElement, defineCustomElement as defineKritzelNotificationCard } from "../../../../kritzel-stencil/dist/components/kritzel-notification-card.js";
@@ -49,7 +50,7 @@ export const KritzelCurrentUserDialog = /*@__PURE__*/ createComponent({
49
50
  elementClass: KritzelCurrentUserDialogElement,
50
51
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
51
52
  react: React,
52
- events: {},
53
+ events: { onLogoutRequest: 'logoutRequest' },
53
54
  defineCustomElement: defineKritzelCurrentUserDialog
54
55
  });
55
56
  export const KritzelDialog = /*@__PURE__*/ createComponent({
@@ -106,7 +107,8 @@ export const KritzelEngine = /*@__PURE__*/ createComponent({
106
107
  onObjectsInViewportChange: 'objectsInViewportChange',
107
108
  onViewportChange: 'viewportChange',
108
109
  onAwarenessChange: 'awarenessChange',
109
- onNotificationsChange: 'notificationsChange'
110
+ onNotificationsChange: 'notificationsChange',
111
+ onLoadingChange: 'loadingChange'
110
112
  },
111
113
  defineCustomElement: defineKritzelEngine
112
114
  });
@@ -138,6 +140,14 @@ export const KritzelLineEndings = /*@__PURE__*/ createComponent({
138
140
  events: { onValueChange: 'valueChange' },
139
141
  defineCustomElement: defineKritzelLineEndings
140
142
  });
143
+ export const KritzelLoadingOverlay = /*@__PURE__*/ createComponent({
144
+ tagName: 'kritzel-loading-overlay',
145
+ elementClass: KritzelLoadingOverlayElement,
146
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
147
+ react: React,
148
+ events: {},
149
+ defineCustomElement: defineKritzelLoadingOverlay
150
+ });
141
151
  export const KritzelLoginDialog = /*@__PURE__*/ createComponent({
142
152
  tagName: 'kritzel-login-dialog',
143
153
  elementClass: KritzelLoginDialogElement,
@@ -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 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";
6
+ import { type ActiveWorkspaceChangeEvent, type EditorIsReadyEvent, type IKritzelDialogCloseEvent, type IKritzelIsPublicChangedEvent, type IKritzelMasterDetailSelectEvent, type KritzelBackToContentCustomEvent, type KritzelBaseObject, type KritzelBaseTool, type KritzelButtonCustomEvent, type KritzelCurrentUserDialogCustomEvent, 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";
@@ -15,6 +15,7 @@ import { KritzelEngine as KritzelEngineElement } from "../../../../kritzel-stenc
15
15
  import { KritzelExport as KritzelExportElement } from "../../../../kritzel-stencil/dist/components/kritzel-export.js";
16
16
  import { KritzelInput as KritzelInputElement } from "../../../../kritzel-stencil/dist/components/kritzel-input.js";
17
17
  import { KritzelLineEndings as KritzelLineEndingsElement } from "../../../../kritzel-stencil/dist/components/kritzel-line-endings.js";
18
+ import { KritzelLoadingOverlay as KritzelLoadingOverlayElement } from "../../../../kritzel-stencil/dist/components/kritzel-loading-overlay.js";
18
19
  import { KritzelLoginDialog as KritzelLoginDialogElement } from "../../../../kritzel-stencil/dist/components/kritzel-login-dialog.js";
19
20
  import { KritzelMasterDetail as KritzelMasterDetailElement } from "../../../../kritzel-stencil/dist/components/kritzel-master-detail.js";
20
21
  import { KritzelNotificationCard as KritzelNotificationCardElement } from "../../../../kritzel-stencil/dist/components/kritzel-notification-card.js";
@@ -34,7 +35,9 @@ export type KritzelButtonEvents = {
34
35
  onButtonClick: EventName<KritzelButtonCustomEvent<void>>;
35
36
  };
36
37
  export declare const KritzelButton: StencilReactComponent<KritzelButtonElement, KritzelButtonEvents, Components.KritzelButton>;
37
- export type KritzelCurrentUserDialogEvents = NonNullable<unknown>;
38
+ export type KritzelCurrentUserDialogEvents = {
39
+ onLogoutRequest: EventName<KritzelCurrentUserDialogCustomEvent<void>>;
40
+ };
38
41
  export declare const KritzelCurrentUserDialog: StencilReactComponent<KritzelCurrentUserDialogElement, KritzelCurrentUserDialogEvents, Components.KritzelCurrentUserDialog>;
39
42
  export type KritzelDialogEvents = {
40
43
  onDialogOpen: EventName<KritzelDialogCustomEvent<void>>;
@@ -74,6 +77,7 @@ export type KritzelEngineEvents = {
74
77
  onViewportChange: EventName<KritzelEngineCustomEvent<KritzelViewportState>>;
75
78
  onAwarenessChange: EventName<KritzelEngineCustomEvent<Map<number, Record<string, any>>>>;
76
79
  onNotificationsChange: EventName<KritzelEngineCustomEvent<KritzelNotification>>;
80
+ onLoadingChange: EventName<KritzelEngineCustomEvent<boolean>>;
77
81
  };
78
82
  export declare const KritzelEngine: StencilReactComponent<KritzelEngineElement, KritzelEngineEvents, Components.KritzelEngine>;
79
83
  export type KritzelExportEvents = {
@@ -90,6 +94,8 @@ export type KritzelLineEndingsEvents = {
90
94
  onValueChange: EventName<KritzelLineEndingsCustomEvent<LineArrowConfig>>;
91
95
  };
92
96
  export declare const KritzelLineEndings: StencilReactComponent<KritzelLineEndingsElement, KritzelLineEndingsEvents, Components.KritzelLineEndings>;
97
+ export type KritzelLoadingOverlayEvents = NonNullable<unknown>;
98
+ export declare const KritzelLoadingOverlay: StencilReactComponent<KritzelLoadingOverlayElement, KritzelLoadingOverlayEvents, Components.KritzelLoadingOverlay>;
93
99
  export type KritzelLoginDialogEvents = {
94
100
  onProviderLogin: EventName<KritzelLoginDialogCustomEvent<LoginEvent>>;
95
101
  onDialogClosed: EventName<KritzelLoginDialogCustomEvent<void>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kritzel-react",
3
- "version": "0.3.34",
3
+ "version": "0.3.36",
4
4
  "homepage": "https://kritzel.io/",
5
5
  "description": "Kritzel helps you build infinite canvas experiences with React.",
6
6
  "keywords": [
@@ -28,7 +28,7 @@
28
28
  "@stencil/react-output-target": "^1.2.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "kritzel-stencil": "^0.3.34"
31
+ "kritzel-stencil": "^0.3.36"
32
32
  },
33
33
  "repository": {
34
34
  "type": "git",