@xuda.io/xuda-studio-checker 1.0.13 → 1.0.14

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.
Files changed (2) hide show
  1. package/index.mjs +3 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3914,6 +3914,9 @@ export const get_zod_schema = function (type) {
3914
3914
  `The Alert Object is a program-level UI unit in the Xuda platform used to deliver contextual messages and notifications to users or developers at runtime. These alerts can be triggered from within logic flows and offer various display formats (such as toast, modal, browser alert, or console message) based on the use case. The alert object is defined using a structured JSON format and can be embedded in broader program logic. It supports both static and dynamic content, and can optionally create log entries to support audit trails and debugging workflows.`,
3915
3915
  );
3916
3916
  properties_obj.progParams = z.array(ProgParamSchema).optional().describe(`Array of input/output parameter definitions for ${type} interface`);
3917
+ const AlertType = z.enum(['info', 'success', 'warning', 'error']);
3918
+ const AlertDisplay = z.enum(['toast', 'modal', 'browser', 'console']);
3919
+
3917
3920
  main_obj.alertData = z.object({
3918
3921
  alertDisplay: AlertDisplay.describe('Mode of display: "toast", "modal", "browser", or "console"'),
3919
3922
  alertType: AlertType.describe('Type of message: "warning", "error", "info", or "success"'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-studio-checker",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "main": "index.mjs",
5
5
  "type": "module",
6
6
  "description": "Auto-generated build for xuda-studio-checker.mjs",