@memori.ai/memori-react 8.35.0 → 8.35.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/CHANGELOG.md +7 -0
- package/dist/components/MemoriWidget/MemoriWidget.js +10 -8
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/MicrophoneButton/MicrophoneButton.css +1 -0
- package/dist/components/PositionPopover/PositionPopover.css +107 -112
- package/dist/components/PositionPopover/PositionPopover.js +17 -17
- package/dist/components/PositionPopover/PositionPopover.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.js +10 -8
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/MicrophoneButton/MicrophoneButton.css +1 -0
- package/esm/components/PositionPopover/PositionPopover.css +107 -112
- package/esm/components/PositionPopover/PositionPopover.js +19 -19
- package/esm/components/PositionPopover/PositionPopover.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +1 -1
- package/src/components/MemoriWidget/MemoriWidget.tsx +5 -3
- package/src/components/MicrophoneButton/MicrophoneButton.css +1 -0
- package/src/version.ts +1 -1
|
@@ -1,194 +1,189 @@
|
|
|
1
1
|
.memori-position-popover__positioner {
|
|
2
|
-
|
|
2
|
+
z-index: 1300;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.memori-position-popover__popup {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
0 0 0 1px var(--memori-border-color, rgba(0, 0, 0, 0.08));
|
|
16
|
-
font-size: var(--memori-text-size-base);
|
|
6
|
+
display: flex;
|
|
7
|
+
width: min(22rem, calc(100vw - 2rem));
|
|
8
|
+
max-width: 22rem;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
padding: var(--memori-spacing-md);
|
|
11
|
+
border-radius: var(--memori-radius-box);
|
|
12
|
+
background: var(--memori-secondary-background);
|
|
13
|
+
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--memori-border-color, rgba(0, 0, 0, 0.08));
|
|
14
|
+
font-size: var(--memori-text-size-base);
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
.memori-position-popover__row {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
gap: var(--memori-spacing-md);
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
.memori-position-popover__switch-row {
|
|
24
|
+
/* .memori-position-popover__switch-row {
|
|
27
25
|
margin-bottom: var(--memori-spacing-md);
|
|
28
|
-
}
|
|
26
|
+
} */
|
|
29
27
|
|
|
30
28
|
.memori-position-popover__switch-label {
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
line-height: var(--memori-text-line-normal);
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
.memori-position-popover__switch {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
position: relative;
|
|
35
|
+
width: 2.5rem;
|
|
36
|
+
height: 1.5rem;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
padding: 0;
|
|
39
|
+
border: none;
|
|
40
|
+
border-radius: 999px;
|
|
41
|
+
background: var(--memori-border-color, #cbd5e0);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
transition: background 0.15s ease;
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
.memori-position-popover__switch:focus-visible {
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
outline: 2px solid var(--memori-primary, #3182ce);
|
|
48
|
+
outline-offset: 2px;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
.memori-position-popover__switch--on {
|
|
54
|
-
|
|
52
|
+
background: var(--memori-primary, #3182ce);
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
.memori-position-popover__switch-thumb {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: 2px;
|
|
58
|
+
left: 2px;
|
|
59
|
+
width: calc(1.5rem - 4px);
|
|
60
|
+
height: calc(1.5rem - 4px);
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
background: #fff;
|
|
63
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
64
|
+
transition: transform 0.15s ease;
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
.memori-position-popover__switch--on .memori-position-popover__switch-thumb {
|
|
70
|
-
|
|
68
|
+
transform: translateX(1rem);
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
.memori-position-popover__tag-block {
|
|
74
|
-
|
|
72
|
+
margin-top: var(--memori-spacing-md);
|
|
73
|
+
margin-bottom: var(--memori-spacing-sm);
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
.memori-position-popover__tag {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
display: flex;
|
|
78
|
+
max-width: 100%;
|
|
79
|
+
align-items: center;
|
|
80
|
+
padding: var(--memori-spacing-xs) var(--memori-spacing-sm);
|
|
81
|
+
border-radius: 999px;
|
|
82
|
+
background: var(--memori-main-background);
|
|
83
|
+
gap: var(--memori-spacing-xs);
|
|
85
84
|
}
|
|
86
85
|
|
|
87
|
-
.memori-autocomplete__portal,
|
|
88
|
-
|
|
86
|
+
.memori-autocomplete__portal,
|
|
87
|
+
.memori-autocomplete__positioner {
|
|
88
|
+
z-index: 1301;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.memori-position-popover__tag--loading {
|
|
92
|
-
|
|
92
|
+
min-height: 2rem;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.memori-position-popover__tag-text {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
min-width: 0;
|
|
98
|
+
flex: 1 1 auto;
|
|
99
|
+
font-size: 0.875rem;
|
|
100
|
+
text-overflow: ellipsis;
|
|
101
|
+
white-space: nowrap;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.memori-position-popover__tag-edit {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
flex-shrink: 0;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
padding: 4px;
|
|
110
|
+
border: none;
|
|
111
|
+
border-radius: var(--memori-radius-box);
|
|
112
|
+
background: transparent;
|
|
113
|
+
color: var(--memori-text-color);
|
|
114
|
+
cursor: pointer;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.memori-position-popover__tag-edit:hover {
|
|
118
|
-
|
|
118
|
+
background: rgba(0, 0, 0, 0.06);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.memori-position-popover__tag-edit:focus-visible {
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
outline: 2px solid var(--memori-primary, #3182ce);
|
|
123
|
+
outline-offset: 2px;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.memori-position-popover__tag-skeleton {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
rgba(0, 0, 0, 0.12) 37%,
|
|
135
|
-
rgba(0, 0, 0, 0.06) 63%
|
|
136
|
-
);
|
|
137
|
-
background-size: 400% 100%;
|
|
138
|
-
margin-inline: var(--memori-spacing-xs);
|
|
127
|
+
height: 0.65rem;
|
|
128
|
+
flex: 1 1 auto;
|
|
129
|
+
border-radius: 4px;
|
|
130
|
+
animation: memori-position-popover-shimmer 1.2s ease-in-out infinite;
|
|
131
|
+
background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.12) 37%, rgba(0, 0, 0, 0.06) 63%);
|
|
132
|
+
background-size: 400% 100%;
|
|
133
|
+
margin-inline: var(--memori-spacing-xs);
|
|
139
134
|
}
|
|
140
135
|
|
|
141
136
|
.memori-position-popover__spinner {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
137
|
+
display: inline-block;
|
|
138
|
+
width: 1.125rem;
|
|
139
|
+
height: 1.125rem;
|
|
140
|
+
flex-shrink: 0;
|
|
141
|
+
border: 2px solid var(--memori-border-color, #cbd5e0);
|
|
142
|
+
border-radius: 50%;
|
|
143
|
+
border-top-color: var(--memori-primary, #3182ce);
|
|
144
|
+
animation: memori-position-popover-spin 0.7s linear infinite;
|
|
150
145
|
}
|
|
151
146
|
|
|
152
147
|
.memori-position-popover__autocomplete-wrap {
|
|
153
|
-
|
|
154
|
-
|
|
148
|
+
width: 100%;
|
|
149
|
+
min-width: 0;
|
|
155
150
|
}
|
|
156
151
|
|
|
157
152
|
.memori-position-popover__error {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
153
|
+
margin: 0 0 var(--memori-spacing-sm);
|
|
154
|
+
color: var(--memori-danger, #c53030);
|
|
155
|
+
font-size: 0.875rem;
|
|
156
|
+
line-height: var(--memori-text-line-normal);
|
|
162
157
|
}
|
|
163
158
|
|
|
164
159
|
.memori-position-popover__map {
|
|
165
|
-
|
|
160
|
+
margin-top: var(--memori-spacing-sm);
|
|
166
161
|
}
|
|
167
162
|
|
|
168
163
|
.memori-position-popover__map .memori--venue-widget__map-container {
|
|
169
|
-
|
|
164
|
+
min-height: 140px;
|
|
170
165
|
}
|
|
171
166
|
|
|
172
167
|
.memori-position-popover__map .memori--venue-widget__map {
|
|
173
|
-
|
|
168
|
+
height: 160px;
|
|
174
169
|
}
|
|
175
170
|
|
|
176
171
|
@keyframes memori-position-popover-spin {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
172
|
+
to {
|
|
173
|
+
transform: rotate(360deg);
|
|
174
|
+
}
|
|
180
175
|
}
|
|
181
176
|
|
|
182
177
|
@keyframes memori-position-popover-shimmer {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
178
|
+
0% {
|
|
179
|
+
background-position: 100% 0;
|
|
180
|
+
}
|
|
186
181
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
182
|
+
100% {
|
|
183
|
+
background-position: 0 0;
|
|
184
|
+
}
|
|
190
185
|
}
|
|
191
186
|
|
|
192
187
|
.memori-position-popover__positioner--website-assistant {
|
|
193
|
-
|
|
188
|
+
z-index: 2147483600;
|
|
194
189
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Popover } from '@
|
|
3
|
-
import { Button, useAlertManager, createAlertOptions } from '@memori.ai/ui';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Popover, useAlertManager, createAlertOptions, } from '@memori.ai/ui';
|
|
4
3
|
import { MapPin, Pencil } from 'lucide-react';
|
|
5
4
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
5
|
import { useTranslation } from 'react-i18next';
|
|
@@ -146,12 +145,7 @@ const PositionPopover = ({ venue, setVenue, open, onOpenChange, triggerClassName
|
|
|
146
145
|
return;
|
|
147
146
|
}
|
|
148
147
|
startGeolocation();
|
|
149
|
-
}, [
|
|
150
|
-
geolocationLoading,
|
|
151
|
-
setVenue,
|
|
152
|
-
sharingActive,
|
|
153
|
-
startGeolocation,
|
|
154
|
-
]);
|
|
148
|
+
}, [geolocationLoading, setVenue, sharingActive, startGeolocation]);
|
|
155
149
|
useEffect(() => {
|
|
156
150
|
if (!editingLocation)
|
|
157
151
|
return;
|
|
@@ -174,16 +168,22 @@ const PositionPopover = ({ venue, setVenue, open, onOpenChange, triggerClassName
|
|
|
174
168
|
onOpenChange(nextOpen);
|
|
175
169
|
}, [onOpenChange]);
|
|
176
170
|
const inlineError = permissionDeniedMessage || geocodingError;
|
|
177
|
-
return (
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
171
|
+
return (_jsx(Popover, { open: open, onOpenChange: handleRootOpenChange, modal: false, placement: "bottom-end", sideOffset: 8, contentClassName: "memori-position-popover__popup", slotProps: {
|
|
172
|
+
trigger: {
|
|
173
|
+
className: triggerClassName,
|
|
174
|
+
render: (props) => (_jsx(Button, { ...props, type: "button", variant: triggerButtonVariant, className: cx('memori-header--button', 'memori-header--button--position', sharingActive && 'memori-header--button--position--active'), "aria-label": triggerAriaLabel, "aria-expanded": open, icon: _jsx(MapPin, { "aria-hidden": true }) })),
|
|
175
|
+
},
|
|
176
|
+
positioner: {
|
|
177
|
+
className: cx('memori-position-popover__positioner', positionerClassName),
|
|
178
|
+
},
|
|
179
|
+
}, content: _jsxs(_Fragment, { children: [_jsxs("div", { className: "memori-position-popover__row memori-position-popover__switch-row", children: [_jsx("span", { className: "memori-position-popover__switch-label", children: t('widget.shareLocation') }), _jsx("button", { type: "button", role: "switch", "aria-checked": sharingActive, "aria-label": String(t('widget.shareLocationAria')), className: cx('memori-position-popover__switch', {
|
|
180
|
+
'memori-position-popover__switch--on': sharingActive,
|
|
181
|
+
}), onClick: toggleSharing, children: _jsx("span", { className: "memori-position-popover__switch-thumb" }) })] }), (sharingActive || geolocationLoading || editingLocation) && (_jsx("div", { className: "memori-position-popover__tag-block", children: geolocationLoading ? (_jsxs("div", { className: "memori-position-popover__tag memori-position-popover__tag--loading", "aria-busy": "true", "aria-live": "polite", children: [_jsx("span", { className: "memori-position-popover__spinner", "aria-hidden": true }), _jsx("span", { className: "memori-position-popover__tag-skeleton" })] })) : editingLocation ? (_jsx("div", { className: "memori-position-popover__autocomplete-wrap", children: _jsx(VenueCombobox, { venue: venue, query: query, fetching: fetching, suggestions: suggestions, onQueryChange: onQueryChange, onChange: handleAutocompletePick, getPlaceName: getPlaceName, t: t, autocompleteRootId: "memori-position-popover-venue-search", inputRef: autocompleteInputRef }) })) : (_jsxs("div", { className: "memori-position-popover__tag", children: [_jsx("span", { className: "memori-position-popover__tag-text", children: ((_a = venue === null || venue === void 0 ? void 0 : venue.placeName) === null || _a === void 0 ? void 0 : _a.trim())
|
|
182
|
+
? venue.placeName
|
|
183
|
+
: t('widget.positionResolving') }), _jsx(Button, { type: "button", variant: "ghost", icon: _jsx(Pencil, { size: 16, strokeWidth: 2, "aria-hidden": true }), size: "sm", className: "memori-position-popover__tag-edit", "aria-label": String(t('widget.editPositionAria')), onClick: () => {
|
|
184
|
+
setEditingLocation(true);
|
|
185
|
+
setPermissionDeniedMessage(null);
|
|
186
|
+
} })] })) })), inlineError && (_jsx("p", { className: "memori-position-popover__error", role: "alert", children: inlineError })), hasShareableCoords(venue) && !geolocationLoading && (_jsx("div", { className: "memori-position-popover__map", children: _jsx(VenueMapPreview, { venue: venue }) }))] }), children: null }));
|
|
187
187
|
};
|
|
188
188
|
export default PositionPopover;
|
|
189
189
|
//# sourceMappingURL=PositionPopover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PositionPopover.js","sourceRoot":"","sources":["../../../src/components/PositionPopover/PositionPopover.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"PositionPopover.js","sourceRoot":"","sources":["../../../src/components/PositionPopover/PositionPopover.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,MAAM,EACN,OAAO,EACP,eAAe,EACf,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,aAAa,EACb,eAAe,EACf,YAAY,GAEb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,SAAS,kBAAkB,CAAC,CAAS;IACnC,OAAO,CAAC,CAAC,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,QAAQ,MAAI,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,SAAS,CAAA,CAAC,CAAC;AACzC,CAAC;AAaD,MAAM,eAAe,GAAmC,CAAC,EACvD,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,GAAG,SAAS,EAChC,gBAAgB,EAChB,mBAAmB,GACpB,EAAE,EAAE;;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,MAAM,EAAE,GAAG,EAAE,GAAG,eAAe,EAAE,CAAC;IAClC,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpE,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAA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,eAAe,IAAC,KAAK,EAAE,KAAK,GAAI,GAC7B,CACP,IACA,YAGJ,IAAI,GACG,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.35.
|
|
1
|
+
export declare const version = "8.35.1";
|
package/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '8.35.
|
|
1
|
+
export const version = '8.35.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -2870,6 +2870,9 @@ const MemoriWidget = ({
|
|
|
2870
2870
|
showOnlyLastMessages === undefined
|
|
2871
2871
|
? selectedLayout !== 'TOTEM' && selectedLayout !== 'WEBSITE_ASSISTANT'
|
|
2872
2872
|
: !showOnlyLastMessages;
|
|
2873
|
+
const canShowLoginButton =
|
|
2874
|
+
!tenant?.ssoLogin &&
|
|
2875
|
+
(showLogin ?? integrationConfig?.showLogin ?? memori.requireLoginToken);
|
|
2873
2876
|
|
|
2874
2877
|
const headerProps: HeaderProps = {
|
|
2875
2878
|
memori: {
|
|
@@ -2901,8 +2904,7 @@ const MemoriWidget = ({
|
|
|
2901
2904
|
showReload: selectedLayout === 'TOTEM',
|
|
2902
2905
|
showClear: showClear ?? integrationConfig?.showClear ?? false,
|
|
2903
2906
|
clearHistory: () => setHistory(h => h.slice(-1)),
|
|
2904
|
-
showLogin:
|
|
2905
|
-
showLogin ?? integrationConfig?.showLogin ?? memori.requireLoginToken,
|
|
2907
|
+
showLogin: canShowLoginButton,
|
|
2906
2908
|
setShowLoginDrawer,
|
|
2907
2909
|
loginToken,
|
|
2908
2910
|
user,
|
|
@@ -2961,7 +2963,7 @@ const MemoriWidget = ({
|
|
|
2961
2963
|
isUserLoggedIn: !!loginToken && !!user?.userID,
|
|
2962
2964
|
hasInitialSession: !!initialSessionID,
|
|
2963
2965
|
notEnoughCredits: needsCredits && !hasEnoughCredits,
|
|
2964
|
-
showLogin:
|
|
2966
|
+
showLogin: canShowLoginButton,
|
|
2965
2967
|
setShowLoginDrawer,
|
|
2966
2968
|
user,
|
|
2967
2969
|
};
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
|
-
export const version = '8.35.
|
|
2
|
+
export const version = '8.35.1';
|