@plasmicpkgs/antd5 0.0.193 → 0.0.195
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/dist/.tsbuildinfo +1 -1
- package/dist/antd.esm.js +51 -35
- package/dist/antd.esm.js.map +1 -1
- package/dist/index.js +51 -35
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/skinny/registerConfigProvider.cjs.js +51 -35
- package/skinny/registerConfigProvider.cjs.js.map +1 -1
- package/skinny/registerConfigProvider.esm.js +51 -35
- package/skinny/registerConfigProvider.esm.js.map +1 -1
package/dist/antd.esm.js
CHANGED
|
@@ -4017,13 +4017,13 @@ function InnerConfigProvider(props) {
|
|
|
4017
4017
|
const app = useAppContext();
|
|
4018
4018
|
const actions = React.useMemo(
|
|
4019
4019
|
() => ({
|
|
4020
|
-
showNotification: (
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
})
|
|
4020
|
+
showNotification: (type, message2, description, duration, placement) => {
|
|
4021
|
+
app.notification[type != null ? type : "info"]({
|
|
4022
|
+
message: message2 == null ? void 0 : message2.toString(),
|
|
4023
|
+
description: description == null ? void 0 : description.toString(),
|
|
4024
|
+
duration,
|
|
4025
|
+
placement
|
|
4026
|
+
});
|
|
4027
4027
|
},
|
|
4028
4028
|
hideNotifications: () => {
|
|
4029
4029
|
app.notification.destroy();
|
|
@@ -4427,43 +4427,59 @@ const registerConfigProvider = makeRegisterGlobalContext(
|
|
|
4427
4427
|
}
|
|
4428
4428
|
}
|
|
4429
4429
|
}, {
|
|
4430
|
-
|
|
4430
|
+
globalActions: {
|
|
4431
4431
|
showNotification: {
|
|
4432
4432
|
displayName: "Show notification",
|
|
4433
|
-
parameters:
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4433
|
+
parameters: [
|
|
4434
|
+
{
|
|
4435
|
+
name: "type",
|
|
4436
|
+
type: {
|
|
4437
|
+
type: "choice",
|
|
4438
|
+
options: ["success", "error", "info", "warning"],
|
|
4439
|
+
defaultValue: "info"
|
|
4440
|
+
}
|
|
4438
4441
|
},
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
+
{
|
|
4443
|
+
name: "message",
|
|
4444
|
+
type: {
|
|
4445
|
+
type: "string",
|
|
4446
|
+
defaultValue: "A message for you!"
|
|
4447
|
+
}
|
|
4442
4448
|
},
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4449
|
+
{
|
|
4450
|
+
name: "description",
|
|
4451
|
+
type: {
|
|
4452
|
+
type: "string",
|
|
4453
|
+
defaultValue: "Would you like to learn more?"
|
|
4454
|
+
}
|
|
4446
4455
|
},
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4456
|
+
{
|
|
4457
|
+
name: "duration",
|
|
4458
|
+
type: {
|
|
4459
|
+
type: "number",
|
|
4460
|
+
defaultValueHint: 5
|
|
4461
|
+
}
|
|
4450
4462
|
},
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
"
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4463
|
+
{
|
|
4464
|
+
name: "placement",
|
|
4465
|
+
type: {
|
|
4466
|
+
type: "choice",
|
|
4467
|
+
options: [
|
|
4468
|
+
"top",
|
|
4469
|
+
"topLeft",
|
|
4470
|
+
"topRight",
|
|
4471
|
+
"bottom",
|
|
4472
|
+
"bottomLeft",
|
|
4473
|
+
"bottomRight"
|
|
4474
|
+
],
|
|
4475
|
+
defaultValueHint: "topRight"
|
|
4476
|
+
}
|
|
4462
4477
|
}
|
|
4463
|
-
|
|
4478
|
+
]
|
|
4464
4479
|
},
|
|
4465
4480
|
hideNotifications: {
|
|
4466
|
-
displayName: "Hide notifications"
|
|
4481
|
+
displayName: "Hide notifications",
|
|
4482
|
+
parameters: []
|
|
4467
4483
|
}
|
|
4468
4484
|
}
|
|
4469
4485
|
}), {
|