@ensembleapp/client-sdk 0.0.31 → 0.0.33

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.d.ts CHANGED
@@ -165,18 +165,19 @@ declare function createSDKWidget<TSchema extends FlexibleSchema, TEnriched exten
165
165
  /**
166
166
  * Type for customer's ReactDOM instance (supports React 16-18).
167
167
  * Customers must provide their ReactDOM to enable cross-version widget rendering.
168
+ *
169
+ * This type is intentionally loose to accept ReactDOM from any React version
170
+ * without requiring customers to cast their imports.
168
171
  */
169
- interface CustomerReactDOM {
170
- render?: (element: unknown, container: HTMLElement) => void;
172
+ type CustomerReactDOM = {
173
+ render?: (element: unknown, container: HTMLElement, callback?: () => void) => unknown;
171
174
  unmountComponentAtNode?: (container: HTMLElement) => boolean;
172
- createRoot?: (container: HTMLElement, options?: {
173
- identifierPrefix?: string;
174
- onRecoverableError?: (error: Error) => void;
175
- }) => {
175
+ createRoot?: (container: HTMLElement, options?: Record<string, unknown>) => {
176
176
  render: (children: unknown) => void;
177
177
  unmount: () => void;
178
178
  };
179
- }
179
+ [key: string]: unknown;
180
+ };
180
181
  /**
181
182
  * Widget definition for customer-defined widgets.
182
183
  * Customer widgets require `reactDOM` to enable cross-React version rendering.