@jetbrains/ring-ui 5.0.145 → 5.0.147
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/components/data-list/data-list.css +2 -1
- package/components/date-picker/date-picker.css +1 -1
- package/components/editable-heading/editable-heading.css +9 -8
- package/components/header/profile.d.ts +1 -1
- package/components/heading/heading.css +5 -5
- package/components/input/input-legacy.css +2 -2
- package/components/input/input.css +5 -5
- package/components/link/link.d.ts +4 -4
- package/components/list/list.css +2 -2
- package/components/query-assist/query-assist.css +12 -11
- package/components/select/select-popup.css +2 -2
- package/components/select/select.css +3 -3
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/tags-input/tags-input.css +1 -1
- package/components/toggle/toggle.css +1 -1
- package/dist/_helpers/card.js +5 -5
- package/dist/analytics/analytics__custom-plugin.js +6 -2
- package/dist/analytics/analytics__ga-plugin.js +2 -1
- package/dist/auth/auth__core.js +100 -63
- package/dist/auth/iframe-flow.js +2 -1
- package/dist/auth/landing.js +2 -1
- package/dist/auth/request-builder.js +2 -1
- package/dist/auth/token-validator.js +6 -2
- package/dist/auth/window-flow.js +4 -2
- package/dist/caret/caret.js +16 -13
- package/dist/clipboard/clipboard-fallback.js +3 -3
- package/dist/data-list/data-list.js +6 -3
- package/dist/data-list/item.js +1 -1
- package/dist/date-picker/date-input.js +4 -4
- package/dist/date-picker/date-picker.js +7 -6
- package/dist/date-picker/date-popup.js +3 -2
- package/dist/dialog-ng/dialog-ng.js +3 -2
- package/dist/dropdown/dropdown.js +4 -2
- package/dist/editable-heading/editable-heading.js +2 -2
- package/dist/global/focus-sensor-hoc.js +13 -8
- package/dist/global/normalize-indent.js +2 -2
- package/dist/global/react-render-adapter.js +4 -1
- package/dist/global/rerender-hoc.js +2 -1
- package/dist/global/schedule-raf.js +2 -1
- package/dist/header/profile.d.ts +1 -1
- package/dist/header/profile.js +6 -6
- package/dist/header/smart-profile.js +3 -2
- package/dist/header/smart-services.js +6 -3
- package/dist/http/http.js +13 -7
- package/dist/hub-source/hub-source__user.js +3 -2
- package/dist/input/input.js +7 -4
- package/dist/island/content.js +2 -1
- package/dist/link/link.d.ts +4 -4
- package/dist/list/list__users-groups-source.js +10 -7
- package/dist/loader/loader.js +2 -1
- package/dist/loader/loader__core.js +2 -1
- package/dist/markdown/code.js +3 -2
- package/dist/message/message.js +8 -6
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.js +16 -12
- package/dist/permissions/permissions__cache.js +1 -1
- package/dist/popup/popup.js +2 -1
- package/dist/popup/position.js +1 -1
- package/dist/query-assist/query-assist.js +46 -34
- package/dist/select/select.js +17 -10
- package/dist/select/select__popup.js +10 -3
- package/dist/select-ng/select-ng.js +2 -1
- package/dist/select-ng/select-ng__lazy.js +2 -1
- package/dist/shortcuts/core.js +2 -1
- package/dist/shortcuts/shortcuts.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +4 -2
- package/dist/table/header.js +2 -2
- package/dist/table/multitable.js +14 -7
- package/dist/table/row-with-focus-sensor.js +8 -4
- package/dist/table/selection-shortcuts-hoc.js +11 -11
- package/dist/tabs/collapsible-tabs.js +1 -1
- package/dist/tag/tag.js +2 -1
- package/dist/tags-input/tags-input.js +23 -13
- package/dist/tooltip/tooltip.js +4 -2
- package/dist/user-agreement/user-agreement.js +8 -8
- package/package.json +38 -37
|
@@ -30,31 +30,32 @@
|
|
|
30
30
|
|
|
31
31
|
border: none;
|
|
32
32
|
border-radius: var(--ring-border-radius);
|
|
33
|
+
outline: none;
|
|
33
34
|
background: inherit;
|
|
34
35
|
|
|
35
36
|
font-size: inherit;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
.disabled &,
|
|
38
39
|
.selectionMode & {
|
|
39
40
|
user-select: text;
|
|
40
41
|
|
|
41
42
|
border-radius: 0;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
&:focus {
|
|
45
|
-
|
|
45
|
+
&:focus-visible {
|
|
46
|
+
box-shadow: 0 0 0 2px var(--ring-border-hover-color);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
.disabled &:focus,
|
|
49
50
|
.selectionMode &:focus {
|
|
50
|
-
|
|
51
|
+
box-shadow: none;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
&:hover {
|
|
54
55
|
background-color: var(--ring-hover-background-color);
|
|
55
56
|
}
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
.disabled &:hover,
|
|
58
59
|
.selectionMode &:hover {
|
|
59
60
|
cursor: initial;
|
|
60
61
|
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
|
|
74
75
|
border-radius: var(--ring-border-radius);
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
.multiline & {
|
|
77
78
|
-webkit-line-clamp: 3;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
@@ -118,7 +119,7 @@
|
|
|
118
119
|
background-color: initial;
|
|
119
120
|
}
|
|
120
121
|
|
|
121
|
-
|
|
122
|
+
.error & {
|
|
122
123
|
margin-bottom: 1px;
|
|
123
124
|
|
|
124
125
|
border-bottom-width: 2px;
|
|
@@ -70,6 +70,6 @@ export default class Profile extends PureComponent<ProfileProps> {
|
|
|
70
70
|
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
|
71
71
|
context: React.ContextType<typeof Profile.contextType>;
|
|
72
72
|
static Size: typeof Size;
|
|
73
|
-
render(): string | number | boolean | React.JSX.Element | React.
|
|
73
|
+
render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
74
74
|
}
|
|
75
75
|
export type ProfileAttrs = JSX.LibraryManagedAttributes<typeof Profile, ProfileProps>;
|
|
@@ -9,30 +9,30 @@
|
|
|
9
9
|
margin-top: 0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
&:is(h1, h2) {
|
|
13
13
|
margin-bottom: 8px;
|
|
14
14
|
|
|
15
15
|
color: var(--ring-heading-color);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
&:is(h1) {
|
|
19
19
|
font-size: 24px;
|
|
20
20
|
line-height: 28px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
&:is(h2) {
|
|
24
24
|
font-size: 20px;
|
|
25
25
|
line-height: 24px;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
&:is(h3) {
|
|
29
29
|
margin-bottom: 0;
|
|
30
30
|
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 22px;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
&:is(h4) {
|
|
36
36
|
margin-bottom: 1px;
|
|
37
37
|
|
|
38
38
|
letter-spacing: 1px;
|
|
@@ -50,7 +50,7 @@ Input
|
|
|
50
50
|
|
|
51
51
|
/* stylelint-enable order/properties-order */
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
[dir="rtl"] & {
|
|
54
54
|
padding-right: var(--ring-input-padding-start);
|
|
55
55
|
padding-left: var(--ring-input-padding-end);
|
|
56
56
|
}
|
|
@@ -61,7 +61,7 @@ Input
|
|
|
61
61
|
border-color: var(--ring-border-hover-color);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
.error & {
|
|
65
65
|
border-color: var(--ring-icon-error-color);
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
caret-color: var(--ring-main-color);
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
[dir="rtl"] & {
|
|
55
55
|
padding-right: var(--ring-input-padding-start);
|
|
56
56
|
padding-left: var(--ring-input-padding-end);
|
|
57
57
|
}
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
border-color: var(--ring-border-hover-color);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
.error & {
|
|
66
66
|
border-color: var(--ring-icon-error-color);
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
|
|
116
116
|
color: var(--ring-icon-secondary-color);
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
[dir="rtl"] & {
|
|
119
119
|
right: unit;
|
|
120
120
|
left: auto;
|
|
121
121
|
}
|
|
@@ -132,11 +132,11 @@
|
|
|
132
132
|
|
|
133
133
|
line-height: inherit;
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
.empty & {
|
|
136
136
|
display: none;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
[dir="rtl"] & {
|
|
140
140
|
right: auto;
|
|
141
141
|
left: unit;
|
|
142
142
|
}
|
|
@@ -19,7 +19,7 @@ export interface LinkBaseProps {
|
|
|
19
19
|
export type LinkProps<P extends ClickableLinkProps = ClickableLinkProps> = Omit<P, keyof LinkBaseProps> & LinkBaseProps;
|
|
20
20
|
export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent: ComponentType<P> | string): {
|
|
21
21
|
new (props: LinkProps<P> | Readonly<LinkProps<P>>): {
|
|
22
|
-
getChildren(): string | number | boolean | React.JSX.Element | React.
|
|
22
|
+
getChildren(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
23
23
|
render(): React.JSX.Element;
|
|
24
24
|
context: unknown;
|
|
25
25
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
@@ -43,7 +43,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
|
43
43
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
44
44
|
};
|
|
45
45
|
new (props: LinkProps<P>, context: any): {
|
|
46
|
-
getChildren(): string | number | boolean | React.JSX.Element | React.
|
|
46
|
+
getChildren(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
47
47
|
render(): React.JSX.Element;
|
|
48
48
|
context: unknown;
|
|
49
49
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
@@ -83,7 +83,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
|
83
83
|
};
|
|
84
84
|
declare const _default: {
|
|
85
85
|
new (props: LinkProps<ClickableLinkProps> | Readonly<LinkProps<ClickableLinkProps>>): {
|
|
86
|
-
getChildren(): string | number | boolean | React.JSX.Element | React.
|
|
86
|
+
getChildren(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
87
87
|
render(): React.JSX.Element;
|
|
88
88
|
context: unknown;
|
|
89
89
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
@@ -107,7 +107,7 @@ declare const _default: {
|
|
|
107
107
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
108
108
|
};
|
|
109
109
|
new (props: LinkProps<ClickableLinkProps>, context: any): {
|
|
110
|
-
getChildren(): string | number | boolean | React.JSX.Element | React.
|
|
110
|
+
getChildren(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
111
111
|
render(): React.JSX.Element;
|
|
112
112
|
context: unknown;
|
|
113
113
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
package/components/list/list.css
CHANGED
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
white-space: nowrap;
|
|
116
116
|
text-overflow: ellipsis;
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
[dir="rtl"] & {
|
|
119
119
|
text-align: right;
|
|
120
120
|
direction: ltr;
|
|
121
121
|
}
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
|
|
264
264
|
text-align: left;
|
|
265
265
|
|
|
266
|
-
|
|
266
|
+
[dir="rtl"] & {
|
|
267
267
|
text-align: right;
|
|
268
268
|
direction: ltr;
|
|
269
269
|
}
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
.error & {
|
|
59
59
|
border-color: var(--ring-icon-error-color);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
padding-right: var(--ring-input-padding-inline);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
[dir="rtl"] & {
|
|
81
81
|
padding: 0 var(--ring-input-padding-inline) 0 0;
|
|
82
82
|
|
|
83
83
|
& .actions {
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
|
|
159
159
|
color: var(--ring-disabled-color);
|
|
160
160
|
|
|
161
|
-
|
|
161
|
+
[dir="rtl"] & {
|
|
162
162
|
padding-right: calc(var(--ring-input-padding-inline) * 3 + var(--ring-input-padding-block) * 2);
|
|
163
163
|
|
|
164
164
|
text-align: right;
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
|
|
185
185
|
line-height: inherit;
|
|
186
186
|
|
|
187
|
-
|
|
187
|
+
[dir="rtl"] & {
|
|
188
188
|
padding: 0 var(--ring-input-padding-inline) 0 0;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
|
|
195
195
|
color: var(--ring-icon-secondary-color);
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
[dir="rtl"] & {
|
|
198
198
|
padding: 0 0 0 var(--ring-input-padding-inline);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -214,19 +214,20 @@
|
|
|
214
214
|
border-top-left-radius: 0;
|
|
215
215
|
border-bottom-left-radius: 0;
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
218
|
+
.queryAssist.queryAssist:focus-within & {
|
|
218
219
|
transition: none;
|
|
219
220
|
|
|
220
221
|
border-color: var(--ring-main-color);
|
|
221
222
|
}
|
|
222
223
|
|
|
223
|
-
|
|
224
|
+
.queryAssist:hover & {
|
|
224
225
|
transition: none;
|
|
225
226
|
|
|
226
227
|
border-color: var(--ring-border-hover-color);
|
|
227
228
|
}
|
|
228
229
|
|
|
229
|
-
|
|
230
|
+
[dir="rtl"] & {
|
|
230
231
|
border-right: 1px solid var(--ring-borders-color);
|
|
231
232
|
border-left: 0;
|
|
232
233
|
border-radius: var(--ring-border-radius);
|
|
@@ -240,7 +241,7 @@
|
|
|
240
241
|
|
|
241
242
|
padding-right: 0;
|
|
242
243
|
|
|
243
|
-
|
|
244
|
+
[dir="rtl"] & {
|
|
244
245
|
padding-right: var(--ring-input-padding-inline);
|
|
245
246
|
padding-left: 0;
|
|
246
247
|
}
|
|
@@ -253,7 +254,7 @@
|
|
|
253
254
|
.withoutGlass {
|
|
254
255
|
padding-left: 0;
|
|
255
256
|
|
|
256
|
-
|
|
257
|
+
[dir="rtl"] & {
|
|
257
258
|
padding-right: calc(var(--ring-input-padding-block) * 3);
|
|
258
259
|
}
|
|
259
260
|
}
|
|
@@ -265,7 +266,7 @@
|
|
|
265
266
|
.loaderOnTheRight {
|
|
266
267
|
padding-right: 0;
|
|
267
268
|
|
|
268
|
-
|
|
269
|
+
[dir="rtl"] & {
|
|
269
270
|
padding-left: 0;
|
|
270
271
|
}
|
|
271
272
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
|
|
54
54
|
border-bottom: 1px solid var(--ring-borders-color);
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
[dir="rtl"] & {
|
|
57
57
|
padding-right: calc(unit * 5.5);
|
|
58
58
|
padding-left: unit;
|
|
59
59
|
}
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
color: var(--ring-icon-color);
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
[dir="rtl"] & {
|
|
70
70
|
right: calc(unit * 2);
|
|
71
71
|
left: auto;
|
|
72
72
|
}
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
|
|
24
24
|
text-align: left;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
[dir="rtl"] & {
|
|
27
27
|
text-align: right;
|
|
28
28
|
direction: ltr;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
.toolbar & {
|
|
32
32
|
height: calc(4 * unit);
|
|
33
33
|
margin: unit 0;
|
|
34
34
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
line-height: normal;
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
.inputMode & {
|
|
54
54
|
font-size: var(--ring-font-size);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -24,5 +24,5 @@ export default class Shortcuts extends PureComponent<ShortcutsProps> {
|
|
|
24
24
|
componentWillUnmount(): void;
|
|
25
25
|
turnShorcutsOn(): void;
|
|
26
26
|
turnShorcutsOff(): void;
|
|
27
|
-
render(): string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").
|
|
27
|
+
render(): string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null;
|
|
28
28
|
}
|
package/dist/_helpers/card.js
CHANGED
|
@@ -48,7 +48,7 @@ class UserCard extends PureComponent {
|
|
|
48
48
|
translate
|
|
49
49
|
} = this.context;
|
|
50
50
|
const wording = this.props.translations || this.props.wording;
|
|
51
|
-
clipboard.copyText(this.props.user.email || '', (_wording$copiedToClip = wording
|
|
51
|
+
clipboard.copyText(this.props.user.email || '', (_wording$copiedToClip = wording === null || wording === void 0 ? void 0 : wording.copiedToClipboard) !== null && _wording$copiedToClip !== void 0 ? _wording$copiedToClip : translate('copyToClipboard'), (_wording$copingToClip = wording === null || wording === void 0 ? void 0 : wording.copingToClipboardError) !== null && _wording$copingToClip !== void 0 ? _wording$copingToClip : translate('copingToClipboardError'));
|
|
52
52
|
};
|
|
53
53
|
render() {
|
|
54
54
|
var _wording$online, _wording$offline, _wording$banned, _wording$unverified, _wording$copyToClipbo;
|
|
@@ -89,13 +89,13 @@ class UserCard extends PureComponent {
|
|
|
89
89
|
className: modules_a4196c17.userName
|
|
90
90
|
}, user.name), typeof user.online === 'boolean' && /*#__PURE__*/React.createElement("span", {
|
|
91
91
|
className: userActiveStatusClasses,
|
|
92
|
-
title: user.online ? (_wording$online = wording
|
|
92
|
+
title: user.online ? (_wording$online = wording === null || wording === void 0 ? void 0 : wording.online) !== null && _wording$online !== void 0 ? _wording$online : translate('online') : (_wording$offline = wording === null || wording === void 0 ? void 0 : wording.offline) !== null && _wording$offline !== void 0 ? _wording$offline : translate('offline')
|
|
93
93
|
}), !!info && /*#__PURE__*/React.createElement("span", {
|
|
94
94
|
className: modules_a4196c17.userNameInfo
|
|
95
95
|
}, info), user.banned && /*#__PURE__*/React.createElement("span", {
|
|
96
96
|
className: classNames(modules_6c9187df.badge, modules_6c9187df.invalid),
|
|
97
97
|
title: user.banReason
|
|
98
|
-
}, (_wording$banned = wording
|
|
98
|
+
}, (_wording$banned = wording === null || wording === void 0 ? void 0 : wording.banned) !== null && _wording$banned !== void 0 ? _wording$banned : translate('banned'))), /*#__PURE__*/React.createElement("div", {
|
|
99
99
|
className: modules_a4196c17.userLogin
|
|
100
100
|
}, user.login), user.email && /*#__PURE__*/React.createElement("span", {
|
|
101
101
|
className: modules_a4196c17.userEmailWrapper
|
|
@@ -106,8 +106,8 @@ class UserCard extends PureComponent {
|
|
|
106
106
|
className: modules_a4196c17.userEmail
|
|
107
107
|
}, user.email), user.unverifiedEmail && /*#__PURE__*/React.createElement("span", {
|
|
108
108
|
className: modules_a4196c17.unverifiedLabel
|
|
109
|
-
}, (_wording$unverified = wording
|
|
110
|
-
title: (_wording$copyToClipbo = wording
|
|
109
|
+
}, (_wording$unverified = wording === null || wording === void 0 ? void 0 : wording.unverified) !== null && _wording$unverified !== void 0 ? _wording$unverified : translate('unverified')), /*#__PURE__*/React.createElement(Icon, {
|
|
110
|
+
title: (_wording$copyToClipbo = wording === null || wording === void 0 ? void 0 : wording.copyToClipboard) !== null && _wording$copyToClipbo !== void 0 ? _wording$copyToClipbo : translate('copyToClipboard'),
|
|
111
111
|
className: modules_a4196c17.userCopyIcon,
|
|
112
112
|
onClick: this.copyEmail,
|
|
113
113
|
glyph: copyIcon,
|
|
@@ -33,7 +33,10 @@ class AnalyticsCustomPlugin {
|
|
|
33
33
|
this._processEvent('page', 'view', data);
|
|
34
34
|
}
|
|
35
35
|
_initSendSchedule() {
|
|
36
|
-
window.addEventListener('beforeunload', () =>
|
|
36
|
+
window.addEventListener('beforeunload', () => {
|
|
37
|
+
var _this$_flush;
|
|
38
|
+
return (_this$_flush = this._flush) === null || _this$_flush === void 0 ? void 0 : _this$_flush.call(this);
|
|
39
|
+
});
|
|
37
40
|
if (this._flush != null) {
|
|
38
41
|
setInterval(this._flush, this._flushInterval);
|
|
39
42
|
}
|
|
@@ -60,7 +63,8 @@ class AnalyticsCustomPlugin {
|
|
|
60
63
|
_addDataToFlushingPack(sendingData) {
|
|
61
64
|
this._data.push(sendingData);
|
|
62
65
|
if (this._flushMaxPackSize != null && this._data.length >= this._flushMaxPackSize) {
|
|
63
|
-
|
|
66
|
+
var _this$_flush2;
|
|
67
|
+
(_this$_flush2 = this._flush) === null || _this$_flush2 === void 0 ? void 0 : _this$_flush2.call(this);
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
get serializeAdditionalInfo() {
|
|
@@ -14,6 +14,7 @@ class AnalyticsGAPlugin {
|
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
((i, s, o, g, r) => {
|
|
17
|
+
var _m$parentNode;
|
|
17
18
|
i.GoogleAnalyticsObject = r;
|
|
18
19
|
i[r] = i[r] || function addArgumentsToQueueForWaitingTheScriptLoading() {
|
|
19
20
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -26,7 +27,7 @@ class AnalyticsGAPlugin {
|
|
|
26
27
|
const m = s.getElementsByTagName(o)[0];
|
|
27
28
|
a.async = true;
|
|
28
29
|
a.src = g;
|
|
29
|
-
m.parentNode
|
|
30
|
+
(_m$parentNode = m.parentNode) === null || _m$parentNode === void 0 ? void 0 : _m$parentNode.insertBefore(a, m);
|
|
30
31
|
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
|
31
32
|
/**
|
|
32
33
|
* UA-57284711-1 - ga key for development purpose
|