@jetbrains/ring-ui 5.1.14 → 5.1.16
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/editable-heading/editable-heading.css +22 -0
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +29 -5
- package/components/list/consts.d.ts +1 -2
- package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -10
- package/dist/_helpers/button__classes.js +13 -3
- package/dist/_helpers/dialog__body-scroll-preventer.js +0 -1
- package/dist/_helpers/footer.js +9 -5
- package/dist/_helpers/sidebar.js +9 -3
- package/dist/_helpers/theme.js +5 -3
- package/dist/_helpers/title.js +5 -2
- package/dist/alert/alert.js +22 -11
- package/dist/alert-service/alert-service.js +4 -8
- package/dist/analytics/analytics.js +2 -3
- package/dist/analytics/analytics__custom-plugin.js +6 -6
- package/dist/analytics/analytics__ga-plugin.js +0 -2
- package/dist/analytics/analytics__plugin-utils.js +0 -1
- package/dist/auth/auth.js +0 -6
- package/dist/auth/auth__core.js +20 -26
- package/dist/auth/background-flow.js +0 -2
- package/dist/auth/down-notification.js +0 -4
- package/dist/auth/iframe-flow.js +1 -7
- package/dist/auth/landing.js +3 -9
- package/dist/auth/request-builder.js +1 -3
- package/dist/auth/response-parser.js +0 -2
- package/dist/auth/storage.js +2 -7
- package/dist/auth/token-validator.js +0 -2
- package/dist/auth/window-flow.js +0 -2
- package/dist/auth-dialog/auth-dialog.js +0 -4
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -4
- package/dist/auth-ng/auth-ng.js +7 -13
- package/dist/auth-ng/auth-ng.mock.js +5 -5
- package/dist/autofocus-ng/autofocus-ng.js +0 -3
- package/dist/avatar/avatar.js +7 -11
- package/dist/avatar/fallback-avatar.js +1 -5
- package/dist/avatar-editor-ng/avatar-editor-ng.js +3 -8
- package/dist/avatar-ng/avatar-ng.js +0 -6
- package/dist/badge/badge.js +6 -2
- package/dist/badge-ng/badge-ng.js +0 -3
- package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
- package/dist/button/button.js +11 -12
- package/dist/button/button__classes.js +0 -1
- package/dist/button-group-ng/button-group-ng.js +1 -1
- package/dist/button-ng/button-ng.js +6 -7
- package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -1
- package/dist/caret/caret.js +7 -10
- package/dist/checkbox/checkbox.js +0 -1
- package/dist/checkbox-ng/checkbox-ng.js +0 -2
- package/dist/clipboard/clipboard.js +6 -8
- package/dist/code/code.js +4 -3
- package/dist/compiler-ng/compiler-ng.js +2 -2
- package/dist/confirm/confirm.js +0 -4
- package/dist/confirm-ng/confirm-ng.js +2 -6
- package/dist/confirm-service/confirm-service.js +6 -10
- package/dist/content-layout/content-layout.js +6 -4
- package/dist/contenteditable/contenteditable.js +1 -1
- package/dist/control-label/control-label.js +8 -4
- package/dist/data-list/data-list.js +8 -12
- package/dist/data-list/data-list.mock.js +0 -1
- package/dist/data-list/item.js +0 -3
- package/dist/data-list/selection.js +3 -6
- package/dist/data-list/title.js +0 -1
- package/dist/data-list-ng/data-list-ng.js +0 -8
- package/dist/date-picker/consts.js +1 -1
- package/dist/date-picker/date-input.js +2 -3
- package/dist/date-picker/date-picker.js +14 -17
- package/dist/date-picker/date-popup.js +22 -18
- package/dist/date-picker/day.js +17 -3
- package/dist/date-picker/month-names.js +4 -3
- package/dist/date-picker/month-slider.js +3 -2
- package/dist/date-picker/month.js +1 -1
- package/dist/date-picker/months.js +0 -1
- package/dist/date-picker/weekdays.js +4 -3
- package/dist/date-picker/years.js +4 -3
- package/dist/dialog/dialog.js +7 -7
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -1
- package/dist/dialog-ng/dialog-ng.js +5 -12
- package/dist/docked-panel-ng/docked-panel-ng.js +0 -3
- package/dist/dropdown/anchor.js +0 -1
- package/dist/dropdown/dropdown.js +9 -8
- package/dist/dropdown-menu/dropdown-menu.js +4 -13
- package/dist/editable-heading/editable-heading.d.ts +2 -1
- package/dist/editable-heading/editable-heading.js +54 -13
- package/dist/error-bubble/error-bubble.js +0 -4
- package/dist/error-message/error-message.js +0 -1
- package/dist/error-message-ng/error-message-ng.js +0 -1
- package/dist/footer/footer.js +1 -2
- package/dist/footer-ng/footer-ng.js +0 -1
- package/dist/form-ng/form-ng.js +0 -3
- package/dist/global/angular-component-factory.js +0 -3
- package/dist/global/create-stateful-context.js +4 -4
- package/dist/global/data-tests.js +2 -2
- package/dist/global/dom.js +6 -9
- package/dist/global/fuzzy-highlight.js +6 -6
- package/dist/global/linear-function.js +2 -2
- package/dist/global/listeners.js +1 -2
- package/dist/global/memoize.js +0 -1
- package/dist/global/normalize-indent.js +1 -1
- package/dist/global/react-dom-renderer.js +0 -2
- package/dist/global/react-render-adapter.js +0 -1
- package/dist/global/rerender-hoc.js +0 -2
- package/dist/global/theme.js +0 -4
- package/dist/global/trivial-template-tag.js +1 -1
- package/dist/global/url.js +0 -1
- package/dist/grid/col.js +3 -3
- package/dist/grid/grid.js +0 -2
- package/dist/grid/row.js +3 -1
- package/dist/header/header.js +3 -11
- package/dist/header/logo.js +0 -1
- package/dist/header/profile.js +9 -16
- package/dist/header/services-link.js +0 -1
- package/dist/header/services.js +4 -6
- package/dist/header/smart-profile.js +1 -11
- package/dist/header/smart-services.js +1 -7
- package/dist/header/tray-icon.js +4 -3
- package/dist/heading/heading.js +4 -2
- package/dist/heading-ng/heading-ng.js +0 -3
- package/dist/http/http.js +7 -9
- package/dist/http/http.mock.js +2 -5
- package/dist/hub-source/hub-source.js +0 -2
- package/dist/hub-source/hub-source__user.js +0 -2
- package/dist/hub-source/hub-source__users-groups.js +0 -3
- package/dist/i18n/i18n-context.js +3 -4
- package/dist/i18n/i18n.js +0 -1
- package/dist/icon/icon.js +6 -5
- package/dist/icon/icon__svg.js +4 -3
- package/dist/icon/index.js +0 -1
- package/dist/icon-ng/icon-ng.js +0 -1
- package/dist/input/input.js +13 -8
- package/dist/input-ng/input-ng.js +8 -6
- package/dist/island/adaptive-island-hoc.js +1 -1
- package/dist/island/content.js +9 -5
- package/dist/island/header.js +4 -2
- package/dist/island/island.js +4 -2
- package/dist/island-ng/island-content-ng.js +2 -2
- package/dist/island-ng/island-header-ng.js +1 -1
- package/dist/island-ng/island-ng.js +1 -1
- package/dist/link/link.js +8 -3
- package/dist/list/consts.d.ts +1 -2
- package/dist/list/list.js +10 -18
- package/dist/list/list__custom.js +5 -2
- package/dist/list/list__item.js +11 -9
- package/dist/list/list__link.js +6 -4
- package/dist/list/list__separator.js +4 -2
- package/dist/list/list__title.js +4 -2
- package/dist/list/list__users-groups-source.js +0 -8
- package/dist/loader/loader.js +0 -4
- package/dist/loader/loader__core.js +0 -4
- package/dist/loader-ng/loader-ng.js +0 -4
- package/dist/loader-screen/loader-screen.js +3 -5
- package/dist/loader-screen-ng/loader-screen-ng.js +0 -4
- package/dist/login-dialog/login-dialog.js +2 -8
- package/dist/login-dialog/service.js +0 -6
- package/dist/markdown/code.js +0 -2
- package/dist/markdown/link.js +0 -1
- package/dist/markdown/markdown.js +5 -5
- package/dist/message/message.js +68 -58
- package/dist/old-browsers-message/old-browsers-message.js +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -1
- package/dist/old-browsers-message/white-list.js +6 -5
- package/dist/pager/pager.js +8 -13
- package/dist/pager-ng/pager-ng.js +0 -8
- package/dist/panel-ng/panel-ng.js +0 -3
- package/dist/permissions/permissions.js +1 -2
- package/dist/permissions-ng/permissions-ng.js +1 -7
- package/dist/place-under-ng/place-under-ng.js +6 -10
- package/dist/popup/popup.js +22 -23
- package/dist/popup/position.js +70 -61
- package/dist/popup-menu/popup-menu.js +0 -9
- package/dist/progress-bar/progress-bar.js +4 -2
- package/dist/progress-bar-ng/progress-bar-ng.js +0 -3
- package/dist/promised-click-ng/promised-click-ng.js +0 -4
- package/dist/proxy-attrs/proxy-attrs.js +0 -1
- package/dist/query-assist/query-assist.js +39 -35
- package/dist/query-assist/query-assist__suggestions.js +0 -8
- package/dist/query-assist-ng/query-assist-ng.js +0 -10
- package/dist/radio-ng/radio-ng.js +0 -1
- package/dist/save-field-ng/save-field-ng.js +6 -13
- package/dist/select/select.js +33 -31
- package/dist/select/select__filter.js +0 -8
- package/dist/select/select__popup.js +12 -14
- package/dist/select-ng/select-ng.js +8 -16
- package/dist/select-ng/select-ng__lazy.js +0 -8
- package/dist/select-ng/select-ng__options.js +5 -6
- package/dist/shortcuts/core.js +5 -7
- package/dist/shortcuts/shortcuts-hoc.js +0 -2
- package/dist/shortcuts/shortcuts.js +0 -2
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +1 -8
- package/dist/shortcuts-ng/shortcuts-ng.js +6 -12
- package/dist/sidebar-ng/sidebar-ng.js +2 -7
- package/dist/storage/storage.js +0 -5
- package/dist/storage/storage__fallback.js +0 -3
- package/dist/storage/storage__local.js +0 -4
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +1 -4
- package/dist/table/header-cell.js +8 -4
- package/dist/table/header.js +8 -7
- package/dist/table/multitable.js +0 -1
- package/dist/table/row-with-focus-sensor.js +0 -4
- package/dist/table/row.js +11 -8
- package/dist/table/selection-adapter.js +1 -1
- package/dist/table/selection-shortcuts-hoc.js +0 -2
- package/dist/table/selection.js +3 -5
- package/dist/table/smart-table.js +4 -10
- package/dist/table/table.js +26 -24
- package/dist/table-legacy-ng/table-legacy-ng.js +3 -12
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +0 -8
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +0 -2
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -3
- package/dist/table-ng/smart-table-ng.js +0 -7
- package/dist/table-ng/table-ng.js +0 -7
- package/dist/tabs/collapsible-more.js +4 -13
- package/dist/tabs/collapsible-tab.js +9 -5
- package/dist/tabs/collapsible-tabs.js +7 -16
- package/dist/tabs/dumb-tabs.js +6 -13
- package/dist/tabs/smart-tabs.js +1 -10
- package/dist/tabs/tab-link.js +0 -1
- package/dist/tabs/tabs.js +0 -9
- package/dist/tabs-ng/tabs-ng.js +4 -5
- package/dist/tag/tag.js +11 -6
- package/dist/tags-input/tags-input.js +12 -18
- package/dist/tags-input-ng/tags-input-ng.js +0 -8
- package/dist/tags-list/tags-list.js +0 -1
- package/dist/text/text.js +6 -3
- package/dist/toggle-ng/toggle-ng.js +0 -3
- package/dist/tooltip/tooltip.js +5 -7
- package/dist/tooltip-ng/tooltip-ng.js +2 -6
- package/dist/user-agreement/service.js +9 -15
- package/dist/user-agreement/user-agreement.js +0 -5
- package/dist/user-card/card.js +0 -7
- package/dist/user-card/smart-user-card-tooltip.js +1 -8
- package/dist/user-card/tooltip.js +1 -8
- package/dist/user-card/user-card.js +0 -7
- package/dist/user-card-ng/user-card-ng.js +0 -7
- package/package.json +13 -13
|
@@ -127,6 +127,28 @@
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
.textarea {
|
|
131
|
+
resize: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.textareaWrapper {
|
|
135
|
+
position: relative;
|
|
136
|
+
|
|
137
|
+
&::after {
|
|
138
|
+
position: absolute;
|
|
139
|
+
bottom: 6px;
|
|
140
|
+
left: 0;
|
|
141
|
+
|
|
142
|
+
width: 100%;
|
|
143
|
+
height: 30px;
|
|
144
|
+
|
|
145
|
+
content: "";
|
|
146
|
+
pointer-events: none;
|
|
147
|
+
|
|
148
|
+
background: linear-gradient(to bottom, rgba(var(--ring-content-background-components), 0), rgba(var(--ring-content-background-components), 1));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
130
152
|
.button {
|
|
131
153
|
margin: 6px 0;
|
|
132
154
|
}
|
|
@@ -7,7 +7,7 @@ export interface EditableHeadingTranslations {
|
|
|
7
7
|
save: string;
|
|
8
8
|
cancel: string;
|
|
9
9
|
}
|
|
10
|
-
export type EditableHeadingProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'size'> & {
|
|
10
|
+
export type EditableHeadingProps = Omit<InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, 'value' | 'size'> & {
|
|
11
11
|
level?: Levels;
|
|
12
12
|
headingClassName?: string | null;
|
|
13
13
|
inputClassName?: string | null;
|
|
@@ -23,6 +23,7 @@ export type EditableHeadingProps = Omit<InputHTMLAttributes<HTMLInputElement>, '
|
|
|
23
23
|
'data-test'?: string | null;
|
|
24
24
|
error?: string;
|
|
25
25
|
multiline?: boolean;
|
|
26
|
+
multilineInputRows?: number;
|
|
26
27
|
renderMenu?: () => React.ReactNode;
|
|
27
28
|
translations?: EditableHeadingTranslations;
|
|
28
29
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
1
|
+
import React, { useCallback, useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import Heading, { Levels } from '../heading/heading';
|
|
4
4
|
import Button from '../button/button';
|
|
@@ -9,16 +9,19 @@ import Shortcuts from '../shortcuts/shortcuts';
|
|
|
9
9
|
import styles from './editable-heading.css';
|
|
10
10
|
export { Levels };
|
|
11
11
|
export { Size };
|
|
12
|
+
const DEFAULT_MULTILINE_INPUT_ROWS = 3;
|
|
12
13
|
function noop() { }
|
|
13
14
|
export const EditableHeading = (props) => {
|
|
14
15
|
const { level = Levels.H1, className, headingClassName, inputClassName, children, isEditing = false, isSavingPossible = false, isSaving = false, embedded = false, size = Size.L, onEdit = noop, onSave = noop, onCancel = noop, autoFocus = true, 'data-test': dataTest, error, disabled, multiline = false, renderMenu = () => null, onFocus, onBlur, translations = {
|
|
15
16
|
save: 'Save',
|
|
16
17
|
cancel: 'Cancel'
|
|
17
|
-
}, ...restProps } = props;
|
|
18
|
+
}, multilineInputRows = DEFAULT_MULTILINE_INPUT_ROWS, ...restProps } = props;
|
|
18
19
|
const [shortcutsScope] = React.useState(getUID('ring-editable-heading-'));
|
|
19
20
|
const [isInFocus, setIsInFocus] = React.useState(false);
|
|
20
21
|
const [isMouseDown, setIsMouseDown] = React.useState(false);
|
|
21
22
|
const [isInSelectionMode, setIsInSelectionMode] = React.useState(false);
|
|
23
|
+
const textAreaRef = React.useRef(null);
|
|
24
|
+
const textAreaWrapperRef = React.useRef(null);
|
|
22
25
|
const hasError = error !== undefined;
|
|
23
26
|
const isSaveDisabled = !isSavingPossible || !children || children.trim() === '' || hasError || isSaving;
|
|
24
27
|
const isCancelDisabled = isSaving;
|
|
@@ -42,7 +45,7 @@ export const EditableHeading = (props) => {
|
|
|
42
45
|
[styles.selectionMode]: isInSelectionMode
|
|
43
46
|
});
|
|
44
47
|
const headingClasses = classNames(styles.heading, headingClassName, styles[`size${size}`]);
|
|
45
|
-
const inputClasses = classNames('ring-js-shortcuts', styles.input, inputStyles[`size${size}`], styles[`level${level}`], inputClassName);
|
|
48
|
+
const inputClasses = classNames('ring-js-shortcuts', styles.input, styles.textarea, inputStyles[`size${size}`], styles[`level${level}`], inputClassName);
|
|
46
49
|
const onHeadingMouseDown = React.useCallback(() => {
|
|
47
50
|
setIsMouseDown(true);
|
|
48
51
|
}, []);
|
|
@@ -67,21 +70,42 @@ export const EditableHeading = (props) => {
|
|
|
67
70
|
setIsInFocus(false);
|
|
68
71
|
onBlur?.(e);
|
|
69
72
|
}, [onBlur]);
|
|
73
|
+
const onScroll = useCallback(() => {
|
|
74
|
+
const scrollHeight = textAreaRef?.current?.scrollHeight || 0;
|
|
75
|
+
const clientHeight = textAreaRef?.current?.clientHeight || 0;
|
|
76
|
+
const scrollTop = textAreaRef?.current?.scrollTop || 0;
|
|
77
|
+
const isScrolledToBottom = scrollHeight - clientHeight <= scrollTop;
|
|
78
|
+
if (isScrolledToBottom) {
|
|
79
|
+
textAreaWrapperRef?.current?.classList.remove(styles.textareaWrapper);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
textAreaWrapperRef?.current?.classList.add(styles.textareaWrapper);
|
|
83
|
+
}
|
|
84
|
+
}, []);
|
|
70
85
|
useEffect(() => {
|
|
86
|
+
const textAreaRefCurrent = textAreaRef?.current;
|
|
87
|
+
textAreaRefCurrent?.addEventListener('scroll', onScroll);
|
|
71
88
|
window.addEventListener('mousemove', onMouseMove);
|
|
72
89
|
window.addEventListener('mouseup', onMouseUp);
|
|
73
90
|
return () => {
|
|
74
91
|
window.removeEventListener('mousemove', onMouseMove);
|
|
75
92
|
window.removeEventListener('mouseup', onMouseUp);
|
|
93
|
+
if (textAreaRefCurrent) {
|
|
94
|
+
textAreaRefCurrent.removeEventListener('scroll', onScroll);
|
|
95
|
+
}
|
|
76
96
|
};
|
|
77
|
-
});
|
|
97
|
+
}, [onMouseMove, onMouseUp, onScroll]);
|
|
78
98
|
return (<>
|
|
79
99
|
<div className={classes}>
|
|
80
100
|
{!disabled && isEditing
|
|
81
101
|
? (<>
|
|
82
102
|
<Shortcuts map={shortcutsMap} scope={shortcutsScope} disabled={isShortcutsDisabled}/>
|
|
83
103
|
|
|
84
|
-
|
|
104
|
+
{!multiline
|
|
105
|
+
? (<input className={inputClasses} value={children} autoFocus={autoFocus} data-test={dataTest} disabled={isSaving} {...restProps} onFocus={onInputFocus} onBlur={onInputBlur}/>)
|
|
106
|
+
: (<div ref={textAreaWrapperRef} className={styles.textareaWrapper}>
|
|
107
|
+
<textarea ref={textAreaRef} className={inputClasses} value={children} autoFocus={autoFocus} rows={multilineInputRows} data-test={dataTest} disabled={isSaving} {...restProps} onFocus={onInputFocus} onBlur={onInputBlur}/>
|
|
108
|
+
</div>)}
|
|
85
109
|
</>)
|
|
86
110
|
: (<button type="button" className={styles.headingWrapperButton} onMouseDown={onHeadingMouseDown}>
|
|
87
111
|
<Heading className={headingClasses} level={level} data-test={dataTest}>{children}</Heading>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React, { ComponentType, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { ReactElement } from 'react-markdown/lib/react-markdown';
|
|
1
|
+
import React, { ComponentType, ReactNode, ReactElement, SyntheticEvent } from 'react';
|
|
3
2
|
import { LinkProps } from '../link/link';
|
|
4
3
|
import { IconType, Size } from '../icon/icon';
|
|
5
4
|
import { ClickableLinkProps } from '../link/clickableLink';
|
|
@@ -347,15 +347,6 @@ function _regeneratorRuntime() {
|
|
|
347
347
|
}
|
|
348
348
|
}, e;
|
|
349
349
|
}
|
|
350
|
-
function _typeof(o) {
|
|
351
|
-
"@babel/helpers - typeof";
|
|
352
|
-
|
|
353
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
354
|
-
return typeof o;
|
|
355
|
-
} : function (o) {
|
|
356
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
357
|
-
}, _typeof(o);
|
|
358
|
-
}
|
|
359
350
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
360
351
|
try {
|
|
361
352
|
var info = gen[key](arg);
|
|
@@ -654,4 +645,4 @@ function _toPropertyKey(arg) {
|
|
|
654
645
|
return typeof key === "symbol" ? key : String(key);
|
|
655
646
|
}
|
|
656
647
|
|
|
657
|
-
export { _defineProperty as _, _inherits as a, _createSuper as b, _classCallCheck as c, _createClass as d, _objectWithoutProperties as e, _extends as f, _objectSpread2 as g, _asyncToGenerator as h, _regeneratorRuntime as i, _slicedToArray as j, _assertThisInitialized as k,
|
|
648
|
+
export { _defineProperty as _, _inherits as a, _createSuper as b, _classCallCheck as c, _createClass as d, _objectWithoutProperties as e, _extends as f, _objectSpread2 as g, _asyncToGenerator as h, _regeneratorRuntime as i, _slicedToArray as j, _assertThisInitialized as k, _toConsumableArray as l, _createForOfIteratorHelper as m, _get as n, _getPrototypeOf as o, _toPropertyKey as p };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './_rollupPluginBabelHelpers.js';
|
|
2
1
|
import classNames from 'classnames';
|
|
3
2
|
|
|
4
3
|
var modules_e81895c9 = {"unit":"i__const_unit_0","button-shadow":"inset 0 0 0 1px","height":"var(--ring-button-height)","loaderWidth":"64px","light":"light_rui_2ac4","heightS":"heightS_rui_0b90","heightM":"heightM_rui_0b90","heightL":"heightL_rui_0b90","button":"button_rui_0b90","active":"active_rui_0b90","withIcon":"withIcon_rui_0b90","icon":"icon_rui_0b90","primary":"primary_rui_0b90","loader":"loader_rui_0b90","loaderBackground":"loaderBackground_rui_0b90","danger":"danger_rui_0b90","text":"text_rui_0b90","content":"content_rui_0b90","text-loading":"text-loading_rui_0b90","inline":"inline_rui_0b90","withNormalIcon":"withNormalIcon_rui_0b90","withDangerIcon":"withDangerIcon_rui_0b90","progress":"progress_rui_0b90","delayed":"delayed_rui_0b90","short":"short_rui_0b90","dropdownIcon":"dropdownIcon_rui_0b90"};
|
|
5
4
|
|
|
6
5
|
function getButtonClasses(_ref) {
|
|
7
|
-
var _classNames;
|
|
8
6
|
var className = _ref.className,
|
|
9
7
|
active = _ref.active,
|
|
10
8
|
disabled = _ref.disabled,
|
|
@@ -18,7 +16,19 @@ function getButtonClasses(_ref) {
|
|
|
18
16
|
icon = _ref.icon,
|
|
19
17
|
height = _ref.height;
|
|
20
18
|
var withNormalIcon = icon && !active && !danger && !primary && !disabled;
|
|
21
|
-
return classNames(modules_e81895c9.button, className, modules_e81895c9["height".concat(height)],
|
|
19
|
+
return classNames(modules_e81895c9.button, className, modules_e81895c9["height".concat(height)], {
|
|
20
|
+
[modules_e81895c9.active]: active,
|
|
21
|
+
[modules_e81895c9.danger]: danger,
|
|
22
|
+
[modules_e81895c9.delayed]: delayed,
|
|
23
|
+
[modules_e81895c9.withIcon]: icon,
|
|
24
|
+
[modules_e81895c9.withNormalIcon]: withNormalIcon,
|
|
25
|
+
[modules_e81895c9.withDangerIcon]: icon && danger,
|
|
26
|
+
[modules_e81895c9.loader]: loader && !icon,
|
|
27
|
+
[modules_e81895c9.primary]: primary,
|
|
28
|
+
[modules_e81895c9.short]: short,
|
|
29
|
+
[modules_e81895c9.text]: text,
|
|
30
|
+
[modules_e81895c9.inline]: inline
|
|
31
|
+
});
|
|
22
32
|
}
|
|
23
33
|
|
|
24
34
|
export { getButtonClasses as g, modules_e81895c9 as m };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import 'core-js/modules/es.array.iterator.js';
|
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
|
3
3
|
import 'core-js/modules/es.set.js';
|
|
4
|
-
import 'core-js/modules/es.string.iterator.js';
|
|
5
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
5
|
import scrollbarWidth from 'scrollbar-width';
|
|
7
6
|
|
package/dist/_helpers/footer.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty, l as _typeof } from './_rollupPluginBabelHelpers.js';
|
|
2
1
|
import 'core-js/modules/es.array.map.js';
|
|
3
2
|
import React, { memo, isValidElement } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
@@ -8,10 +7,13 @@ import Link from '../link/link.js';
|
|
|
8
7
|
var modules_7385b3fd = {"unit":"i__const_unit_0","footer-height":"i__const_footer_height_1","light":"light_rui_2ac4","footer":"footer_rui_fade font_rui_8bff","footerFloating":"footerFloating_rui_fade footer_rui_fade font_rui_8bff","column":"column_rui_fade","columnItem":"columnItem_rui_fade","columnLeft":"columnLeft_rui_fade column_rui_fade","columnCenter":"columnCenter_rui_fade column_rui_fade","line":"line_rui_fade","columnRight":"columnRight_rui_fade column_rui_fade","lineCenter":"lineCenter_rui_fade"};
|
|
9
8
|
|
|
10
9
|
var FooterColumn = /*#__PURE__*/memo(function FooterColumn(_ref) {
|
|
11
|
-
var _classNames;
|
|
12
10
|
var position = _ref.position,
|
|
13
11
|
children = _ref.children;
|
|
14
|
-
var classes = classNames(
|
|
12
|
+
var classes = classNames({
|
|
13
|
+
[modules_7385b3fd.columnLeft]: position === 'left',
|
|
14
|
+
[modules_7385b3fd.columnCenter]: position === 'center',
|
|
15
|
+
[modules_7385b3fd.columnRight]: position === 'right'
|
|
16
|
+
});
|
|
15
17
|
return /*#__PURE__*/React.createElement("div", {
|
|
16
18
|
className: classes
|
|
17
19
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
@@ -46,7 +48,7 @@ var FooterLine = /*#__PURE__*/memo(function FooterLine(props) {
|
|
|
46
48
|
var items = Array.isArray(props.item) ? props.item : [props.item];
|
|
47
49
|
function renderItem(item) {
|
|
48
50
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
|
-
if ( /*#__PURE__*/isValidElement(item) ||
|
|
51
|
+
if ( /*#__PURE__*/isValidElement(item) || typeof item !== 'object') {
|
|
50
52
|
return item;
|
|
51
53
|
}
|
|
52
54
|
var element = (item.copyright ? copyright(item.copyright) : '') + (item.label || item);
|
|
@@ -89,7 +91,9 @@ var Footer = /*#__PURE__*/memo(function Footer(_ref2) {
|
|
|
89
91
|
});
|
|
90
92
|
}));
|
|
91
93
|
}
|
|
92
|
-
var classes = classNames(modules_7385b3fd.footer, className,
|
|
94
|
+
var classes = classNames(modules_7385b3fd.footer, className, {
|
|
95
|
+
[modules_7385b3fd.footerFloating]: floating
|
|
96
|
+
});
|
|
93
97
|
return /*#__PURE__*/React.createElement("footer", {
|
|
94
98
|
className: classes,
|
|
95
99
|
"data-test": "ring-footer"
|
package/dist/_helpers/sidebar.js
CHANGED
|
@@ -66,7 +66,6 @@ var Sidebar = /*#__PURE__*/function (_Component) {
|
|
|
66
66
|
}, {
|
|
67
67
|
key: "render",
|
|
68
68
|
value: function render() {
|
|
69
|
-
var _classNames2;
|
|
70
69
|
var _this$props = this.props,
|
|
71
70
|
right = _this$props.right,
|
|
72
71
|
children = _this$props.children,
|
|
@@ -81,8 +80,15 @@ var Sidebar = /*#__PURE__*/function (_Component) {
|
|
|
81
80
|
sidebarVisibleHeight = _this$state2.sidebarVisibleHeight;
|
|
82
81
|
var shouldFixateTop = bottomIsOutside && topIsOutside && this.shouldUseFixation();
|
|
83
82
|
var shouldFixateBottom = this.shouldFixateBottom();
|
|
84
|
-
var containerClasses = classNames(modules_b8a9dd4f.sidebarContainer, containerClassName,
|
|
85
|
-
|
|
83
|
+
var containerClasses = classNames(modules_b8a9dd4f.sidebarContainer, containerClassName, {
|
|
84
|
+
[modules_b8a9dd4f.sidebarContainerRight]: right
|
|
85
|
+
});
|
|
86
|
+
var classes = classNames(modules_b8a9dd4f.sidebar, className, {
|
|
87
|
+
[modules_b8a9dd4f.sidebarRight]: right,
|
|
88
|
+
[modules_b8a9dd4f.sidebarFixedTop]: shouldFixateTop,
|
|
89
|
+
[modules_b8a9dd4f.sidebarFixedBottom]: shouldFixateBottom,
|
|
90
|
+
[fixedClassName !== null && fixedClassName !== void 0 ? fixedClassName : '']: shouldFixateTop || shouldFixateBottom
|
|
91
|
+
});
|
|
86
92
|
var style = {
|
|
87
93
|
maxHeight: shouldFixateBottom && sidebarVisibleHeight ? "".concat(sidebarVisibleHeight, "px") : undefined
|
|
88
94
|
};
|
package/dist/_helpers/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as _slicedToArray,
|
|
1
|
+
import { j as _slicedToArray, e as _objectWithoutProperties, f as _extends } from './_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { useState, useEffect, forwardRef, useMemo, useContext } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
@@ -35,10 +35,12 @@ function useTheme() {
|
|
|
35
35
|
return dark ? Theme.DARK : Theme.LIGHT;
|
|
36
36
|
}
|
|
37
37
|
function useThemeClasses(theme) {
|
|
38
|
-
var _classNames;
|
|
39
38
|
var systemTheme = useTheme();
|
|
40
39
|
var resolvedTheme = theme === Theme.AUTO ? systemTheme : theme;
|
|
41
|
-
return classNames(
|
|
40
|
+
return classNames({
|
|
41
|
+
[modules_59717246.dark]: resolvedTheme === Theme.DARK,
|
|
42
|
+
[modules_6381a4b3.light]: resolvedTheme === Theme.LIGHT
|
|
43
|
+
});
|
|
42
44
|
}
|
|
43
45
|
function WithThemeClasses(_ref) {
|
|
44
46
|
var theme = _ref.theme,
|
package/dist/_helpers/title.js
CHANGED
|
@@ -43,7 +43,6 @@ var Title = /*#__PURE__*/function (_PureComponent) {
|
|
|
43
43
|
}, {
|
|
44
44
|
key: "render",
|
|
45
45
|
value: function render() {
|
|
46
|
-
var _classNames;
|
|
47
46
|
var _this$props2 = this.props,
|
|
48
47
|
className = _this$props2.className,
|
|
49
48
|
title = _this$props2.title,
|
|
@@ -53,7 +52,11 @@ var Title = /*#__PURE__*/function (_PureComponent) {
|
|
|
53
52
|
selectable = _this$props2.selectable,
|
|
54
53
|
selected = _this$props2.selected,
|
|
55
54
|
collapserExpander = _this$props2.collapserExpander;
|
|
56
|
-
var classes = classNames(className,
|
|
55
|
+
var classes = classNames(className, {
|
|
56
|
+
[modules_09d014b4.title]: true,
|
|
57
|
+
[modules_09d014b4.titleFocused]: showFocus,
|
|
58
|
+
[modules_09d014b4.titleSelected]: selected
|
|
59
|
+
});
|
|
57
60
|
return /*#__PURE__*/React.createElement("div", {
|
|
58
61
|
id: this.id,
|
|
59
62
|
className: classes,
|
package/dist/alert/alert.js
CHANGED
|
@@ -26,17 +26,14 @@ import '../global/memoize.js';
|
|
|
26
26
|
import 'core-js/modules/es.array.iterator.js';
|
|
27
27
|
import 'core-js/modules/es.map.js';
|
|
28
28
|
import 'core-js/modules/es.object.to-string.js';
|
|
29
|
-
import 'core-js/modules/es.string.iterator.js';
|
|
30
29
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
31
30
|
import 'core-js/modules/es.weak-map.js';
|
|
32
31
|
import '../_helpers/loader-inline.js';
|
|
33
32
|
import 'core-js/modules/es.array.reduce.js';
|
|
34
33
|
import 'core-js/modules/es.object.entries.js';
|
|
35
|
-
import 'core-js/modules/es.object.assign.js';
|
|
36
34
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
37
35
|
import 'core-js/modules/es.array.filter.js';
|
|
38
36
|
import 'core-js/modules/es.string.split.js';
|
|
39
|
-
import 'core-js/modules/es.object.keys.js';
|
|
40
37
|
import 'core-js/modules/es.set.js';
|
|
41
38
|
import '@jetbrains/icons/chevron-10px';
|
|
42
39
|
import '../link/clickableLink.js';
|
|
@@ -56,7 +53,6 @@ import 'core-js/modules/es.string.includes.js';
|
|
|
56
53
|
import 'core-js/modules/es.array.slice.js';
|
|
57
54
|
import 'core-js/modules/es.array.splice.js';
|
|
58
55
|
import 'core-js/modules/es.string.match.js';
|
|
59
|
-
import 'core-js/modules/es.array.find-index.js';
|
|
60
56
|
import 'combokeys';
|
|
61
57
|
import '../global/sniffer.js';
|
|
62
58
|
import 'sniffr';
|
|
@@ -67,7 +63,6 @@ import '../popup/popup.consts.js';
|
|
|
67
63
|
|
|
68
64
|
var modules_e02b3280 = {"link":"link_rui_d382","unit":"i__const_unit_1","animation-duration":"300ms","animation-easing":"ease-out","light":"light_rui_2ac4","alert":"alert_rui_2b32","alertInline":"alertInline_rui_2b32","error":"error_rui_2b32","icon":"icon_rui_2b32","caption":"caption_rui_2b32","withCloseButton":"withCloseButton_rui_2b32","badge":"badge_rui_2b32","loader":"loader_rui_2b32","close":"close_rui_2b32","animationOpen":"animationOpen_rui_2b32","show":"show_rui_2b32","animationClosing":"animationClosing_rui_2b32","animationShaking":"animationShaking_rui_2b32","shaking":"shaking_rui_2b32"};
|
|
69
65
|
|
|
70
|
-
var _TypeToIcon, _TypeToIconColor;
|
|
71
66
|
var ANIMATION_TIME = 500;
|
|
72
67
|
/**
|
|
73
68
|
* @name Alert
|
|
@@ -88,12 +83,20 @@ var AlertType;
|
|
|
88
83
|
* Lookup table of alert type to icon modifier.
|
|
89
84
|
* @type {Object.<AlertType, string>}
|
|
90
85
|
*/
|
|
91
|
-
var TypeToIcon =
|
|
86
|
+
var TypeToIcon = {
|
|
87
|
+
[AlertType.ERROR]: exceptionIcon,
|
|
88
|
+
[AlertType.SUCCESS]: checkmarkIcon,
|
|
89
|
+
[AlertType.WARNING]: warningIcon
|
|
90
|
+
};
|
|
92
91
|
/**
|
|
93
92
|
* Lookup table of alert type to icon color.
|
|
94
93
|
* @type {Object.<AlertType, Icon.Color>}
|
|
95
94
|
*/
|
|
96
|
-
var TypeToIconColor =
|
|
95
|
+
var TypeToIconColor = {
|
|
96
|
+
[AlertType.ERROR]: Color.RED,
|
|
97
|
+
[AlertType.SUCCESS]: Color.GREEN,
|
|
98
|
+
[AlertType.WARNING]: Color.WHITE
|
|
99
|
+
};
|
|
97
100
|
/**
|
|
98
101
|
* @constructor
|
|
99
102
|
* @name Alert
|
|
@@ -124,7 +127,7 @@ var Alert = /*#__PURE__*/function (_PureComponent) {
|
|
|
124
127
|
_defineProperty(_assertThisInitialized(_this), "startCloseAnimation", function () {
|
|
125
128
|
var height = getRect(_this.node).height;
|
|
126
129
|
_this.setState({
|
|
127
|
-
height
|
|
130
|
+
height
|
|
128
131
|
});
|
|
129
132
|
});
|
|
130
133
|
/**
|
|
@@ -177,7 +180,9 @@ var Alert = /*#__PURE__*/function (_PureComponent) {
|
|
|
177
180
|
*/
|
|
178
181
|
function _getCaption() {
|
|
179
182
|
return /*#__PURE__*/React.createElement("span", {
|
|
180
|
-
className: classNames(modules_e02b3280.caption, this.props.captionClassName,
|
|
183
|
+
className: classNames(modules_e02b3280.caption, this.props.captionClassName, {
|
|
184
|
+
[modules_e02b3280.withCloseButton]: this.props.closeable
|
|
185
|
+
}),
|
|
181
186
|
onClick: this._handleCaptionsLinksClick
|
|
182
187
|
// We only process clicks on `a` elements, see above
|
|
183
188
|
,
|
|
@@ -208,7 +213,6 @@ var Alert = /*#__PURE__*/function (_PureComponent) {
|
|
|
208
213
|
}, {
|
|
209
214
|
key: "render",
|
|
210
215
|
value: function render() {
|
|
211
|
-
var _classNames2;
|
|
212
216
|
var _this$props = this.props,
|
|
213
217
|
type = _this$props.type,
|
|
214
218
|
inline = _this$props.inline,
|
|
@@ -219,7 +223,14 @@ var Alert = /*#__PURE__*/function (_PureComponent) {
|
|
|
219
223
|
className = _this$props.className,
|
|
220
224
|
dataTest = _this$props['data-test'],
|
|
221
225
|
theme = _this$props.theme;
|
|
222
|
-
var classes = classNames(className,
|
|
226
|
+
var classes = classNames(className, {
|
|
227
|
+
[modules_e02b3280.alert]: true,
|
|
228
|
+
[modules_e02b3280.animationOpen]: showWithAnimation,
|
|
229
|
+
[modules_e02b3280.error]: type === 'error',
|
|
230
|
+
[modules_e02b3280.alertInline]: inline,
|
|
231
|
+
[modules_e02b3280.animationClosing]: isClosing,
|
|
232
|
+
[modules_e02b3280.animationShaking]: isShaking
|
|
233
|
+
});
|
|
223
234
|
var height = this.state.height;
|
|
224
235
|
var style = height ? {
|
|
225
236
|
marginBottom: -height
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as _createClass,
|
|
1
|
+
import { d as _createClass, l as _toConsumableArray, e as _objectWithoutProperties, f as _extends, g as _objectSpread2, c as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
|
@@ -9,7 +9,6 @@ import getUID from '../global/get-uid.js';
|
|
|
9
9
|
import Alert, { ANIMATION_TIME } from '../alert/alert.js';
|
|
10
10
|
import Alerts from '../alert/container.js';
|
|
11
11
|
import 'core-js/modules/es.array.iterator.js';
|
|
12
|
-
import 'core-js/modules/es.string.iterator.js';
|
|
13
12
|
import 'core-js/modules/es.weak-map.js';
|
|
14
13
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
15
14
|
import 'react-dom';
|
|
@@ -37,10 +36,8 @@ import 'core-js/modules/es.array.reduce.js';
|
|
|
37
36
|
import 'core-js/modules/es.object.entries.js';
|
|
38
37
|
import '../_helpers/loader-inline.js';
|
|
39
38
|
import '../global/dom.js';
|
|
40
|
-
import 'core-js/modules/es.object.assign.js';
|
|
41
39
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
42
40
|
import 'core-js/modules/es.string.split.js';
|
|
43
|
-
import 'core-js/modules/es.object.keys.js';
|
|
44
41
|
import 'core-js/modules/es.set.js';
|
|
45
42
|
import '../button/button.js';
|
|
46
43
|
import '@jetbrains/icons/chevron-10px';
|
|
@@ -58,7 +55,6 @@ import 'core-js/modules/es.string.includes.js';
|
|
|
58
55
|
import 'core-js/modules/es.array.slice.js';
|
|
59
56
|
import 'core-js/modules/es.array.splice.js';
|
|
60
57
|
import 'core-js/modules/es.string.match.js';
|
|
61
|
-
import 'core-js/modules/es.array.find-index.js';
|
|
62
58
|
import 'combokeys';
|
|
63
59
|
import '../global/sniffer.js';
|
|
64
60
|
import 'sniffr';
|
|
@@ -168,9 +164,9 @@ var AlertService = /*#__PURE__*/function () {
|
|
|
168
164
|
}
|
|
169
165
|
var alert = _objectSpread2({
|
|
170
166
|
key: getUID('alert-service-'),
|
|
171
|
-
message
|
|
172
|
-
type
|
|
173
|
-
timeout
|
|
167
|
+
message,
|
|
168
|
+
type,
|
|
169
|
+
timeout,
|
|
174
170
|
isClosing: false,
|
|
175
171
|
onCloseRequest: function onCloseRequest() {
|
|
176
172
|
_onCloseRequest && _onCloseRequest();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { d as _createClass,
|
|
2
|
-
import 'core-js/modules/es.array.index-of.js';
|
|
1
|
+
import { d as _createClass, c as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
3
2
|
import 'core-js/modules/es.object.to-string.js';
|
|
4
3
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
5
4
|
import 'core-js/modules/es.regexp.exec.js';
|
|
@@ -86,7 +85,7 @@ var Analytics = /*#__PURE__*/function () {
|
|
|
86
85
|
continue;
|
|
87
86
|
}
|
|
88
87
|
for (var j = 0; j < keys.length; ++j) {
|
|
89
|
-
if (
|
|
88
|
+
if (typeof value === 'object' && value != null && value.hasOwnProperty(keys[j])) {
|
|
90
89
|
value = value[keys[j]];
|
|
91
90
|
} else {
|
|
92
91
|
value = 'no-value';
|
|
@@ -13,9 +13,9 @@ var AnalyticsCustomPlugin = /*#__PURE__*/function () {
|
|
|
13
13
|
_defineProperty(this, "_hasSendSchedule", void 0);
|
|
14
14
|
this._data = [];
|
|
15
15
|
this.config({
|
|
16
|
-
send
|
|
17
|
-
isDevelopment
|
|
18
|
-
flushInterval
|
|
16
|
+
send,
|
|
17
|
+
isDevelopment,
|
|
18
|
+
flushInterval
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
_createClass(AnalyticsCustomPlugin, [{
|
|
@@ -66,12 +66,12 @@ var AnalyticsCustomPlugin = /*#__PURE__*/function () {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
var baseSendingData = {
|
|
69
|
-
category
|
|
70
|
-
action
|
|
69
|
+
category,
|
|
70
|
+
action,
|
|
71
71
|
timestamp: Date.now()
|
|
72
72
|
};
|
|
73
73
|
this._addDataToFlushingPack(data ? _objectSpread2(_objectSpread2({}, baseSendingData), {}, {
|
|
74
|
-
data
|
|
74
|
+
data
|
|
75
75
|
}) : baseSendingData);
|
|
76
76
|
}
|
|
77
77
|
}, {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { d as _createClass, c as _classCallCheck } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.number.constructor.js';
|
|
3
2
|
import 'core-js/modules/es.array.concat.js';
|
|
4
3
|
import AnalyticsPluginUtils from './analytics__plugin-utils.js';
|
|
5
4
|
import 'core-js/modules/es.regexp.exec.js';
|
|
6
5
|
import 'core-js/modules/es.string.replace.js';
|
|
7
|
-
import 'core-js/modules/es.math.log2.js';
|
|
8
6
|
import 'util-deprecate';
|
|
9
7
|
import '../global/sniffer.js';
|
|
10
8
|
import 'sniffr';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import 'core-js/modules/es.regexp.exec.js';
|
|
2
2
|
import 'core-js/modules/es.string.replace.js';
|
|
3
|
-
import 'core-js/modules/es.math.log2.js';
|
|
4
3
|
import 'core-js/modules/es.array.concat.js';
|
|
5
4
|
import deprecate from 'util-deprecate';
|
|
6
5
|
import sniffr from '../global/sniffer.js';
|
package/dist/auth/auth.js
CHANGED
|
@@ -8,8 +8,6 @@ import 'core-js/modules/es.object.to-string.js';
|
|
|
8
8
|
import 'core-js/modules/es.promise.js';
|
|
9
9
|
import './response-parser.js';
|
|
10
10
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
11
|
-
import 'core-js/modules/es.object.keys.js';
|
|
12
|
-
import 'core-js/modules/es.array.index-of.js';
|
|
13
11
|
import 'core-js/modules/es.regexp.exec.js';
|
|
14
12
|
import 'core-js/modules/es.string.replace.js';
|
|
15
13
|
import 'core-js/modules/es.regexp.to-string.js';
|
|
@@ -23,7 +21,6 @@ import '../alert-service/alert-service.js';
|
|
|
23
21
|
import 'core-js/modules/es.array.map.js';
|
|
24
22
|
import '../global/react-render-adapter.js';
|
|
25
23
|
import 'core-js/modules/es.array.iterator.js';
|
|
26
|
-
import 'core-js/modules/es.string.iterator.js';
|
|
27
24
|
import 'core-js/modules/es.weak-map.js';
|
|
28
25
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
29
26
|
import 'react-dom';
|
|
@@ -49,7 +46,6 @@ import 'core-js/modules/es.array.reduce.js';
|
|
|
49
46
|
import 'core-js/modules/es.object.entries.js';
|
|
50
47
|
import '../_helpers/loader-inline.js';
|
|
51
48
|
import '../global/dom.js';
|
|
52
|
-
import 'core-js/modules/es.object.assign.js';
|
|
53
49
|
import 'core-js/modules/es.string.split.js';
|
|
54
50
|
import 'core-js/modules/es.set.js';
|
|
55
51
|
import '../button/button.js';
|
|
@@ -67,7 +63,6 @@ import 'core-js/modules/es.array.includes.js';
|
|
|
67
63
|
import 'core-js/modules/es.string.includes.js';
|
|
68
64
|
import 'core-js/modules/es.array.slice.js';
|
|
69
65
|
import 'core-js/modules/es.array.splice.js';
|
|
70
|
-
import 'core-js/modules/es.array.find-index.js';
|
|
71
66
|
import 'combokeys';
|
|
72
67
|
import '../global/sniffer.js';
|
|
73
68
|
import 'sniffr';
|
|
@@ -82,7 +77,6 @@ import '../group/group.js';
|
|
|
82
77
|
import '../_helpers/group.js';
|
|
83
78
|
import 'core-js/modules/web.url.js';
|
|
84
79
|
import 'core-js/modules/web.url-search-params.js';
|
|
85
|
-
import 'core-js/modules/es.parse-int.js';
|
|
86
80
|
import 'core-js/modules/es.string.search.js';
|
|
87
81
|
import '../global/listeners.js';
|
|
88
82
|
import '../http/http.js';
|