@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.
- package/dist/cjs/components/EmojiPicker.d.ts +4 -3
- package/dist/cjs/index.js +5 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/avatar/types.d.ts +6 -1
- package/dist/cjs/lib/avatar/utils.d.ts +5 -5
- package/dist/esm/components/EmojiPicker.d.ts +4 -3
- package/dist/esm/index.js +5 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/avatar/types.d.ts +6 -1
- package/dist/esm/lib/avatar/utils.d.ts +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { EmojiMartData
|
|
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
|
|
5
|
-
onEmojiSelect: (emoji:
|
|
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:
|
|
39787
|
+
backgroundColor: prefixedBackgroundColor,
|
|
39787
39788
|
id: id_1,
|
|
39788
39789
|
unified: unified_1,
|
|
39789
|
-
|
|
39790
|
+
skinEmoji: skinEmoji.native,
|
|
39790
39791
|
};
|
|
39791
39792
|
}
|
|
39792
39793
|
return null;
|
|
39793
39794
|
}
|
|
39794
39795
|
function createEmojiAndBackgroundUrlSuffix(_a) {
|
|
39795
|
-
var
|
|
39796
|
-
return "/emojis/".concat(
|
|
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({
|