microboard-ui-temp 0.1.95 → 0.1.97
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 +22 -11
- package/dist/spa.js +22 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -436152,6 +436152,14 @@ function ShareSnapshotModal() {
|
|
|
436152
436152
|
}, "You can edit the link by adding the board name."), /* @__PURE__ */ import_react315.default.createElement(SnapshotNameInput_default, null)))));
|
|
436153
436153
|
}
|
|
436154
436154
|
|
|
436155
|
+
// src/shared/lib/IframeModule.ts
|
|
436156
|
+
function redirectParentPage(url3, parentUrl) {
|
|
436157
|
+
window.parent.postMessage({
|
|
436158
|
+
type: "open-new-window",
|
|
436159
|
+
url: url3
|
|
436160
|
+
}, parentUrl);
|
|
436161
|
+
}
|
|
436162
|
+
|
|
436155
436163
|
// src/features/TitlePanel/TitlePanel.tsx
|
|
436156
436164
|
var MAX_BOARD_TITLE_LENGTH = 32;
|
|
436157
436165
|
function TitlePanel() {
|
|
@@ -436339,11 +436347,19 @@ function SidePanelButton({
|
|
|
436339
436347
|
className
|
|
436340
436348
|
}) {
|
|
436341
436349
|
const { t: t11 } = useTranslation();
|
|
436350
|
+
const onClick = () => {
|
|
436351
|
+
if (isIframe2()) {
|
|
436352
|
+
const currentPage = window.location.href;
|
|
436353
|
+
redirectParentPage(currentPage, currentPage.includes("dev") ? "https://dev-landing.microboard.io/" : "https://microboard.io/");
|
|
436354
|
+
return;
|
|
436355
|
+
}
|
|
436356
|
+
toggle();
|
|
436357
|
+
};
|
|
436342
436358
|
return /* @__PURE__ */ import_react316.default.createElement(UiButton, {
|
|
436343
436359
|
id: isOpen ? "CloseSidePanel" : "OpenSidePanel",
|
|
436344
436360
|
tooltip: isOpen ? t11("titlePanel.menu.close") : t11("titlePanel.menu.open"),
|
|
436345
436361
|
tooltipPosition: "bottom-left",
|
|
436346
|
-
onClick
|
|
436362
|
+
onClick,
|
|
436347
436363
|
variant: "secondary",
|
|
436348
436364
|
rounded: "left",
|
|
436349
436365
|
className
|
|
@@ -440614,16 +440630,6 @@ var ActionButtons = () => {
|
|
|
440614
440630
|
|
|
440615
440631
|
// src/features/UserPanel/Buttons/ShareBtn/ShareBtn.tsx
|
|
440616
440632
|
var import_react374 = __toESM(require_react(), 1);
|
|
440617
|
-
|
|
440618
|
-
// src/shared/lib/IframeModule.ts
|
|
440619
|
-
function redirectParentPage(url3, parentUrl) {
|
|
440620
|
-
window.parent.postMessage({
|
|
440621
|
-
type: "open-new-window",
|
|
440622
|
-
url: url3
|
|
440623
|
-
}, parentUrl);
|
|
440624
|
-
}
|
|
440625
|
-
|
|
440626
|
-
// src/features/UserPanel/Buttons/ShareBtn/ShareBtn.tsx
|
|
440627
440633
|
var ShareBtn = () => {
|
|
440628
440634
|
const { setIds } = useContextMenuContext();
|
|
440629
440635
|
const { openModal: openModal2 } = useUiModalContext();
|
|
@@ -442247,6 +442253,11 @@ function ZoomPanel() {
|
|
|
442247
442253
|
const { t: t11 } = useTranslation();
|
|
442248
442254
|
const isMobile2 = useMediaQuery("screen and (max-width: 1200px)");
|
|
442249
442255
|
const zoomToFit = () => {
|
|
442256
|
+
if (isIframe2()) {
|
|
442257
|
+
const currentPage = window.location.href;
|
|
442258
|
+
redirectParentPage(currentPage, currentPage.includes("dev") ? "https://dev-landing.microboard.io/" : "https://microboard.io/");
|
|
442259
|
+
return;
|
|
442260
|
+
}
|
|
442250
442261
|
const items = board.items.listAll();
|
|
442251
442262
|
if (items.length > 0) {
|
|
442252
442263
|
const rect = new Mbr(1e6, 1e6, -1e6, -1e6);
|
package/dist/spa.js
CHANGED
|
@@ -436152,6 +436152,14 @@ function ShareSnapshotModal() {
|
|
|
436152
436152
|
}, "You can edit the link by adding the board name."), /* @__PURE__ */ import_react315.default.createElement(SnapshotNameInput_default, null)))));
|
|
436153
436153
|
}
|
|
436154
436154
|
|
|
436155
|
+
// src/shared/lib/IframeModule.ts
|
|
436156
|
+
function redirectParentPage(url3, parentUrl) {
|
|
436157
|
+
window.parent.postMessage({
|
|
436158
|
+
type: "open-new-window",
|
|
436159
|
+
url: url3
|
|
436160
|
+
}, parentUrl);
|
|
436161
|
+
}
|
|
436162
|
+
|
|
436155
436163
|
// src/features/TitlePanel/TitlePanel.tsx
|
|
436156
436164
|
var MAX_BOARD_TITLE_LENGTH = 32;
|
|
436157
436165
|
function TitlePanel() {
|
|
@@ -436339,11 +436347,19 @@ function SidePanelButton({
|
|
|
436339
436347
|
className
|
|
436340
436348
|
}) {
|
|
436341
436349
|
const { t: t11 } = useTranslation();
|
|
436350
|
+
const onClick = () => {
|
|
436351
|
+
if (isIframe2()) {
|
|
436352
|
+
const currentPage = window.location.href;
|
|
436353
|
+
redirectParentPage(currentPage, currentPage.includes("dev") ? "https://dev-landing.microboard.io/" : "https://microboard.io/");
|
|
436354
|
+
return;
|
|
436355
|
+
}
|
|
436356
|
+
toggle();
|
|
436357
|
+
};
|
|
436342
436358
|
return /* @__PURE__ */ import_react316.default.createElement(UiButton, {
|
|
436343
436359
|
id: isOpen ? "CloseSidePanel" : "OpenSidePanel",
|
|
436344
436360
|
tooltip: isOpen ? t11("titlePanel.menu.close") : t11("titlePanel.menu.open"),
|
|
436345
436361
|
tooltipPosition: "bottom-left",
|
|
436346
|
-
onClick
|
|
436362
|
+
onClick,
|
|
436347
436363
|
variant: "secondary",
|
|
436348
436364
|
rounded: "left",
|
|
436349
436365
|
className
|
|
@@ -440614,16 +440630,6 @@ var ActionButtons = () => {
|
|
|
440614
440630
|
|
|
440615
440631
|
// src/features/UserPanel/Buttons/ShareBtn/ShareBtn.tsx
|
|
440616
440632
|
var import_react374 = __toESM(require_react(), 1);
|
|
440617
|
-
|
|
440618
|
-
// src/shared/lib/IframeModule.ts
|
|
440619
|
-
function redirectParentPage(url3, parentUrl) {
|
|
440620
|
-
window.parent.postMessage({
|
|
440621
|
-
type: "open-new-window",
|
|
440622
|
-
url: url3
|
|
440623
|
-
}, parentUrl);
|
|
440624
|
-
}
|
|
440625
|
-
|
|
440626
|
-
// src/features/UserPanel/Buttons/ShareBtn/ShareBtn.tsx
|
|
440627
440633
|
var ShareBtn = () => {
|
|
440628
440634
|
const { setIds } = useContextMenuContext();
|
|
440629
440635
|
const { openModal: openModal2 } = useUiModalContext();
|
|
@@ -442247,6 +442253,11 @@ function ZoomPanel() {
|
|
|
442247
442253
|
const { t: t11 } = useTranslation();
|
|
442248
442254
|
const isMobile2 = useMediaQuery("screen and (max-width: 1200px)");
|
|
442249
442255
|
const zoomToFit = () => {
|
|
442256
|
+
if (isIframe2()) {
|
|
442257
|
+
const currentPage = window.location.href;
|
|
442258
|
+
redirectParentPage(currentPage, currentPage.includes("dev") ? "https://dev-landing.microboard.io/" : "https://microboard.io/");
|
|
442259
|
+
return;
|
|
442260
|
+
}
|
|
442250
442261
|
const items = board.items.listAll();
|
|
442251
442262
|
if (items.length > 0) {
|
|
442252
442263
|
const rect = new Mbr(1e6, 1e6, -1e6, -1e6);
|