@cuemath/leap 3.1.6-gg2 → 3.1.6-gg4
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 +1 @@
|
|
1
|
-
{"version":3,"file":"use-modal-params.js","sources":["../../../../src/features/ui/modals/use-modal-params.ts"],"sourcesContent":["import type { IUseModalParams } from './modal-types';\n\nimport { useContext } from 'react';\n\nimport ModalContext from './modal-context';\n\nconst useModalParams: IUseModalParams =
|
1
|
+
{"version":3,"file":"use-modal-params.js","sources":["../../../../src/features/ui/modals/use-modal-params.ts"],"sourcesContent":["import type { IUseModalParams } from './modal-types';\n\nimport { useContext } from 'react';\n\nimport ModalContext from './modal-context';\n\nconst useModalParams: IUseModalParams = <T = undefined>(): T => {\n const { modalParams } = useContext(ModalContext);\n\n return modalParams as T;\n};\n\nexport default useModalParams;\n"],"names":["useModalParams","modalParams","useContext","ModalContext","useModalParams$1"],"mappings":";;AAMA,MAAMA,IAAkC,MAAwB;AAC9D,QAAM,EAAE,aAAAC,EAAA,IAAgBC,EAAWC,CAAY;AAExC,SAAAF;AACT,GAEAG,IAAeJ;"}
|
package/dist/index.d.ts
CHANGED
@@ -2363,7 +2363,7 @@ declare interface IMilestoneWidgetResourcesProps extends INodeCardCallbacks {
|
|
2363
2363
|
/**
|
2364
2364
|
* Configuration for a modal component
|
2365
2365
|
*/
|
2366
|
-
declare interface IModal {
|
2366
|
+
export declare interface IModal {
|
2367
2367
|
/** Unique identifier for the modal */
|
2368
2368
|
name: string;
|
2369
2369
|
/** Content to display inside the modal */
|
@@ -3608,7 +3608,7 @@ declare interface IUseModalActions {
|
|
3608
3608
|
}
|
3609
3609
|
|
3610
3610
|
declare interface IUseModalParams {
|
3611
|
-
<T
|
3611
|
+
<T = undefined>(): T;
|
3612
3612
|
}
|
3613
3613
|
|
3614
3614
|
declare interface IusePointerSyncMethods {
|