emoji-picker-react 5.1.1 → 5.1.3

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/llms-full.txt CHANGED
@@ -520,7 +520,7 @@ See [PROPS.md](PROPS.md) for every prop.
520
520
  - **Localized** — 28 emoji datasets; translate search, categories, previews, reactions, skin tones, loading errors and retry controls, including accessible announcements.
521
521
  - **Emoji styles** — native (default), Apple, Google, Facebook, Twitter; native mode filters detected unsupported OS glyphs, including individual sequences and skin tones. See [detection limits](docs/v5/API.md#5c-native-emoji-support-detection).
522
522
  - **Custom emojis** — image-based emojis, optionally in their own named groups.
523
- - **Lean when you want** — the primitives entry loads the dataset on demand (a 34 KiB min+gz startup budget including ShipStyles; see the consumer gate); a framework-free data API for search and lookup.
523
+ - **Lean when you want** — the primitives entry loads the dataset on demand (a 35 KiB min+gz startup budget including ShipStyles; see the consumer gate); a framework-free data API for search and lookup.
524
524
  - **Modern React** — React 16.8 through 19, SSR, React Server Components (`"use client"` entries), TypeScript types included; ships ES2020 for every browser since 2020 and any modern bundler.
525
525
 
526
526
  > **Upgrading from v4?** Most code works unchanged; the default emoji style is now native, and markup, styling and package boundaries have changed. See [Migrating from v4](docs/v5/MIGRATION.md). The APIs on this page need `emoji-picker-react@5` or later.
@@ -1604,7 +1604,7 @@ All 25 designs share a source generator. Their seven styling-stack variants rema
1604
1604
 
1605
1605
  Import runtime constants from `/primitives`. Runtime imports from the main or `/data` entry register the synchronous default dataset, so those mixed graphs intentionally have a larger initial payload.
1606
1606
 
1607
- The configured minimal consumer, bundled from an installed package tarball, must stay within **34 KiB initial gzip including ShipStyles**, with the dataset deferred. Unused parts, icons and styles can be removed by the consumer bundler; the default picker retains its complete composition. The complete-runtime regression cap is **34 KiB**, down from 41 KiB after the original 40.5 KiB adoption candidate. Earlier gates that excluded ShipStyles are not comparable. Reducing the runtime toward 25 KiB remains profiling work. Account for initial JavaScript and dataset traffic separately.
1607
+ The configured minimal consumer, bundled from an installed package tarball, must stay within **35 KiB initial gzip including ShipStyles**, with the dataset deferred. Unused parts, icons and styles can be removed by the consumer bundler; the default picker retains its complete composition. The complete-runtime regression cap is **35 KiB**: down from 41 KiB after the original 40.5 KiB adoption candidate to 34 KiB, then raised to 35 KiB in 5.1.3 to keep layered stylesheets mounted (closing a `cssLayer` picker no longer re-lays out the page). Earlier gates that excluded ShipStyles are not comparable. Reducing the runtime toward 25 KiB remains profiling work. Account for initial JavaScript and dataset traffic separately.
1608
1608
 
1609
1609
  <!-- source: docs/v5/API.md -->
1610
1610
 
@@ -1840,6 +1840,7 @@ Existing `reactionsDefaultOpen`, `allowExpandReactions`, `reactions`, `onReactio
1840
1840
 
1841
1841
  For standard emoji IDs:
1842
1842
  - matching is case-insensitive;
1843
+ - matching ignores where U+FE0F appears: `'2764'` and `'2764-fe0f'` both resolve to the dataset's own spelling, the same rule `reactions` and `hiddenEmojis` use;
1843
1844
  - a valid variation remains that exact variation for rendering rather than collapsing to the neutral base emoji;
1844
1845
  - duplicates are removed by canonical normalized ID, first occurrence wins.
1845
1846
 
@@ -2616,6 +2617,7 @@ The following variables are already documented public customization surface and
2616
2617
  ### Skin tone
2617
2618
  - `--epr-skin-tone-picker-menu-color`
2618
2619
  - `--epr-skin-tone-size`
2620
+ - `--epr-skin-tone-neutral-color`, `--epr-skin-tone-light-color`, `--epr-skin-tone-medium-light-color`, `--epr-skin-tone-medium-color`, `--epr-skin-tone-medium-dark-color`, `--epr-skin-tone-dark-color` — the tone swatch colors (defaults `#ffd225`, `#ffdfbd`, `#e9c197`, `#c88e62`, `#a86637`, `#60463a`).
2619
2621
 
2620
2622
  ### Dark mode
2621
2623
  - `--epr-dark-bg-color`
@@ -3276,6 +3278,7 @@ No other data helpers are part of v5.
3276
3278
  - trims surrounding whitespace;
3277
3279
  - normalizes hexadecimal unified code to lowercase;
3278
3280
  - accepts base or variation unified code;
3281
+ - accepts either U+FE0F spelling (`2764` or `2764-fe0f`); an exact match wins;
3279
3282
  - variation lookup returns the canonical/base EmojiInfo whose `variations` includes the requested variation;
3280
3283
  - returns `undefined` for unknown/empty input;
3281
3284
  - does not mutate the dataset;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.1.1",
2
+ "version": "5.1.3",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",