@aws-amplify/ui-react 6.1.8 → 6.1.10
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.
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var core = require('@aws-amplify/core');
|
|
5
5
|
var auth = require('aws-amplify/auth');
|
|
6
|
+
var uiReactCore = require('@aws-amplify/ui-react-core');
|
|
6
7
|
var ui = require('@aws-amplify/ui');
|
|
7
8
|
|
|
8
9
|
function _interopNamespace(e) {
|
|
@@ -339,6 +340,18 @@ const useBreakpoint = ({ breakpoints, defaultBreakpoint, }) => {
|
|
|
339
340
|
return breakpoint;
|
|
340
341
|
};
|
|
341
342
|
|
|
343
|
+
/**
|
|
344
|
+
* Logs a deprecation warning `message` to the console.
|
|
345
|
+
*/
|
|
346
|
+
const useDeprecationWarning = ({ message, shouldWarn: _shouldWarn, }) => {
|
|
347
|
+
const shouldWarn = _shouldWarn &&
|
|
348
|
+
// show message on builds without Node `process` polyfill
|
|
349
|
+
// or with process.env.NODE_ENV not production
|
|
350
|
+
(typeof process === 'undefined' ||
|
|
351
|
+
(process && process.env.NODE_ENV !== 'production'));
|
|
352
|
+
uiReactCore.useDeprecationWarning({ message, shouldWarn });
|
|
353
|
+
};
|
|
354
|
+
|
|
342
355
|
/**
|
|
343
356
|
* @internal May be removed in a future version
|
|
344
357
|
* Maps from component style props to React `style` props
|
|
@@ -1176,6 +1189,7 @@ exports.strHasLength = strHasLength;
|
|
|
1176
1189
|
exports.useAuth = useAuth;
|
|
1177
1190
|
exports.useBreakpoint = useBreakpoint;
|
|
1178
1191
|
exports.useColorMode = useColorMode;
|
|
1192
|
+
exports.useDeprecationWarning = useDeprecationWarning;
|
|
1179
1193
|
exports.useDropZone = useDropZone;
|
|
1180
1194
|
exports.useFieldset = useFieldset;
|
|
1181
1195
|
exports.useIcons = useIcons;
|
package/dist/esm/internal.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { useAuth } from './hooks/useAuth.mjs';
|
|
2
2
|
export { useStorageURL } from './hooks/useStorageURL.mjs';
|
|
3
3
|
export { useThemeBreakpoint } from './hooks/useThemeBreakpoint.mjs';
|
|
4
|
+
export { useDeprecationWarning } from './hooks/useDeprecationWarning.mjs';
|
|
4
5
|
export { useColorMode } from './hooks/useTheme.mjs';
|
|
5
6
|
export { FilterChildren } from './components/FilterChildren/FilterChildren.mjs';
|
|
6
7
|
export { AlertIcon } from './primitives/Alert/AlertIcon.mjs';
|
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var isEqual = require('lodash/isEqual.js');
|
|
7
7
|
var uiReactCore = require('@aws-amplify/ui-react-core');
|
|
8
8
|
var ui = require('@aws-amplify/ui');
|
|
9
|
-
var Field = require('./Field-
|
|
9
|
+
var Field = require('./Field-1f747369.js');
|
|
10
10
|
require('aws-amplify/storage');
|
|
11
11
|
var debounce = require('lodash/debounce.js');
|
|
12
12
|
var Dropdown = require('@radix-ui/react-dropdown-menu');
|
|
@@ -2383,7 +2383,7 @@ const defaultDeleteUserDisplayText = {
|
|
|
2383
2383
|
warningText: 'Deleting your account is not reversible. You will lose access to your account and all data associated with it.',
|
|
2384
2384
|
};
|
|
2385
2385
|
|
|
2386
|
-
const VERSION = '6.1.
|
|
2386
|
+
const VERSION = '6.1.10';
|
|
2387
2387
|
|
|
2388
2388
|
const logger$2 = ui.getLogger('AccountSettings');
|
|
2389
2389
|
const getIsDisabled = (formValues, validationError) => {
|
|
@@ -2622,18 +2622,6 @@ DeleteUser.WarningView = DEFAULTS.WarningView;
|
|
|
2622
2622
|
|
|
2623
2623
|
var AccountSettings = { ChangePassword, DeleteUser };
|
|
2624
2624
|
|
|
2625
|
-
/**
|
|
2626
|
-
* Logs a deprecation warning `message` to the console.
|
|
2627
|
-
*/
|
|
2628
|
-
const useDeprecationWarning = ({ message, shouldWarn: _shouldWarn, }) => {
|
|
2629
|
-
const shouldWarn = _shouldWarn &&
|
|
2630
|
-
// show message on builds without Node `process` polyfill
|
|
2631
|
-
// or with process.env.NODE_ENV not production
|
|
2632
|
-
(typeof process === 'undefined' ||
|
|
2633
|
-
(process && process.env.NODE_ENV !== 'production'));
|
|
2634
|
-
uiReactCore.useDeprecationWarning({ message, shouldWarn });
|
|
2635
|
-
};
|
|
2636
|
-
|
|
2637
2625
|
const CustomComponentsContext =
|
|
2638
2626
|
// @ts-ignore
|
|
2639
2627
|
React__namespace.createContext(null);
|
|
@@ -3301,7 +3289,7 @@ const defaultComponents = {
|
|
|
3301
3289
|
// Once the `Provider` is removed from the `Authenticator` component and exported as
|
|
3302
3290
|
// `AuthenticatorProvider`, this component should be renamed to `Authenticator`.
|
|
3303
3291
|
function AuthenticatorInternal({ children, className, components: customComponents, formFields, hideSignUp, initialState, loginMechanisms, passwordSettings, signUpAttributes, services, socialProviders, variation, }) {
|
|
3304
|
-
useDeprecationWarning({
|
|
3292
|
+
Field.useDeprecationWarning({
|
|
3305
3293
|
message: 'The `passwordSettings` prop has been deprecated and will be removed in a future major version of Amplify UI.',
|
|
3306
3294
|
// shouldWarn: !!passwordSettings,
|
|
3307
3295
|
/**
|
package/dist/internal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Field = require('./Field-
|
|
5
|
+
var Field = require('./Field-1f747369.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var Storage = require('aws-amplify/storage');
|
|
8
8
|
var ui = require('@aws-amplify/ui');
|
|
@@ -16402,6 +16402,7 @@ exports.IconVisibilityOff = Field.IconVisibilityOff;
|
|
|
16402
16402
|
exports.IconWarning = Field.IconWarning;
|
|
16403
16403
|
exports.useAuth = Field.useAuth;
|
|
16404
16404
|
exports.useColorMode = Field.useColorMode;
|
|
16405
|
+
exports.useDeprecationWarning = Field.useDeprecationWarning;
|
|
16405
16406
|
exports.useDropZone = Field.useDropZone;
|
|
16406
16407
|
exports.useIcons = Field.useIcons;
|
|
16407
16408
|
exports.FilterChildren = FilterChildren;
|
package/dist/types/internal.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './hooks/useAuth';
|
|
2
2
|
export * from './hooks/useStorageURL';
|
|
3
3
|
export * from './hooks/useThemeBreakpoint';
|
|
4
|
+
export { useDeprecationWarning } from './hooks/useDeprecationWarning';
|
|
4
5
|
export { useColorMode } from './hooks/useTheme';
|
|
5
6
|
export * from './components/FilterChildren';
|
|
6
7
|
export { AlertIcon } from './primitives/Alert/AlertIcon';
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.1.
|
|
1
|
+
export declare const VERSION = "6.1.10";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.10",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"typecheck": "tsc --noEmit"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@aws-amplify/ui": "6.0.
|
|
53
|
-
"@aws-amplify/ui-react-core": "3.0.
|
|
52
|
+
"@aws-amplify/ui": "6.0.15",
|
|
53
|
+
"@aws-amplify/ui-react-core": "3.0.15",
|
|
54
54
|
"@radix-ui/react-direction": "1.0.0",
|
|
55
55
|
"@radix-ui/react-dropdown-menu": "1.0.0",
|
|
56
56
|
"@radix-ui/react-slider": "1.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"tslib": "^2.5.2"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"aws-amplify": "^6.0
|
|
63
|
+
"aws-amplify": "^6.2.0",
|
|
64
64
|
"react": "^16.14.0 || ^17.0 || ^18.0",
|
|
65
65
|
"react-dom": "^16.14.0 || ^17.0 || ^18.0"
|
|
66
66
|
},
|