@dialstack/sdk-react 3.5.0 → 3.7.0

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.
@@ -61,7 +61,11 @@ interface DialPlanProps {
61
61
  name: string;
62
62
  extension_number?: string;
63
63
  } | undefined>;
64
- /** Optional callback to open a resource in a new tab. Provided by the host app. */
64
+ /**
65
+ * Optional callback to show a resource's details, e.g. in a modal or a new
66
+ * tab. Provided by the host app. After the resource may have been edited,
67
+ * call `refreshResources()` on the ref so the nodes show its new values.
68
+ */
65
69
  onOpenResource?: (resourceId: string) => void;
66
70
  }
67
71
  declare const DialPlan: React.ForwardRefExoticComponent<DialPlanProps & React.RefAttributes<DialPlanHandle>>;
@@ -61,7 +61,11 @@ interface DialPlanProps {
61
61
  name: string;
62
62
  extension_number?: string;
63
63
  } | undefined>;
64
- /** Optional callback to open a resource in a new tab. Provided by the host app. */
64
+ /**
65
+ * Optional callback to show a resource's details, e.g. in a modal or a new
66
+ * tab. Provided by the host app. After the resource may have been edited,
67
+ * call `refreshResources()` on the ref so the nodes show its new values.
68
+ */
65
69
  onOpenResource?: (resourceId: string) => void;
66
70
  }
67
71
  declare const DialPlan: React.ForwardRefExoticComponent<DialPlanProps & React.RefAttributes<DialPlanHandle>>;