@kritzel/engine 0.4.31 → 0.4.33
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/LICENSE.md +49 -49
- package/dist/cjs/{engine.constants-CakmdKMW.js → engine.constants-VyFrUl1W.js} +627 -129
- package/dist/cjs/{index-BbbWU2aN.js → index-BP5Iy6FQ.js} +27 -9
- package/dist/cjs/index.cjs.js +4 -2
- package/dist/cjs/kritzel-awareness-cursors_5.cjs.entry.js +257 -113
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stencil.cjs.js +3 -3
- package/dist/collection/classes/core/core.class.js +40 -32
- package/dist/collection/classes/core/reviver.class.js +4 -0
- package/dist/collection/classes/core/store.class.js +10 -3
- package/dist/collection/classes/managers/cursor.manager.js +10 -5
- package/dist/collection/classes/objects/dynamic-object.class.js +18 -5
- package/dist/collection/classes/objects/iframe.class.js +447 -0
- package/dist/collection/classes/registries/icon-registry.class.js +100 -67
- package/dist/collection/classes/tools/selection-tool.class.js +3 -3
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/kritzel-awareness-cursors/kritzel-awareness-cursors.css +115 -115
- package/dist/collection/components/kritzel-awareness-cursors/kritzel-awareness-cursors.js +1 -1
- package/dist/collection/components/kritzel-cursor-trail/kritzel-cursor-trail.css +10 -10
- package/dist/collection/components/kritzel-cursor-trail/kritzel-cursor-trail.js +1 -1
- package/dist/collection/components/kritzel-engine/kritzel-engine.css +80 -80
- package/dist/collection/components/kritzel-engine/kritzel-engine.js +196 -44
- package/dist/collection/components/kritzel-icon/kritzel-icon.css +18 -18
- package/dist/collection/components/kritzel-icon/kritzel-icon.js +25 -4
- package/dist/collection/components/kritzel-watermark/kritzel-watermark.css +29 -29
- package/dist/collection/components/kritzel-watermark/kritzel-watermark.js +2 -2
- package/dist/collection/constants/version.js +1 -1
- package/dist/collection/helpers/cursor.helper.js +8 -8
- package/dist/collection/helpers/object.helper.js +13 -0
- package/dist/collection/helpers/svg-export.helper.js +55 -41
- package/dist/collection/helpers/wheel.helper.js +1 -7
- package/dist/collection/index.js +3 -0
- package/dist/collection/interfaces/embedded-object.interface.js +1 -0
- package/dist/collection/themes/dark-theme.js +1 -5
- package/dist/collection/themes/light-theme.js +1 -6
- package/dist/components/index.js +7 -7
- package/dist/components/kritzel-awareness-cursors.js +1 -1
- package/dist/components/kritzel-cursor-trail.js +1 -1
- package/dist/components/kritzel-engine.js +755 -161
- package/dist/components/kritzel-icon.js +1 -1
- package/dist/components/kritzel-watermark.js +1 -1
- package/dist/components/{p-B2Htv9ou.js → p-BHVbfJrf.js} +3 -3
- package/dist/components/{p-YP8wAcF4.js → p-BTU9qcSW.js} +2 -2
- package/dist/components/{p-CfSx6HU_.js → p-BWfRbEIq.js} +16 -4
- package/dist/components/p-NAEiq8CK.js +214 -0
- package/dist/components/{p-BvRGQvVI.js → p-k0LxV9Bg.js} +18 -14
- package/dist/esm/{engine.constants-Bl5-pbq-.js → engine.constants-BHTr2qPx.js} +626 -130
- package/dist/esm/{index-BU9Mv7y0.js → index-C8PnHbLt.js} +27 -10
- package/dist/esm/index.js +3 -3
- package/dist/esm/kritzel-awareness-cursors_5.entry.js +257 -113
- package/dist/esm/loader.js +3 -3
- package/dist/esm/stencil.js +4 -4
- package/dist/stencil/index.esm.js +3 -3
- package/dist/stencil/{p-f0a8b7af.entry.js → p-40097a38.entry.js} +257 -113
- package/dist/stencil/{p-Bl5-pbq-.js → p-BHTr2qPx.js} +626 -130
- package/dist/stencil/{p-BU9Mv7y0.js → p-C8PnHbLt.js} +27 -10
- package/dist/stencil/stencil.esm.js +4 -4
- package/dist/types/classes/core/store.class.d.ts +3 -2
- package/dist/types/classes/objects/dynamic-object.class.d.ts +4 -2
- package/dist/types/classes/objects/iframe.class.d.ts +76 -0
- package/dist/types/classes/registries/icon-registry.class.d.ts +75 -6
- package/dist/types/components/kritzel-engine/kritzel-engine.d.ts +14 -1
- package/dist/types/components/kritzel-icon/kritzel-icon.d.ts +5 -1
- package/dist/types/components.d.ts +26 -8
- package/dist/types/constants/version.d.ts +1 -1
- package/dist/types/helpers/cursor.helper.d.ts +2 -1
- package/dist/types/helpers/object.helper.d.ts +2 -0
- package/dist/types/helpers/svg-export.helper.d.ts +1 -0
- package/dist/types/helpers/wheel.helper.d.ts +2 -2
- package/dist/types/index.d.ts +3 -0
- package/dist/types/interfaces/context-menu-item.interface.d.ts +2 -1
- package/dist/types/interfaces/dynamic-object-renderer.interface.d.ts +7 -0
- package/dist/types/interfaces/embedded-object.interface.d.ts +9 -0
- package/dist/types/interfaces/engine-state.interface.d.ts +3 -2
- package/dist/types/interfaces/login-config.interface.d.ts +2 -1
- package/dist/types/interfaces/master-detail.interface.d.ts +2 -1
- package/dist/types/interfaces/menu-item.interface.d.ts +2 -1
- package/dist/types/interfaces/theme.interface.d.ts +6 -7
- package/dist/types/interfaces/tool.interface.d.ts +9 -0
- package/dist/types/interfaces/toolbar-item.interface.d.ts +3 -2
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/package.json +3 -1
- package/readme.md +10 -10
- package/dist/components/p-fx6msYHJ.js +0 -167
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'stencil';
|
|
|
2
2
|
const BUILD = /* stencil */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.45.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
@@ -848,7 +848,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
848
848
|
if (idxInOld >= 0) {
|
|
849
849
|
elmToMove = oldCh[idxInOld];
|
|
850
850
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
851
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2,
|
|
851
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
852
852
|
} else {
|
|
853
853
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
854
854
|
oldCh[idxInOld] = void 0;
|
|
@@ -1127,6 +1127,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1127
1127
|
hostRef.$flags$ &= -517;
|
|
1128
1128
|
}
|
|
1129
1129
|
};
|
|
1130
|
+
var forceUpdate = (ref) => {
|
|
1131
|
+
var _a;
|
|
1132
|
+
{
|
|
1133
|
+
const hostRef = getHostRef(ref);
|
|
1134
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
|
1135
|
+
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1136
|
+
scheduleUpdate(hostRef, false);
|
|
1137
|
+
}
|
|
1138
|
+
return isConnected;
|
|
1139
|
+
}
|
|
1140
|
+
};
|
|
1130
1141
|
var appDidLoad = (who) => {
|
|
1131
1142
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1132
1143
|
};
|
|
@@ -1272,21 +1283,26 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1272
1283
|
}
|
|
1273
1284
|
return;
|
|
1274
1285
|
}
|
|
1275
|
-
const
|
|
1286
|
+
const parsedValue = parsePropertyValue(
|
|
1287
|
+
newValue,
|
|
1288
|
+
memberFlags);
|
|
1289
|
+
const setterSetVal = (val) => {
|
|
1276
1290
|
const currentValue = ref.$lazyInstance$[memberName];
|
|
1277
1291
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1278
1292
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1279
1293
|
}
|
|
1280
|
-
ref.$lazyInstance$[memberName] =
|
|
1281
|
-
newValue,
|
|
1282
|
-
memberFlags);
|
|
1294
|
+
ref.$lazyInstance$[memberName] = val;
|
|
1283
1295
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1284
1296
|
};
|
|
1285
1297
|
if (ref.$lazyInstance$) {
|
|
1286
|
-
setterSetVal();
|
|
1298
|
+
setterSetVal(parsedValue);
|
|
1287
1299
|
} else {
|
|
1300
|
+
ref.$instanceValues$.set(memberName, parsedValue);
|
|
1288
1301
|
ref.$fetchedCbList$.push(() => {
|
|
1289
|
-
|
|
1302
|
+
const pendingValue = ref.$instanceValues$.get(memberName);
|
|
1303
|
+
if (ref.$lazyInstance$[memberName] !== pendingValue) {
|
|
1304
|
+
setterSetVal(pendingValue);
|
|
1305
|
+
}
|
|
1290
1306
|
});
|
|
1291
1307
|
}
|
|
1292
1308
|
}
|
|
@@ -1340,8 +1356,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1340
1356
|
if (isBooleanTarget) {
|
|
1341
1357
|
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1342
1358
|
}
|
|
1359
|
+
const currentValue = propMemberFlags & 4096 /* Setter */ ? hostRef.$instanceValues$.get(propName) : this[propName];
|
|
1343
1360
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1344
|
-
if (!isSpuriousBooleanRemoval && newValue !=
|
|
1361
|
+
if (!isSpuriousBooleanRemoval && newValue != currentValue && (!propDesc.get || !!propDesc.set)) {
|
|
1345
1362
|
this[propName] = newValue;
|
|
1346
1363
|
}
|
|
1347
1364
|
});
|
|
@@ -1712,4 +1729,4 @@ function transformTag(tag) {
|
|
|
1712
1729
|
return tag;
|
|
1713
1730
|
}
|
|
1714
1731
|
|
|
1715
|
-
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1732
|
+
export { Host as H, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DEFAULT_STROKE_SIZES, a as DEFAULT_COLOR_PALETTE, b as DEFAULT_FONT_SIZES, c as DEFAULT_TEXT_TOOL_AVAILABLE_FONTS, S as ShapeType } from './engine.constants-
|
|
2
|
-
export {
|
|
1
|
+
import { D as DEFAULT_STROKE_SIZES, a as DEFAULT_COLOR_PALETTE, b as DEFAULT_FONT_SIZES, c as DEFAULT_TEXT_TOOL_AVAILABLE_FONTS, S as ShapeType } from './engine.constants-BHTr2qPx.js';
|
|
2
|
+
export { a4 as ABSOLUTE_SCALE_MAX, a5 as ABSOLUTE_SCALE_MIN, _ as APP_STATE_MIGRATIONS, A as AssetNotFoundError, a0 as CURRENT_APP_STATE_SCHEMA_VERSION, a1 as CURRENT_WORKSPACE_SCHEMA_VERSION, P as DEFAULT_SYNC_CONFIG, V as DE_LOCALE, U as EN_LOCALE, X as FR_LOCALE, I as IndexedDBAssetProvider, a6 as KRITZEL_WEBSITE_URL, Y as KritzelAlignment, E as KritzelAnchorManager, B as KritzelAssetResolver, K as KritzelBaseObject, n as KritzelBaseTool, o as KritzelBrushTool, x as KritzelColorHelper, u as KritzelCursorHelper, w as KritzelDevicesHelper, j as KritzelDynamicObject, J as KritzelDynamicObjectRendererRegistry, q as KritzelEraserTool, L as KritzelFontRegistry, h as KritzelGroup, y as KritzelHTMLHelper, M as KritzelIconRegistry, k as KritzelIframeObject, f as KritzelImage, r as KritzelImageTool, v as KritzelKeyboardHelper, H as KritzelLicenseManager, g as KritzelLine, p as KritzelLineTool, G as KritzelLocalizationManager, e as KritzelPath, m as KritzelSelectionBox, l as KritzelSelectionGroup, z as KritzelSelectionTool, i as KritzelShape, t as KritzelShapeTool, d as KritzelText, s as KritzelTextTool, F as KritzelThemeManager, C as KritzelWorkspace, O as ObjectHelper, T as ThemeHelper, W as WORKSPACE_EXPORT_VERSION, $ as WORKSPACE_MIGRATIONS, R as darkTheme, N as defaultIcons, Q as lightTheme, a2 as resolveColor, a3 as resolveTextToolAvailableFonts, Z as runMigrations } from './engine.constants-BHTr2qPx.js';
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
import { IndexeddbPersistence } from 'y-indexeddb';
|
|
5
5
|
import { WebsocketProvider } from 'y-websocket';
|
|
@@ -4129,6 +4129,6 @@ const DEFAULT_ASSET_STORAGE_CONFIG = {
|
|
|
4129
4129
|
* This file is auto-generated by the version bump scripts.
|
|
4130
4130
|
* Do not modify manually.
|
|
4131
4131
|
*/
|
|
4132
|
-
const KRITZEL_VERSION = '0.4.
|
|
4132
|
+
const KRITZEL_VERSION = '0.4.33';
|
|
4133
4133
|
|
|
4134
4134
|
export { BroadcastSyncProvider, DEFAULT_ASSET_STORAGE_CONFIG, DEFAULT_BRUSH_CONFIG, DEFAULT_COLOR_PALETTE, DEFAULT_LINE_TOOL_CONFIG, DEFAULT_SHAPE_CONFIG, DEFAULT_TEXT_CONFIG, DEFAULT_TEXT_TOOL_AVAILABLE_FONTS, HocuspocusSyncProvider, HttpAssetProvider, InMemorySyncProvider, IndexedDBSyncProvider, KRITZEL_VERSION, KritzelToolConfigHelper, PresignedAssetProvider, ShapeType, WebSocketSyncProvider, hasRemoteSyncProvider };
|