@bquery/bquery 1.4.0 → 1.6.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.
Files changed (164) hide show
  1. package/README.md +586 -527
  2. package/dist/component/component.d.ts +13 -5
  3. package/dist/component/component.d.ts.map +1 -1
  4. package/dist/component/html.d.ts +40 -3
  5. package/dist/component/html.d.ts.map +1 -1
  6. package/dist/component/index.d.ts +4 -2
  7. package/dist/component/index.d.ts.map +1 -1
  8. package/dist/component/library.d.ts +34 -0
  9. package/dist/component/library.d.ts.map +1 -0
  10. package/dist/component/types.d.ts +132 -13
  11. package/dist/component/types.d.ts.map +1 -1
  12. package/dist/component-BEQgt5hl.js +600 -0
  13. package/dist/component-BEQgt5hl.js.map +1 -0
  14. package/dist/component.es.mjs +7 -184
  15. package/dist/config-DRmZZno3.js +40 -0
  16. package/dist/config-DRmZZno3.js.map +1 -0
  17. package/dist/core-BGQJVw0-.js +35 -0
  18. package/dist/core-BGQJVw0-.js.map +1 -0
  19. package/dist/core-CCEabVHl.js +648 -0
  20. package/dist/core-CCEabVHl.js.map +1 -0
  21. package/dist/core.es.mjs +45 -1261
  22. package/dist/effect-AFRW_Plg.js +84 -0
  23. package/dist/effect-AFRW_Plg.js.map +1 -0
  24. package/dist/full.d.ts +8 -8
  25. package/dist/full.d.ts.map +1 -1
  26. package/dist/full.es.mjs +101 -91
  27. package/dist/full.iife.js +173 -3
  28. package/dist/full.iife.js.map +1 -1
  29. package/dist/full.umd.js +173 -3
  30. package/dist/full.umd.js.map +1 -1
  31. package/dist/index.es.mjs +147 -139
  32. package/dist/motion/transition.d.ts +1 -1
  33. package/dist/motion/transition.d.ts.map +1 -1
  34. package/dist/motion/types.d.ts +11 -1
  35. package/dist/motion/types.d.ts.map +1 -1
  36. package/dist/motion-D9TcHxOF.js +415 -0
  37. package/dist/motion-D9TcHxOF.js.map +1 -0
  38. package/dist/motion.es.mjs +25 -361
  39. package/dist/object-qGpWr6-J.js +38 -0
  40. package/dist/object-qGpWr6-J.js.map +1 -0
  41. package/dist/platform/announcer.d.ts +59 -0
  42. package/dist/platform/announcer.d.ts.map +1 -0
  43. package/dist/platform/config.d.ts +92 -0
  44. package/dist/platform/config.d.ts.map +1 -0
  45. package/dist/platform/cookies.d.ts +45 -0
  46. package/dist/platform/cookies.d.ts.map +1 -0
  47. package/dist/platform/index.d.ts +8 -0
  48. package/dist/platform/index.d.ts.map +1 -1
  49. package/dist/platform/meta.d.ts +62 -0
  50. package/dist/platform/meta.d.ts.map +1 -0
  51. package/dist/platform-Dr9b6fsq.js +362 -0
  52. package/dist/platform-Dr9b6fsq.js.map +1 -0
  53. package/dist/platform.es.mjs +11 -248
  54. package/dist/reactive/async-data.d.ts +114 -0
  55. package/dist/reactive/async-data.d.ts.map +1 -0
  56. package/dist/reactive/index.d.ts +2 -2
  57. package/dist/reactive/index.d.ts.map +1 -1
  58. package/dist/reactive/signal.d.ts +2 -0
  59. package/dist/reactive/signal.d.ts.map +1 -1
  60. package/dist/reactive-DSkct0dO.js +254 -0
  61. package/dist/reactive-DSkct0dO.js.map +1 -0
  62. package/dist/reactive.es.mjs +18 -32
  63. package/dist/router-CbDhl8rS.js +188 -0
  64. package/dist/router-CbDhl8rS.js.map +1 -0
  65. package/dist/router.es.mjs +11 -200
  66. package/dist/sanitize-Bs2dkMby.js +313 -0
  67. package/dist/sanitize-Bs2dkMby.js.map +1 -0
  68. package/dist/security/constants.d.ts.map +1 -1
  69. package/dist/security/index.d.ts +4 -2
  70. package/dist/security/index.d.ts.map +1 -1
  71. package/dist/security/sanitize.d.ts +4 -1
  72. package/dist/security/sanitize.d.ts.map +1 -1
  73. package/dist/security/trusted-html.d.ts +53 -0
  74. package/dist/security/trusted-html.d.ts.map +1 -0
  75. package/dist/security.es.mjs +11 -56
  76. package/dist/store/define-store.d.ts +1 -1
  77. package/dist/store/define-store.d.ts.map +1 -1
  78. package/dist/store/mapping.d.ts +1 -1
  79. package/dist/store/mapping.d.ts.map +1 -1
  80. package/dist/store/persisted.d.ts +1 -1
  81. package/dist/store/persisted.d.ts.map +1 -1
  82. package/dist/store/types.d.ts +2 -2
  83. package/dist/store/types.d.ts.map +1 -1
  84. package/dist/store/watch.d.ts +1 -1
  85. package/dist/store/watch.d.ts.map +1 -1
  86. package/dist/store-BwDvI45q.js +263 -0
  87. package/dist/store-BwDvI45q.js.map +1 -0
  88. package/dist/store.es.mjs +12 -25
  89. package/dist/storybook/index.d.ts +37 -0
  90. package/dist/storybook/index.d.ts.map +1 -0
  91. package/dist/storybook.es.mjs +151 -0
  92. package/dist/storybook.es.mjs.map +1 -0
  93. package/dist/untrack-B0rVscTc.js +7 -0
  94. package/dist/untrack-B0rVscTc.js.map +1 -0
  95. package/dist/view-C70lA3vf.js +397 -0
  96. package/dist/view-C70lA3vf.js.map +1 -0
  97. package/dist/view.es.mjs +11 -430
  98. package/package.json +141 -132
  99. package/src/component/component.ts +524 -289
  100. package/src/component/html.ts +153 -53
  101. package/src/component/index.ts +50 -40
  102. package/src/component/library.ts +518 -0
  103. package/src/component/types.ts +256 -85
  104. package/src/core/collection.ts +628 -628
  105. package/src/core/element.ts +774 -774
  106. package/src/core/index.ts +48 -48
  107. package/src/core/utils/function.ts +151 -151
  108. package/src/full.ts +229 -187
  109. package/src/motion/animate.ts +113 -113
  110. package/src/motion/flip.ts +176 -176
  111. package/src/motion/scroll.ts +57 -57
  112. package/src/motion/spring.ts +150 -150
  113. package/src/motion/timeline.ts +246 -246
  114. package/src/motion/transition.ts +97 -51
  115. package/src/motion/types.ts +11 -1
  116. package/src/platform/announcer.ts +208 -0
  117. package/src/platform/config.ts +163 -0
  118. package/src/platform/cookies.ts +165 -0
  119. package/src/platform/index.ts +21 -0
  120. package/src/platform/meta.ts +168 -0
  121. package/src/platform/storage.ts +215 -215
  122. package/src/reactive/async-data.ts +486 -0
  123. package/src/reactive/core.ts +114 -114
  124. package/src/reactive/effect.ts +54 -54
  125. package/src/reactive/index.ts +15 -1
  126. package/src/reactive/internals.ts +122 -122
  127. package/src/reactive/signal.ts +9 -0
  128. package/src/security/constants.ts +3 -1
  129. package/src/security/index.ts +17 -10
  130. package/src/security/sanitize-core.ts +364 -364
  131. package/src/security/sanitize.ts +70 -66
  132. package/src/security/trusted-html.ts +71 -0
  133. package/src/store/define-store.ts +49 -48
  134. package/src/store/mapping.ts +74 -73
  135. package/src/store/persisted.ts +62 -61
  136. package/src/store/types.ts +92 -94
  137. package/src/store/watch.ts +53 -52
  138. package/src/storybook/index.ts +479 -0
  139. package/src/view/evaluate.ts +290 -290
  140. package/dist/batch-x7b2eZST.js +0 -13
  141. package/dist/batch-x7b2eZST.js.map +0 -1
  142. package/dist/component.es.mjs.map +0 -1
  143. package/dist/core-BhpuvPhy.js +0 -170
  144. package/dist/core-BhpuvPhy.js.map +0 -1
  145. package/dist/core.es.mjs.map +0 -1
  146. package/dist/full.es.mjs.map +0 -1
  147. package/dist/index.es.mjs.map +0 -1
  148. package/dist/motion.es.mjs.map +0 -1
  149. package/dist/persisted-DHoi3uEs.js +0 -278
  150. package/dist/persisted-DHoi3uEs.js.map +0 -1
  151. package/dist/platform.es.mjs.map +0 -1
  152. package/dist/reactive.es.mjs.map +0 -1
  153. package/dist/router.es.mjs.map +0 -1
  154. package/dist/sanitize-Cxvxa-DX.js +0 -283
  155. package/dist/sanitize-Cxvxa-DX.js.map +0 -1
  156. package/dist/security.es.mjs.map +0 -1
  157. package/dist/store.es.mjs.map +0 -1
  158. package/dist/type-guards-BdKlYYlS.js +0 -32
  159. package/dist/type-guards-BdKlYYlS.js.map +0 -1
  160. package/dist/untrack-DNnnqdlR.js +0 -6
  161. package/dist/untrack-DNnnqdlR.js.map +0 -1
  162. package/dist/view.es.mjs.map +0 -1
  163. package/dist/watch-DXXv3iAI.js +0 -58
  164. package/dist/watch-DXXv3iAI.js.map +0 -1
package/package.json CHANGED
@@ -1,132 +1,141 @@
1
- {
2
- "name": "@bquery/bquery",
3
- "version": "1.4.0",
4
- "description": "The jQuery for the Modern Web Platform - Zero build, TypeScript-first library with reactivity, components, and motion",
5
- "type": "module",
6
- "main": "./dist/full.umd.js",
7
- "module": "./dist/index.es.mjs",
8
- "types": "./dist/index.d.ts",
9
- "unpkg": "./dist/full.umd.js",
10
- "jsdelivr": "./dist/full.umd.js",
11
- "exports": {
12
- ".": {
13
- "types": "./dist/index.d.ts",
14
- "import": "./dist/index.es.mjs",
15
- "require": "./dist/full.umd.js"
16
- },
17
- "./full": {
18
- "types": "./dist/full.d.ts",
19
- "import": "./dist/full.es.mjs",
20
- "require": "./dist/full.umd.js"
21
- },
22
- "./core": {
23
- "import": "./dist/core.es.mjs",
24
- "types": "./dist/core/index.d.ts"
25
- },
26
- "./reactive": {
27
- "import": "./dist/reactive.es.mjs",
28
- "types": "./dist/reactive/index.d.ts"
29
- },
30
- "./component": {
31
- "import": "./dist/component.es.mjs",
32
- "types": "./dist/component/index.d.ts"
33
- },
34
- "./motion": {
35
- "import": "./dist/motion.es.mjs",
36
- "types": "./dist/motion/index.d.ts"
37
- },
38
- "./security": {
39
- "import": "./dist/security.es.mjs",
40
- "types": "./dist/security/index.d.ts"
41
- },
42
- "./platform": {
43
- "import": "./dist/platform.es.mjs",
44
- "types": "./dist/platform/index.d.ts"
45
- },
46
- "./router": {
47
- "import": "./dist/router.es.mjs",
48
- "types": "./dist/router/index.d.ts"
49
- },
50
- "./store": {
51
- "import": "./dist/store.es.mjs",
52
- "types": "./dist/store/index.d.ts"
53
- },
54
- "./view": {
55
- "import": "./dist/view.es.mjs",
56
- "types": "./dist/view/index.d.ts"
57
- }
58
- },
59
- "files": [
60
- "dist",
61
- "src",
62
- "README.md",
63
- "LICENSE.md"
64
- ],
65
- "sideEffects": false,
66
- "scripts": {
67
- "dev": "vitepress dev docs",
68
- "build:docs": "vitepress build docs",
69
- "preview": "vitepress preview docs",
70
- "playground": "vite dev playground",
71
- "build": "bun run build:lib && bun run build:umd && bun run build:types",
72
- "build:lib": "vite build",
73
- "build:umd": "vite build --config vite.umd.config.ts",
74
- "build:types": "tsc --emitDeclarationOnly --outDir dist",
75
- "test": "bun test",
76
- "test:watch": "bun test --watch",
77
- "lint": "eslint . --fix",
78
- "lint:types": "tsc --noEmit",
79
- "format": "prettier --write .",
80
- "format:check": "prettier --check .",
81
- "docs:api": "typedoc",
82
- "clean": "rimraf dist",
83
- "prepublishOnly": "bun run clean && bun run build && bun test"
84
- },
85
- "keywords": [
86
- "dom",
87
- "manipulation",
88
- "jquery",
89
- "modern",
90
- "typescript",
91
- "signals",
92
- "reactive",
93
- "components",
94
- "web-components",
95
- "animation",
96
- "motion",
97
- "zero-build",
98
- "cdn"
99
- ],
100
- "author": "Jonas Pfalzgraf <support@josunlp.de>",
101
- "license": "MIT",
102
- "repository": {
103
- "type": "git",
104
- "url": "https://github.com/bQuery/bQuery.git"
105
- },
106
- "homepage": "https://bQuery.flausch-code.de",
107
- "bugs": {
108
- "url": "https://github.com/bQuery/bQuery/issues"
109
- },
110
- "publishConfig": {
111
- "access": "public",
112
- "registry": "https://registry.npmjs.org/"
113
- },
114
- "engines": {
115
- "node": ">=18.0.0"
116
- },
117
- "devDependencies": {
118
- "@typescript-eslint/eslint-plugin": "^8.55.0",
119
- "@typescript-eslint/parser": "^8.55.0",
120
- "bun-types": "^1.3.9",
121
- "eslint": "^9.39.2",
122
- "eslint-config-prettier": "^10.1.8",
123
- "globals": "^17.3.0",
124
- "happy-dom": "^20.6.0",
125
- "prettier": "^3.8.1",
126
- "rimraf": "^6.1.2",
127
- "typedoc": "^0.28.16",
128
- "typescript": "^5.9.3",
129
- "vite": "^7.3.1",
130
- "vitepress": "^1.6.4"
131
- }
132
- }
1
+ {
2
+ "name": "@bquery/bquery",
3
+ "version": "1.6.0",
4
+ "description": "The jQuery for the Modern Web Platform - Zero build, TypeScript-first library with reactivity, components, and motion",
5
+ "type": "module",
6
+ "main": "./dist/full.umd.js",
7
+ "module": "./dist/index.es.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "unpkg": "./dist/full.umd.js",
10
+ "jsdelivr": "./dist/full.umd.js",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.es.mjs",
15
+ "require": "./dist/full.umd.js"
16
+ },
17
+ "./full": {
18
+ "types": "./dist/full.d.ts",
19
+ "import": "./dist/full.es.mjs",
20
+ "require": "./dist/full.umd.js"
21
+ },
22
+ "./core": {
23
+ "import": "./dist/core.es.mjs",
24
+ "types": "./dist/core/index.d.ts"
25
+ },
26
+ "./reactive": {
27
+ "import": "./dist/reactive.es.mjs",
28
+ "types": "./dist/reactive/index.d.ts"
29
+ },
30
+ "./component": {
31
+ "import": "./dist/component.es.mjs",
32
+ "types": "./dist/component/index.d.ts"
33
+ },
34
+ "./motion": {
35
+ "import": "./dist/motion.es.mjs",
36
+ "types": "./dist/motion/index.d.ts"
37
+ },
38
+ "./security": {
39
+ "import": "./dist/security.es.mjs",
40
+ "types": "./dist/security/index.d.ts"
41
+ },
42
+ "./platform": {
43
+ "import": "./dist/platform.es.mjs",
44
+ "types": "./dist/platform/index.d.ts"
45
+ },
46
+ "./router": {
47
+ "import": "./dist/router.es.mjs",
48
+ "types": "./dist/router/index.d.ts"
49
+ },
50
+ "./store": {
51
+ "import": "./dist/store.es.mjs",
52
+ "types": "./dist/store/index.d.ts"
53
+ },
54
+ "./view": {
55
+ "import": "./dist/view.es.mjs",
56
+ "types": "./dist/view/index.d.ts"
57
+ },
58
+ "./storybook": {
59
+ "import": "./dist/storybook.es.mjs",
60
+ "types": "./dist/storybook/index.d.ts"
61
+ }
62
+ },
63
+ "files": [
64
+ "dist",
65
+ "src",
66
+ "README.md",
67
+ "LICENSE.md"
68
+ ],
69
+ "sideEffects": false,
70
+ "scripts": {
71
+ "dev": "vitepress dev docs",
72
+ "build:docs": "vitepress build docs",
73
+ "preview": "vitepress preview docs",
74
+ "storybook": "storybook dev -p 6006",
75
+ "build:storybook": "storybook build",
76
+ "build": "bun run build:lib && bun run build:umd && bun run build:types",
77
+ "build:lib": "vite build",
78
+ "build:umd": "vite build --config vite.umd.config.ts",
79
+ "build:types": "tsc --emitDeclarationOnly --outDir dist",
80
+ "test": "bun test",
81
+ "test:types": "tsc -p tsconfig.component-test.json --noEmit",
82
+ "test:watch": "bun test --watch",
83
+ "lint": "eslint . --fix",
84
+ "lint:types": "tsc --noEmit",
85
+ "format": "prettier --write .",
86
+ "format:check": "prettier --check .",
87
+ "docs:api": "typedoc",
88
+ "clean": "rimraf dist",
89
+ "prepublishOnly": "bun run clean && bun run build && bun test"
90
+ },
91
+ "keywords": [
92
+ "dom",
93
+ "manipulation",
94
+ "jquery",
95
+ "modern",
96
+ "typescript",
97
+ "signals",
98
+ "reactive",
99
+ "components",
100
+ "web-components",
101
+ "animation",
102
+ "motion",
103
+ "zero-build",
104
+ "cdn"
105
+ ],
106
+ "author": "Jonas Pfalzgraf <support@josunlp.de>",
107
+ "license": "MIT",
108
+ "repository": {
109
+ "type": "git",
110
+ "url": "https://github.com/bQuery/bQuery.git"
111
+ },
112
+ "homepage": "https://bQuery.flausch-code.de",
113
+ "bugs": {
114
+ "url": "https://github.com/bQuery/bQuery/issues"
115
+ },
116
+ "publishConfig": {
117
+ "access": "public",
118
+ "registry": "https://registry.npmjs.org/"
119
+ },
120
+ "engines": {
121
+ "node": ">=18.0.0"
122
+ },
123
+ "devDependencies": {
124
+ "@storybook/addon-docs": "^10.2.19",
125
+ "@storybook/web-components-vite": "^10.2.19",
126
+ "@typescript-eslint/eslint-plugin": "^8.57.0",
127
+ "@typescript-eslint/parser": "^8.57.0",
128
+ "bun-types": "^1.3.10",
129
+ "eslint": "^10.0.3",
130
+ "eslint-config-prettier": "^10.1.8",
131
+ "globals": "^17.4.0",
132
+ "happy-dom": "^20.8.4",
133
+ "prettier": "^3.8.1",
134
+ "rimraf": "^6.1.3",
135
+ "storybook": "^10.2.19",
136
+ "typedoc": "^0.28.17",
137
+ "typescript": "^5.9.3",
138
+ "vite": "^8.0.0",
139
+ "vitepress": "^1.6.4"
140
+ }
141
+ }