@jetbrains/ring-ui 5.0.12 → 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.
@@ -109,7 +109,7 @@ export default class TagsInput extends PureComponent<TagsInputProps, TagsInputSt
109
109
  loadSuggestions: (query?: string) => void;
110
110
  private _focusHandler;
111
111
  private _blurHandler;
112
- selectTag: (moveForward?: boolean | undefined) => void;
112
+ selectTag: (moveForward?: boolean) => void;
113
113
  handleKeyDown: (event: React.KeyboardEvent) => boolean;
114
114
  handleClick: (arg: TagType) => () => void;
115
115
  handleRemove: (arg: TagType) => () => Promise<void | TagType[]>;
@@ -1,4 +1,4 @@
1
- import { UserAgreementTranslations } from './user-agreement';
1
+ import { UserAgreementAttrs, UserAgreementTranslations } from './user-agreement';
2
2
  export declare const showMessage = "userAgreementShow";
3
3
  export declare const hideMessage = "userAgreementHide";
4
4
  export interface Consent {
@@ -53,61 +53,15 @@ export default class UserAgreementService {
53
53
  private _notifyAboutHiding;
54
54
  getUserAgreement: () => Promise<Agreement>;
55
55
  getUserConsent: () => Promise<Consent>;
56
- checkConsentAndShowDialog: (withoutNotifications?: boolean | undefined) => Promise<unknown>;
56
+ checkConsentAndShowDialog: (withoutNotifications?: boolean) => Promise<unknown>;
57
57
  checkConsent: () => Promise<boolean | null | undefined>;
58
58
  alertKey?: string | number | null;
59
- showAlert: (withoutNotifications?: boolean | undefined) => Promise<unknown>;
60
- hideAlert: (withoutNotifications?: boolean | undefined) => void;
61
- showDialog: (withoutNotifications?: boolean | undefined, preview?: boolean, restOptions?: Partial<Pick<Pick<import("./user-agreement").UserAgreementProps, keyof import("./user-agreement").UserAgreementProps> & Pick<import("prop-types").InferProps<{
62
- show: import("prop-types").Requireable<boolean>;
63
- preview: import("prop-types").Requireable<boolean>;
64
- text: import("prop-types").Validator<string>;
65
- onAccept: import("prop-types").Requireable<(...args: any[]) => any>;
66
- onDecline: import("prop-types").Requireable<(...args: any[]) => any>;
67
- onClose: import("prop-types").Requireable<(...args: any[]) => any>;
68
- onRemindLater: import("prop-types").Requireable<(...args: any[]) => any>;
69
- translations: import("prop-types").Requireable<import("prop-types").InferProps<{
70
- userAgreement: import("prop-types").Validator<string>;
71
- accept: import("prop-types").Validator<string>;
72
- decline: import("prop-types").Validator<string>;
73
- close: import("prop-types").Validator<string>;
74
- scrollToAccept: import("prop-types").Validator<string>;
75
- remindLater: import("prop-types").Validator<string>;
76
- }>>;
77
- className: import("prop-types").Requireable<string>;
78
- }>, never> & Pick<import("./user-agreement").UserAgreementProps, never>, "className" | "text" | "preview" | "onRemindLater"> & {
79
- onClose?: (() => void) | undefined;
80
- show?: boolean | undefined;
81
- translations?: UserAgreementTranslations | undefined;
82
- onAccept?: (() => void) | undefined;
83
- onDecline?: (() => void) | undefined;
84
- } & {}> | undefined) => Promise<unknown>;
85
- hideDialog: (withoutNotifications?: boolean | undefined) => void;
86
- showDialogOrAlert: (withoutNotifications?: boolean | undefined, preview?: boolean | undefined, restOptions?: Partial<Pick<Pick<import("./user-agreement").UserAgreementProps, keyof import("./user-agreement").UserAgreementProps> & Pick<import("prop-types").InferProps<{
87
- show: import("prop-types").Requireable<boolean>;
88
- preview: import("prop-types").Requireable<boolean>;
89
- text: import("prop-types").Validator<string>;
90
- onAccept: import("prop-types").Requireable<(...args: any[]) => any>;
91
- onDecline: import("prop-types").Requireable<(...args: any[]) => any>;
92
- onClose: import("prop-types").Requireable<(...args: any[]) => any>;
93
- onRemindLater: import("prop-types").Requireable<(...args: any[]) => any>;
94
- translations: import("prop-types").Requireable<import("prop-types").InferProps<{
95
- userAgreement: import("prop-types").Validator<string>;
96
- accept: import("prop-types").Validator<string>;
97
- decline: import("prop-types").Validator<string>;
98
- close: import("prop-types").Validator<string>;
99
- scrollToAccept: import("prop-types").Validator<string>;
100
- remindLater: import("prop-types").Validator<string>;
101
- }>>;
102
- className: import("prop-types").Requireable<string>;
103
- }>, never> & Pick<import("./user-agreement").UserAgreementProps, never>, "className" | "text" | "preview" | "onRemindLater"> & {
104
- onClose?: (() => void) | undefined;
105
- show?: boolean | undefined;
106
- translations?: UserAgreementTranslations | undefined;
107
- onAccept?: (() => void) | undefined;
108
- onDecline?: (() => void) | undefined;
109
- } & {}> | undefined) => Promise<unknown>;
110
- hideDialogAndAlert: (withoutNotifications?: boolean | undefined) => void;
59
+ showAlert: (withoutNotifications?: boolean) => Promise<unknown>;
60
+ hideAlert: (withoutNotifications?: boolean) => void;
61
+ showDialog: (withoutNotifications?: boolean, preview?: boolean, restOptions?: Partial<UserAgreementAttrs>) => Promise<unknown>;
62
+ hideDialog: (withoutNotifications?: boolean) => void;
63
+ showDialogOrAlert: (withoutNotifications?: boolean, preview?: boolean, restOptions?: Partial<UserAgreementAttrs>) => Promise<unknown>;
64
+ hideDialogAndAlert: (withoutNotifications?: boolean) => void;
111
65
  onAccept: () => Promise<void>;
112
66
  onDecline: () => void;
113
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "5.0.12",
3
+ "version": "5.0.13",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "readmeFilename": "README.md",
74
74
  "devDependencies": {
75
- "@babel/cli": "^7.17.10",
75
+ "@babel/cli": "^7.18.6",
76
76
  "@babel/eslint-parser": "^7.18.2",
77
77
  "@jetbrains/eslint-config": "^5.4.1",
78
78
  "@jetbrains/stylelint-config": "^3.0.2",
@@ -80,34 +80,34 @@
80
80
  "@rollup/plugin-babel": "^5.3.1",
81
81
  "@rollup/plugin-node-resolve": "^13.3.0",
82
82
  "@rollup/plugin-replace": "^4.0.0",
83
- "@storybook/addon-a11y": "6.5.6",
84
- "@storybook/addon-docs": "6.5.4",
83
+ "@storybook/addon-a11y": "6.5.9",
84
+ "@storybook/addon-docs": "6.5.9",
85
85
  "@storybook/addon-essentials": "6.5.9",
86
- "@storybook/addon-storyshots": "6.5.4",
87
- "@storybook/addon-storyshots-puppeteer": "6.5.4",
88
- "@storybook/addon-storysource": "6.5.4",
89
- "@storybook/addons": "6.5.4",
90
- "@storybook/builder-webpack5": "6.5.4",
91
- "@storybook/client-api": "6.5.4",
86
+ "@storybook/addon-storyshots": "6.5.9",
87
+ "@storybook/addon-storyshots-puppeteer": "6.5.9",
88
+ "@storybook/addon-storysource": "6.5.9",
89
+ "@storybook/addons": "6.5.9",
90
+ "@storybook/builder-webpack5": "6.5.9",
91
+ "@storybook/client-api": "6.5.9",
92
92
  "@storybook/core": "6.5.9",
93
93
  "@storybook/html": "6.5.9",
94
94
  "@storybook/manager-webpack5": "6.5.9",
95
- "@storybook/react": "6.5.4",
95
+ "@storybook/react": "6.5.9",
96
96
  "@storybook/source-loader": "6.5.9",
97
- "@storybook/theming": "6.5.6",
97
+ "@storybook/theming": "6.5.9",
98
98
  "@testing-library/react": "^13.3.0",
99
99
  "@testing-library/user-event": "^14.2.1",
100
100
  "@types/chai": "^4.3.1",
101
101
  "@types/chai-as-promised": "^7.1.5",
102
102
  "@types/chai-dom": "0.0.10",
103
103
  "@types/chai-enzyme": "^0.6.8",
104
- "@types/enzyme": "^3.10.10",
105
- "@types/react": "^18.0.5",
104
+ "@types/enzyme": "^3.10.12",
105
+ "@types/react": "^18.0.14",
106
106
  "@types/react-dom": "^18.0.5",
107
- "@types/sinon": "^10.0.2",
108
- "@types/sinon-chai": "^3.2.5",
107
+ "@types/sinon": "^10.0.12",
108
+ "@types/sinon-chai": "^3.2.8",
109
109
  "@typescript-eslint/eslint-plugin": "^5.3.1",
110
- "@typescript-eslint/parser": "^5.3.1",
110
+ "@typescript-eslint/parser": "^5.30.0",
111
111
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
112
112
  "angular": "^1.8.3",
113
113
  "angular-mocks": "^1.8.3",
@@ -119,7 +119,7 @@
119
119
  "chai-dom": "^1.10.0",
120
120
  "chai-enzyme": "1.0.0-beta.1",
121
121
  "cheerio": "^0.22.0",
122
- "core-js": "^3.23.2",
122
+ "core-js": "^3.23.3",
123
123
  "cpy-cli": "^3.1.1",
124
124
  "enzyme": "^3.11.0",
125
125
  "eslint": "^8.18.0",
@@ -127,14 +127,14 @@
127
127
  "eslint-plugin-angular": "^4.1.0",
128
128
  "eslint-plugin-bdd": "^2.1.1",
129
129
  "eslint-plugin-import": "^2.26.0",
130
- "eslint-plugin-jsx-a11y": "^6.5.1",
131
- "eslint-plugin-react": "^7.29.4",
130
+ "eslint-plugin-jsx-a11y": "^6.6.0",
131
+ "eslint-plugin-react": "^7.30.1",
132
132
  "events": "^3.3.0",
133
- "glob": "^7.2.0",
133
+ "glob": "^8.0.3",
134
134
  "html-webpack-plugin": "^5.5.0",
135
135
  "husky": "^8.0.1",
136
136
  "identity-obj-proxy": "^3.0.0",
137
- "imports-loader": "^3.1.1",
137
+ "imports-loader": "^4.0.0",
138
138
  "jest": "~27.5.1",
139
139
  "jest-teamcity": "^1.10.0",
140
140
  "karma": "^6.4.0",
@@ -143,14 +143,14 @@
143
143
  "karma-sourcemap-loader": "^0.3.8",
144
144
  "karma-teamcity-reporter": "^2.0.0",
145
145
  "karma-webpack": "^5.0.0",
146
- "lerna": "^5.1.4",
147
- "lint-staged": "^13.0.2",
146
+ "lerna": "^5.1.6",
147
+ "lint-staged": "^13.0.3",
148
148
  "merge-options": "^3.0.4",
149
149
  "mocha": "^10.0.0",
150
150
  "pinst": "^3.0.0",
151
- "puppeteer": "^15.1.1",
151
+ "puppeteer": "^15.2.0",
152
152
  "raw-loader": "^4.0.2",
153
- "react": "^18.0.0",
153
+ "react": "^18.2.0",
154
154
  "react-dom": "^18.2.0",
155
155
  "react-test-renderer": "^18.2.0",
156
156
  "regenerator-runtime": "^0.13.9",
@@ -158,14 +158,14 @@
158
158
  "rollup": "^2.75.7",
159
159
  "rollup-plugin-clear": "^2.0.7",
160
160
  "rollup-plugin-styles": "^4.0.0",
161
- "sinon": "^13.0.1",
161
+ "sinon": "^14.0.0",
162
162
  "sinon-chai": "^3.7.0",
163
163
  "storage-mock": "^2.1.0",
164
- "stylelint": "^14.6.1",
164
+ "stylelint": "^14.9.1",
165
165
  "svg-inline-loader": "^0.8.2",
166
166
  "teamcity-service-messages": "^0.1.14",
167
167
  "terser-webpack-plugin": "^5.3.3",
168
- "typescript": "~4.6.4",
168
+ "typescript": "~4.7.4",
169
169
  "wallaby-webpack": "^3.9.16",
170
170
  "webpack": "^5.73.0",
171
171
  "webpack-cli": "^4.10.0",
@@ -192,11 +192,11 @@
192
192
  }
193
193
  },
194
194
  "dependencies": {
195
- "@babel/core": "^7.18.5",
196
- "@babel/preset-typescript": "^7.17.12",
195
+ "@babel/core": "^7.18.6",
196
+ "@babel/preset-typescript": "^7.18.6",
197
197
  "@jetbrains/babel-preset-jetbrains": "^2.3.2",
198
198
  "@jetbrains/icons": "^3.19.1",
199
- "@jetbrains/logos": "^1.4.27",
199
+ "@jetbrains/logos": "^2.0.3",
200
200
  "@jetbrains/postcss-require-hover": "^0.1.2",
201
201
  "@types/combokeys": "^2.4.6",
202
202
  "@types/deep-equal": "^1.0.1",
@@ -215,13 +215,13 @@
215
215
  "compile-code-loader": "^1.0.0",
216
216
  "css-loader": "^6.7.1",
217
217
  "csstype": "^3.1.0",
218
- "date-fns": "^2.27.0",
218
+ "date-fns": "^2.28.0",
219
219
  "deep-equal": "^2.0.4",
220
220
  "element-resize-detector": "^1.2.4",
221
221
  "es6-error": "^4.1.1",
222
222
  "eslint-plugin-react-hooks": "^4.6.0",
223
223
  "extricate-loader": "^3.0.0",
224
- "fastdom": "^1.0.10",
224
+ "fastdom": "^1.0.11",
225
225
  "file-loader": "^6.2.0",
226
226
  "focus-trap": "^6.9.4",
227
227
  "focus-visible": "^5.2.0",
@@ -236,18 +236,18 @@
236
236
  "postcss-font-family-system-ui": "^5.0.0",
237
237
  "postcss-loader": "^7.0.0",
238
238
  "postcss-modules-values-replace": "^3.4.0",
239
- "postcss-preset-env": "^7.4.3",
239
+ "postcss-preset-env": "^7.7.2",
240
240
  "prop-types": "^15.8.1",
241
241
  "react-markdown": "^8.0.3",
242
242
  "react-movable": "^3.0.4",
243
243
  "react-virtualized": "^9.22.3",
244
- "react-waypoint": "^10.1.0",
244
+ "react-waypoint": "^10.3.0",
245
245
  "remark-breaks": "^3.0.2",
246
246
  "remark-gfm": "^3.0.1",
247
247
  "scrollbar-width": "^3.1.1",
248
248
  "simply-uuid": "^1.0.1",
249
249
  "sniffr": "^1.2.0",
250
- "storybook-zeplin": "^1.7.0",
250
+ "storybook-zeplin": "^1.7.2",
251
251
  "style-inject": "^0.3.0",
252
252
  "style-loader": "~3.3.1",
253
253
  "url-loader": "^4.1.1",
@@ -257,5 +257,5 @@
257
257
  "node": ">=14.0",
258
258
  "npm": ">=6.0.0"
259
259
  },
260
- "gitHead": "5edfd7cf1680b1f8b489a998b6d1384a359cd2f7"
260
+ "gitHead": "159d032e44b0ec9606525e8477017641019af26b"
261
261
  }