@aws-amplify/ui 5.5.3 → 5.5.4

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.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * This file contains helpers that process authenticator state machine context
3
+ */
1
4
  import { AuthContext, AuthMachineState } from '../../types';
2
5
  export declare const getPrimaryAlias: (state: AuthMachineState) => "email" | "phone_number" | "username";
3
6
  /**
@@ -1,12 +1,7 @@
1
+ declare type BreakpointKey = 'base' | 'small' | 'medium' | 'large' | 'xl' | 'xxl';
1
2
  export interface Breakpoints {
2
- values: {
3
- base: number;
4
- small: number;
5
- medium: number;
6
- large: number;
7
- xl: number;
8
- xxl: number;
9
- };
10
- defaultBreakpoint: string;
3
+ values: Record<BreakpointKey, number>;
4
+ defaultBreakpoint: BreakpointKey;
11
5
  }
12
6
  export declare const breakpoints: Breakpoints;
7
+ export {};
@@ -109,7 +109,7 @@ export interface DefaultTheme extends Pick<Theme, 'name' | 'overrides'> {
109
109
  * on the design tokens and all design tokens have added fields
110
110
  * to be used in Javascript/Typescript.
111
111
  */
112
- export interface WebTheme extends Pick<Theme, 'breakpoints' | 'name' | 'overrides'> {
112
+ export interface WebTheme extends Pick<DefaultTheme, 'breakpoints' | 'name' | 'overrides'> {
113
113
  cssText: string;
114
114
  tokens: WebTokens;
115
115
  }
@@ -1,3 +1,24 @@
1
+ /**
2
+ * We re-export any lodash imports to avoid appending .js extension across codebase
3
+ * The ultimate goal is have replacement implementation to remove the entire dependency
4
+ */
5
+ export { default as isEqual } from 'lodash/isEqual.js';
6
+ export { default as isEmpty } from 'lodash/isEmpty.js';
7
+ export { default as debounce } from 'lodash/debounce.js';
8
+ export { default as isNil } from 'lodash/isNil.js';
9
+ export { default as includes } from 'lodash/includes.js';
10
+ export { default as get } from 'lodash/get.js';
11
+ export { default as pickBy } from 'lodash/pickBy.js';
12
+ export { default as has } from 'lodash/has.js';
13
+ export { default as kebabCase } from 'lodash/kebabCase.js';
14
+ export { default as merge } from 'lodash/merge.js';
15
+ /**
16
+ * Some libraries may not follow Node ES module spec and could be loaded as CommonJS modules,
17
+ * To ensure the interoperability between ESM and CJS, modules from those libraries have to be loaded via namespace import
18
+ * And sanitized by the function below because unlike ESM namespace, CJS namespace set `module.exports` object on the `default` key
19
+ * https://nodejs.org/api/esm.html#interoperability-with-commonjs
20
+ */
21
+ export declare const sanitizeNamespaceImport: <T>(namespaceModule: T) => T;
1
22
  /**
2
23
  * Checks if `value` is an Object (non-primitive, non-array, non-function)
3
24
  * Will return false for Arrays and functions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "5.5.3",
3
+ "version": "5.5.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {