x-block-lib 0.8.53 → 0.8.55

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.
@@ -1,8 +1,8 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  lock: boolean;
3
- }
4
- declare const __VLS_export: import("vue").DefineComponent<Props, {
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
5
5
  cleanWorkspace: () => void;
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
7
  declare const _default: typeof __VLS_export;
8
8
  export default _default;
@@ -1,11 +1,10 @@
1
1
  import { Type } from './workspace';
2
- interface Props {
2
+ type __VLS_Props = {
3
3
  type: Type;
4
4
  version: string;
5
5
  locale: string;
6
6
  dark: boolean;
7
- }
8
- type __VLS_Props = Props;
7
+ };
9
8
  type __VLS_ModelProps = {
10
9
  'lock': boolean;
11
10
  'scale': number;
@@ -1,7 +1,6 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  lock: boolean;
3
- }
4
- type __VLS_Props = Props;
3
+ };
5
4
  type __VLS_ModelProps = {
6
5
  modelValue: boolean;
7
6
  };
@@ -1,12 +1,12 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  id: string;
3
3
  title: string;
4
4
  desc: string;
5
5
  select: boolean;
6
- }
7
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "x-click": (...args: any[]) => void;
9
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  "onX-click"?: ((...args: any[]) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,10 @@
1
- interface Props {
1
+ type __VLS_Props = {
2
2
  type: 'list' | 'tree';
3
3
  lock: boolean;
4
- }
5
- declare const __VLS_export: import("vue").DefineComponent<Props, {
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
6
6
  open: import("vue").WritableComputedRef<boolean, boolean>;
7
7
  update: () => void;
8
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const _default: typeof __VLS_export;
10
10
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import 'highlight.js/styles/default.min.css';
2
- interface Props {
2
+ type __VLS_Props = {
3
3
  code: string;
4
- }
5
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { Type } from 'x-runtime-lib';
2
+ import { Type } from 'x-essential-lib';
3
3
  interface ArgumentInfo {
4
4
  key: string;
5
5
  name: string;
@@ -1,5 +1,6 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { PropertyKind, Type, ZProperty } from 'x-runtime-lib';
2
+ import { Type } from 'x-essential-lib';
3
+ import { PropertyKind, ZProperty } from 'x-runtime-lib';
3
4
  interface PropertyInfo {
4
5
  id: string;
5
6
  kind: PropertyKind;
@@ -2,11 +2,11 @@ import * as Blockly from 'blockly/core';
2
2
  export declare function getAllStateInfos(): {
3
3
  id: string;
4
4
  name: string;
5
- type: import("x-runtime-lib").Type;
5
+ type: import("x-essential-lib").Type;
6
6
  }[];
7
7
  export declare function getStateInfo(id: string): {
8
8
  id: string;
9
9
  name: string;
10
- type: import("x-runtime-lib").Type;
10
+ type: import("x-essential-lib").Type;
11
11
  } | undefined;
12
12
  export declare function genStateOpts(): Blockly.MenuOption[];
@@ -1,5 +1,6 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { Type, ZProperty } from 'x-runtime-lib';
2
+ import { Type } from 'x-essential-lib';
3
+ import { ZProperty } from 'x-runtime-lib';
3
4
  export declare const plusImage: string;
4
5
  export declare const minusImage: string;
5
6
  export declare function toBlockType(key: string): string;
@@ -1,4 +1,5 @@
1
- import { Type, ZProperty } from 'x-runtime-lib';
1
+ import { Type } from 'x-essential-lib';
2
+ import { ZProperty } from 'x-runtime-lib';
2
3
  export declare function shadowOfTextV1(value: string): Element;
3
4
  export declare function shadowOfMathNumberV1(value: number): Element;
4
5
  export declare function shadowOfLogicBooleanV1(value: boolean): Element;
@@ -6,6 +6,6 @@ export declare function getActiveFunc(): import("x-state-lib").ActiveFunc;
6
6
  export declare function getActiveFuncOutputInfo(id: string): {
7
7
  id: string;
8
8
  name: string;
9
- type: import("x-runtime-lib").Type;
9
+ type: import("x-essential-lib").Type;
10
10
  } | undefined;
11
11
  export declare function genActiveFuncOutputOpts(): Blockly.MenuOption[];
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("pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-daa85471]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}")),document.head.appendChild(l)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var l=document.createElement("style");l.id="x-block-lib",l.appendChild(document.createTextNode("pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-a77ed323]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}")),document.head.appendChild(l)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  import { E as O, r as On, M as Ro, s as Do, a as Mo, X as Kn, u as L, B as A, j as i, O as l, F as v, b as Je, i as S, c as It, d as Uo, e as w, f as g, g as Vo, h as J, k as Et, p as wt, l as ct, m as vn, n as M, C as $n, N as rt, o as xo, P as qe, q as we, V as bt, t as Hn, W as Yo, v as Fo, w as wo, S as Ko, x as $o, y as Ho, z as Xt, T as ve, A as Gn, D as Go, G as Wo, H as Wn, I as jo, J as Xo, K as Jo, L as qo, Q as Qo, R as zo, U as Zo, Y as ts } from "./vendor.je7mkgas.js";
3
3
  import { globalState as I } from "x-state-lib";
4
4
  import { globalObjects as St, openConfirmDlg as es, openPromptDlg as ns, messageWarning as jn, useColor as Jt, useSystem as Xn, useViewStack as rn, eventBus as Bt } from "x-essential-lib";
@@ -4612,7 +4612,7 @@ const mi = {
4612
4612
  }, this.appendValueInput("VALUE").appendField("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TITLE}").appendField(
4613
4613
  new v(() => this.genOutputOpts_()),
4614
4614
  "OUTPUT"
4615
- ), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL}"), this.initData_();
4615
+ ), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL}"), this.initData_(), this.updateShape_(), this.updateShadows_();
4616
4616
  },
4617
4617
  initData_: function() {
4618
4618
  if (this.output.id)
@@ -10294,7 +10294,7 @@ const Xa = /* @__PURE__ */ pt({
10294
10294
  for (const [o, s] of e)
10295
10295
  n[o] = s;
10296
10296
  return n;
10297
- }, oc = /* @__PURE__ */ nc(ec, [["__scopeId", "data-v-daa85471"]]), sc = /* @__PURE__ */ pt({
10297
+ }, oc = /* @__PURE__ */ nc(ec, [["__scopeId", "data-v-a77ed323"]]), sc = /* @__PURE__ */ pt({
10298
10298
  __name: "index",
10299
10299
  props: {
10300
10300
  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.8.53",
4
+ "version": "0.8.55",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -32,35 +32,35 @@
32
32
  "blockly": "^12.3.1",
33
33
  "highlight.js": "^11.11.1",
34
34
  "lodash-es": "^4.17.21",
35
- "vue": "^3.5.23",
35
+ "vue": "^3.5.25",
36
36
  "vue-draggable-plus": "^0.6.0",
37
- "vue-i18n": "^11.1.12",
37
+ "vue-i18n": "^11.2.1",
38
38
  "vue-router": "^4.6.3",
39
- "vuetify": "^3.10.9",
40
- "x-essential-lib": "^0.9.16",
41
- "x-runtime-lib": "^0.8.97",
42
- "x-state-lib": "^0.3.28"
39
+ "vuetify": "^3.11.1",
40
+ "x-essential-lib": "^0.9.18",
41
+ "x-runtime-lib": "^0.8.109",
42
+ "x-state-lib": "^0.3.29"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@eslint/js": "^9.39.1",
46
46
  "@types/lodash-es": "^4.17.12",
47
- "@types/node": "^24.10.0",
48
- "@vitejs/plugin-vue": "^6.0.1",
47
+ "@types/node": "^24.10.1",
48
+ "@vitejs/plugin-vue": "^6.0.2",
49
49
  "eslint": "^9.39.1",
50
50
  "eslint-config-prettier": "^10.1.8",
51
51
  "eslint-plugin-prettier": "^5.5.4",
52
- "eslint-plugin-vue": "^10.5.1",
52
+ "eslint-plugin-vue": "^10.6.0",
53
53
  "globals": "^16.5.0",
54
54
  "husky": "^9.1.7",
55
- "lint-staged": "^16.2.6",
55
+ "lint-staged": "^16.2.7",
56
56
  "prettier": "3.6.2",
57
- "sass": "^1.93.3",
57
+ "sass": "^1.94.2",
58
58
  "typescript": "^5.9.3",
59
- "typescript-eslint": "^8.46.3",
60
- "vite": "^7.2.1",
59
+ "typescript-eslint": "^8.48.0",
60
+ "vite": "^7.2.4",
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",
64
- "vue-tsc": "^3.1.3"
64
+ "vue-tsc": "^3.1.5"
65
65
  }
66
66
  }