x-block-lib 0.8.63 → 0.8.64
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/dist/index.js +515 -518
- package/dist/{vendor.je7mkgas.js → vendor.k8hjxofe.js} +15 -12
- package/package.json +15 -15
|
@@ -1859,7 +1859,9 @@ Use ` + r + " instead."), Qm.has(e) || (Qm.add(e), console.warn(e));
|
|
|
1859
1859
|
k.ANIMATE,
|
|
1860
1860
|
{ id: "animationCircle", begin: "indefinite", attributeName: "r", dur: "150ms", from: 0, to: 25 * o },
|
|
1861
1861
|
i
|
|
1862
|
-
), t = H(k.ANIMATE, { id: "animationOpacity", begin: "indefinite", attributeName: "opacity", dur: "150ms", from: 1, to: 0 }, i), e.beginElement(), t.beginElement(), setTimeout(() =>
|
|
1862
|
+
), t = H(k.ANIMATE, { id: "animationOpacity", begin: "indefinite", attributeName: "opacity", dur: "150ms", from: 1, to: 0 }, i), e.beginElement(), t.beginElement(), setTimeout(() => {
|
|
1863
|
+
He(i);
|
|
1864
|
+
}, 150);
|
|
1863
1865
|
}
|
|
1864
1866
|
}, Vu = function(e) {
|
|
1865
1867
|
if (Os(), e.workspace.getAudioManager().play("disconnect"), !(e.workspace.scale < 1)) {
|
|
@@ -2615,7 +2617,7 @@ Use ` + r + " instead."), Qm.has(e) || (Qm.add(e), console.warn(e));
|
|
|
2615
2617
|
if (o && o.Math == Math) return o;
|
|
2616
2618
|
}
|
|
2617
2619
|
throw Error("Cannot find global object");
|
|
2618
|
-
}, F.global = F.ASSUME_ES2020 ? globalThis : F.getGlobal(this), F.IS_SYMBOL_NATIVE = typeof Symbol == "function" && typeof Symbol("x") == "symbol", F.TRUST_ES6_POLYFILLS = !F.ISOLATE_POLYFILLS || F.IS_SYMBOL_NATIVE, F.polyfills = {}, F.propertyToPolyfillSymbol = {}, F.POLYFILL_PREFIX = "$jscp$", F.polyfill = function(e, t, o, r) {
|
|
2620
|
+
}, F.global = F.ASSUME_ES2020 ? globalThis : F.getGlobal(this), F.IS_SYMBOL_NATIVE = typeof Symbol == "function" && typeof /* @__PURE__ */ Symbol("x") == "symbol", F.TRUST_ES6_POLYFILLS = !F.ISOLATE_POLYFILLS || F.IS_SYMBOL_NATIVE, F.polyfills = {}, F.propertyToPolyfillSymbol = {}, F.POLYFILL_PREFIX = "$jscp$", F.polyfill = function(e, t, o, r) {
|
|
2619
2621
|
t && (F.ISOLATE_POLYFILLS ? F.polyfillIsolated(e, t, o, r) : F.polyfillUnisolated(e, t, o, r));
|
|
2620
2622
|
}, F.polyfillUnisolated = function(e, t, o, r) {
|
|
2621
2623
|
for (o = F.global, e = e.split("."), r = 0; r < e.length - 1; r++) {
|
|
@@ -4959,7 +4961,7 @@ children`), this.state = e;
|
|
|
4959
4961
|
throw Error("Attempted to instantiate a field from the registry that hasn't defined a 'fromJson' method.");
|
|
4960
4962
|
}
|
|
4961
4963
|
};
|
|
4962
|
-
lt.NBSP = " ", lt.SKIP_SETUP = Symbol("SKIP_SETUP");
|
|
4964
|
+
lt.NBSP = " ", lt.SKIP_SETUP = /* @__PURE__ */ Symbol("SKIP_SETUP");
|
|
4963
4965
|
var Gt = class extends Error {
|
|
4964
4966
|
constructor() {
|
|
4965
4967
|
super("The field has not yet been attached to its input. Call appendField to attach it.");
|
|
@@ -5578,7 +5580,13 @@ children`), this.state = e;
|
|
|
5578
5580
|
), this.view.getSvgRoot().setAttribute("id", this.id), this.addModelUpdateBindings(), X(this.view.getSvgRoot(), "pointerdown", this, this.startGesture);
|
|
5579
5581
|
}
|
|
5580
5582
|
addModelUpdateBindings() {
|
|
5581
|
-
this.view.addTextChangeListener((e, t) =>
|
|
5583
|
+
this.view.addTextChangeListener((e, t) => {
|
|
5584
|
+
super.setText(t);
|
|
5585
|
+
}), this.view.addSizeChangeListener((e, t) => {
|
|
5586
|
+
super.setSize(t);
|
|
5587
|
+
}), this.view.addOnCollapseListener(() => {
|
|
5588
|
+
super.setCollapsed(this.view.isCollapsed());
|
|
5589
|
+
}), this.view.addDisposeListener(() => {
|
|
5582
5590
|
this.isDeadOrDying() || this.dispose();
|
|
5583
5591
|
});
|
|
5584
5592
|
}
|
|
@@ -13330,12 +13338,7 @@ Blockly.YourGeneratorName.nameDB_.setVariableMap(workspace.getVariableMap());`),
|
|
|
13330
13338
|
const t = this.outputConnection.width;
|
|
13331
13339
|
var o = this.outputConnection.shape.type;
|
|
13332
13340
|
const r = this.constants_;
|
|
13333
|
-
if (this.inputRows.length > 1)
|
|
13334
|
-
case r.SHAPES.ROUND:
|
|
13335
|
-
return o = this.constants_.MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH, o = this.height / 2 > o ? o : this.height / 2, t - o * (1 - Math.sin(Math.acos((o - this.constants_.SMALL_PADDING) / o)));
|
|
13336
|
-
default:
|
|
13337
|
-
return 0;
|
|
13338
|
-
}
|
|
13341
|
+
if (this.inputRows.length > 1) return o === r.SHAPES.ROUND ? (o = this.constants_.MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH, o = this.height / 2 > o ? o : this.height / 2, t - o * (1 - Math.sin(Math.acos((o - this.constants_.SMALL_PADDING) / o)))) : 0;
|
|
13339
13342
|
if (y.isInlineInput(e)) {
|
|
13340
13343
|
const i = e.connectedBlock;
|
|
13341
13344
|
return e = i ? i.pathObject.outputShapeType : e.shape.type, e == null || i && i.outputConnection && (i.statementInputCount || i.nextConnection) || o === r.SHAPES.HEXAGONAL && o !== e ? 0 : t - this.constants_.SHAPE_IN_SHAPE_PADDING[o][e];
|
|
@@ -23256,7 +23259,7 @@ function tw() {
|
|
|
23256
23259
|
clonedData: Ab
|
|
23257
23260
|
};
|
|
23258
23261
|
}
|
|
23259
|
-
const vT = Symbol("cloneElement");
|
|
23262
|
+
const vT = /* @__PURE__ */ Symbol("cloneElement");
|
|
23260
23263
|
function ow(...l) {
|
|
23261
23264
|
var g, n;
|
|
23262
23265
|
const f = (g = Fa()) == null ? void 0 : g.proxy;
|
|
@@ -24218,7 +24221,7 @@ function nw() {
|
|
|
24218
24221
|
super(_), this.name = "HTMLInjectionError", this.html = I;
|
|
24219
24222
|
}
|
|
24220
24223
|
}
|
|
24221
|
-
const a = n, m = f, u = Symbol("nomatch"), c = 7, s = function(p) {
|
|
24224
|
+
const a = n, m = f, u = /* @__PURE__ */ Symbol("nomatch"), c = 7, s = function(p) {
|
|
24222
24225
|
const _ = /* @__PURE__ */ Object.create(null), I = /* @__PURE__ */ Object.create(null), M = [];
|
|
24223
24226
|
let Q = !0;
|
|
24224
24227
|
const ke = "Could not find the language '{}', did you forget to load/include a language module?", ue = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-block-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.64",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"axios": "^1.13.2",
|
|
32
32
|
"blockly": "^12.3.1",
|
|
33
33
|
"highlight.js": "^11.11.1",
|
|
34
|
-
"lodash-es": "^4.17.
|
|
35
|
-
"vue": "^3.5.
|
|
34
|
+
"lodash-es": "^4.17.22",
|
|
35
|
+
"vue": "^3.5.26",
|
|
36
36
|
"vue-draggable-plus": "^0.6.0",
|
|
37
37
|
"vue-i18n": "^11.2.2",
|
|
38
|
-
"vue-router": "^4.6.
|
|
39
|
-
"vuetify": "^3.11.
|
|
40
|
-
"x-essential-lib": "^0.9.
|
|
41
|
-
"x-runtime-lib": "^0.8.
|
|
42
|
-
"x-state-lib": "^0.3.
|
|
38
|
+
"vue-router": "^4.6.4",
|
|
39
|
+
"vuetify": "^3.11.4",
|
|
40
|
+
"x-essential-lib": "^0.9.20",
|
|
41
|
+
"x-runtime-lib": "^0.8.132",
|
|
42
|
+
"x-state-lib": "^0.3.32"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@eslint/js": "^9.39.
|
|
45
|
+
"@eslint/js": "^9.39.2",
|
|
46
46
|
"@types/lodash-es": "^4.17.12",
|
|
47
|
-
"@types/node": "^25.0.
|
|
48
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
49
|
-
"eslint": "^9.39.
|
|
47
|
+
"@types/node": "^25.0.3",
|
|
48
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
49
|
+
"eslint": "^9.39.2",
|
|
50
50
|
"eslint-config-prettier": "^10.1.8",
|
|
51
51
|
"eslint-plugin-prettier": "^5.5.4",
|
|
52
52
|
"eslint-plugin-vue": "^10.6.2",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"husky": "^9.1.7",
|
|
55
55
|
"lint-staged": "^16.2.7",
|
|
56
56
|
"prettier": "3.7.4",
|
|
57
|
-
"sass": "^1.
|
|
57
|
+
"sass": "^1.97.0",
|
|
58
58
|
"typescript": "^5.9.3",
|
|
59
|
-
"typescript-eslint": "^8.
|
|
60
|
-
"vite": "^7.
|
|
59
|
+
"typescript-eslint": "^8.50.0",
|
|
60
|
+
"vite": "^7.3.0",
|
|
61
61
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
62
62
|
"vite-plugin-vuetify": "^2.1.2",
|
|
63
63
|
"vue-eslint-parser": "^10.2.0",
|