@getflip/bridge 0.10.20 → 0.10.22

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/README.md +2 -16
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -160,12 +160,7 @@ Creates a modal dialog rendered by the host app.
160
160
  **Returns**
161
161
 
162
162
  ```js
163
- Promise<{
164
- id: string;
165
- open: () => Promise<boolean>;
166
- close: () => Promise<boolean>;
167
- destroy: () => Promise<boolean>;
168
- }>
163
+ Promise<boolean>
169
164
  ```
170
165
 
171
166
  **Example**
@@ -181,8 +176,6 @@ const dialog = await createDialog({
181
176
  label: "Close",
182
177
  },
183
178
  });
184
-
185
- await dialog.open();
186
179
  ```
187
180
 
188
181
  #### `openDialog`
@@ -283,12 +276,7 @@ an iFrame.
283
276
  **Returns**
284
277
 
285
278
  ```js
286
- Promise<{
287
- id: string;
288
- open: () => Promise<boolean>;
289
- close: () => Promise<boolean>;
290
- destroy: () => Promise<boolean>;
291
- }>
279
+ Promise<boolean>
292
280
  ```
293
281
 
294
282
  **Example**
@@ -304,8 +292,6 @@ const modal = await createModal({
304
292
  },
305
293
  url: "https://google.com",
306
294
  });
307
-
308
- await modal.open();
309
295
  ```
310
296
 
311
297
  #### `openModal`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getflip/bridge",
3
- "version": "0.10.20",
3
+ "version": "0.10.22",
4
4
  "description": "Flip JavaScript Bridge for external integrations.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.mjs",
@@ -19,7 +19,7 @@
19
19
  "test:watch": "jest --watchAll"
20
20
  },
21
21
  "dependencies": {
22
- "@getflip/swirl-components": "^0.342.1",
22
+ "@getflip/swirl-components": "^0.343.1",
23
23
  "uuid": "^9.0.0"
24
24
  },
25
25
  "devDependencies": {