microboard-ui-temp 0.1.158 → 0.1.159
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/{chunk-fnk18dhc.js → chunk-ak8e9x1h.js} +10 -4
- package/dist/embedMicroboard.js +2 -2
- package/dist/example.html +1 -1
- package/dist/index.js +10 -4
- package/dist/spa.js +10 -4
- package/package.json +1 -1
|
@@ -284422,6 +284422,12 @@ function getApiUrl(path4) {
|
|
|
284422
284422
|
}
|
|
284423
284423
|
return `${PROTOCOL}//${HOST}/api/v1${path4}`;
|
|
284424
284424
|
}
|
|
284425
|
+
function getPublicUrl(path4) {
|
|
284426
|
+
if (!path4) {
|
|
284427
|
+
path4 = "";
|
|
284428
|
+
}
|
|
284429
|
+
return `${PROTOCOL}//${HOST}${path4}`;
|
|
284430
|
+
}
|
|
284425
284431
|
function getWebsocketUrl() {
|
|
284426
284432
|
if (window.MICROBOARD_FRONT_CONFIG.wsURL) {
|
|
284427
284433
|
return window.MICROBOARD_FRONT_CONFIG.wsURL;
|
|
@@ -371785,7 +371791,7 @@ function ContextMenu() {
|
|
|
371785
371791
|
const [isDeletingFolder, setIsDeletingFolder] = import_react216.useState(false);
|
|
371786
371792
|
const { setId } = useOpenedFoldersContext();
|
|
371787
371793
|
const navigate = useNavigate();
|
|
371788
|
-
const currentBoardId = board
|
|
371794
|
+
const currentBoardId = board?.getBoardId();
|
|
371789
371795
|
const boardInfo = boardsList.getBoardInfo(boardId);
|
|
371790
371796
|
const folderInfo = boardsList.getFolder(folderId);
|
|
371791
371797
|
const hasOwnerRights = boardId ? account.permissions.checkPermissions("owns", "boards", boardId) : false;
|
|
@@ -371948,7 +371954,7 @@ function ContextMenu() {
|
|
|
371948
371954
|
if (!folderId) {
|
|
371949
371955
|
return;
|
|
371950
371956
|
}
|
|
371951
|
-
if (boardsList.isFolderContainsBoard(folderId, board
|
|
371957
|
+
if (boardsList.isFolderContainsBoard(folderId, board?.getBoardId())) {
|
|
371952
371958
|
app.openBoard("blank");
|
|
371953
371959
|
navigate("/boards/blank");
|
|
371954
371960
|
}
|
|
@@ -443194,7 +443200,7 @@ var NoBoardIsOpen = () => {
|
|
|
443194
443200
|
setRenamingId(boardId);
|
|
443195
443201
|
});
|
|
443196
443202
|
};
|
|
443197
|
-
if (board
|
|
443203
|
+
if (board?.getBoardId() !== "blank") {
|
|
443198
443204
|
return null;
|
|
443199
443205
|
}
|
|
443200
443206
|
return /* @__PURE__ */ import_react407.default.createElement("div", {
|
|
@@ -449014,7 +449020,7 @@ var TestPage = () => {
|
|
|
449014
449020
|
const containerRef = import_react447.useRef(null);
|
|
449015
449021
|
import_react447.useEffect(() => {
|
|
449016
449022
|
const script1 = document.createElement("script");
|
|
449017
|
-
script1.src = `${
|
|
449023
|
+
script1.src = `${getPublicUrl()}/embedMicroboard.js`;
|
|
449018
449024
|
document.body.appendChild(script1);
|
|
449019
449025
|
return () => {
|
|
449020
449026
|
document.body.removeChild(script1);
|
package/dist/embedMicroboard.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
};
|
|
14
14
|
window.microboardOpener = {
|
|
15
15
|
selectBoard: function({ success, error, cancel }) {
|
|
16
|
-
const popupUrl = `${"https://app.microboard.io"}/selectBoard`;
|
|
16
|
+
const popupUrl = `${"https://dev-app.microboard.io"}/selectBoard`;
|
|
17
17
|
window.open(popupUrl, "_blank", "popup=true,width=400,height=600,resizable=yes,scrollbars=yes");
|
|
18
18
|
callbacks.success = success;
|
|
19
19
|
callbacks.error = error;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
window.addEventListener("message", function(event) {
|
|
24
|
-
if (event.origin === `${"https://app.microboard.io"}`) {
|
|
24
|
+
if (event.origin === `${"https://dev-app.microboard.io"}`) {
|
|
25
25
|
for (const type in callbacks) {
|
|
26
26
|
if (event.data[type]) {
|
|
27
27
|
callbacks[type](event.data[type]);
|
package/dist/example.html
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
/>
|
|
33
33
|
|
|
34
34
|
<link rel="stylesheet" crossorigin href="/chunk-zvtc1yhk.css"><script src="/env.js"></script>
|
|
35
|
-
<script type="module" crossorigin src="/chunk-
|
|
35
|
+
<script type="module" crossorigin src="/chunk-ak8e9x1h.js"></script></head>
|
|
36
36
|
|
|
37
37
|
<body
|
|
38
38
|
style="
|
package/dist/index.js
CHANGED
|
@@ -284422,6 +284422,12 @@ function getApiUrl(path4) {
|
|
|
284422
284422
|
}
|
|
284423
284423
|
return `${PROTOCOL}//${HOST}/api/v1${path4}`;
|
|
284424
284424
|
}
|
|
284425
|
+
function getPublicUrl(path4) {
|
|
284426
|
+
if (!path4) {
|
|
284427
|
+
path4 = "";
|
|
284428
|
+
}
|
|
284429
|
+
return `${PROTOCOL}//${HOST}${path4}`;
|
|
284430
|
+
}
|
|
284425
284431
|
function getWebsocketUrl() {
|
|
284426
284432
|
if (window.MICROBOARD_FRONT_CONFIG.wsURL) {
|
|
284427
284433
|
return window.MICROBOARD_FRONT_CONFIG.wsURL;
|
|
@@ -371785,7 +371791,7 @@ function ContextMenu() {
|
|
|
371785
371791
|
const [isDeletingFolder, setIsDeletingFolder] = import_react216.useState(false);
|
|
371786
371792
|
const { setId } = useOpenedFoldersContext();
|
|
371787
371793
|
const navigate = useNavigate();
|
|
371788
|
-
const currentBoardId = board
|
|
371794
|
+
const currentBoardId = board?.getBoardId();
|
|
371789
371795
|
const boardInfo = boardsList.getBoardInfo(boardId);
|
|
371790
371796
|
const folderInfo = boardsList.getFolder(folderId);
|
|
371791
371797
|
const hasOwnerRights = boardId ? account.permissions.checkPermissions("owns", "boards", boardId) : false;
|
|
@@ -371948,7 +371954,7 @@ function ContextMenu() {
|
|
|
371948
371954
|
if (!folderId) {
|
|
371949
371955
|
return;
|
|
371950
371956
|
}
|
|
371951
|
-
if (boardsList.isFolderContainsBoard(folderId, board
|
|
371957
|
+
if (boardsList.isFolderContainsBoard(folderId, board?.getBoardId())) {
|
|
371952
371958
|
app.openBoard("blank");
|
|
371953
371959
|
navigate("/boards/blank");
|
|
371954
371960
|
}
|
|
@@ -443194,7 +443200,7 @@ var NoBoardIsOpen = () => {
|
|
|
443194
443200
|
setRenamingId(boardId);
|
|
443195
443201
|
});
|
|
443196
443202
|
};
|
|
443197
|
-
if (board
|
|
443203
|
+
if (board?.getBoardId() !== "blank") {
|
|
443198
443204
|
return null;
|
|
443199
443205
|
}
|
|
443200
443206
|
return /* @__PURE__ */ import_react407.default.createElement("div", {
|
|
@@ -449014,7 +449020,7 @@ var TestPage = () => {
|
|
|
449014
449020
|
const containerRef = import_react447.useRef(null);
|
|
449015
449021
|
import_react447.useEffect(() => {
|
|
449016
449022
|
const script1 = document.createElement("script");
|
|
449017
|
-
script1.src = `${
|
|
449023
|
+
script1.src = `${getPublicUrl()}/embedMicroboard.js`;
|
|
449018
449024
|
document.body.appendChild(script1);
|
|
449019
449025
|
return () => {
|
|
449020
449026
|
document.body.removeChild(script1);
|
package/dist/spa.js
CHANGED
|
@@ -284422,6 +284422,12 @@ function getApiUrl(path4) {
|
|
|
284422
284422
|
}
|
|
284423
284423
|
return `${PROTOCOL}//${HOST}/api/v1${path4}`;
|
|
284424
284424
|
}
|
|
284425
|
+
function getPublicUrl(path4) {
|
|
284426
|
+
if (!path4) {
|
|
284427
|
+
path4 = "";
|
|
284428
|
+
}
|
|
284429
|
+
return `${PROTOCOL}//${HOST}${path4}`;
|
|
284430
|
+
}
|
|
284425
284431
|
function getWebsocketUrl() {
|
|
284426
284432
|
if (window.MICROBOARD_FRONT_CONFIG.wsURL) {
|
|
284427
284433
|
return window.MICROBOARD_FRONT_CONFIG.wsURL;
|
|
@@ -371785,7 +371791,7 @@ function ContextMenu() {
|
|
|
371785
371791
|
const [isDeletingFolder, setIsDeletingFolder] = import_react216.useState(false);
|
|
371786
371792
|
const { setId } = useOpenedFoldersContext();
|
|
371787
371793
|
const navigate = useNavigate();
|
|
371788
|
-
const currentBoardId = board
|
|
371794
|
+
const currentBoardId = board?.getBoardId();
|
|
371789
371795
|
const boardInfo = boardsList.getBoardInfo(boardId);
|
|
371790
371796
|
const folderInfo = boardsList.getFolder(folderId);
|
|
371791
371797
|
const hasOwnerRights = boardId ? account.permissions.checkPermissions("owns", "boards", boardId) : false;
|
|
@@ -371948,7 +371954,7 @@ function ContextMenu() {
|
|
|
371948
371954
|
if (!folderId) {
|
|
371949
371955
|
return;
|
|
371950
371956
|
}
|
|
371951
|
-
if (boardsList.isFolderContainsBoard(folderId, board
|
|
371957
|
+
if (boardsList.isFolderContainsBoard(folderId, board?.getBoardId())) {
|
|
371952
371958
|
app.openBoard("blank");
|
|
371953
371959
|
navigate("/boards/blank");
|
|
371954
371960
|
}
|
|
@@ -443194,7 +443200,7 @@ var NoBoardIsOpen = () => {
|
|
|
443194
443200
|
setRenamingId(boardId);
|
|
443195
443201
|
});
|
|
443196
443202
|
};
|
|
443197
|
-
if (board
|
|
443203
|
+
if (board?.getBoardId() !== "blank") {
|
|
443198
443204
|
return null;
|
|
443199
443205
|
}
|
|
443200
443206
|
return /* @__PURE__ */ import_react407.default.createElement("div", {
|
|
@@ -449014,7 +449020,7 @@ var TestPage = () => {
|
|
|
449014
449020
|
const containerRef = import_react447.useRef(null);
|
|
449015
449021
|
import_react447.useEffect(() => {
|
|
449016
449022
|
const script1 = document.createElement("script");
|
|
449017
|
-
script1.src = `${
|
|
449023
|
+
script1.src = `${getPublicUrl()}/embedMicroboard.js`;
|
|
449018
449024
|
document.body.appendChild(script1);
|
|
449019
449025
|
return () => {
|
|
449020
449026
|
document.body.removeChild(script1);
|