@at-field/components 2.0.2 → 3.0.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/CHANGELOG.md +61 -0
- package/dist/index.iife.js +1 -1
- package/dist/index.iife.js.map +1 -1
- package/package.json +15 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# @at-field/components
|
|
2
|
+
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#9](https://github.com/heavenly-zy/modern-monorepo-template/pull/9) [`db910db`](https://github.com/heavenly-zy/modern-monorepo-template/commit/db910dba04e8d654df024df48c26ca05418455bd) Thanks [@heavenly-zy](https://github.com/heavenly-zy)! - 更新组件和工具包的 package.json,添加 exports 字段并修改主入口文件
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`db910db`](https://github.com/heavenly-zy/modern-monorepo-template/commit/db910dba04e8d654df024df48c26ca05418455bd)]:
|
|
12
|
+
- @at-field/utils@4.0.0
|
|
13
|
+
|
|
14
|
+
## 2.0.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 移除不必要的 changeset 命令
|
|
19
|
+
|
|
20
|
+
- Updated dependencies []:
|
|
21
|
+
- @at-field/utils@3.0.2
|
|
22
|
+
|
|
23
|
+
## 2.0.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#4](https://github.com/heavenly-zy/modern-monorepo-template/pull/4) [`c8fa16b`](https://github.com/heavenly-zy/modern-monorepo-template/commit/c8fa16b126573ead0c826c5e87d66dee3777f8c5) Thanks [@heavenly-zy](https://github.com/heavenly-zy)! - 更新 README 文档,添加快速开始和版本管理说明;重构 TODO 和 dev 文档,删除不必要的文件
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [[`c8fa16b`](https://github.com/heavenly-zy/modern-monorepo-template/commit/c8fa16b126573ead0c826c5e87d66dee3777f8c5)]:
|
|
30
|
+
- @at-field/utils@3.0.1
|
|
31
|
+
|
|
32
|
+
## 2.0.0
|
|
33
|
+
|
|
34
|
+
### Major Changes
|
|
35
|
+
|
|
36
|
+
- 更新包名称为 @at-field,修改相关文档和配置
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies []:
|
|
41
|
+
- @at-field/utils@3.0.0
|
|
42
|
+
|
|
43
|
+
## 2.0.0
|
|
44
|
+
|
|
45
|
+
### Major Changes
|
|
46
|
+
|
|
47
|
+
- [`3c0a5fd`](https://github.com/heavenly-zy/modern-monorepo-template/commit/3c0a5fd400d51babf5b59ff091ad21488de06d9c) Thanks [@heavenly-zy](https://github.com/heavenly-zy)! - 更新包名称为 @heavenly-zy,修改相关文档和配置
|
|
48
|
+
|
|
49
|
+
- [`3c0a5fd`](https://github.com/heavenly-zy/modern-monorepo-template/commit/3c0a5fd400d51babf5b59ff091ad21488de06d9c) Thanks [@heavenly-zy](https://github.com/heavenly-zy)! - 更新包名称为 @heavenly-zy,修改相关文档和配置
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updated dependencies [[`3c0a5fd`](https://github.com/heavenly-zy/modern-monorepo-template/commit/3c0a5fd400d51babf5b59ff091ad21488de06d9c), [`3c0a5fd`](https://github.com/heavenly-zy/modern-monorepo-template/commit/3c0a5fd400d51babf5b59ff091ad21488de06d9c)]:
|
|
54
|
+
- @heavenly-zy/utils@3.0.0
|
|
55
|
+
|
|
56
|
+
## 1.0.2
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- Updated dependencies [[`234e868`](https://github.com/heavenly-zy/modern-monorepo-template/commit/234e86844dd3596276feb9139d687810eacbda36)]:
|
|
61
|
+
- @at-field/utils@2.0.0
|
package/dist/index.iife.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var AtFieldComponents=function(e,t){"use strict";const n={class:"area"},a={class:"num"},d={class:"num"},l={class:"sum"};var o=t.defineComponent({__name:"BaseArea",setup(e){const o=t.ref(1),r=t.ref(2),s=t.computed(()=>{return e=+o.value,t=+r.value,e+t;var e,t});return(e,c)=>(t.openBlock(),t.createElementBlock("div",n,[t.createElementVNode("div",a,[c[2]||(c[2]=t.createElementVNode("span",null,"Number 1",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=e=>o.value=e),type:"text"},null,512),[[t.vModelText,o.value]])]),t.createElementVNode("div",d,[c[3]||(c[3]=t.createElementVNode("span",null,"Number 2",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=e=>r.value=e),type:"text"},null,512),[[t.vModelText,r.value]])]),t.createElementVNode("div",l,[t.createElementVNode("span",null,"sum:"+t.toDisplayString(s.value),1)])]))}});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===n&&a.firstChild?a.insertBefore(d,a.firstChild):a.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}("\n.area[data-v-c10075fd] {\n border: 1px solid #eee;\n padding: 20px;\n}\n.num[data-v-c10075fd] {\n margin: 1em 0;\n}\n.sum[data-v-c10075fd] {\n font-weight: bold;\n}\n");var r=((e,t)=>{const n=e.__vccOpts||e;for(const[e,a]of t)n[e]=a;return n})(o,[["__scopeId","data-v-c10075fd"]]);return e.BaseArea=r,e}({},Vue);
|
|
2
2
|
//# sourceMappingURL=index.iife.js.map
|
package/dist/index.iife.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.iife.js","sources":["../src/BaseArea/BaseArea.vue","../../utils/src/math.ts","../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed, ref } from \"vue\";\nimport { sum } from \"@at-field/utils\";\n\nconst n1 = ref(1);\nconst n2 = ref(2);\nconst result = computed(() => sum(+n1.value, +n2.value));\n</script>\n\n<template>\n <div class=\"area\">\n <div class=\"num\">\n <span>Number 1</span>\n <input v-model=\"n1\" data-testid=\"n1\" type=\"text\" />\n </div>\n <div class=\"num\">\n <span>Number 2</span>\n <input v-model=\"n2\" data-testid=\"n2\" type=\"text\" />\n </div>\n <div class=\"sum\">\n <span data-testid=\"result\">sum:{{ result }}</span>\n </div>\n </div>\n</template>\n\n<style scoped>\n.area {\n border: 1px solid #eee;\n padding: 20px;\n}\n.num {\n margin: 1em 0;\n}\n.sum {\n font-weight: bold;\n}\n</style>\n","export function sum(a: number, b: number): number {\n return a + b;\n}\n\nexport function multiply(a: number, b: number): number {\n return a * b;\n}\n\nexport function subtract(a: number, b: number): number {\n return a - b;\n}\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["n1","ref","n2","result","computed","sum","a","value","b","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_cache","$event","type","_hoisted_3","_hoisted_4","_toDisplayString","css","insertAt","document","head","getElementsByTagName","style","createElement","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.iife.js","sources":["../src/BaseArea/BaseArea.vue","../../utils/src/math.ts","../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed, ref } from \"vue\";\nimport { sum } from \"@at-field/utils\";\n\nconst n1 = ref(1);\nconst n2 = ref(2);\nconst result = computed(() => sum(+n1.value, +n2.value));\n</script>\n\n<template>\n <div class=\"area\">\n <div class=\"num\">\n <span>Number 1</span>\n <input v-model=\"n1\" data-testid=\"n1\" type=\"text\" />\n </div>\n <div class=\"num\">\n <span>Number 2</span>\n <input v-model=\"n2\" data-testid=\"n2\" type=\"text\" />\n </div>\n <div class=\"sum\">\n <span data-testid=\"result\">sum:{{ result }}</span>\n </div>\n </div>\n</template>\n\n<style scoped>\n.area {\n border: 1px solid #eee;\n padding: 20px;\n}\n.num {\n margin: 1em 0;\n}\n.sum {\n font-weight: bold;\n}\n</style>\n","export function sum(a: number, b: number): number {\n return a + b;\n}\n\nexport function multiply(a: number, b: number): number {\n return a * b;\n}\n\nexport function subtract(a: number, b: number): number {\n return a - b;\n}\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["n1","ref","n2","result","computed","sum","a","value","b","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_cache","$event","type","_hoisted_3","_hoisted_4","_toDisplayString","css","insertAt","document","head","getElementsByTagName","style","createElement","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode"],"mappings":"4KAIA,MAAMA,EAAKC,EAAAA,IAAI,GACTC,EAAKD,EAAAA,IAAI,GACTE,EAASC,WAAS,KAAMC,OCNVC,GDMeN,EAAGO,MCNPC,GDMeN,EAAGK,MCLxCD,EAAIE,EADP,IAAcF,EAAWE,kBDU7BC,cAAAC,qBAYM,MAZNC,EAYM,CAXJC,EAAAA,mBAGM,MAHNC,EAGM,CAFJC,EAAA,KAAAA,EAAA,GAAAF,qBAAqB,YAAf,YAAQ,qBACdA,EAAAA,mBAAmD,QAAA,wCAAjCL,MAAAQ,GAAmBC,KAAK,iCAA1BhB,EAAAO,WAElBK,EAAAA,mBAGM,MAHNK,EAGM,CAFJH,EAAA,KAAAA,EAAA,GAAAF,qBAAqB,YAAf,YAAQ,qBACdA,EAAAA,mBAAmD,QAAA,wCAAjCL,MAAAQ,GAAmBC,KAAK,iCAA1Bd,EAAAK,WAElBK,EAAAA,mBAEM,MAFNM,EAEM,CADJN,EAAAA,mBAAkD,OAAA,KAAvB,OAAIO,EAAAA,gBAAGhB,EAAAI,OAAM,YEpB9C,SAAqBa,EAAKnB,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIoB,EAAWpB,EAAIoB,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAMT,KAAO,WAEI,QAAbK,GACEE,EAAKI,WACPJ,EAAKK,aAAaH,EAAOF,EAAKI,YAKhCJ,EAAKM,YAAYJ,GAGfA,EAAMK,WACRL,EAAMK,WAAWC,QAAUX,EAE3BK,EAAMI,YAAYP,SAASU,eAAeZ,GAnBW,CAqBzD","x_google_ignoreList":[2]}
|
package/package.json
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@at-field/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "index.js",
|
|
6
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs.js",
|
|
7
|
+
"module": "./dist/index.esm.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.esm.js",
|
|
13
|
+
"require": "./dist/index.cjs.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
7
16
|
"keywords": [],
|
|
8
17
|
"author": "",
|
|
9
18
|
"license": "ISC",
|
|
10
19
|
"buildOptions": {
|
|
11
|
-
"name": "
|
|
20
|
+
"name": "AtFieldComponents",
|
|
12
21
|
"formats": [
|
|
13
22
|
"esm",
|
|
14
23
|
"cjs",
|
|
@@ -17,10 +26,11 @@
|
|
|
17
26
|
},
|
|
18
27
|
"dependencies": {
|
|
19
28
|
"vue": "^3.5.21",
|
|
20
|
-
"@at-field/utils": "
|
|
29
|
+
"@at-field/utils": "4.0.0"
|
|
21
30
|
},
|
|
22
31
|
"files": [
|
|
23
|
-
"dist"
|
|
32
|
+
"dist",
|
|
33
|
+
"CHANGELOG.md"
|
|
24
34
|
],
|
|
25
35
|
"publishConfig": {
|
|
26
36
|
"access": "public"
|