emoji-picker-element
Advanced tools
Comparing version 1.20.1 to 1.21.0
{ | ||
"name": "emoji-picker-element", | ||
"version": "1.20.1", | ||
"version": "1.21.0", | ||
"description": "Lightweight emoji picker distributed as a web component", | ||
@@ -28,7 +28,5 @@ "main": "index.js", | ||
"build:i18n": "node ./bin/buildI18n", | ||
"benchmark:runtime": "cross-env PERF=1 run-s build:rollup benchmark:runtime:setup benchmark:runtime:firstload benchmark:runtime:secondload benchmark:runtime:database", | ||
"benchmark:runtime:setup": "./bin/setup-benchmark.sh", | ||
"benchmark:runtime:firstload": "tach --config ./test/benchmark/first-load.tachometer.json", | ||
"benchmark:runtime:secondload": "tach --config ./test/benchmark/second-load.tachometer.json", | ||
"benchmark:runtime:database": "tach --config ./test/benchmark/database-interactions.tachometer.json", | ||
"benchmark:runtime": "cross-env PERF=1 run-s build:rollup benchmark:runtime:setup benchmark:runtime:test", | ||
"benchmark:runtime:setup": "./bin/setup-benchmark.sh && node ./bin/setupTachometerConfigs.js", | ||
"benchmark:runtime:test": "for config in ./test/benchmark/*.tachometer.json; do echo \"${config}\"; tach --config \"${config}\"; done", | ||
"benchmark:bundlesize": "run-s build:rollup benchmark:bundle benchmark:run-bundlesize", | ||
@@ -68,4 +66,3 @@ "benchmark:bundle": "rollup -c ./test/bundlesize/rollup.config.js", | ||
"web", | ||
"component", | ||
"svelte" | ||
"component" | ||
], | ||
@@ -86,3 +83,3 @@ "author": "Nolan Lawson <nolan@nolanlawson.com>", | ||
"@testing-library/dom": "^9.3.3", | ||
"@testing-library/jest-dom": "^6.1.4", | ||
"@testing-library/jest-dom": "^6.1.5", | ||
"@testing-library/user-event": "^14.5.1", | ||
@@ -107,15 +104,14 @@ "blob-util": "^2.0.2", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"lint-staged": "^15.1.0", | ||
"lint-staged": "^15.2.0", | ||
"lodash-es": "^4.17.15", | ||
"magic-string": "^0.30.5", | ||
"markdown-table": "^3.0.2", | ||
"markdown-toc": "^1.2.0", | ||
"minify-html-literals": "^1.3.5", | ||
"npm-run-all": "^4.1.5", | ||
"playwright": "^1.39.0", | ||
"playwright": "^1.40.1", | ||
"pretty-bytes": "^6.1.1", | ||
"puppeteer": "^21.5.1", | ||
"puppeteer": "^21.6.0", | ||
"recursive-readdir": "^2.2.3", | ||
"rollup": "^4.3.1", | ||
"rollup": "^4.7.0", | ||
"rollup-plugin-analyzer": "^4.0.0", | ||
"rollup-plugin-svelte": "^7.1.6", | ||
"rollup-plugin-terser": "^7.0.2", | ||
@@ -129,8 +125,5 @@ "sass": "^1.69.5", | ||
"stylelint-scss": "^5.3.1", | ||
"svelte": "^4.2.3", | ||
"svelte-jester": "^3.0.0", | ||
"svelte-preprocess": "^5.1.0", | ||
"svgo": "^3.0.3", | ||
"svgo": "^3.0.5", | ||
"tachometer": "^0.7.0", | ||
"terser": "^5.24.0" | ||
"terser": "^5.26.0" | ||
}, | ||
@@ -161,2 +154,3 @@ "//": { | ||
"getComputedStyle", | ||
"Element", | ||
"indexedDB", | ||
@@ -167,2 +161,4 @@ "IDBKeyRange", | ||
"matchMedia", | ||
"Node", | ||
"NodeFilter", | ||
"performance", | ||
@@ -169,0 +165,0 @@ "ResizeObserver", |
@@ -830,6 +830,7 @@ emoji-picker-element | ||
`emoji-picker-element` is explicitly designed as a custom element, and won't work | ||
as a direct Svelte component. However, if you're already using Svelte 3, then you | ||
can avoid importing Svelte twice by using: | ||
> [!WARNING] | ||
> `emoji-picker-element` is no longer based on Svelte, so importing from `emoji-picker-element/svelte` is now deprecated. | ||
Previously, `emoji-picker-element` was based on Svelte v3/v4, and you could do: | ||
```js | ||
@@ -839,6 +840,10 @@ import Picker from 'emoji-picker-element/svelte'; | ||
`svelte.js` is the same as `picker.js`, except it `import`s Svelte rather than bundling it. | ||
The goal was to slightly reduce the bundle size by sharing common `svelte` imports. | ||
While this option can reduce your bundle size, note that it only works with compatible Svelte versions. Currently Svelte v3 and v4 are supported. | ||
This is still supported for backwards compatibility, but it is deprecated and just re-exports the Picker. Instead, do: | ||
```js | ||
import Picker from 'emoji-picker-element/picker'; | ||
``` | ||
## Data and offline | ||
@@ -845,0 +850,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50
979
1
404172
51
3541