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 +7 -6
- package/dist/index.js +11 -0
- package/dist/resolver.d.ts +4 -5
- package/dist/resolver.js +16 -0
- package/package.json +13 -23
- package/dist/index.cjs +0 -30
- package/dist/index.d.cts +0 -9
- package/dist/index.d.mts +0 -9
- package/dist/index.mjs +0 -7
- package/dist/resolver.cjs +0 -20
- package/dist/resolver.d.cts +0 -7
- package/dist/resolver.d.mts +0 -5
- package/dist/resolver.mjs +0 -15
- package/resolver.d.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { install } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
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
|
-
|
|
7
|
+
install: typeof install;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
export
|
|
9
|
+
//#endregion
|
|
10
|
+
export { _default as default };
|
package/dist/index.js
ADDED
package/dist/resolver.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ComponentResolver } from
|
|
1
|
+
import { ComponentResolver } from "unplugin-vue-components";
|
|
2
2
|
|
|
3
|
+
//#region resolver.d.ts
|
|
3
4
|
declare function HociResolver(): ComponentResolver;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export = HociResolver;
|
|
7
|
-
export { HociResolver };
|
|
5
|
+
//#endregion
|
|
6
|
+
export { HociResolver, HociResolver as default };
|
package/dist/resolver.js
ADDED
|
@@ -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
|
-
"
|
|
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
|
-
|
|
14
|
-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
32
|
-
"vue": "^
|
|
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.
|
|
36
|
-
"@hoci/core": "0.
|
|
27
|
+
"@hoci/components": "0.9.0",
|
|
28
|
+
"@hoci/core": "0.9.0"
|
|
37
29
|
},
|
|
38
30
|
"optionalDependencies": {
|
|
39
|
-
"unplugin-vue-components": "^
|
|
31
|
+
"unplugin-vue-components": "^31.0.0"
|
|
40
32
|
},
|
|
41
33
|
"scripts": {
|
|
42
|
-
"build": "
|
|
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
package/dist/index.d.mts
DELETED
package/dist/index.mjs
DELETED
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;
|
package/dist/resolver.d.cts
DELETED
package/dist/resolver.d.mts
DELETED
package/dist/resolver.mjs
DELETED
package/resolver.d.ts
DELETED