@dust-tt/sparkle 0.2.145-rc1 → 0.2.146-rc

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.
@@ -1,8 +1,9 @@
1
- import type { EmojiMartData, Skin } from "@emoji-mart/data";
1
+ import type { EmojiMartData } from "@emoji-mart/data";
2
2
  import React from "react";
3
+ import { EmojiSkinType } from "@sparkle/lib/avatar/types";
3
4
  interface EmojiPickerProps {
4
- data: EmojiMartData;
5
- onEmojiSelect: (emoji: Skin) => void;
5
+ data?: EmojiMartData;
6
+ onEmojiSelect: (emoji: EmojiSkinType) => void;
6
7
  previewPosition?: "none";
7
8
  theme: "dark" | "light";
8
9
  }
package/dist/cjs/index.js CHANGED
@@ -39782,18 +39782,19 @@ function getEmojiAndBackgroundFromUrl(url) {
39782
39782
  if (!skinEmoji) {
39783
39783
  return null;
39784
39784
  }
39785
+ var prefixedBackgroundColor = "bg-".concat(backgroundColor);
39785
39786
  return {
39786
- backgroundColor: backgroundColor,
39787
+ backgroundColor: prefixedBackgroundColor,
39787
39788
  id: id_1,
39788
39789
  unified: unified_1,
39789
- native: skinEmoji.native,
39790
+ skinEmoji: skinEmoji.native,
39790
39791
  };
39791
39792
  }
39792
39793
  return null;
39793
39794
  }
39794
39795
  function createEmojiAndBackgroundUrlSuffix(_a) {
39795
- var bgColor = _a.bgColor, id = _a.id, unified = _a.unified;
39796
- return "/emojis/".concat(bgColor, "/").concat(id, "/").concat(unified);
39796
+ var backgroundColor = _a.backgroundColor, id = _a.id, unified = _a.unified;
39797
+ return "/emojis/".concat(backgroundColor, "/").concat(id, "/").concat(unified);
39797
39798
  }
39798
39799
 
39799
39800
  var utils = /*#__PURE__*/Object.freeze({