microboard-ui-temp 0.0.47 → 0.0.48

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.
@@ -322,13 +322,11 @@ document.addEventListener("DOMContentLoaded", () => {
322
322
  const { boardsApi, createApp, api } = await import("https://www.unpkg.com/microboard-ui-temp/dist/index.js");
323
323
  api.updateURL("https://dev-app.microboard.io/api/v1");
324
324
  frontConf.wsURL = "wss://dev-app.microboard.io/ws";
325
- const boardId = await boardsApi.createBoard(boardName2, true);
326
- console.log("boardid", boardId);
327
- const app = createApp();
328
- window.app = app;
329
- await app.openBoard(boardId);
330
- await app.getBoard().deserializeHTMLAndEmit(htmlContent);
331
- window.location.href = `https://dev-app.microboard.io/boards/${boardId}`;
325
+ const boardRes = await boardsApi.createBoard(boardName2, true);
326
+ const publishedSnapshot = await boardsApi.publishSnapshot(htmlContent, boardName2, boardRes.data.id);
327
+ console.log("boardid", boardRes);
328
+ console.log("snapshot pub", publishedSnapshot);
329
+ window.location.href = `https://dev-app.microboard.io/boards/${boardRes.data.id}`;
332
330
  };
333
331
  shareButton.onclick = handleShareBoard;
334
332
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",