@plasmicpkgs/antd5 0.0.194 → 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/index.js
CHANGED
|
@@ -4034,13 +4034,13 @@ function InnerConfigProvider(props) {
|
|
|
4034
4034
|
const app = useAppContext();
|
|
4035
4035
|
const actions = React__default.default.useMemo(
|
|
4036
4036
|
() => ({
|
|
4037
|
-
showNotification: (
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
})
|
|
4037
|
+
showNotification: (type, message2, description, duration, placement) => {
|
|
4038
|
+
app.notification[type != null ? type : "info"]({
|
|
4039
|
+
message: message2 == null ? void 0 : message2.toString(),
|
|
4040
|
+
description: description == null ? void 0 : description.toString(),
|
|
4041
|
+
duration,
|
|
4042
|
+
placement
|
|
4043
|
+
});
|
|
4044
4044
|
},
|
|
4045
4045
|
hideNotifications: () => {
|
|
4046
4046
|
app.notification.destroy();
|
|
@@ -4444,43 +4444,59 @@ const registerConfigProvider = makeRegisterGlobalContext(
|
|
|
4444
4444
|
}
|
|
4445
4445
|
}
|
|
4446
4446
|
}, {
|
|
4447
|
-
|
|
4447
|
+
globalActions: {
|
|
4448
4448
|
showNotification: {
|
|
4449
4449
|
displayName: "Show notification",
|
|
4450
|
-
parameters:
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4450
|
+
parameters: [
|
|
4451
|
+
{
|
|
4452
|
+
name: "type",
|
|
4453
|
+
type: {
|
|
4454
|
+
type: "choice",
|
|
4455
|
+
options: ["success", "error", "info", "warning"],
|
|
4456
|
+
defaultValue: "info"
|
|
4457
|
+
}
|
|
4455
4458
|
},
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
+
{
|
|
4460
|
+
name: "message",
|
|
4461
|
+
type: {
|
|
4462
|
+
type: "string",
|
|
4463
|
+
defaultValue: "A message for you!"
|
|
4464
|
+
}
|
|
4459
4465
|
},
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4466
|
+
{
|
|
4467
|
+
name: "description",
|
|
4468
|
+
type: {
|
|
4469
|
+
type: "string",
|
|
4470
|
+
defaultValue: "Would you like to learn more?"
|
|
4471
|
+
}
|
|
4463
4472
|
},
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4473
|
+
{
|
|
4474
|
+
name: "duration",
|
|
4475
|
+
type: {
|
|
4476
|
+
type: "number",
|
|
4477
|
+
defaultValueHint: 5
|
|
4478
|
+
}
|
|
4467
4479
|
},
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
"
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4480
|
+
{
|
|
4481
|
+
name: "placement",
|
|
4482
|
+
type: {
|
|
4483
|
+
type: "choice",
|
|
4484
|
+
options: [
|
|
4485
|
+
"top",
|
|
4486
|
+
"topLeft",
|
|
4487
|
+
"topRight",
|
|
4488
|
+
"bottom",
|
|
4489
|
+
"bottomLeft",
|
|
4490
|
+
"bottomRight"
|
|
4491
|
+
],
|
|
4492
|
+
defaultValueHint: "topRight"
|
|
4493
|
+
}
|
|
4479
4494
|
}
|
|
4480
|
-
|
|
4495
|
+
]
|
|
4481
4496
|
},
|
|
4482
4497
|
hideNotifications: {
|
|
4483
|
-
displayName: "Hide notifications"
|
|
4498
|
+
displayName: "Hide notifications",
|
|
4499
|
+
parameters: []
|
|
4484
4500
|
}
|
|
4485
4501
|
}
|
|
4486
4502
|
}), {
|