piral-modals 0.15.11 → 0.15.12-beta.5528
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.
- package/esm/types.d.ts +2 -2
- package/lib/types.d.ts +2 -2
- package/package.json +3 -3
package/esm/types.d.ts
CHANGED
|
@@ -150,8 +150,8 @@ export interface PiralCustomModalsMap {
|
|
|
150
150
|
}
|
|
151
151
|
export interface PiralModalsMap extends PiralCustomModalsMap {
|
|
152
152
|
}
|
|
153
|
-
export
|
|
154
|
-
export
|
|
153
|
+
export type ModalOptions<T> = T extends keyof PiralModalsMap ? PiralModalsMap[T] & BaseModalOptions : T extends string ? BaseModalOptions : T;
|
|
154
|
+
export type ModalComponentProps<T> = BaseComponentProps & BareModalComponentProps<ModalOptions<T>>;
|
|
155
155
|
export interface PiletModalsApi {
|
|
156
156
|
/**
|
|
157
157
|
* Shows a modal dialog with the given name.
|
package/lib/types.d.ts
CHANGED
|
@@ -150,8 +150,8 @@ export interface PiralCustomModalsMap {
|
|
|
150
150
|
}
|
|
151
151
|
export interface PiralModalsMap extends PiralCustomModalsMap {
|
|
152
152
|
}
|
|
153
|
-
export
|
|
154
|
-
export
|
|
153
|
+
export type ModalOptions<T> = T extends keyof PiralModalsMap ? PiralModalsMap[T] & BaseModalOptions : T extends string ? BaseModalOptions : T;
|
|
154
|
+
export type ModalComponentProps<T> = BaseComponentProps & BareModalComponentProps<ModalOptions<T>>;
|
|
155
155
|
export interface PiletModalsApi {
|
|
156
156
|
/**
|
|
157
157
|
* Shows a modal dialog with the given name.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-modals",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.12-beta.5528",
|
|
4
4
|
"description": "Plugin for the display of modal dialogs in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/react": "^18.0.0",
|
|
65
|
-
"piral-core": "
|
|
65
|
+
"piral-core": "0.15.12-beta.5528",
|
|
66
66
|
"react": "^18.0.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"piral-core": "0.14.x || 0.15.x",
|
|
70
70
|
"react": ">=16.8.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "6d97a2baca7ae3e5fb19a754ba55d44b40ed137e"
|
|
73
73
|
}
|