microboard-ui-temp 0.1.78 → 0.1.80

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.js CHANGED
@@ -284048,7 +284048,7 @@ var frontConf = {
284048
284048
  apiURL: undefined,
284049
284049
  wsURL: undefined
284050
284050
  };
284051
- var isSnapshotInIframe = typeof window !== "undefined" && window.parent && window.parent !== window && window.parent.location.href.includes("/snapshots/");
284051
+ var isSnapshotInIframe = false;
284052
284052
  var baseUrl = typeof process !== "undefined" && process.env.BASE_URL ? process.env.BASE_URL : isSnapshotInIframe ? `${window.parent.location.protocol}//${window.parent.location.host}` : `${location.protocol}//${location.host}`;
284053
284053
  var parsedUrl = new URL(baseUrl);
284054
284054
  var PROTOCOL = parsedUrl.protocol;
@@ -448865,9 +448865,9 @@ function createApp(isHistory = true) {
448865
448865
  }
448866
448866
  async function openAndEditFile() {
448867
448867
  try {
448868
- const isSnapshotInIframe2 = window.parent && window.parent !== window && window.parent.location.href.includes("/snapshots/");
448868
+ const isSnapshotInIframe2 = false;
448869
448869
  if (isSnapshotInIframe2) {
448870
- const snapshotId = window.parent.location.href.split("/snapshots/")[1];
448870
+ const snapshotId = "1";
448871
448871
  const snapshot2 = document.documentElement.outerHTML;
448872
448872
  const boardId = await boardsList.createBoard(snapshotId.split("?")[0] + " copy", !account.isLoggedIn);
448873
448873
  await app.connection.connect();
package/dist/spa.js CHANGED
@@ -284048,7 +284048,7 @@ var frontConf = {
284048
284048
  apiURL: undefined,
284049
284049
  wsURL: undefined
284050
284050
  };
284051
- var isSnapshotInIframe = typeof window !== "undefined" && window.parent && window.parent !== window && window.parent.location.href.includes("/snapshots/");
284051
+ var isSnapshotInIframe = false;
284052
284052
  var baseUrl = typeof process !== "undefined" && process.env.BASE_URL ? process.env.BASE_URL : isSnapshotInIframe ? `${window.parent.location.protocol}//${window.parent.location.host}` : `${location.protocol}//${location.host}`;
284053
284053
  var parsedUrl = new URL(baseUrl);
284054
284054
  var PROTOCOL = parsedUrl.protocol;
@@ -447074,9 +447074,9 @@ function createApp(isHistory = true) {
447074
447074
  }
447075
447075
  async function openAndEditFile() {
447076
447076
  try {
447077
- const isSnapshotInIframe2 = window.parent && window.parent !== window && window.parent.location.href.includes("/snapshots/");
447077
+ const isSnapshotInIframe2 = false;
447078
447078
  if (isSnapshotInIframe2) {
447079
- const snapshotId = window.parent.location.href.split("/snapshots/")[1];
447079
+ const snapshotId = "1";
447080
447080
  const snapshot2 = document.documentElement.outerHTML;
447081
447081
  const boardId = await boardsList.createBoard(snapshotId.split("?")[0] + " copy", !account.isLoggedIn);
447082
447082
  await app.connection.connect();
@@ -99,7 +99,7 @@ function cleanupListeners() {
99
99
  }
100
100
 
101
101
  // src/public/titlePanel.ts
102
- var isSnapshotInIframe = window.parent && window.parent !== window && window.parent.location.href.includes("/snapshots/");
102
+ var isSnapshotInIframe = false;
103
103
  var TITLE_PANEL_STYLES = {
104
104
  boxShadow: "0px 10px 16px -3px rgba(20, 21, 26, 0.08)",
105
105
  position: "fixed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.78",
3
+ "version": "0.1.80",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",