@apteva/apteva-kit 0.1.95 → 0.1.96

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
@@ -768,8 +768,10 @@ var WIDGET_DEFINITIONS = {
768
768
  }
769
769
  };
770
770
  var ALL_WIDGET_TYPES = Object.keys(WIDGET_DEFINITIONS);
771
+ var DISABLED_WIDGETS = ["flow"];
772
+ var DEFAULT_WIDGET_TYPES = ALL_WIDGET_TYPES.filter((t) => !DISABLED_WIDGETS.includes(t));
771
773
  function generateWidgetContext(enabledWidgets) {
772
- const widgets = enabledWidgets || ALL_WIDGET_TYPES;
774
+ const widgets = enabledWidgets || DEFAULT_WIDGET_TYPES;
773
775
  let context = `
774
776
  ## UI Widgets
775
777
  SYNTAX: @ui:type[{json}] - MUST use SQUARE BRACKETS [] around the JSON object.
@@ -789,7 +791,7 @@ Per-item "metadata" is sent as payload on action click.
789
791
  return context;
790
792
  }
791
793
  function generateCompactWidgetContext(enabledWidgets) {
792
- const widgets = enabledWidgets || ALL_WIDGET_TYPES;
794
+ const widgets = enabledWidgets || DEFAULT_WIDGET_TYPES;
793
795
  return `
794
796
  Widgets: @ui:type[{json}] - MUST use square brackets []. Example: @ui:list[{"items": [...]}]. Types: ${widgets.join(", ")}. Per-item "metadata" is sent as action payload.
795
797
  `;