@chrryai/chrry 1.4.70 → 1.4.71
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/Bookmark.module.scss +1 -6
- package/dist/index.js +29 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -65
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/Bookmark.module.scss
CHANGED
package/dist/index.js
CHANGED
|
@@ -1899,7 +1899,7 @@ var init_utils = __esm({
|
|
|
1899
1899
|
};
|
|
1900
1900
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
1901
1901
|
config = getSiteConfig(getClientHostname());
|
|
1902
|
-
VERSION = config.version || "1.4.
|
|
1902
|
+
VERSION = config.version || "1.4.71";
|
|
1903
1903
|
getSlugFromPathname = (path) => {
|
|
1904
1904
|
return getAppAndStoreSlugs(path, {
|
|
1905
1905
|
defaultAppSlug: config.slug,
|
|
@@ -24126,7 +24126,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24126
24126
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24127
24127
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24128
24128
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24129
|
-
const VERSION4 = "1.4.
|
|
24129
|
+
const VERSION4 = "1.4.71";
|
|
24130
24130
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24131
24131
|
const {
|
|
24132
24132
|
API_URL: API_URL2,
|
|
@@ -40103,61 +40103,24 @@ var init_hasThreadNotification = __esm({
|
|
|
40103
40103
|
});
|
|
40104
40104
|
|
|
40105
40105
|
// Bookmark.styles.ts
|
|
40106
|
-
function isInteractiveStyleDef5(def) {
|
|
40107
|
-
return typeof def === "object" && def !== null && Object.prototype.hasOwnProperty.call(def, "base");
|
|
40108
|
-
}
|
|
40109
40106
|
var BookmarkStyleDefs, BookmarkStyles, useBookmarkStyles;
|
|
40110
40107
|
var init_Bookmark_styles = __esm({
|
|
40111
40108
|
"Bookmark.styles.ts"() {
|
|
40112
40109
|
"use strict";
|
|
40113
40110
|
init_createUnifiedStyles();
|
|
40114
|
-
|
|
40111
|
+
init_createStyleHook();
|
|
40115
40112
|
BookmarkStyleDefs = {
|
|
40116
40113
|
star: {
|
|
40117
|
-
|
|
40118
|
-
|
|
40119
|
-
|
|
40120
|
-
color: "var(--shade-6)"
|
|
40121
|
-
},
|
|
40122
|
-
hover: {
|
|
40123
|
-
color: "var(--accent-1)"
|
|
40124
|
-
}
|
|
40114
|
+
display: "inline-flex",
|
|
40115
|
+
fontSize: 12,
|
|
40116
|
+
color: "var(--shade-6)"
|
|
40125
40117
|
},
|
|
40126
40118
|
starActive: {
|
|
40127
40119
|
display: "inline-flex"
|
|
40128
40120
|
}
|
|
40129
40121
|
};
|
|
40130
40122
|
BookmarkStyles = createUnifiedStyles(BookmarkStyleDefs);
|
|
40131
|
-
useBookmarkStyles = ()
|
|
40132
|
-
const styleResults = {};
|
|
40133
|
-
const keys = Object.keys(BookmarkStyleDefs);
|
|
40134
|
-
for (const className of keys) {
|
|
40135
|
-
const styleDef = BookmarkStyleDefs[className];
|
|
40136
|
-
if (isInteractiveStyleDef5(styleDef)) {
|
|
40137
|
-
const {
|
|
40138
|
-
base = {},
|
|
40139
|
-
hover = {},
|
|
40140
|
-
active = {},
|
|
40141
|
-
focus = {},
|
|
40142
|
-
disabled = {}
|
|
40143
|
-
} = styleDef;
|
|
40144
|
-
styleResults[className] = useInteractiveStyles({
|
|
40145
|
-
baseStyle: base,
|
|
40146
|
-
hoverStyle: hover,
|
|
40147
|
-
activeStyle: active,
|
|
40148
|
-
focusStyle: focus,
|
|
40149
|
-
disabledStyle: disabled
|
|
40150
|
-
});
|
|
40151
|
-
} else {
|
|
40152
|
-
styleResults[className] = {
|
|
40153
|
-
style: styleDef,
|
|
40154
|
-
handlers: {},
|
|
40155
|
-
state: { isHovered: false, isPressed: false, isFocused: false }
|
|
40156
|
-
};
|
|
40157
|
-
}
|
|
40158
|
-
}
|
|
40159
|
-
return styleResults;
|
|
40160
|
-
};
|
|
40123
|
+
useBookmarkStyles = createStyleHook(BookmarkStyles);
|
|
40161
40124
|
}
|
|
40162
40125
|
});
|
|
40163
40126
|
|
|
@@ -40181,12 +40144,13 @@ function Bookmark({
|
|
|
40181
40144
|
)
|
|
40182
40145
|
);
|
|
40183
40146
|
(0, import_react59.useEffect)(() => {
|
|
40184
|
-
threads?.threads.
|
|
40185
|
-
|
|
40147
|
+
const t6 = threads?.threads.find((t7) => t7.id === thread2.id);
|
|
40148
|
+
if (t6) {
|
|
40149
|
+
t6.bookmarks?.some(
|
|
40186
40150
|
(b) => isOwner_default(b, { userId: user?.id, guestId: guest?.id })
|
|
40187
|
-
)
|
|
40188
|
-
|
|
40189
|
-
}, [threads
|
|
40151
|
+
) ? setBookmarkedInternal(true) : setBookmarkedInternal(false);
|
|
40152
|
+
}
|
|
40153
|
+
}, [threads]);
|
|
40190
40154
|
const setBookmarked = async (bookmarked2) => {
|
|
40191
40155
|
setBookmarkedInternal(bookmarked2);
|
|
40192
40156
|
onClick?.(bookmarked2);
|
|
@@ -40198,7 +40162,6 @@ function Bookmark({
|
|
|
40198
40162
|
onSave?.();
|
|
40199
40163
|
});
|
|
40200
40164
|
};
|
|
40201
|
-
const [hovered, setHovered] = import_react59.default.useState(false);
|
|
40202
40165
|
return /* @__PURE__ */ import_react59.default.createElement(
|
|
40203
40166
|
Button,
|
|
40204
40167
|
{
|
|
@@ -40206,11 +40169,12 @@ function Bookmark({
|
|
|
40206
40169
|
onClick: () => setBookmarked(!bookmarked),
|
|
40207
40170
|
style: {
|
|
40208
40171
|
...bookmarked && styles4.starActive.style,
|
|
40172
|
+
...utilities.link.style,
|
|
40209
40173
|
...style2
|
|
40210
40174
|
},
|
|
40211
40175
|
"data-testid": `${dataTestId}-${bookmarked ? "bookmarked" : "not-bookmarked"}`
|
|
40212
40176
|
},
|
|
40213
|
-
bookmarked ? /* @__PURE__ */ import_react59.default.createElement(icons_exports.Star, { size: size2, color: "var(--accent-1)", fill: "var(--accent-1)" }) : /* @__PURE__ */ import_react59.default.createElement(icons_exports.Star, { size: size2, color: "var(--shade-
|
|
40177
|
+
bookmarked ? /* @__PURE__ */ import_react59.default.createElement(icons_exports.Star, { size: size2, color: "var(--accent-1)", fill: "var(--accent-1)" }) : /* @__PURE__ */ import_react59.default.createElement(icons_exports.Star, { size: size2, color: "var(--shade-2)", fill: "var(--shade-2)" }),
|
|
40214
40178
|
children
|
|
40215
40179
|
);
|
|
40216
40180
|
}
|
|
@@ -42932,7 +42896,7 @@ var init_subscription = __esm({
|
|
|
42932
42896
|
});
|
|
42933
42897
|
|
|
42934
42898
|
// Subscribe.styles.ts
|
|
42935
|
-
function
|
|
42899
|
+
function isInteractiveStyleDef5(def) {
|
|
42936
42900
|
return typeof def === "object" && def !== null && Object.prototype.hasOwnProperty.call(def, "base");
|
|
42937
42901
|
}
|
|
42938
42902
|
var SubscribeStyleDefs, SubscribeStyles, useSubscribeStyles;
|
|
@@ -43147,7 +43111,7 @@ var init_Subscribe_styles = __esm({
|
|
|
43147
43111
|
const keys = Object.keys(SubscribeStyleDefs);
|
|
43148
43112
|
for (const className of keys) {
|
|
43149
43113
|
const styleDef = SubscribeStyleDefs[className];
|
|
43150
|
-
if (
|
|
43114
|
+
if (isInteractiveStyleDef5(styleDef)) {
|
|
43151
43115
|
const {
|
|
43152
43116
|
base = {},
|
|
43153
43117
|
hover = {},
|
|
@@ -45228,7 +45192,7 @@ var init_useThreadPresence = __esm({
|
|
|
45228
45192
|
});
|
|
45229
45193
|
|
|
45230
45194
|
// Message.styles.ts
|
|
45231
|
-
function
|
|
45195
|
+
function isInteractiveStyleDef6(def) {
|
|
45232
45196
|
return typeof def === "object" && def !== null && Object.prototype.hasOwnProperty.call(def, "base");
|
|
45233
45197
|
}
|
|
45234
45198
|
var MessageStyleDefs, MessageStyles, useMessageStyles;
|
|
@@ -45566,7 +45530,7 @@ var init_Message_styles = __esm({
|
|
|
45566
45530
|
const keys = Object.keys(MessageStyleDefs);
|
|
45567
45531
|
for (const className of keys) {
|
|
45568
45532
|
const styleDef = MessageStyleDefs[className];
|
|
45569
|
-
if (
|
|
45533
|
+
if (isInteractiveStyleDef6(styleDef)) {
|
|
45570
45534
|
const {
|
|
45571
45535
|
base = {},
|
|
45572
45536
|
hover = {},
|
|
@@ -48264,7 +48228,7 @@ var init_Testimonials = __esm({
|
|
|
48264
48228
|
});
|
|
48265
48229
|
|
|
48266
48230
|
// FocusButton.styles.ts
|
|
48267
|
-
function
|
|
48231
|
+
function isInteractiveStyleDef7(def) {
|
|
48268
48232
|
return typeof def === "object" && def !== null && Object.prototype.hasOwnProperty.call(def, "base");
|
|
48269
48233
|
}
|
|
48270
48234
|
var FocusButtonStyleDefs, FocusButtonStyles, useFocusButtonStyles;
|
|
@@ -48793,7 +48757,7 @@ var init_FocusButton_styles = __esm({
|
|
|
48793
48757
|
const keys = Object.keys(FocusButtonStyleDefs);
|
|
48794
48758
|
for (const className of keys) {
|
|
48795
48759
|
const styleDef = FocusButtonStyleDefs[className];
|
|
48796
|
-
if (
|
|
48760
|
+
if (isInteractiveStyleDef7(styleDef)) {
|
|
48797
48761
|
const {
|
|
48798
48762
|
base = {},
|
|
48799
48763
|
hover = {},
|
|
@@ -77396,7 +77360,7 @@ var init_calendarValidation = __esm({
|
|
|
77396
77360
|
});
|
|
77397
77361
|
|
|
77398
77362
|
// EventModal.styles.ts
|
|
77399
|
-
function
|
|
77363
|
+
function isInteractiveStyleDef8(def) {
|
|
77400
77364
|
return typeof def === "object" && def !== null && Object.prototype.hasOwnProperty.call(def, "base");
|
|
77401
77365
|
}
|
|
77402
77366
|
var EventModalStyleDefs, EventModalStyles, useEventModalStyles;
|
|
@@ -77575,7 +77539,7 @@ var init_EventModal_styles = __esm({
|
|
|
77575
77539
|
const keys = Object.keys(EventModalStyleDefs);
|
|
77576
77540
|
for (const className of keys) {
|
|
77577
77541
|
const styleDef = EventModalStyleDefs[className];
|
|
77578
|
-
if (
|
|
77542
|
+
if (isInteractiveStyleDef8(styleDef)) {
|
|
77579
77543
|
const {
|
|
77580
77544
|
base = {},
|
|
77581
77545
|
hover = {},
|
|
@@ -78750,7 +78714,7 @@ var init_Why = __esm({
|
|
|
78750
78714
|
});
|
|
78751
78715
|
|
|
78752
78716
|
// About.styles.ts
|
|
78753
|
-
function
|
|
78717
|
+
function isInteractiveStyleDef9(def) {
|
|
78754
78718
|
return typeof def === "object" && def !== null && Object.prototype.hasOwnProperty.call(def, "base");
|
|
78755
78719
|
}
|
|
78756
78720
|
var AboutStyleDefs, AboutStyles, useAboutStyles;
|
|
@@ -78846,7 +78810,7 @@ var init_About_styles = __esm({
|
|
|
78846
78810
|
const keys = Object.keys(AboutStyleDefs);
|
|
78847
78811
|
for (const className of keys) {
|
|
78848
78812
|
const styleDef = AboutStyleDefs[className];
|
|
78849
|
-
if (
|
|
78813
|
+
if (isInteractiveStyleDef9(styleDef)) {
|
|
78850
78814
|
const {
|
|
78851
78815
|
base = {},
|
|
78852
78816
|
hover = {},
|
|
@@ -80456,7 +80420,7 @@ var init_Users = __esm({
|
|
|
80456
80420
|
});
|
|
80457
80421
|
|
|
80458
80422
|
// Affiliate.styles.ts
|
|
80459
|
-
function
|
|
80423
|
+
function isInteractiveStyleDef10(def) {
|
|
80460
80424
|
return typeof def === "object" && def !== null && Object.prototype.hasOwnProperty.call(def, "base");
|
|
80461
80425
|
}
|
|
80462
80426
|
var AffiliateStyleDefs, AffiliateStyles, useAffiliateStyles;
|
|
@@ -80642,7 +80606,7 @@ var init_Affiliate_styles = __esm({
|
|
|
80642
80606
|
const keys = Object.keys(AffiliateStyleDefs);
|
|
80643
80607
|
for (const className of keys) {
|
|
80644
80608
|
const styleDef = AffiliateStyleDefs[className];
|
|
80645
|
-
if (
|
|
80609
|
+
if (isInteractiveStyleDef10(styleDef)) {
|
|
80646
80610
|
const {
|
|
80647
80611
|
base = {},
|
|
80648
80612
|
hover = {},
|
|
@@ -80823,7 +80787,7 @@ var init_Affiliate = __esm({
|
|
|
80823
80787
|
});
|
|
80824
80788
|
|
|
80825
80789
|
// AffiliateDashboard.styles.ts
|
|
80826
|
-
function
|
|
80790
|
+
function isInteractiveStyleDef11(def) {
|
|
80827
80791
|
return typeof def === "object" && def !== null && Object.prototype.hasOwnProperty.call(def, "base");
|
|
80828
80792
|
}
|
|
80829
80793
|
var AffiliateDashboardStyleDefs, AffiliateDashboardStyles, useAffiliateDashboardStyles;
|
|
@@ -81061,7 +81025,7 @@ var init_AffiliateDashboard_styles = __esm({
|
|
|
81061
81025
|
const keys = Object.keys(AffiliateDashboardStyleDefs);
|
|
81062
81026
|
for (const className of keys) {
|
|
81063
81027
|
const styleDef = AffiliateDashboardStyleDefs[className];
|
|
81064
|
-
if (
|
|
81028
|
+
if (isInteractiveStyleDef11(styleDef)) {
|
|
81065
81029
|
const {
|
|
81066
81030
|
base = {},
|
|
81067
81031
|
hover = {},
|