@bpmn-io/properties-panel 2.2.1 → 3.1.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 (116) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +34 -34
  3. package/assets/properties-panel.css +1180 -1114
  4. package/dist/index.esm.js +657 -507
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/index.js +656 -505
  7. package/dist/index.js.map +1 -1
  8. package/package.json +90 -90
  9. package/preact/README.md +56 -51
  10. package/preact/compat/client.js +19 -0
  11. package/preact/compat/client.mjs +22 -0
  12. package/preact/compat/dist/compat.js +1 -1
  13. package/preact/compat/dist/compat.js.map +1 -1
  14. package/preact/compat/dist/compat.mjs +1 -1
  15. package/preact/compat/dist/compat.module.js +1 -1
  16. package/preact/compat/dist/compat.module.js.map +1 -1
  17. package/preact/compat/dist/compat.umd.js +1 -1
  18. package/preact/compat/dist/compat.umd.js.map +1 -1
  19. package/preact/compat/jsx-dev-runtime.js +2 -0
  20. package/preact/compat/jsx-dev-runtime.mjs +2 -0
  21. package/preact/compat/jsx-runtime.js +2 -0
  22. package/preact/compat/jsx-runtime.mjs +2 -0
  23. package/preact/compat/package.json +31 -0
  24. package/preact/compat/scheduler.js +15 -0
  25. package/preact/compat/{src/scheduler.js → scheduler.mjs} +8 -9
  26. package/preact/compat/server.browser.js +4 -0
  27. package/preact/compat/src/PureComponent.js +1 -1
  28. package/preact/compat/src/forwardRef.js +2 -9
  29. package/preact/compat/src/index.d.ts +58 -4
  30. package/preact/compat/src/index.js +73 -2
  31. package/preact/compat/src/portals.js +4 -2
  32. package/preact/compat/src/render.js +133 -76
  33. package/preact/compat/src/suspense-list.d.ts +2 -2
  34. package/preact/compat/src/suspense-list.js +14 -13
  35. package/preact/compat/src/suspense.d.ts +4 -4
  36. package/preact/compat/src/suspense.js +6 -6
  37. package/preact/compat/src/util.js +10 -0
  38. package/preact/debug/dist/debug.js +1 -1
  39. package/preact/debug/dist/debug.js.map +1 -1
  40. package/preact/debug/dist/debug.mjs +1 -1
  41. package/preact/debug/dist/debug.module.js +1 -1
  42. package/preact/debug/dist/debug.module.js.map +1 -1
  43. package/preact/debug/dist/debug.umd.js +1 -1
  44. package/preact/debug/dist/debug.umd.js.map +1 -1
  45. package/preact/debug/package.json +9 -0
  46. package/preact/debug/src/check-props.js +3 -3
  47. package/preact/debug/src/debug.js +38 -17
  48. package/preact/debug/src/index.d.ts +4 -0
  49. package/preact/debug/src/util.js +4 -0
  50. package/preact/devtools/dist/devtools.js +1 -1
  51. package/preact/devtools/dist/devtools.js.map +1 -1
  52. package/preact/devtools/dist/devtools.mjs +1 -1
  53. package/preact/devtools/dist/devtools.module.js +1 -1
  54. package/preact/devtools/dist/devtools.module.js.map +1 -1
  55. package/preact/devtools/dist/devtools.umd.js +1 -1
  56. package/preact/devtools/dist/devtools.umd.js.map +1 -1
  57. package/preact/devtools/package.json +23 -14
  58. package/preact/devtools/src/devtools.js +1 -1
  59. package/preact/dist/preact.js +1 -1
  60. package/preact/dist/preact.js.map +1 -1
  61. package/preact/dist/preact.min.js +1 -1
  62. package/preact/dist/preact.min.js.map +1 -1
  63. package/preact/dist/preact.min.module.js +2 -0
  64. package/preact/dist/preact.min.module.js.map +1 -0
  65. package/preact/dist/preact.min.umd.js +2 -0
  66. package/preact/dist/preact.min.umd.js.map +1 -0
  67. package/preact/dist/preact.mjs +1 -1
  68. package/preact/dist/preact.module.js +1 -1
  69. package/preact/dist/preact.module.js.map +1 -1
  70. package/preact/dist/preact.umd.js +1 -1
  71. package/preact/dist/preact.umd.js.map +1 -1
  72. package/preact/hooks/dist/hooks.js +1 -1
  73. package/preact/hooks/dist/hooks.js.map +1 -1
  74. package/preact/hooks/dist/hooks.mjs +1 -1
  75. package/preact/hooks/dist/hooks.module.js +1 -1
  76. package/preact/hooks/dist/hooks.module.js.map +1 -1
  77. package/preact/hooks/dist/hooks.umd.js +1 -1
  78. package/preact/hooks/dist/hooks.umd.js.map +1 -1
  79. package/preact/hooks/package.json +9 -0
  80. package/preact/hooks/src/index.d.ts +26 -14
  81. package/preact/hooks/src/index.js +169 -44
  82. package/preact/hooks/src/internal.d.ts +12 -2
  83. package/preact/jsx-runtime/dist/jsxRuntime.js +1 -1
  84. package/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -1
  85. package/preact/jsx-runtime/dist/jsxRuntime.mjs +1 -1
  86. package/preact/jsx-runtime/dist/jsxRuntime.module.js +1 -1
  87. package/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -1
  88. package/preact/jsx-runtime/dist/jsxRuntime.umd.js +1 -1
  89. package/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -1
  90. package/preact/jsx-runtime/package.json +26 -17
  91. package/preact/jsx-runtime/src/index.js +19 -13
  92. package/preact/package.json +315 -262
  93. package/preact/src/clone-element.js +16 -10
  94. package/preact/src/component.js +33 -23
  95. package/preact/src/constants.js +2 -1
  96. package/preact/src/create-context.js +8 -3
  97. package/preact/src/create-element.js +9 -11
  98. package/preact/src/diff/catch-error.js +4 -2
  99. package/preact/src/diff/children.js +41 -32
  100. package/preact/src/diff/index.js +81 -34
  101. package/preact/src/diff/props.js +15 -14
  102. package/preact/src/index.d.ts +369 -301
  103. package/preact/src/internal.d.ts +11 -2
  104. package/preact/src/jsx.d.ts +1862 -626
  105. package/preact/src/options.js +1 -2
  106. package/preact/src/render.js +5 -6
  107. package/preact/src/util.js +6 -0
  108. package/preact/test-utils/dist/testUtils.js +1 -1
  109. package/preact/test-utils/dist/testUtils.js.map +1 -1
  110. package/preact/test-utils/dist/testUtils.mjs +1 -1
  111. package/preact/test-utils/dist/testUtils.module.js +1 -1
  112. package/preact/test-utils/dist/testUtils.module.js.map +1 -1
  113. package/preact/test-utils/dist/testUtils.umd.js +1 -1
  114. package/preact/test-utils/dist/testUtils.umd.js.map +1 -1
  115. package/preact/test-utils/package.json +9 -0
  116. package/preact/test-utils/src/index.js +2 -1
@@ -1,264 +1,317 @@
1
1
  {
2
- "name": "preact",
3
- "amdName": "preact",
4
- "version": "10.5.13",
5
- "private": false,
6
- "description": "Fast 3kb React-compatible Virtual DOM library.",
7
- "main": "dist/preact.js",
8
- "module": "dist/preact.module.js",
9
- "umd:main": "dist/preact.umd.js",
10
- "unpkg": "dist/preact.min.js",
11
- "source": "src/index.js",
12
- "exports": {
13
- ".": {
14
- "browser": "./dist/preact.module.js",
15
- "umd": "./dist/preact.umd.js",
16
- "import": "./dist/preact.mjs",
17
- "require": "./dist/preact.js"
18
- },
19
- "./compat": {
20
- "browser": "./compat/dist/compat.module.js",
21
- "umd": "./compat/dist/compat.umd.js",
22
- "require": "./compat/dist/compat.js",
23
- "import": "./compat/dist/compat.mjs"
24
- },
25
- "./debug": {
26
- "browser": "./debug/dist/debug.module.js",
27
- "umd": "./debug/dist/debug.umd.js",
28
- "require": "./debug/dist/debug.js",
29
- "import": "./debug/dist/debug.mjs"
30
- },
31
- "./devtools": {
32
- "browser": "./devtools/dist/devtools.module.js",
33
- "umd": "./devtools/dist/devtools.umd.js",
34
- "require": "./devtools/dist/devtools.js",
35
- "import": "./devtools/dist/devtools.mjs"
36
- },
37
- "./hooks": {
38
- "browser": "./hooks/dist/hooks.module.js",
39
- "umd": "./hooks/dist/hooks.umd.js",
40
- "require": "./hooks/dist/hooks.js",
41
- "import": "./hooks/dist/hooks.mjs"
42
- },
43
- "./test-utils": {
44
- "browser": "./test-utils/dist/testUtils.module.js",
45
- "umd": "./test-utils/dist/testUtils.umd.js",
46
- "require": "./test-utils/dist/testUtils.js",
47
- "import": "./test-utils/dist/testUtils.mjs"
48
- },
49
- "./jsx-runtime": {
50
- "browser": "./jsx-runtime/dist/jsxRuntime.module.js",
51
- "umd": "./jsx-runtime/dist/jsxRuntime.umd.js",
52
- "require": "./jsx-runtime/dist/jsxRuntime.js",
53
- "import": "./jsx-runtime/dist/jsxRuntime.mjs"
54
- },
55
- "./jsx-dev-runtime": {
56
- "browser": "./jsx-runtime/dist/jsxRuntime.module.js",
57
- "umd": "./jsx-runtime/dist/jsxRuntime.umd.js",
58
- "require": "./jsx-runtime/dist/jsxRuntime.js",
59
- "import": "./jsx-runtime/dist/jsxRuntime.mjs"
60
- },
61
- "./compat/server": {
62
- "require": "./compat/server.js",
63
- "import": "./compat/server.mjs"
64
- },
65
- "./package.json": "./package.json",
66
- "./": "./"
67
- },
68
- "license": "MIT",
69
- "funding": {
70
- "type": "opencollective",
71
- "url": "https://opencollective.com/preact"
72
- },
73
- "types": "src/index.d.ts",
74
- "scripts": {
75
- "prepare": "run-s build && check-export-map",
76
- "build": "npm-run-all --parallel build:*",
77
- "build:core": "microbundle build --raw",
78
- "build:core-min": "microbundle build --raw -f iife src/cjs.js -o dist/preact.min.js",
79
- "build:debug": "microbundle build --raw --cwd debug",
80
- "build:devtools": "microbundle build --raw --cwd devtools",
81
- "build:hooks": "microbundle build --raw --cwd hooks",
82
- "build:test-utils": "microbundle build --raw --cwd test-utils",
83
- "build:compat": "microbundle build --raw --cwd compat --globals 'preact/hooks=preactHooks'",
84
- "build:jsx": "microbundle build --raw --cwd jsx-runtime",
85
- "postbuild": "node ./config/node-13-exports.js && node ./config/compat-entries.js",
86
- "dev": "microbundle watch --raw --format cjs",
87
- "dev:hooks": "microbundle watch --raw --format cjs --cwd hooks",
88
- "dev:compat": "microbundle watch --raw --format cjs --cwd compat --globals 'preact/hooks=preactHooks'",
89
- "test": "npm-run-all build lint test:unit",
90
- "test:unit": "run-p test:mocha test:karma:minify test:ts",
91
- "test:ts": "run-p test:ts:*",
92
- "test:ts:core": "tsc -p test/ts/ && mocha --require \"@babel/register\" test/ts/**/*-test.js",
93
- "test:ts:compat": "tsc -p compat/test/ts/",
94
- "test:mocha": "mocha --recursive --require \"@babel/register\" test/shared test/node",
95
- "test:mocha:watch": "npm run test:mocha -- --watch",
96
- "test:karma": "cross-env COVERAGE=true BABEL_NO_MODULES=true karma start karma.conf.js --single-run",
97
- "test:karma:minify": "cross-env COVERAGE=true MINIFY=true BABEL_NO_MODULES=true karma start karma.conf.js --single-run",
98
- "test:karma:watch": "cross-env BABEL_NO_MODULES=true karma start karma.conf.js --no-single-run",
99
- "test:karma:hooks": "cross-env COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=hooks/test/browser/**.js --no-single-run",
100
- "test:karma:test-utils": "cross-env PERFORMANCE=false COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=test-utils/test/shared/**.js --no-single-run",
101
- "test:karma:bench": "cross-env PERFORMANCE=true COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=test/benchmarks/**.js --single-run",
102
- "benchmark": "npm run test:karma:bench -- no-single-run",
103
- "lint": "eslint src test debug compat hooks test-utils"
104
- },
105
- "eslintConfig": {
106
- "extends": [
107
- "developit",
108
- "prettier"
109
- ],
110
- "settings": {
111
- "react": {
112
- "pragma": "createElement"
113
- }
114
- },
115
- "rules": {
116
- "camelcase": [
117
- 1,
118
- {
119
- "allow": [
120
- "__test__*",
121
- "unstable_*",
122
- "UNSAFE_*"
123
- ]
124
- }
125
- ],
126
- "no-unused-vars": [
127
- 2,
128
- {
129
- "args": "none",
130
- "varsIgnorePattern": "^h|React$"
131
- }
132
- ],
133
- "prefer-rest-params": 0,
134
- "prefer-spread": 0,
135
- "no-cond-assign": 0,
136
- "react/jsx-no-bind": 0,
137
- "react/no-danger": "off",
138
- "react/prefer-stateless-function": 0,
139
- "react/sort-comp": 0,
140
- "jest/valid-expect": 0,
141
- "jest/no-disabled-tests": 0,
142
- "react/no-find-dom-node": 0
143
- }
144
- },
145
- "eslintIgnore": [
146
- "test/fixtures",
147
- "test/ts/",
148
- "*.ts",
149
- "dist"
150
- ],
151
- "prettier": {
152
- "singleQuote": true,
153
- "trailingComma": "none",
154
- "useTabs": true,
155
- "tabWidth": 2
156
- },
157
- "lint-staged": {
158
- "**/*.{js,jsx,ts,tsx,yml}": [
159
- "prettier --write"
160
- ]
161
- },
162
- "husky": {
163
- "hooks": {
164
- "pre-commit": "lint-staged"
165
- }
166
- },
167
- "files": [
168
- "src",
169
- "dist",
170
- "compat/dist",
171
- "compat/src",
172
- "compat/server.js",
173
- "compat/server.mjs",
174
- "compat/test-utils.js",
175
- "compat/jsx-runtime.js",
176
- "compat/jsx-runtime.mjs",
177
- "compat/jsx-dev-runtime.js",
178
- "compat/jsx-dev-runtime.mjs",
179
- "compat/package.json",
180
- "debug/dist",
181
- "debug/src",
182
- "debug/package.json",
183
- "devtools/dist",
184
- "devtools/src",
185
- "devtools/package.json",
186
- "hooks/dist",
187
- "hooks/src",
188
- "hooks/package.json",
189
- "jsx-runtime/dist",
190
- "jsx-runtime/src",
191
- "jsx-runtime/package.json",
192
- "test-utils/src",
193
- "test-utils/package.json",
194
- "test-utils/dist"
195
- ],
196
- "keywords": [
197
- "preact",
198
- "react",
199
- "ui",
200
- "user interface",
201
- "virtual dom",
202
- "vdom",
203
- "components",
204
- "dom diff",
205
- "front-end",
206
- "framework"
207
- ],
208
- "authors": [
209
- "The Preact Authors (https://github.com/preactjs/preact/contributors)"
210
- ],
211
- "repository": "preactjs/preact",
212
- "bugs": "https://github.com/preactjs/preact/issues",
213
- "homepage": "https://preactjs.com",
214
- "devDependencies": {
215
- "@babel/core": "^7.7.0",
216
- "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
217
- "@babel/plugin-transform-react-jsx": "^7.7.0",
218
- "@babel/plugin-transform-react-jsx-source": "^7.7.4",
219
- "@babel/preset-env": "^7.7.1",
220
- "@babel/register": "^7.7.0",
221
- "@types/chai": "^4.1.2",
222
- "@types/mocha": "^5.0.0",
223
- "@types/node": "^14.14.10",
224
- "babel-plugin-istanbul": "^6.0.0",
225
- "babel-plugin-transform-async-to-promises": "^0.8.15",
226
- "babel-plugin-transform-rename-properties": "0.1.0",
227
- "benchmark": "^2.1.4",
228
- "chai": "^4.1.2",
229
- "check-export-map": "^1.0.1",
230
- "coveralls": "^3.0.0",
231
- "cross-env": "^7.0.2",
232
- "csstype": "^3.0.5",
233
- "diff": "^5.0.0",
234
- "errorstacks": "^2.3.0",
235
- "esbuild": "^0.8.47",
236
- "eslint": "5.15.1",
237
- "eslint-config-developit": "^1.1.1",
238
- "eslint-config-prettier": "^6.5.0",
239
- "eslint-plugin-react": "7.12.4",
240
- "husky": "^4.3.0",
241
- "karma": "^5.2.3",
242
- "karma-chai-sinon": "^0.1.5",
243
- "karma-chrome-launcher": "^3.1.0",
244
- "karma-coverage": "^2.0.3",
245
- "karma-esbuild": "^1.1.4",
246
- "karma-mocha": "^2.0.1",
247
- "karma-mocha-reporter": "^2.2.5",
248
- "karma-sauce-launcher": "^4.3.4",
249
- "karma-sinon": "^1.0.5",
250
- "karma-sourcemap-loader": "^0.3.7",
251
- "kolorist": "^1.2.10",
252
- "lint-staged": "^10.5.2",
253
- "lodash": "^4.17.20",
254
- "microbundle": "^0.11.0",
255
- "mocha": "^8.2.1",
256
- "npm-merge-driver-install": "^1.1.1",
257
- "npm-run-all": "^4.0.0",
258
- "prettier": "^1.18.2",
259
- "prop-types": "^15.7.2",
260
- "sinon": "^9.2.3",
261
- "sinon-chai": "^3.5.0",
262
- "typescript": "3.5.3"
263
- }
2
+ "name": "preact",
3
+ "amdName": "preact",
4
+ "version": "10.15.1",
5
+ "private": false,
6
+ "description": "Fast 3kb React-compatible Virtual DOM library.",
7
+ "main": "dist/preact.js",
8
+ "module": "dist/preact.module.js",
9
+ "umd:main": "dist/preact.umd.js",
10
+ "unpkg": "dist/preact.min.js",
11
+ "source": "src/index.js",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./src/index.d.ts",
15
+ "browser": "./dist/preact.module.js",
16
+ "umd": "./dist/preact.umd.js",
17
+ "import": "./dist/preact.mjs",
18
+ "require": "./dist/preact.js"
19
+ },
20
+ "./compat": {
21
+ "types": "./compat/src/index.d.ts",
22
+ "browser": "./compat/dist/compat.module.js",
23
+ "umd": "./compat/dist/compat.umd.js",
24
+ "import": "./compat/dist/compat.mjs",
25
+ "require": "./compat/dist/compat.js"
26
+ },
27
+ "./debug": {
28
+ "types": "./debug/src/index.d.ts",
29
+ "browser": "./debug/dist/debug.module.js",
30
+ "umd": "./debug/dist/debug.umd.js",
31
+ "import": "./debug/dist/debug.mjs",
32
+ "require": "./debug/dist/debug.js"
33
+ },
34
+ "./devtools": {
35
+ "types": "./devtools/src/index.d.ts",
36
+ "browser": "./devtools/dist/devtools.module.js",
37
+ "umd": "./devtools/dist/devtools.umd.js",
38
+ "import": "./devtools/dist/devtools.mjs",
39
+ "require": "./devtools/dist/devtools.js"
40
+ },
41
+ "./hooks": {
42
+ "types": "./hooks/src/index.d.ts",
43
+ "browser": "./hooks/dist/hooks.module.js",
44
+ "umd": "./hooks/dist/hooks.umd.js",
45
+ "import": "./hooks/dist/hooks.mjs",
46
+ "require": "./hooks/dist/hooks.js"
47
+ },
48
+ "./test-utils": {
49
+ "types": "./test-utils/src/index.d.ts",
50
+ "browser": "./test-utils/dist/testUtils.module.js",
51
+ "umd": "./test-utils/dist/testUtils.umd.js",
52
+ "import": "./test-utils/dist/testUtils.mjs",
53
+ "require": "./test-utils/dist/testUtils.js"
54
+ },
55
+ "./jsx-runtime": {
56
+ "types": "./jsx-runtime/src/index.d.ts",
57
+ "browser": "./jsx-runtime/dist/jsxRuntime.module.js",
58
+ "umd": "./jsx-runtime/dist/jsxRuntime.umd.js",
59
+ "import": "./jsx-runtime/dist/jsxRuntime.mjs",
60
+ "require": "./jsx-runtime/dist/jsxRuntime.js"
61
+ },
62
+ "./jsx-dev-runtime": {
63
+ "types": "./jsx-runtime/src/index.d.ts",
64
+ "browser": "./jsx-runtime/dist/jsxRuntime.module.js",
65
+ "umd": "./jsx-runtime/dist/jsxRuntime.umd.js",
66
+ "import": "./jsx-runtime/dist/jsxRuntime.mjs",
67
+ "require": "./jsx-runtime/dist/jsxRuntime.js"
68
+ },
69
+ "./compat/client": {
70
+ "import": "./compat/client.mjs",
71
+ "require": "./compat/client.js"
72
+ },
73
+ "./compat/server": {
74
+ "browser": "./compat/server.browser.js",
75
+ "import": "./compat/server.mjs",
76
+ "require": "./compat/server.js"
77
+ },
78
+ "./compat/jsx-runtime": {
79
+ "types": "./jsx-runtime/src/index.d.ts",
80
+ "import": "./compat/jsx-runtime.mjs",
81
+ "require": "./compat/jsx-runtime.js"
82
+ },
83
+ "./compat/jsx-dev-runtime": {
84
+ "types": "./jsx-runtime/src/index.d.ts",
85
+ "import": "./compat/jsx-dev-runtime.mjs",
86
+ "require": "./compat/jsx-dev-runtime.js"
87
+ },
88
+ "./compat/scheduler": {
89
+ "import": "./compat/scheduler.mjs",
90
+ "require": "./compat/scheduler.js"
91
+ },
92
+ "./package.json": "./package.json",
93
+ "./compat/package.json": "./compat/package.json",
94
+ "./debug/package.json": "./debug/package.json",
95
+ "./devtools/package.json": "./devtools/package.json",
96
+ "./hooks/package.json": "./hooks/package.json",
97
+ "./test-utils/package.json": "./test-utils/package.json",
98
+ "./jsx-runtime/package.json": "./jsx-runtime/package.json"
99
+ },
100
+ "license": "MIT",
101
+ "funding": {
102
+ "type": "opencollective",
103
+ "url": "https://opencollective.com/preact"
104
+ },
105
+ "types": "src/index.d.ts",
106
+ "scripts": {
107
+ "prepare": "run-s build && check-export-map",
108
+ "build": "npm-run-all --parallel build:*",
109
+ "build:core": "microbundle build --raw --no-generateTypes -f cjs,esm,umd",
110
+ "build:core-min": "microbundle build --raw --no-generateTypes -f cjs,esm,umd,iife src/cjs.js -o dist/preact.min.js",
111
+ "build:debug": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd debug",
112
+ "build:devtools": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd devtools",
113
+ "build:hooks": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd hooks",
114
+ "build:test-utils": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd test-utils",
115
+ "build:compat": "microbundle build src/index.js src/scheduler.js --raw --no-generateTypes -f cjs,esm,umd --cwd compat --globals 'preact/hooks=preactHooks'",
116
+ "build:jsx": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd jsx-runtime",
117
+ "postbuild": "node ./config/node-13-exports.js && node ./config/compat-entries.js",
118
+ "dev": "microbundle watch --raw --no-generateTypes --format cjs",
119
+ "dev:hooks": "microbundle watch --raw --no-generateTypes --format cjs --cwd hooks",
120
+ "dev:compat": "microbundle watch --raw --no-generateTypes --format cjs --cwd compat --globals 'preact/hooks=preactHooks'",
121
+ "test": "npm-run-all build lint test:unit",
122
+ "test:unit": "run-p test:mocha test:karma:minify test:ts",
123
+ "test:ts": "run-p test:ts:*",
124
+ "test:ts:core": "tsc -p test/ts/ && mocha --require \"@babel/register\" test/ts/**/*-test.js",
125
+ "test:ts:compat": "tsc -p compat/test/ts/",
126
+ "test:mocha": "mocha --recursive --require \"@babel/register\" test/shared test/node",
127
+ "test:mocha:watch": "npm run test:mocha -- --watch",
128
+ "test:karma": "cross-env COVERAGE=true BABEL_NO_MODULES=true karma start karma.conf.js --single-run",
129
+ "test:karma:minify": "cross-env COVERAGE=true MINIFY=true BABEL_NO_MODULES=true karma start karma.conf.js --single-run",
130
+ "test:karma:watch": "cross-env BABEL_NO_MODULES=true karma start karma.conf.js --no-single-run",
131
+ "test:karma:hooks": "cross-env COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=hooks/test/browser/**.js --no-single-run",
132
+ "test:karma:test-utils": "cross-env PERFORMANCE=false COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=test-utils/test/shared/**.js --no-single-run",
133
+ "test:karma:bench": "cross-env PERFORMANCE=true COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=test/benchmarks/**.js --single-run",
134
+ "benchmark": "npm run test:karma:bench -- no-single-run",
135
+ "lint": "run-s eslint",
136
+ "eslint": "eslint src test debug compat hooks test-utils",
137
+ "format": "prettier --write \"**/*.{js,jsx,mjs,cjs,ts,tsx,yml,json,html,md,css,scss}\"",
138
+ "format:check": "prettier --check '**/*.{js,jsx,mjs,cjs,ts,tsx,yml,json,html,md,css,scss}'"
139
+ },
140
+ "eslintConfig": {
141
+ "extends": [
142
+ "developit",
143
+ "prettier"
144
+ ],
145
+ "settings": {
146
+ "react": {
147
+ "pragma": "createElement"
148
+ }
149
+ },
150
+ "rules": {
151
+ "camelcase": [
152
+ 1,
153
+ {
154
+ "allow": [
155
+ "__test__*",
156
+ "unstable_*",
157
+ "UNSAFE_*"
158
+ ]
159
+ }
160
+ ],
161
+ "no-unused-vars": [
162
+ 2,
163
+ {
164
+ "args": "none",
165
+ "varsIgnorePattern": "^h|React$"
166
+ }
167
+ ],
168
+ "prefer-rest-params": 0,
169
+ "prefer-spread": 0,
170
+ "no-cond-assign": 0,
171
+ "react/jsx-no-bind": 0,
172
+ "react/no-danger": "off",
173
+ "react/prefer-stateless-function": 0,
174
+ "react/sort-comp": 0,
175
+ "jest/valid-expect": 0,
176
+ "jest/no-disabled-tests": 0,
177
+ "jest/no-test-callback": 0,
178
+ "jest/expect-expect": 0,
179
+ "jest/no-standalone-expect": 0,
180
+ "jest/no-export": 0,
181
+ "react/no-find-dom-node": 0
182
+ }
183
+ },
184
+ "eslintIgnore": [
185
+ "test/fixtures",
186
+ "test/ts/",
187
+ "*.ts",
188
+ "dist"
189
+ ],
190
+ "prettier": {
191
+ "singleQuote": true,
192
+ "trailingComma": "none",
193
+ "arrowParens": "avoid"
194
+ },
195
+ "lint-staged": {
196
+ "**/*.{js,jsx,mjs,cjs,ts,tsx,yml,json,html,md,css,scss}": [
197
+ "prettier --write"
198
+ ]
199
+ },
200
+ "husky": {
201
+ "hooks": {
202
+ "pre-commit": "lint-staged"
203
+ }
204
+ },
205
+ "files": [
206
+ "src",
207
+ "dist",
208
+ "compat/dist",
209
+ "compat/src",
210
+ "compat/client.js",
211
+ "compat/client.mjs",
212
+ "compat/server.browser.js",
213
+ "compat/server.js",
214
+ "compat/server.mjs",
215
+ "compat/scheduler.js",
216
+ "compat/scheduler.mjs",
217
+ "compat/test-utils.js",
218
+ "compat/jsx-runtime.js",
219
+ "compat/jsx-runtime.mjs",
220
+ "compat/jsx-dev-runtime.js",
221
+ "compat/jsx-dev-runtime.mjs",
222
+ "compat/package.json",
223
+ "debug/dist",
224
+ "debug/src",
225
+ "debug/package.json",
226
+ "devtools/dist",
227
+ "devtools/src",
228
+ "devtools/package.json",
229
+ "hooks/dist",
230
+ "hooks/src",
231
+ "hooks/package.json",
232
+ "jsx-runtime/dist",
233
+ "jsx-runtime/src",
234
+ "jsx-runtime/package.json",
235
+ "test-utils/src",
236
+ "test-utils/package.json",
237
+ "test-utils/dist"
238
+ ],
239
+ "keywords": [
240
+ "preact",
241
+ "react",
242
+ "ui",
243
+ "user interface",
244
+ "virtual dom",
245
+ "vdom",
246
+ "components",
247
+ "dom diff",
248
+ "front-end",
249
+ "framework"
250
+ ],
251
+ "authors": [
252
+ "The Preact Authors (https://github.com/preactjs/preact/contributors)"
253
+ ],
254
+ "repository": "preactjs/preact",
255
+ "bugs": "https://github.com/preactjs/preact/issues",
256
+ "homepage": "https://preactjs.com",
257
+ "devDependencies": {
258
+ "@actions/github": "^5.0.0",
259
+ "@actions/glob": "^0.2.0",
260
+ "@babel/core": "^7.7.0",
261
+ "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
262
+ "@babel/plugin-transform-react-jsx": "^7.7.0",
263
+ "@babel/plugin-transform-react-jsx-source": "^7.7.4",
264
+ "@babel/preset-env": "^7.7.1",
265
+ "@babel/register": "^7.7.0",
266
+ "@types/chai": "^4.1.2",
267
+ "@types/mocha": "^5.0.0",
268
+ "@types/node": "^14.14.10",
269
+ "babel-plugin-istanbul": "^6.0.0",
270
+ "babel-plugin-transform-async-to-promises": "^0.8.15",
271
+ "babel-plugin-transform-rename-properties": "0.1.0",
272
+ "benchmark": "^2.1.4",
273
+ "chai": "^4.1.2",
274
+ "check-export-map": "^1.3.0",
275
+ "coveralls": "^3.0.0",
276
+ "cross-env": "^7.0.2",
277
+ "diff": "^5.0.0",
278
+ "errorstacks": "^2.4.0",
279
+ "esbuild": "^0.14.50",
280
+ "eslint": "5.15.1",
281
+ "eslint-config-developit": "^1.1.1",
282
+ "eslint-config-prettier": "^6.5.0",
283
+ "eslint-plugin-react": "7.12.4",
284
+ "husky": "^4.3.0",
285
+ "karma": "^6.3.16",
286
+ "karma-chai-sinon": "^0.1.5",
287
+ "karma-chrome-launcher": "^3.1.0",
288
+ "karma-coverage": "^2.1.0",
289
+ "karma-esbuild": "^2.2.4",
290
+ "karma-mocha": "^2.0.1",
291
+ "karma-mocha-reporter": "^2.2.5",
292
+ "karma-sauce-launcher": "^4.3.4",
293
+ "karma-sinon": "^1.0.5",
294
+ "karma-sourcemap-loader": "^0.3.7",
295
+ "kolorist": "^1.2.10",
296
+ "lint-staged": "^10.5.2",
297
+ "lodash": "^4.17.20",
298
+ "microbundle": "^0.15.1",
299
+ "mocha": "^8.2.1",
300
+ "npm-merge-driver-install": "^1.1.1",
301
+ "npm-run-all": "^4.0.0",
302
+ "preact-render-to-string": "^5.2.5",
303
+ "prettier": "^2.8.6",
304
+ "prop-types": "^15.7.2",
305
+ "sade": "^1.7.4",
306
+ "sinon": "^9.2.3",
307
+ "sinon-chai": "^3.5.0",
308
+ "typescript": "^4.9.5",
309
+ "undici": "^4.12.0"
310
+ },
311
+ "overrides": {
312
+ "webdriverio": "7.30.2"
313
+ },
314
+ "volta": {
315
+ "node": "16.18.0"
316
+ }
264
317
  }