x-block-lib 0.4.8 → 0.4.9

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,6 +1,4 @@
1
1
  import { App } from 'vue';
2
2
  import XBlockly from './blockly/index.vue';
3
- declare const global: {
4
- install: (app: App) => void;
5
- };
6
- export { XBlockly, global as default };
3
+ declare const install: (app: App) => void;
4
+ export { XBlockly, install };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,6 @@
1
+ declare const _default: {
2
+ install: (app: import("vue").App) => void;
3
+ };
4
+ export default _default;
1
5
  export * from './components';
2
6
  export * from './i18n';
package/dist/index.js CHANGED
@@ -5503,7 +5503,7 @@ function Yo(e, o, t) {
5503
5503
  N.callback
5504
5504
  )), i;
5505
5505
  }
5506
- const Ko = { class: "position-relative w-100 h-100" }, zo = /* @__PURE__ */ W({
5506
+ const Ko = { class: "position-relative w-100 h-100" }, Fo = /* @__PURE__ */ W({
5507
5507
  __name: "index",
5508
5508
  props: /* @__PURE__ */ Ae({
5509
5509
  type: {},
@@ -5621,11 +5621,16 @@ const Ko = { class: "position-relative w-100 h-100" }, zo = /* @__PURE__ */ W({
5621
5621
  ]);
5622
5622
  };
5623
5623
  }
5624
- });
5625
- async function Qo(e) {
5624
+ }), Ho = (e) => {
5625
+ e.component("x-blockly", Fo);
5626
+ };
5627
+ async function qo(e) {
5626
5628
  return (await Ke(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-hf8d9jpk.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-kicfou8k.js") }), `./locales/${e}/index.ts`, 4)).default;
5627
5629
  }
5630
+ const Zo = { install: Ho };
5628
5631
  export {
5629
- zo as XBlockly,
5630
- Qo as loadLocaleMessageBlock
5632
+ Fo as XBlockly,
5633
+ Zo as default,
5634
+ Ho as install,
5635
+ qo as loadLocaleMessageBlock
5631
5636
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.4.8",
4
+ "version": "0.4.9",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",