hoci 0.8.1 → 0.9.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/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { install } from '@hoci/components';
2
- export * from '@hoci/components';
3
- export * from '@hoci/core';
1
+ import { install } from "@hoci/components";
2
+ export * from "@hoci/components";
3
+ export * from "@hoci/core";
4
4
 
5
+ //#region index.d.ts
5
6
  declare const _default: {
6
- install: typeof install;
7
+ install: typeof install;
7
8
  };
8
-
9
- export = _default;
9
+ //#endregion
10
+ export { _default as default };
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import { install } from "@hoci/components";
2
+
3
+ export * from "@hoci/components"
4
+
5
+ export * from "@hoci/core"
6
+
7
+ //#region index.ts
8
+ var hoci_default = { install };
9
+
10
+ //#endregion
11
+ export { hoci_default as default };
@@ -1,7 +1,6 @@
1
- import { ComponentResolver } from 'unplugin-vue-components';
1
+ import { ComponentResolver } from "unplugin-vue-components";
2
2
 
3
+ //#region resolver.d.ts
3
4
  declare function HociResolver(): ComponentResolver;
4
-
5
- // @ts-ignore
6
- export = HociResolver;
7
- export { HociResolver };
5
+ //#endregion
6
+ export { HociResolver, HociResolver as default };
@@ -0,0 +1,16 @@
1
+ //#region resolver.ts
2
+ function HociResolver() {
3
+ return {
4
+ type: "component",
5
+ resolve: (name) => {
6
+ if (name.match(/^(Hi[A-Z]|hi-[a-z])/)) return {
7
+ name,
8
+ from: "hoci"
9
+ };
10
+ }
11
+ };
12
+ }
13
+ var resolver_default = HociResolver;
14
+
15
+ //#endregion
16
+ export { HociResolver, resolver_default as default };
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "hoci",
3
- "version": "0.8.1",
3
+ "type": "module",
4
+ "version": "0.9.0",
4
5
  "description": "a headless component library for vue3",
5
6
  "author": "Chizuki <chizukicn@outlook.com>",
6
7
  "license": "MIT",
@@ -9,38 +10,27 @@
9
10
  "url": "https://github.com/chizukicn/hoci"
10
11
  },
11
12
  "exports": {
12
- ".": {
13
- "types": "./dist/index.d.ts",
14
- "import": "./dist/index.mjs",
15
- "require": "./dist/index.cjs"
16
- },
17
- "./resolver": {
18
- "types": "./dist/resolver.d.ts",
19
- "import": "./dist/resolver.mjs",
20
- "require": "./dist/resolver.cjs"
21
- }
13
+ ".": "./dist/index.js",
14
+ "./resolver": "./dist/resolver.js",
15
+ "./package.json": "./package.json"
22
16
  },
23
- "main": "dist/index.cjs",
24
- "module": "dist/index.mjs",
25
- "types": "dist/index.d.ts",
17
+ "types": "./dist/index.d.ts",
26
18
  "files": [
27
- "*.d.ts",
28
19
  "dist/"
29
20
  ],
30
21
  "peerDependencies": {
31
- "unplugin-vue-components": "^0.25.2 || ^0.27.0 || ^28.0.0",
32
- "vue": "^3.0.0"
22
+ "@vueuse/core": ">=9.12.0",
23
+ "unplugin-vue-components": "^0.25.2 || ^0.27.0 || ^28.0.0 || ^29.0.0 || ^30.0.0 || ^31.0.0",
24
+ "vue": ">=3.3.0"
33
25
  },
34
26
  "dependencies": {
35
- "@hoci/components": "0.8.1",
36
- "@hoci/core": "0.8.1"
27
+ "@hoci/components": "0.9.0",
28
+ "@hoci/core": "0.9.0"
37
29
  },
38
30
  "optionalDependencies": {
39
- "unplugin-vue-components": "^29.0.0"
31
+ "unplugin-vue-components": "^31.0.0"
40
32
  },
41
33
  "scripts": {
42
- "build": "unbuild",
43
- "stub": "unbuild --stub",
44
- "prepublish": "pnpm build"
34
+ "build": "tsdown"
45
35
  }
46
36
  }
package/dist/index.cjs DELETED
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const components = require('@hoci/components');
6
- const core = require('@hoci/core');
7
-
8
- const index = { install: components.install };
9
-
10
- exports.default = index;
11
- Object.prototype.hasOwnProperty.call(components, '__proto__') &&
12
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
13
- Object.defineProperty(exports, '__proto__', {
14
- enumerable: true,
15
- value: components['__proto__']
16
- });
17
-
18
- Object.keys(components).forEach(function (k) {
19
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = components[k];
20
- });
21
- Object.prototype.hasOwnProperty.call(core, '__proto__') &&
22
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
23
- Object.defineProperty(exports, '__proto__', {
24
- enumerable: true,
25
- value: core['__proto__']
26
- });
27
-
28
- Object.keys(core).forEach(function (k) {
29
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = core[k];
30
- });
package/dist/index.d.cts DELETED
@@ -1,9 +0,0 @@
1
- import { install } from '@hoci/components';
2
- export * from '@hoci/components';
3
- export * from '@hoci/core';
4
-
5
- declare const _default: {
6
- install: typeof install;
7
- };
8
-
9
- export = _default;
package/dist/index.d.mts DELETED
@@ -1,9 +0,0 @@
1
- import { install } from '@hoci/components';
2
- export * from '@hoci/components';
3
- export * from '@hoci/core';
4
-
5
- declare const _default: {
6
- install: typeof install;
7
- };
8
-
9
- export { _default as default };
package/dist/index.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { install } from '@hoci/components';
2
- export * from '@hoci/components';
3
- export * from '@hoci/core';
4
-
5
- const index = { install };
6
-
7
- export { index as default };
package/dist/resolver.cjs DELETED
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- function HociResolver() {
6
- return {
7
- type: "component",
8
- resolve: (name) => {
9
- if (name.match(/^(Hi[A-Z]|hi-[a-z])/)) {
10
- return {
11
- name,
12
- from: "hoci"
13
- };
14
- }
15
- }
16
- };
17
- }
18
-
19
- exports.HociResolver = HociResolver;
20
- exports.default = HociResolver;
@@ -1,7 +0,0 @@
1
- import { ComponentResolver } from 'unplugin-vue-components';
2
-
3
- declare function HociResolver(): ComponentResolver;
4
-
5
- // @ts-ignore
6
- export = HociResolver;
7
- export { HociResolver };
@@ -1,5 +0,0 @@
1
- import { ComponentResolver } from 'unplugin-vue-components';
2
-
3
- declare function HociResolver(): ComponentResolver;
4
-
5
- export { HociResolver, HociResolver as default };
package/dist/resolver.mjs DELETED
@@ -1,15 +0,0 @@
1
- function HociResolver() {
2
- return {
3
- type: "component",
4
- resolve: (name) => {
5
- if (name.match(/^(Hi[A-Z]|hi-[a-z])/)) {
6
- return {
7
- name,
8
- from: "hoci"
9
- };
10
- }
11
- }
12
- };
13
- }
14
-
15
- export { HociResolver, HociResolver as default };
package/resolver.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./dist/resolver";
2
- export { default } from "./dist/resolver";