@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/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: (opts) => {
4038
- var _b, _c, _d;
4039
- const _a = opts, rest = __objRest$d(_a, ["type"]);
4040
- app.notification[(_b = opts.type) != null ? _b : "info"](__spreadProps$b(__spreadValues$j({}, rest), {
4041
- message: (_c = rest.message) == null ? void 0 : _c.toString(),
4042
- description: (_d = rest.description) == null ? void 0 : _d.toString()
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
- unstable__globalActions: {
4447
+ globalActions: {
4448
4448
  showNotification: {
4449
4449
  displayName: "Show notification",
4450
- parameters: {
4451
- type: {
4452
- type: "choice",
4453
- options: ["success", "error", "info", "warning"],
4454
- defaultValue: "info"
4450
+ parameters: [
4451
+ {
4452
+ name: "type",
4453
+ type: {
4454
+ type: "choice",
4455
+ options: ["success", "error", "info", "warning"],
4456
+ defaultValue: "info"
4457
+ }
4455
4458
  },
4456
- message: {
4457
- type: "string",
4458
- defaultValue: "A message for you!"
4459
+ {
4460
+ name: "message",
4461
+ type: {
4462
+ type: "string",
4463
+ defaultValue: "A message for you!"
4464
+ }
4459
4465
  },
4460
- description: {
4461
- type: "string",
4462
- defaultValue: "Would you like to learn more?"
4466
+ {
4467
+ name: "description",
4468
+ type: {
4469
+ type: "string",
4470
+ defaultValue: "Would you like to learn more?"
4471
+ }
4463
4472
  },
4464
- duration: {
4465
- type: "number",
4466
- defaultValueHint: 5
4473
+ {
4474
+ name: "duration",
4475
+ type: {
4476
+ type: "number",
4477
+ defaultValueHint: 5
4478
+ }
4467
4479
  },
4468
- placement: {
4469
- type: "choice",
4470
- options: [
4471
- "top",
4472
- "topLeft",
4473
- "topRight",
4474
- "bottom",
4475
- "bottomLeft",
4476
- "bottomRight"
4477
- ],
4478
- defaultValueHint: "topRight"
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
  }), {