@elliemae/ds-hooks-on-blur-out 3.80.0-next.53 → 3.80.0-next.55
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.
|
@@ -49,6 +49,7 @@ const useOnBlurOut = ({ onBlur }) => (0, import_react.useCallback)(
|
|
|
49
49
|
},
|
|
50
50
|
[onBlur]
|
|
51
51
|
);
|
|
52
|
+
useOnBlurOut.displayName = "useOnBlurOut";
|
|
52
53
|
const UseOnBlurOutWithSchema = (0, import_ds_props_helpers.describe)(useOnBlurOut);
|
|
53
54
|
UseOnBlurOutWithSchema.propTypes = propTypes;
|
|
54
55
|
UseOnBlurOutWithSchema.returnType = import_ds_props_helpers.PropTypes.func.description("On blur event callback for input").signature("((e: React.FocusEvent, ...args: unknown[]) => void)");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSHooksOnBlurOut.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport { useCallback } from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\nimport { type DSHooksUseOBlurOutT } from './react-desc-prop-types.js';\nconst propTypes = {\n onBlur: PropTypes.func\n .description('The function to be invoked when focus exits the wrapping container')\n .signature('((e: React.FocusEvent, ...args: unknown[]) => void)').isRequired,\n} as WeakValidationMap<unknown>;\n\nconst useOnBlurOut: DSHooksUseOBlurOutT.UseOnBlurOut = ({ onBlur }) =>\n useCallback<DSHooksUseOBlurOutT.OnBlurCb>(\n (e, ...args) => {\n const { currentTarget } = e;\n // Give browser time to focus the next element\n requestAnimationFrame(() => {\n // Check if the new focused element is a child of the original container\n if (!currentTarget.contains(document.activeElement)) {\n onBlur(e, ...args);\n }\n });\n },\n [onBlur],\n );\n\nconst UseOnBlurOutWithSchema = describe(useOnBlurOut);\nUseOnBlurOutWithSchema.propTypes = propTypes;\nUseOnBlurOutWithSchema.returnType = PropTypes.func\n .description('On blur event callback for input')\n .signature('((e: React.FocusEvent, ...args: unknown[]) => void)');\n\nexport { useOnBlurOut, UseOnBlurOutWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAA4B;AAC5B,8BAAoC;AAEpC,MAAM,YAAY;AAAA,EAChB,QAAQ,kCAAU,KACf,YAAY,oEAAoE,EAChF,UAAU,qDAAqD,EAAE;AACtE;AAEA,MAAM,
|
|
4
|
+
"sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport { useCallback } from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\nimport { type DSHooksUseOBlurOutT } from './react-desc-prop-types.js';\nconst propTypes = {\n onBlur: PropTypes.func\n .description('The function to be invoked when focus exits the wrapping container')\n .signature('((e: React.FocusEvent, ...args: unknown[]) => void)').isRequired,\n} as WeakValidationMap<unknown>;\n\nconst useOnBlurOut: DSHooksUseOBlurOutT.UseOnBlurOut & { displayName: string } = ({ onBlur }) =>\n useCallback<DSHooksUseOBlurOutT.OnBlurCb>(\n (e, ...args) => {\n const { currentTarget } = e;\n // Give browser time to focus the next element\n requestAnimationFrame(() => {\n // Check if the new focused element is a child of the original container\n if (!currentTarget.contains(document.activeElement)) {\n onBlur(e, ...args);\n }\n });\n },\n [onBlur],\n );\n\nuseOnBlurOut.displayName = 'useOnBlurOut';\nconst UseOnBlurOutWithSchema = describe(useOnBlurOut);\nUseOnBlurOutWithSchema.propTypes = propTypes;\nUseOnBlurOutWithSchema.returnType = PropTypes.func\n .description('On blur event callback for input')\n .signature('((e: React.FocusEvent, ...args: unknown[]) => void)');\n\nexport { useOnBlurOut, UseOnBlurOutWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAA4B;AAC5B,8BAAoC;AAEpC,MAAM,YAAY;AAAA,EAChB,QAAQ,kCAAU,KACf,YAAY,oEAAoE,EAChF,UAAU,qDAAqD,EAAE;AACtE;AAEA,MAAM,eAA2E,CAAC,EAAE,OAAO,UACzF;AAAA,EACE,CAAC,MAAM,SAAS;AACd,UAAM,EAAE,cAAc,IAAI;AAE1B,0BAAsB,MAAM;AAE1B,UAAI,CAAC,cAAc,SAAS,SAAS,aAAa,GAAG;AACnD,eAAO,GAAG,GAAG,IAAI;AAAA,MACnB;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,CAAC,MAAM;AACT;AAEF,aAAa,cAAc;AAC3B,MAAM,6BAAyB,kCAAS,YAAY;AACpD,uBAAuB,YAAY;AACnC,uBAAuB,aAAa,kCAAU,KAC3C,YAAY,kCAAkC,EAC9C,UAAU,qDAAqD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -15,6 +15,7 @@ const useOnBlurOut = ({ onBlur }) => useCallback(
|
|
|
15
15
|
},
|
|
16
16
|
[onBlur]
|
|
17
17
|
);
|
|
18
|
+
useOnBlurOut.displayName = "useOnBlurOut";
|
|
18
19
|
const UseOnBlurOutWithSchema = describe(useOnBlurOut);
|
|
19
20
|
UseOnBlurOutWithSchema.propTypes = propTypes;
|
|
20
21
|
UseOnBlurOutWithSchema.returnType = PropTypes.func.description("On blur event callback for input").signature("((e: React.FocusEvent, ...args: unknown[]) => void)");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSHooksOnBlurOut.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { WeakValidationMap } from 'react';\nimport { useCallback } from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\nimport { type DSHooksUseOBlurOutT } from './react-desc-prop-types.js';\nconst propTypes = {\n onBlur: PropTypes.func\n .description('The function to be invoked when focus exits the wrapping container')\n .signature('((e: React.FocusEvent, ...args: unknown[]) => void)').isRequired,\n} as WeakValidationMap<unknown>;\n\nconst useOnBlurOut: DSHooksUseOBlurOutT.UseOnBlurOut = ({ onBlur }) =>\n useCallback<DSHooksUseOBlurOutT.OnBlurCb>(\n (e, ...args) => {\n const { currentTarget } = e;\n // Give browser time to focus the next element\n requestAnimationFrame(() => {\n // Check if the new focused element is a child of the original container\n if (!currentTarget.contains(document.activeElement)) {\n onBlur(e, ...args);\n }\n });\n },\n [onBlur],\n );\n\nconst UseOnBlurOutWithSchema = describe(useOnBlurOut);\nUseOnBlurOutWithSchema.propTypes = propTypes;\nUseOnBlurOutWithSchema.returnType = PropTypes.func\n .description('On blur event callback for input')\n .signature('((e: React.FocusEvent, ...args: unknown[]) => void)');\n\nexport { useOnBlurOut, UseOnBlurOutWithSchema };\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,mBAAmB;AAC5B,SAAS,UAAU,iBAAiB;AAEpC,MAAM,YAAY;AAAA,EAChB,QAAQ,UAAU,KACf,YAAY,oEAAoE,EAChF,UAAU,qDAAqD,EAAE;AACtE;AAEA,MAAM,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { WeakValidationMap } from 'react';\nimport { useCallback } from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\nimport { type DSHooksUseOBlurOutT } from './react-desc-prop-types.js';\nconst propTypes = {\n onBlur: PropTypes.func\n .description('The function to be invoked when focus exits the wrapping container')\n .signature('((e: React.FocusEvent, ...args: unknown[]) => void)').isRequired,\n} as WeakValidationMap<unknown>;\n\nconst useOnBlurOut: DSHooksUseOBlurOutT.UseOnBlurOut & { displayName: string } = ({ onBlur }) =>\n useCallback<DSHooksUseOBlurOutT.OnBlurCb>(\n (e, ...args) => {\n const { currentTarget } = e;\n // Give browser time to focus the next element\n requestAnimationFrame(() => {\n // Check if the new focused element is a child of the original container\n if (!currentTarget.contains(document.activeElement)) {\n onBlur(e, ...args);\n }\n });\n },\n [onBlur],\n );\n\nuseOnBlurOut.displayName = 'useOnBlurOut';\nconst UseOnBlurOutWithSchema = describe(useOnBlurOut);\nUseOnBlurOutWithSchema.propTypes = propTypes;\nUseOnBlurOutWithSchema.returnType = PropTypes.func\n .description('On blur event callback for input')\n .signature('((e: React.FocusEvent, ...args: unknown[]) => void)');\n\nexport { useOnBlurOut, UseOnBlurOutWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,mBAAmB;AAC5B,SAAS,UAAU,iBAAiB;AAEpC,MAAM,YAAY;AAAA,EAChB,QAAQ,UAAU,KACf,YAAY,oEAAoE,EAChF,UAAU,qDAAqD,EAAE;AACtE;AAEA,MAAM,eAA2E,CAAC,EAAE,OAAO,MACzF;AAAA,EACE,CAAC,MAAM,SAAS;AACd,UAAM,EAAE,cAAc,IAAI;AAE1B,0BAAsB,MAAM;AAE1B,UAAI,CAAC,cAAc,SAAS,SAAS,aAAa,GAAG;AACnD,eAAO,GAAG,GAAG,IAAI;AAAA,MACnB;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,CAAC,MAAM;AACT;AAEF,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY;AACpD,uBAAuB,YAAY;AACnC,uBAAuB,aAAa,UAAU,KAC3C,YAAY,kCAAkC,EAC9C,UAAU,qDAAqD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type DSHooksUseOBlurOutT } from './react-desc-prop-types.js';
|
|
2
|
-
declare const useOnBlurOut: DSHooksUseOBlurOutT.UseOnBlurOut
|
|
2
|
+
declare const useOnBlurOut: DSHooksUseOBlurOutT.UseOnBlurOut & {
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
3
5
|
declare const UseOnBlurOutWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
4
6
|
onBlur: DSHooksUseOBlurOutT.OnBlurCb;
|
|
5
7
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-hooks-on-blur-out",
|
|
3
|
-
"version": "3.80.0-next.
|
|
3
|
+
"version": "3.80.0-next.55",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Hooks On Blur Out",
|
|
6
6
|
"files": [
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-props-helpers": "3.80.0-next.
|
|
39
|
+
"@elliemae/ds-props-helpers": "3.80.0-next.55"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@elliemae/ds-monorepo-devops": "3.80.0-next.
|
|
42
|
+
"@elliemae/ds-monorepo-devops": "3.80.0-next.55"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"lodash-es": "^4.18.1",
|