@singi-labs/sifa-sdk 0.19.106 → 0.19.107
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.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/stream/stream-card-vm-schema.js +2 -1
- package/dist/stream/stream-card-vm-schema.js.map +1 -1
- package/dist/stream/to-stream-card-vm.js +7 -2
- package/dist/stream/to-stream-card-vm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4963,7 +4963,8 @@ var streamAuthorSchema = zod.z.object({
|
|
|
4963
4963
|
var streamThemeSchema = zod.z.object({
|
|
4964
4964
|
background: rgbColorSchema,
|
|
4965
4965
|
foreground: rgbColorSchema,
|
|
4966
|
-
accent: rgbColorSchema
|
|
4966
|
+
accent: rgbColorSchema,
|
|
4967
|
+
accentForeground: rgbColorSchema.optional()
|
|
4967
4968
|
});
|
|
4968
4969
|
var streamMediaResolvedSchema = zod.z.object({
|
|
4969
4970
|
url: zod.z.string(),
|
|
@@ -5411,9 +5412,14 @@ function resolveSourceUrl(item, record) {
|
|
|
5411
5412
|
function readTheme(record) {
|
|
5412
5413
|
const theme = asRecord(record?.publicationTheme ?? record?.theme);
|
|
5413
5414
|
if (!theme) return void 0;
|
|
5414
|
-
const { background, foreground, accent } = theme;
|
|
5415
|
+
const { background, foreground, accent, accentForeground } = theme;
|
|
5415
5416
|
if (isValidRgbColor(background) && isValidRgbColor(foreground) && isValidRgbColor(accent)) {
|
|
5416
|
-
return {
|
|
5417
|
+
return {
|
|
5418
|
+
background,
|
|
5419
|
+
foreground,
|
|
5420
|
+
accent,
|
|
5421
|
+
...isValidRgbColor(accentForeground) ? { accentForeground } : {}
|
|
5422
|
+
};
|
|
5417
5423
|
}
|
|
5418
5424
|
return void 0;
|
|
5419
5425
|
}
|
|
@@ -7844,7 +7850,7 @@ function describeSifaRecord(collection, value) {
|
|
|
7844
7850
|
}
|
|
7845
7851
|
|
|
7846
7852
|
// src/index.ts
|
|
7847
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
7853
|
+
var SIFA_SDK_VERSION = "0.19.107";
|
|
7848
7854
|
|
|
7849
7855
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
7850
7856
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|