stickyflow 0.11.3 → 0.12.0
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/CHANGELOG.md +17 -0
- package/dist/binding/index.cjs +9 -9
- package/dist/binding/index.d.cts +3 -3
- package/dist/binding/index.d.ts +3 -3
- package/dist/binding/index.js +3 -3
- package/dist/{chunk-WZA3DJJH.cjs → chunk-3OF37CZX.cjs} +15 -15
- package/dist/{chunk-WZA3DJJH.cjs.map → chunk-3OF37CZX.cjs.map} +1 -1
- package/dist/{chunk-V22J7Z4H.cjs → chunk-3XPNGIMV.cjs} +37 -37
- package/dist/chunk-3XPNGIMV.cjs.map +1 -0
- package/dist/{chunk-G6IW2IX3.js → chunk-4SXXMOXR.js} +31 -5
- package/dist/chunk-4SXXMOXR.js.map +1 -0
- package/dist/{chunk-GQRJSA73.cjs → chunk-EG7VZJZX.cjs} +23 -23
- package/dist/{chunk-GQRJSA73.cjs.map → chunk-EG7VZJZX.cjs.map} +1 -1
- package/dist/{chunk-BFQWCOEC.js → chunk-FYSJMUJI.js} +3 -3
- package/dist/{chunk-BFQWCOEC.js.map → chunk-FYSJMUJI.js.map} +1 -1
- package/dist/{chunk-W25SXORW.js → chunk-LDRUTQF7.js} +4 -4
- package/dist/{chunk-W25SXORW.js.map → chunk-LDRUTQF7.js.map} +1 -1
- package/dist/{chunk-IQQ5KBL6.js → chunk-Q4OIDWT6.js} +6 -6
- package/dist/chunk-Q4OIDWT6.js.map +1 -0
- package/dist/{chunk-UHKFJBY5.cjs → chunk-SKGJXCAO.cjs} +31 -5
- package/dist/chunk-SKGJXCAO.cjs.map +1 -0
- package/dist/{chunk-EBHO2FJ5.js → chunk-UCOMSZPC.js} +10 -9
- package/dist/chunk-UCOMSZPC.js.map +1 -0
- package/dist/{chunk-K5PGMZAD.cjs → chunk-ZE2KRWOM.cjs} +663 -662
- package/dist/chunk-ZE2KRWOM.cjs.map +1 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +275 -237
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.js +41 -3
- package/dist/interaction/index.js.map +1 -1
- package/dist/{runtime-C-C5v9po.d.cts → runtime-BJDaqo6f.d.cts} +1 -1
- package/dist/{runtime-lCAfU-1Q.d.ts → runtime-DaconR36.d.ts} +1 -1
- package/dist/{runtimeTypes-BDA_CfWh.d.ts → runtimeTypes-BE_GI1yU.d.ts} +1 -1
- package/dist/{runtimeTypes-B7p6b1Bi.d.cts → runtimeTypes-BE_nllY6.d.cts} +1 -1
- package/dist/stickyflow-diagram.global.js +39 -39
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/viewer/index.cjs +9 -9
- package/dist/viewer/index.d.cts +1 -1
- package/dist/viewer/index.d.ts +1 -1
- package/dist/viewer/index.js +4 -4
- package/dist/web-component/index.cjs +6 -6
- package/dist/web-component/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-EBHO2FJ5.js.map +0 -1
- package/dist/chunk-G6IW2IX3.js.map +0 -1
- package/dist/chunk-IQQ5KBL6.js.map +0 -1
- package/dist/chunk-K5PGMZAD.cjs.map +0 -1
- package/dist/chunk-UHKFJBY5.cjs.map +0 -1
- package/dist/chunk-V22J7Z4H.cjs.map +0 -1
|
@@ -1192,6 +1192,7 @@ var NAMED_BLOCK_KINDS = [
|
|
|
1192
1192
|
"Group",
|
|
1193
1193
|
"Entity",
|
|
1194
1194
|
"Container",
|
|
1195
|
+
"Screen",
|
|
1195
1196
|
"Path",
|
|
1196
1197
|
"Chart",
|
|
1197
1198
|
"Widget",
|
|
@@ -2669,6 +2670,7 @@ var CANVAS_OBJECT_BLOCK_KINDS = [
|
|
|
2669
2670
|
"Text",
|
|
2670
2671
|
"Image",
|
|
2671
2672
|
"Container",
|
|
2673
|
+
"Screen",
|
|
2672
2674
|
"Path",
|
|
2673
2675
|
"Chart",
|
|
2674
2676
|
"Widget",
|
|
@@ -3220,6 +3222,9 @@ function resolveSwimlaneObject(base, properties) {
|
|
|
3220
3222
|
|
|
3221
3223
|
// src/sflSemantic/canvasObjects/processing/classification.ts
|
|
3222
3224
|
function declaredCanvasObjectKind(block2, properties) {
|
|
3225
|
+
if (block2.kind === "Screen") {
|
|
3226
|
+
return "screen";
|
|
3227
|
+
}
|
|
3223
3228
|
if (block2.kind === "Path") {
|
|
3224
3229
|
return "path";
|
|
3225
3230
|
}
|
|
@@ -3244,7 +3249,7 @@ function declaredCanvasObjectKind(block2, properties) {
|
|
|
3244
3249
|
return asString(properties.get("kind")) ?? "";
|
|
3245
3250
|
}
|
|
3246
3251
|
function canvasObjectTypeForKind(kind) {
|
|
3247
|
-
if (kind === "frame") {
|
|
3252
|
+
if (kind === "frame" || kind === "screen") {
|
|
3248
3253
|
return "frame";
|
|
3249
3254
|
}
|
|
3250
3255
|
if (kind === "swimlane") {
|
|
@@ -3399,7 +3404,7 @@ var CanvasTreeResolver = class {
|
|
|
3399
3404
|
}
|
|
3400
3405
|
#resolveChild(child, location, nextFlowPosition) {
|
|
3401
3406
|
const sourceIndex = this.#sequence++;
|
|
3402
|
-
if (child.kind === "Container") {
|
|
3407
|
+
if (child.kind === "Container" || child.kind === "Screen") {
|
|
3403
3408
|
return this.#resolveContainer(child, location, nextFlowPosition, sourceIndex);
|
|
3404
3409
|
}
|
|
3405
3410
|
if (isCanvasObjectBlockKind(child.kind)) {
|
|
@@ -3819,6 +3824,7 @@ var OBJECTS = /* @__PURE__ */ new Set([
|
|
|
3819
3824
|
"Text",
|
|
3820
3825
|
"Image",
|
|
3821
3826
|
"Container",
|
|
3827
|
+
"Screen",
|
|
3822
3828
|
"Chart",
|
|
3823
3829
|
"Path",
|
|
3824
3830
|
"Widget",
|
|
@@ -3858,6 +3864,25 @@ function collectDuplicateNames(sflDocument) {
|
|
|
3858
3864
|
return diagnostics;
|
|
3859
3865
|
}
|
|
3860
3866
|
|
|
3867
|
+
// src/sflSemantic/diagnostics/screens.ts
|
|
3868
|
+
var MODEL_SCREEN_LINES = ["device", "screen", "screenColor", "at"];
|
|
3869
|
+
function collectModelScreenLines(sflDocument) {
|
|
3870
|
+
if (Number(sflDocument.version) < 1.7) {
|
|
3871
|
+
return [];
|
|
3872
|
+
}
|
|
3873
|
+
return sflDocument.blocks.filter((block2) => block2.kind === "Model").flatMap((model) => {
|
|
3874
|
+
const properties = directProperties(model);
|
|
3875
|
+
return MODEL_SCREEN_LINES.filter((key) => properties.has(key)).map(
|
|
3876
|
+
(key) => ({
|
|
3877
|
+
severity: "warning",
|
|
3878
|
+
code: "model-screen-line",
|
|
3879
|
+
ownerId: model.name,
|
|
3880
|
+
message: `'${key}' on a Model is no longer used from sfl 1.7. Put the design into a Screen block.`
|
|
3881
|
+
})
|
|
3882
|
+
);
|
|
3883
|
+
});
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3861
3886
|
// src/sflSemantic/canvasState/resolution.ts
|
|
3862
3887
|
function createCanvasResolution(doc) {
|
|
3863
3888
|
const definitions = collectCanvasDefinitions(doc);
|
|
@@ -3869,7 +3894,8 @@ function createCanvasResolution(doc) {
|
|
|
3869
3894
|
...collectUnsupportedGridShapes(doc),
|
|
3870
3895
|
...collectEmptySeries(doc),
|
|
3871
3896
|
...collectUnsupportedComponentTypes(doc),
|
|
3872
|
-
...collectDuplicateNames(doc)
|
|
3897
|
+
...collectDuplicateNames(doc),
|
|
3898
|
+
...collectModelScreenLines(doc)
|
|
3873
3899
|
],
|
|
3874
3900
|
canvasObjectResolutionContext: createCanvasObjectPropertyReaders(definitions)
|
|
3875
3901
|
};
|
|
@@ -6192,5 +6218,5 @@ exports.tokenizeSource = tokenizeSource;
|
|
|
6192
6218
|
exports.topRoundedRectPath = topRoundedRectPath;
|
|
6193
6219
|
exports.wrapText = wrapText;
|
|
6194
6220
|
exports.zoneColorAtValue = zoneColorAtValue;
|
|
6195
|
-
//# sourceMappingURL=chunk-
|
|
6196
|
-
//# sourceMappingURL=chunk-
|
|
6221
|
+
//# sourceMappingURL=chunk-SKGJXCAO.cjs.map
|
|
6222
|
+
//# sourceMappingURL=chunk-SKGJXCAO.cjs.map
|