@igeekfan/fluent-emoji-ms-core 0.1.0 → 0.1.1

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/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { defaultEmojiLocale } from './i18n';
6
6
  import type { EmojiCategory, EmojiCollectionOptions, EmojiItem, EmojiItemWithStyle, EmojiLocale, EmojiLocaleMessages, EmojiPreset, EmojiPresetKey, EmojiPickerState, EmojiPickerStateStore, EmojiQueryOptions, EmojiQueryResult, StyleOption } from './types';
7
7
  export type { EmojiCategory, EmojiCollectionOptions, EmojiItem, EmojiItemWithStyle, EmojiLocale, EmojiLocaleMessages, EmojiPreset, EmojiPresetKey, EmojiPickerState, EmojiPickerStateStore, EmojiQueryOptions, EmojiQueryResult, StyleOption };
8
8
  export declare const DEFAULT_BASE_URL = "https://cdn.jsdelivr.net/npm/fluentui-emoji@1.1.1";
9
- export declare const DEFAULT_RENDER_BATCH_SIZE = 240;
9
+ export declare const DEFAULT_RENDER_BATCH_SIZE = 96;
10
10
  export declare const defaultCategories: string[];
11
11
  type IndexedEmoji = EmojiItem & {
12
12
  searchText: string;
package/dist/index.js CHANGED
@@ -32,6 +32,10 @@ const s = "zh-CN", w = {
32
32
  "high-contrast": "高对比"
33
33
  },
34
34
  presets: {
35
+ common: {
36
+ label: "常用",
37
+ description: "面向聊天和评论入口的精简常用集合,优先保证一屏内快速选择。"
38
+ },
35
39
  basic: {
36
40
  label: "常用反馈",
37
41
  description: "覆盖点赞、感谢、庆祝、常见心情和聊天高频反馈,适合作为默认入口。"
@@ -79,6 +83,10 @@ const s = "zh-CN", w = {
79
83
  "high-contrast": "High Contrast"
80
84
  },
81
85
  presets: {
86
+ common: {
87
+ label: "Common",
88
+ description: "A compact first-screen set for fast picks in chat and comment entry points."
89
+ },
82
90
  basic: {
83
91
  label: "Everyday Feedback",
84
92
  description: "A broader starter pack for likes, thanks, celebration, common moods, and frequent chat reactions."
@@ -13057,7 +13065,34 @@ const D = [
13057
13065
  path: "zzz.svg",
13058
13066
  category: "symbols"
13059
13067
  }
13060
- ], I = "basic", W = {
13068
+ ], I = "common", W = {
13069
+ common: {
13070
+ key: "common",
13071
+ label: "常用",
13072
+ description: "面向聊天和评论入口的精简常用集合,优先保证一屏内快速选择。",
13073
+ emojiNames: [
13074
+ "Thumbs Up Default",
13075
+ "Red Heart",
13076
+ "Face With Tears Of Joy",
13077
+ "Rolling On The Floor Laughing",
13078
+ "Smiling Face With Heart Eyes",
13079
+ "Thinking Face",
13080
+ "Clapping Hands Default",
13081
+ "Folded Hands Default",
13082
+ "Fire",
13083
+ "Sparkles",
13084
+ "Party Popper",
13085
+ "Hundred Points",
13086
+ "Eyes",
13087
+ "Ok Hand Default",
13088
+ "Victory Hand Default",
13089
+ "Check Mark Button",
13090
+ "Cross Mark",
13091
+ "Pleading Face",
13092
+ "Loudly Crying Face",
13093
+ "Star Struck"
13094
+ ]
13095
+ },
13061
13096
  basic: {
13062
13097
  key: "basic",
13063
13098
  label: "常用反馈",
@@ -13193,7 +13228,7 @@ function E(e, a = s) {
13193
13228
  const t = H(a).find((o) => o.value === e);
13194
13229
  return t ? t.name : e;
13195
13230
  }
13196
- const P = "https://cdn.jsdelivr.net/npm/fluentui-emoji@1.1.1", h = 240, c = ["smileys", "animals", "food", "symbols"], T = new Map(v.map((e) => [e.value, e]));
13231
+ const P = "https://cdn.jsdelivr.net/npm/fluentui-emoji@1.1.1", h = 96, c = ["smileys", "animals", "food", "symbols"], T = new Map(v.map((e) => [e.value, e]));
13197
13232
  function k(e) {
13198
13233
  return e && T.has(e) ? e : "objects";
13199
13234
  }
@@ -13301,10 +13336,10 @@ function q(e = s) {
13301
13336
  function J(e, a = s) {
13302
13337
  return B(a)[e];
13303
13338
  }
13304
- function K(e, a, t) {
13339
+ function V(e, a, t) {
13305
13340
  return `${e}/icons/${a}/${t}`;
13306
13341
  }
13307
- function V(e = {}) {
13342
+ function K(e = {}) {
13308
13343
  const a = {
13309
13344
  isOpen: !1,
13310
13345
  baseUrl: P,
@@ -13350,10 +13385,10 @@ const Y = D, Q = v;
13350
13385
  export {
13351
13386
  P as DEFAULT_BASE_URL,
13352
13387
  h as DEFAULT_RENDER_BATCH_SIZE,
13353
- K as buildEmojiImageUrl,
13388
+ V as buildEmojiImageUrl,
13354
13389
  Q as categories,
13355
13390
  Y as commonEmojis,
13356
- V as createEmojiPickerState,
13391
+ K as createEmojiPickerState,
13357
13392
  c as defaultCategories,
13358
13393
  s as defaultEmojiLocale,
13359
13394
  I as defaultEmojiPreset,
package/dist/types.d.ts CHANGED
@@ -11,7 +11,7 @@ export interface EmojiCategory {
11
11
  value: string;
12
12
  icon?: string;
13
13
  }
14
- export type EmojiPresetKey = 'basic' | 'reactions' | 'workflow';
14
+ export type EmojiPresetKey = 'common' | 'basic' | 'reactions' | 'workflow';
15
15
  export interface EmojiPreset {
16
16
  key: EmojiPresetKey;
17
17
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igeekfan/fluent-emoji-ms-core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",