microboard-ui-temp 0.0.16 → 0.0.17

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/board.html CHANGED
@@ -12,7 +12,7 @@
12
12
  <link
13
13
  rel="stylesheet"
14
14
  crossorigin
15
- href="https://unpkg.com/microboard-ui-temp@0.0.16/dist/board.css"
15
+ href="https://unpkg.com/microboard-ui-temp@0.0.17/dist/board.css"
16
16
  />
17
17
  <body style="overflow-x: hidden; overflow-y: hidden">
18
18
  <div id="items">
@@ -85,11 +85,11 @@
85
85
  </div>
86
86
  <script
87
87
  type="module"
88
- src="https://unpkg.com/microboard-ui-temp@0.0.16/dist/customWebComponents.js"
88
+ src="https://unpkg.com/microboard-ui-temp@0.0.17/dist/customWebComponents.js"
89
89
  ></script>
90
90
  <script
91
91
  defer
92
- src="https://unpkg.com/microboard-ui-temp@0.0.16/dist/loadLinksImages.js"
92
+ src="https://unpkg.com/microboard-ui-temp@0.0.17/dist/loadLinksImages.js"
93
93
  ></script>
94
94
  </body>
95
95
  </head>
@@ -255,9 +255,9 @@ document.addEventListener("DOMContentLoaded", () => {
255
255
  translateY = 0;
256
256
  scale = 1;
257
257
  updateTransform();
258
- const { initInter } = await import("https://www.unpkg.com/microboard-ui-temp@0.0.16/dist/index.js");
258
+ const { initInter } = await import("https://www.unpkg.com/microboard-ui-temp@0.0.17/dist/index.js");
259
259
  initInter();
260
- const { createApp } = await import("https://www.unpkg.com/microboard-ui-temp@0.0.16/dist/index.js");
260
+ const { createApp } = await import("https://www.unpkg.com/microboard-ui-temp@0.0.17/dist/index.js");
261
261
  console.log("createapp", createApp);
262
262
  const app = createApp();
263
263
  window.app = app;
@@ -267,12 +267,12 @@ document.addEventListener("DOMContentLoaded", () => {
267
267
  app.getBoard().deserializeHTML(stringed);
268
268
  app.localRender("items");
269
269
  }
270
- const response = await fetch("https://www.unpkg.com/microboard-ui-temp@0.0.16/dist/index.css");
270
+ const response = await fetch("https://www.unpkg.com/microboard-ui-temp@0.0.17/dist/index.css");
271
271
  const cssText = await response.text();
272
272
  const styleEl = document.createElement("style");
273
273
  styleEl.textContent = cssText;
274
274
  document.body.appendChild(styleEl);
275
- const responseSvg = await fetch("https://www.unpkg.com/microboard-ui-temp@0.0.16/dist/sprite.svg");
275
+ const responseSvg = await fetch("https://www.unpkg.com/microboard-ui-temp@0.0.17/dist/sprite.svg");
276
276
  const svgText = await responseSvg.text();
277
277
  const div = document.createElement("div");
278
278
  div.style.display = "none";
package/dist/index.js CHANGED
@@ -446420,7 +446420,14 @@ function createApp(isHistory = true) {
446420
446420
  }
446421
446421
  async function getFileForLocalEdit() {
446422
446422
  if ("showOpenFilePicker" in window) {
446423
- const [newFileHandle] = await window.showOpenFilePicker();
446423
+ const [newFileHandle] = await window.showOpenFilePicker({
446424
+ types: [{
446425
+ description: "HTML-files",
446426
+ accept: { "text/html": [".html"] }
446427
+ }],
446428
+ excludeAcceptAllOption: false,
446429
+ multiple: false
446430
+ });
446424
446431
  fileHandle = newFileHandle;
446425
446432
  const file2 = await newFileHandle.getFile();
446426
446433
  return file2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",