@jetbrains/ring-ui 5.0.10 → 5.0.13
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/analytics/analytics__plugin-utils.d.ts +2 -2
- package/components/button/button.css +6 -1
- package/components/button-group/button-group.css +2 -2
- package/components/button-group/button-group.d.ts +1 -0
- package/components/button-group/button-group.js +3 -2
- package/components/button-group-ng/button-group-ng.js +9 -2
- package/components/button-set/button-set.d.ts +5 -1
- package/components/button-set/button-set.js +7 -4
- package/components/button-toolbar/button-toolbar.d.ts +5 -1
- package/components/button-toolbar/button-toolbar.js +5 -3
- package/components/code/code.js +1 -1
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/rerender-hoc.d.ts +1 -1
- package/components/global/variables.css +1 -0
- package/components/global/variables.d.ts +1 -0
- package/components/global/variables_dark.css +1 -0
- package/components/http/http.d.ts +3 -3
- package/components/list/list.d.ts +1 -1
- package/components/markdown/markdown.d.ts +1 -0
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/select/select.d.ts +3 -3
- package/components/select/select__popup.d.ts +1 -1
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/user-agreement/service.d.ts +8 -54
- package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -2
- package/dist/analytics/analytics__plugin-utils.d.ts +2 -2
- package/dist/button-group/button-group.d.ts +1 -0
- package/dist/button-group/button-group.js +4 -0
- package/dist/button-group-ng/button-group-ng.js +10 -2
- package/dist/button-set/button-set.d.ts +5 -1
- package/dist/button-set/button-set.js +14 -4
- package/dist/button-toolbar/button-toolbar.d.ts +5 -1
- package/dist/button-toolbar/button-toolbar.js +9 -3
- package/dist/code/code.js +2 -1
- package/dist/global/create-stateful-context.d.ts +1 -1
- package/dist/global/rerender-hoc.d.ts +1 -1
- package/dist/global/variables.d.ts +1 -0
- package/dist/http/http.d.ts +3 -3
- package/dist/list/list.d.ts +1 -1
- package/dist/markdown/markdown.d.ts +1 -0
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.js +1 -1
- package/dist/pager-ng/pager-ng.js +1 -1
- package/dist/query-assist/query-assist.d.ts +2 -2
- package/dist/select/select.d.ts +3 -3
- package/dist/select/select__popup.d.ts +1 -1
- package/dist/shortcuts/shortcuts.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/table-legacy-ng/table-legacy-ng.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +1 -1
- package/dist/tags-input/tags-input.d.ts +1 -1
- package/dist/user-agreement/service.d.ts +8 -54
- package/package.json +74 -71
|
@@ -18,7 +18,7 @@ export default function createStatefulContext<T>(initialValue: T, name?: string)
|
|
|
18
18
|
};
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
21
|
-
useUpdate: (value: T, skipUpdate?: boolean
|
|
21
|
+
useUpdate: (value: T, skipUpdate?: boolean) => void;
|
|
22
22
|
Updater: React.MemoExoticComponent<{
|
|
23
23
|
({ value, skipUpdate }: UpdaterProps<T>): null;
|
|
24
24
|
displayName: string;
|
|
@@ -14,7 +14,7 @@ export interface RerenderableComponentClass<P, S> {
|
|
|
14
14
|
export default function rerenderHOC<P, S>(ComposedComponent: RerenderableComponentClass<P, S>): {
|
|
15
15
|
new (props: P): {
|
|
16
16
|
_propsCache: P & RefAttributes<unknown>;
|
|
17
|
-
rerender(props?: Partial<P>, callback?: (
|
|
17
|
+
rerender(props?: Partial<P>, callback?: () => void): void;
|
|
18
18
|
node?: HTMLElement | null | undefined;
|
|
19
19
|
context: unknown;
|
|
20
20
|
setState<K extends keyof S>(state: S | ((prevState: Readonly<S>, props: Readonly<P>) => S | Pick<S, K> | null) | Pick<S, K> | null, callback?: (() => void) | undefined): void;
|
|
@@ -48,6 +48,7 @@ export interface RingCSSProperties {
|
|
|
48
48
|
'--ring-warning-background-color'?: Property.BackgroundColor;
|
|
49
49
|
'--ring-added-background-color'?: Property.BackgroundColor;
|
|
50
50
|
'--ring-disabled-background-color'?: Property.BackgroundColor;
|
|
51
|
+
'--ring-disabled-selected-background-color'?: Property.BackgroundColor;
|
|
51
52
|
'--ring-button-danger-active-color'?: Property.BackgroundColor;
|
|
52
53
|
'--ring-button-loader-background'?: Property.BackgroundColor;
|
|
53
54
|
'--ring-button-primary-background-color'?: Property.BackgroundColor;
|
package/dist/http/http.d.ts
CHANGED
|
@@ -42,8 +42,8 @@ export default class HTTP implements Partial<HTTPAuth> {
|
|
|
42
42
|
private static _isErrorStatus;
|
|
43
43
|
fetch: (url: string, params?: FetchParams) => Promise<any>;
|
|
44
44
|
authorizedFetch(...args: Parameters<HTTP['_performRequest']>): Promise<any>;
|
|
45
|
-
request: (url: string, params?: RequestParams
|
|
45
|
+
request: (url: string, params?: RequestParams) => Promise<any>;
|
|
46
46
|
getMetaForResponse: (response: object) => Partial<Response> | undefined;
|
|
47
|
-
get: (url: string, params?: RequestParams
|
|
48
|
-
post: (url: string, params?: RequestParams
|
|
47
|
+
get: (url: string, params?: RequestParams) => Promise<any>;
|
|
48
|
+
post: (url: string, params?: RequestParams) => Promise<any>;
|
|
49
49
|
}
|
package/dist/list/list.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export default class List<T = unknown> extends Component<ListProps<T>, ListState
|
|
|
166
166
|
moveHandler(index: number, retryCallback: (e: KeyboardEvent) => void, e: KeyboardEvent): void;
|
|
167
167
|
mouseHandler: () => void;
|
|
168
168
|
scrollHandler: () => void;
|
|
169
|
-
enterHandler: (event: KeyboardEvent, shortcut?: string
|
|
169
|
+
enterHandler: (event: KeyboardEvent, shortcut?: string) => boolean;
|
|
170
170
|
getFirst(): ListDataItem<T> | undefined;
|
|
171
171
|
getSelected(): ListDataItem<T> | null;
|
|
172
172
|
clearSelected: () => void;
|
|
@@ -2,6 +2,7 @@ import { PureComponent } from 'react';
|
|
|
2
2
|
import { Options } from 'react-markdown';
|
|
3
3
|
export interface BaseMarkdownProps {
|
|
4
4
|
inline?: boolean | null | undefined;
|
|
5
|
+
plugins?: Options['remarkPlugins'];
|
|
5
6
|
}
|
|
6
7
|
export declare type MarkdownProps = Options & BaseMarkdownProps;
|
|
7
8
|
/**
|
|
@@ -7,12 +7,12 @@ const MAJOR_VERSION_INDEX = 0;
|
|
|
7
7
|
* SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
if (!["and_chr
|
|
10
|
+
if (!["and_chr 102", "chrome 102", "chrome 101", "chrome 100", "edge 101", "firefox 100", "ios_saf 15.4", "ios_saf 15.2-15.3", "ios_saf 14.5-14.8", "safari 15.4"]) {
|
|
11
11
|
// eslint-disable-next-line no-console
|
|
12
12
|
console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const SUPPORTED = ["and_chr
|
|
15
|
+
const SUPPORTED = ["and_chr 102", "chrome 102", "chrome 101", "chrome 100", "edge 101", "firefox 100", "ios_saf 15.4", "ios_saf 15.2-15.3", "ios_saf 14.5-14.8", "safari 15.4"] || [];
|
|
16
16
|
const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
|
|
17
17
|
const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
|
18
18
|
var _item$match;
|
package/dist/pager/pager.js
CHANGED
|
@@ -22,6 +22,7 @@ import 'util-deprecate';
|
|
|
22
22
|
import '../_helpers/icon.js';
|
|
23
23
|
import '../icon/icon__svg.js';
|
|
24
24
|
import 'core-js/modules/es.string.replace.js';
|
|
25
|
+
import '../global/data-tests.js';
|
|
25
26
|
import '../button-group/caption.js';
|
|
26
27
|
import '../_helpers/button-group.js';
|
|
27
28
|
import '../_helpers/button-toolbar.js';
|
|
@@ -29,7 +30,6 @@ import '@jetbrains/icons/chevron-down';
|
|
|
29
30
|
import '@jetbrains/icons/close-12px';
|
|
30
31
|
import 'deep-equal';
|
|
31
32
|
import '../dropdown/dropdown.js';
|
|
32
|
-
import '../global/data-tests.js';
|
|
33
33
|
import '../global/typescript-utils.js';
|
|
34
34
|
import '../_helpers/anchor.js';
|
|
35
35
|
import '../avatar/avatar.js';
|
|
@@ -26,6 +26,7 @@ import '../link/clickableLink.js';
|
|
|
26
26
|
import '../global/controls-height.js';
|
|
27
27
|
import '../_helpers/button__classes.js';
|
|
28
28
|
import '../button-group/button-group.js';
|
|
29
|
+
import '../global/data-tests.js';
|
|
29
30
|
import '../button-group/caption.js';
|
|
30
31
|
import '../_helpers/button-group.js';
|
|
31
32
|
import '../button-toolbar/button-toolbar.js';
|
|
@@ -35,7 +36,6 @@ import '@jetbrains/icons/chevron-down';
|
|
|
35
36
|
import '@jetbrains/icons/close-12px';
|
|
36
37
|
import 'deep-equal';
|
|
37
38
|
import '../dropdown/dropdown.js';
|
|
38
|
-
import '../global/data-tests.js';
|
|
39
39
|
import '../global/typescript-utils.js';
|
|
40
40
|
import '../_helpers/anchor.js';
|
|
41
41
|
import '../avatar/avatar.js';
|
|
@@ -244,7 +244,7 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
244
244
|
handleInput: (e: Event | SyntheticEvent) => void;
|
|
245
245
|
handleEnter: (e: React.KeyboardEvent) => void;
|
|
246
246
|
handleTab: (e: Event) => boolean | void;
|
|
247
|
-
setState: (state: Partial<QueryAssistState>, resolve?: (
|
|
247
|
+
setState: (state: Partial<QueryAssistState>, resolve?: () => void) => void;
|
|
248
248
|
private _pushHistory;
|
|
249
249
|
undo: (e: Event) => void;
|
|
250
250
|
handlePaste: (e: React.ClipboardEvent) => void;
|
|
@@ -252,7 +252,7 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
252
252
|
handleStyleRangesResponse: ({ suggestions, ...restProps }: QueryAssistResponse) => Promise<void>;
|
|
253
253
|
handleResponse: ({ query, caret, styleRanges, suggestions }: QueryAssistResponse, afterCompletion?: boolean) => Promise<void>;
|
|
254
254
|
handleApply: () => void;
|
|
255
|
-
handleComplete: (data?: SuggestionItem
|
|
255
|
+
handleComplete: (data?: SuggestionItem, replace?: boolean) => void;
|
|
256
256
|
requestStyleRanges: () => Promise<void>;
|
|
257
257
|
requestHandler: (afterCompletion?: boolean) => Promise<void>;
|
|
258
258
|
sendRequest(params: QueryAssistRequestParams): Promise<QueryAssistResponse>;
|
package/dist/select/select.d.ts
CHANGED
|
@@ -229,11 +229,11 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
229
229
|
private _setFilter;
|
|
230
230
|
private _rebuildMultipleMap;
|
|
231
231
|
_redrawPopup: () => void;
|
|
232
|
-
_listSelectHandler: (selected: SelectItem<T>, event?: Event
|
|
232
|
+
_listSelectHandler: (selected: SelectItem<T>, event?: Event, opts?: SelectHandlerParams) => void;
|
|
233
233
|
_listSelectAllHandler: (isSelectAll?: boolean) => void;
|
|
234
234
|
private _onCloseAttempt;
|
|
235
|
-
clearFilter: (e?:
|
|
236
|
-
clear: (event?: Event |
|
|
235
|
+
clearFilter: (e?: SyntheticEvent) => void;
|
|
236
|
+
clear: (event?: Event | SyntheticEvent) => boolean;
|
|
237
237
|
_selectionIsEmpty(): boolean;
|
|
238
238
|
private _getLabel;
|
|
239
239
|
_getSelectedString(): string | null;
|
|
@@ -98,7 +98,7 @@ export default class SelectPopup<T = unknown> extends PureComponent<SelectPopupP
|
|
|
98
98
|
mouseUpHandler: () => void;
|
|
99
99
|
popup?: Popup | null;
|
|
100
100
|
isVisible(): boolean | null | undefined;
|
|
101
|
-
onListSelect: (selected: ListDataItem<T>, event?: Event |
|
|
101
|
+
onListSelect: (selected: ListDataItem<T>, event?: Event | SyntheticEvent, opts?: SelectHandlerParams) => void;
|
|
102
102
|
tabPress: (event: Event) => void;
|
|
103
103
|
onClickHandler: () => void | undefined;
|
|
104
104
|
getFilter(): JSX.Element | null;
|
|
@@ -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(): true | import("react").
|
|
27
|
+
render(): string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | null;
|
|
28
28
|
}
|