x-block-lib 0.6.52 → 0.6.53

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 CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var l=document.createElement("style");l.id="x-block-lib",l.appendChild(document.createTextNode(`.ghost[data-v-b0e98c91]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:10px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}/*!
1
+ (function(){"use strict";try{if(typeof document<"u"){var l=document.createElement("style");l.id="x-block-lib",l.appendChild(document.createTextNode(`.ghost[data-v-67cacda2]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:10px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}/*!
2
2
  Theme: Default
3
3
  Description: Original highlight.js style
4
4
  Author: (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
@@ -11,7 +11,7 @@ var Cc = Object.defineProperty;
11
11
  var Sc = (e, t, n) => t in e ? Cc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
12
12
  var zs = (e, t, n) => Sc(e, typeof t != "symbol" ? t + "" : t, n);
13
13
  import { getCurrentScope as kc, onScopeDispose as Nc, computed as Le, toValue as sr, watch as Rt, shallowRef as Lc, getCurrentInstance as Qo, onMounted as Mo, provide as Bc, inject as Rc, defineComponent as ut, resolveComponent as Pe, createBlock as gt, openBlock as Be, unref as X, withCtx as Tt, createVNode as be, mergeProps as Ts, useModel as Xn, toRefs as Dc, ref as Vt, reactive as Mc, h as zi, nextTick as Es, onUnmounted as As, isRef as qt, resolveDirective as xc, withDirectives as Pc, createElementBlock as ft, normalizeStyle as ct, createElementVNode as nt, toDisplayString as ei, withModifiers as wn, mergeModels as qi, Fragment as ar, renderList as Uc, useId as Zi, useTemplateRef as Vn, withKeys as rr, createCommentVNode as zt, onBeforeUnmount as wc } from "vue";
14
- import { d as C, j as r, O as u, f as Vc, F as lr, M as T, E as U, r as qs, u as K, X as Qt, B as S, i as Z, a as Qi, s as Je, b as en, c as Yt, e as mt, g as Zs, h as Ce, C as cr, k as Fc, P as es, N as vs, V as Dn, l as no, m as ur, n as Yc, S as Ke, o as bo, p as Mn, q as pn, t as go, v as Ci, w as Ln, x as Qs, G as Si, y as $c, T as ti, z as pr, A as _r, D as Hc, H as Kc, I as Gc, J as jc } from "./blockly-eckqnj1d.js";
14
+ import { d as C, j as r, O as u, f as Vc, F as lr, M as T, E as U, r as qs, u as K, X as Qt, B as S, i as Z, a as Qi, s as Je, b as en, c as Yt, e as mt, g as Zs, h as Ce, C as cr, k as Fc, P as es, N as vs, V as Dn, l as no, m as ur, n as Yc, S as Ke, o as bo, p as Mn, q as pn, t as go, v as Ci, w as Ln, x as Qs, G as Si, y as $c, T as ti, z as pr, A as _r, D as Hc, H as Kc, I as Gc, J as jc } from "./blockly-n4dtad8e.js";
15
15
  import { openConfirmDlg as Wc, openPromptDlg as Xc, messageWarning as hr, useColor as ni, useSystem as dr, useViewStack as Is } from "x-essential-lib";
16
16
  import { elements as Ve, pkgs as Jn, getPropTag as oi, parsePixelStr as Jc, parsePercentStr as zc } from "x-runtime-lib";
17
17
  import { globalState as L } from "x-state-lib";
@@ -12547,7 +12547,9 @@ const gs = [
12547
12547
  }
12548
12548
  if (g.oldIndex === g.newIndex)
12549
12549
  return;
12550
- const m = l[g.oldIndex], E = i.workspace.getBlockById(m);
12550
+ const m = l[g.oldIndex], E = i.workspace.getBlockById(
12551
+ m
12552
+ );
12551
12553
  if (!E) {
12552
12554
  console.assert(!1);
12553
12555
  return;
@@ -12555,7 +12557,9 @@ const gs = [
12555
12557
  let O = "";
12556
12558
  g.newIndex > g.oldIndex ? O = l[g.newIndex] : g.newIndex > 0 && (O = l[g.newIndex - 1]);
12557
12559
  let $ = -10;
12558
- O !== "" && ($ = i.workspace.getBlockById(O).getRelativeToSurfaceXY().y + 10);
12560
+ O !== "" && ($ = i.workspace.getBlockById(
12561
+ O
12562
+ ).getRelativeToSurfaceXY().y + 10);
12559
12563
  const G = E.getRelativeToSurfaceXY();
12560
12564
  E.moveTo(new K.Coordinate(G.x, $)), i.workspace.cleanUp(), cl();
12561
12565
  }, d = async (g) => {
@@ -12594,7 +12598,7 @@ const gs = [
12594
12598
  for (const [o, i] of t)
12595
12599
  n[o] = i;
12596
12600
  return n;
12597
- }, NT = /* @__PURE__ */ kT(ST, [["__scopeId", "data-v-b0e98c91"]]), LT = /* @__PURE__ */ ut({
12601
+ }, NT = /* @__PURE__ */ kT(ST, [["__scopeId", "data-v-67cacda2"]]), LT = /* @__PURE__ */ ut({
12598
12602
  __name: "index",
12599
12603
  props: {
12600
12604
  modelValue: { type: Boolean, required: !0 },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.6.52",
4
+ "version": "0.6.53",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "@highlightjs/vue-plugin": "^2.1.0",
26
26
  "@mdi/js": "^7.4.47",
27
27
  "axios": "^1.8.4",
28
- "blockly": "^12.0.0-beta.4",
28
+ "blockly": "^12.0.0-beta.5",
29
29
  "highlight.js": "^11.11.1",
30
30
  "lodash-es": "^4.17.21",
31
31
  "vue": "^3.5.13",