microboard-ui-temp 0.1.159 → 0.1.161
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-ak8e9x1h.js → chunk-e7hjkwc9.js} +29 -78
- package/dist/example.html +1 -1
- package/dist/index.js +29 -78
- package/dist/spa.js +29 -78
- package/package.json +3 -3
|
@@ -269075,14 +269075,14 @@ var getYouTubeVideoPreview = (youtubeUrl) => {
|
|
|
269075
269075
|
};
|
|
269076
269076
|
});
|
|
269077
269077
|
};
|
|
269078
|
+
var qualities = {
|
|
269079
|
+
maxres: "maxresdefault",
|
|
269080
|
+
sd: "sddefault",
|
|
269081
|
+
hq: "hqdefault",
|
|
269082
|
+
mq: "mqdefault",
|
|
269083
|
+
default: "default"
|
|
269084
|
+
};
|
|
269078
269085
|
var getYouTubeThumbnail = (videoId, quality = "maxres") => {
|
|
269079
|
-
const qualities = {
|
|
269080
|
-
maxres: "maxresdefault",
|
|
269081
|
-
sd: "sddefault",
|
|
269082
|
-
hq: "hqdefault",
|
|
269083
|
-
mq: "mqdefault",
|
|
269084
|
-
default: "default"
|
|
269085
|
-
};
|
|
269086
269086
|
return `https://img.youtube.com/vi/${videoId}/${qualities[quality]}.jpg`;
|
|
269087
269087
|
};
|
|
269088
269088
|
var captureFrame = (frameTime, video) => {
|
|
@@ -270682,7 +270682,7 @@ function createAudio(id2, data, board) {
|
|
|
270682
270682
|
if (!isAudioItemData(data)) {
|
|
270683
270683
|
throw new Error("Invalid data for AudioItem");
|
|
270684
270684
|
}
|
|
270685
|
-
const audio = new AudioItem(board, data.
|
|
270685
|
+
const audio = new AudioItem(board, data.url, board.events, id2, data.extension).setId(id2).deserialize(data);
|
|
270686
270686
|
return audio;
|
|
270687
270687
|
}
|
|
270688
270688
|
function createDrawing(id2, data, board) {
|
|
@@ -284422,12 +284422,6 @@ 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
|
-
}
|
|
284431
284425
|
function getWebsocketUrl() {
|
|
284432
284426
|
if (window.MICROBOARD_FRONT_CONFIG.wsURL) {
|
|
284433
284427
|
return window.MICROBOARD_FRONT_CONFIG.wsURL;
|
|
@@ -361007,7 +361001,7 @@ class Location {
|
|
|
361007
361001
|
}
|
|
361008
361002
|
|
|
361009
361003
|
// src/App/router.tsx
|
|
361010
|
-
var
|
|
361004
|
+
var import_react447 = __toESM(require_react(), 1);
|
|
361011
361005
|
|
|
361012
361006
|
// src/entities/AIInput/utils.ts
|
|
361013
361007
|
var PLACEHOLDER_OFFSET = "\t\t\t\t\t\t\t\t\t\t\t\t";
|
|
@@ -449013,90 +449007,47 @@ var WheelEventLoggerPage = () => {
|
|
|
449013
449007
|
|
|
449014
449008
|
// src/App/router.tsx
|
|
449015
449009
|
var import_client2 = __toESM(require_client(), 1);
|
|
449016
|
-
|
|
449017
|
-
// src/pages/TestPage.tsx
|
|
449018
|
-
var import_react447 = __toESM(require_react(), 1);
|
|
449019
|
-
var TestPage = () => {
|
|
449020
|
-
const containerRef = import_react447.useRef(null);
|
|
449021
|
-
import_react447.useEffect(() => {
|
|
449022
|
-
const script1 = document.createElement("script");
|
|
449023
|
-
script1.src = `${getPublicUrl()}/embedMicroboard.js`;
|
|
449024
|
-
document.body.appendChild(script1);
|
|
449025
|
-
return () => {
|
|
449026
|
-
document.body.removeChild(script1);
|
|
449027
|
-
};
|
|
449028
|
-
}, []);
|
|
449029
|
-
return /* @__PURE__ */ import_react447.default.createElement("div", {
|
|
449030
|
-
style: {
|
|
449031
|
-
width: "100%",
|
|
449032
|
-
height: "100%",
|
|
449033
|
-
display: "flex",
|
|
449034
|
-
flexDirection: "column"
|
|
449035
|
-
}
|
|
449036
|
-
}, /* @__PURE__ */ import_react447.default.createElement("button", {
|
|
449037
|
-
style: { border: "1px solid black" },
|
|
449038
|
-
onClick: () => window.microboardOpener.selectBoard({
|
|
449039
|
-
success: (data) => {
|
|
449040
|
-
console.log("SUCCESS", data);
|
|
449041
|
-
const { visitorsLink } = data;
|
|
449042
|
-
if (containerRef.current) {
|
|
449043
|
-
containerRef.current.innerHTML = `<iframe src="${visitorsLink}" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>`;
|
|
449044
|
-
}
|
|
449045
|
-
},
|
|
449046
|
-
error: console.error,
|
|
449047
|
-
cancel: console.warn
|
|
449048
|
-
})
|
|
449049
|
-
}, "Открыть окно"), /* @__PURE__ */ import_react447.default.createElement("div", {
|
|
449050
|
-
style: {
|
|
449051
|
-
flexGrow: 1
|
|
449052
|
-
},
|
|
449053
|
-
ref: containerRef
|
|
449054
|
-
}));
|
|
449055
|
-
};
|
|
449056
|
-
|
|
449057
|
-
// src/App/router.tsx
|
|
449058
449010
|
function getRender(app) {
|
|
449059
449011
|
const router = createBrowserRouter([
|
|
449060
449012
|
{
|
|
449061
|
-
element: /* @__PURE__ */
|
|
449013
|
+
element: /* @__PURE__ */ import_react447.default.createElement(AppLayout, {
|
|
449062
449014
|
app
|
|
449063
449015
|
}),
|
|
449064
449016
|
children: [
|
|
449065
|
-
{ path: "/", element: /* @__PURE__ */
|
|
449017
|
+
{ path: "/", element: /* @__PURE__ */ import_react447.default.createElement(Navigate2, {
|
|
449066
449018
|
to: "/boards/blank"
|
|
449067
449019
|
}) },
|
|
449068
449020
|
{
|
|
449069
449021
|
path: "/auth",
|
|
449070
|
-
element: /* @__PURE__ */
|
|
449022
|
+
element: /* @__PURE__ */ import_react447.default.createElement(AuthLayout, {
|
|
449071
449023
|
showPolicies: true
|
|
449072
449024
|
}),
|
|
449073
449025
|
children: [
|
|
449074
449026
|
{
|
|
449075
|
-
element: /* @__PURE__ */
|
|
449027
|
+
element: /* @__PURE__ */ import_react447.default.createElement(UnauthGuard, null),
|
|
449076
449028
|
children: [
|
|
449077
|
-
{ path: "sign-up", element: /* @__PURE__ */
|
|
449078
|
-
{ path: "sign-in", element: /* @__PURE__ */
|
|
449079
|
-
{ path: "verify", element: /* @__PURE__ */
|
|
449080
|
-
{ path: "restore-password", element: /* @__PURE__ */
|
|
449081
|
-
{ path: "forgot-password", element: /* @__PURE__ */
|
|
449029
|
+
{ path: "sign-up", element: /* @__PURE__ */ import_react447.default.createElement(SignupPage, null) },
|
|
449030
|
+
{ path: "sign-in", element: /* @__PURE__ */ import_react447.default.createElement(SigninPage, null) },
|
|
449031
|
+
{ path: "verify", element: /* @__PURE__ */ import_react447.default.createElement(VerifyMailPage, null) },
|
|
449032
|
+
{ path: "restore-password", element: /* @__PURE__ */ import_react447.default.createElement(RestorePasswordPage, null) },
|
|
449033
|
+
{ path: "forgot-password", element: /* @__PURE__ */ import_react447.default.createElement(ForgotPasswordPage, null) }
|
|
449082
449034
|
]
|
|
449083
449035
|
}
|
|
449084
449036
|
]
|
|
449085
449037
|
},
|
|
449086
449038
|
{
|
|
449087
449039
|
path: "/bind-email",
|
|
449088
|
-
element: /* @__PURE__ */
|
|
449040
|
+
element: /* @__PURE__ */ import_react447.default.createElement(AuthLayout, null),
|
|
449089
449041
|
children: [
|
|
449090
|
-
{ path: "add-email", element: /* @__PURE__ */
|
|
449091
|
-
{ path: "verify", element: /* @__PURE__ */
|
|
449042
|
+
{ path: "add-email", element: /* @__PURE__ */ import_react447.default.createElement(AddEmailPage, null) },
|
|
449043
|
+
{ path: "verify", element: /* @__PURE__ */ import_react447.default.createElement(BindEmailPage, null) }
|
|
449092
449044
|
]
|
|
449093
449045
|
},
|
|
449094
|
-
{ path: "/welcome", element: /* @__PURE__ */
|
|
449095
|
-
{ path: "/boards/:boardId?", element: /* @__PURE__ */
|
|
449096
|
-
{ path: "/selectBoard", element: /* @__PURE__ */
|
|
449097
|
-
{ path: "/test-wheel", element: /* @__PURE__ */
|
|
449098
|
-
{ path: "/snapshots/:uid?", element: /* @__PURE__ */
|
|
449099
|
-
{ path: "test", element: /* @__PURE__ */ import_react448.default.createElement(TestPage, null) }
|
|
449046
|
+
{ path: "/welcome", element: /* @__PURE__ */ import_react447.default.createElement(WelcomePage, null) },
|
|
449047
|
+
{ path: "/boards/:boardId?", element: /* @__PURE__ */ import_react447.default.createElement(BoardPage, null) },
|
|
449048
|
+
{ path: "/selectBoard", element: /* @__PURE__ */ import_react447.default.createElement(SelectBoardPage, null) },
|
|
449049
|
+
{ path: "/test-wheel", element: /* @__PURE__ */ import_react447.default.createElement(WheelEventLoggerPage, null) },
|
|
449050
|
+
{ path: "/snapshots/:uid?", element: /* @__PURE__ */ import_react447.default.createElement(HTMLSnapshot_default, null) }
|
|
449100
449051
|
]
|
|
449101
449052
|
}
|
|
449102
449053
|
]);
|
|
@@ -449110,7 +449061,7 @@ function getRender(app) {
|
|
|
449110
449061
|
if (!root3) {
|
|
449111
449062
|
root3 = import_client2.createRoot(container);
|
|
449112
449063
|
}
|
|
449113
|
-
root3.render(/* @__PURE__ */
|
|
449064
|
+
root3.render(/* @__PURE__ */ import_react447.default.createElement(RouterProvider, {
|
|
449114
449065
|
router
|
|
449115
449066
|
}));
|
|
449116
449067
|
},
|
|
@@ -449127,9 +449078,9 @@ function getLocalRender(app) {
|
|
|
449127
449078
|
if (!root3) {
|
|
449128
449079
|
root3 = import_client2.createRoot(container);
|
|
449129
449080
|
}
|
|
449130
|
-
root3.render(/* @__PURE__ */
|
|
449081
|
+
root3.render(/* @__PURE__ */ import_react447.default.createElement(LocalAppLayout, {
|
|
449131
449082
|
app
|
|
449132
|
-
}, /* @__PURE__ */
|
|
449083
|
+
}, /* @__PURE__ */ import_react447.default.createElement(LocalSidePanelContextProvider, null, /* @__PURE__ */ import_react447.default.createElement(LocalAppView, null))));
|
|
449133
449084
|
};
|
|
449134
449085
|
}
|
|
449135
449086
|
|
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-e7hjkwc9.js"></script></head>
|
|
36
36
|
|
|
37
37
|
<body
|
|
38
38
|
style="
|
package/dist/index.js
CHANGED
|
@@ -269075,14 +269075,14 @@ var getYouTubeVideoPreview = (youtubeUrl) => {
|
|
|
269075
269075
|
};
|
|
269076
269076
|
});
|
|
269077
269077
|
};
|
|
269078
|
+
var qualities = {
|
|
269079
|
+
maxres: "maxresdefault",
|
|
269080
|
+
sd: "sddefault",
|
|
269081
|
+
hq: "hqdefault",
|
|
269082
|
+
mq: "mqdefault",
|
|
269083
|
+
default: "default"
|
|
269084
|
+
};
|
|
269078
269085
|
var getYouTubeThumbnail = (videoId, quality = "maxres") => {
|
|
269079
|
-
const qualities = {
|
|
269080
|
-
maxres: "maxresdefault",
|
|
269081
|
-
sd: "sddefault",
|
|
269082
|
-
hq: "hqdefault",
|
|
269083
|
-
mq: "mqdefault",
|
|
269084
|
-
default: "default"
|
|
269085
|
-
};
|
|
269086
269086
|
return `https://img.youtube.com/vi/${videoId}/${qualities[quality]}.jpg`;
|
|
269087
269087
|
};
|
|
269088
269088
|
var captureFrame = (frameTime, video) => {
|
|
@@ -270682,7 +270682,7 @@ function createAudio(id2, data, board) {
|
|
|
270682
270682
|
if (!isAudioItemData(data)) {
|
|
270683
270683
|
throw new Error("Invalid data for AudioItem");
|
|
270684
270684
|
}
|
|
270685
|
-
const audio = new AudioItem(board, data.
|
|
270685
|
+
const audio = new AudioItem(board, data.url, board.events, id2, data.extension).setId(id2).deserialize(data);
|
|
270686
270686
|
return audio;
|
|
270687
270687
|
}
|
|
270688
270688
|
function createDrawing(id2, data, board) {
|
|
@@ -284422,12 +284422,6 @@ 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
|
-
}
|
|
284431
284425
|
function getWebsocketUrl() {
|
|
284432
284426
|
if (window.MICROBOARD_FRONT_CONFIG.wsURL) {
|
|
284433
284427
|
return window.MICROBOARD_FRONT_CONFIG.wsURL;
|
|
@@ -361007,7 +361001,7 @@ class Location {
|
|
|
361007
361001
|
}
|
|
361008
361002
|
|
|
361009
361003
|
// src/App/router.tsx
|
|
361010
|
-
var
|
|
361004
|
+
var import_react447 = __toESM(require_react(), 1);
|
|
361011
361005
|
|
|
361012
361006
|
// src/entities/AIInput/utils.ts
|
|
361013
361007
|
var PLACEHOLDER_OFFSET = "\t\t\t\t\t\t\t\t\t\t\t\t";
|
|
@@ -449013,90 +449007,47 @@ var WheelEventLoggerPage = () => {
|
|
|
449013
449007
|
|
|
449014
449008
|
// src/App/router.tsx
|
|
449015
449009
|
var import_client2 = __toESM(require_client(), 1);
|
|
449016
|
-
|
|
449017
|
-
// src/pages/TestPage.tsx
|
|
449018
|
-
var import_react447 = __toESM(require_react(), 1);
|
|
449019
|
-
var TestPage = () => {
|
|
449020
|
-
const containerRef = import_react447.useRef(null);
|
|
449021
|
-
import_react447.useEffect(() => {
|
|
449022
|
-
const script1 = document.createElement("script");
|
|
449023
|
-
script1.src = `${getPublicUrl()}/embedMicroboard.js`;
|
|
449024
|
-
document.body.appendChild(script1);
|
|
449025
|
-
return () => {
|
|
449026
|
-
document.body.removeChild(script1);
|
|
449027
|
-
};
|
|
449028
|
-
}, []);
|
|
449029
|
-
return /* @__PURE__ */ import_react447.default.createElement("div", {
|
|
449030
|
-
style: {
|
|
449031
|
-
width: "100%",
|
|
449032
|
-
height: "100%",
|
|
449033
|
-
display: "flex",
|
|
449034
|
-
flexDirection: "column"
|
|
449035
|
-
}
|
|
449036
|
-
}, /* @__PURE__ */ import_react447.default.createElement("button", {
|
|
449037
|
-
style: { border: "1px solid black" },
|
|
449038
|
-
onClick: () => window.microboardOpener.selectBoard({
|
|
449039
|
-
success: (data) => {
|
|
449040
|
-
console.log("SUCCESS", data);
|
|
449041
|
-
const { visitorsLink } = data;
|
|
449042
|
-
if (containerRef.current) {
|
|
449043
|
-
containerRef.current.innerHTML = `<iframe src="${visitorsLink}" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>`;
|
|
449044
|
-
}
|
|
449045
|
-
},
|
|
449046
|
-
error: console.error,
|
|
449047
|
-
cancel: console.warn
|
|
449048
|
-
})
|
|
449049
|
-
}, "Открыть окно"), /* @__PURE__ */ import_react447.default.createElement("div", {
|
|
449050
|
-
style: {
|
|
449051
|
-
flexGrow: 1
|
|
449052
|
-
},
|
|
449053
|
-
ref: containerRef
|
|
449054
|
-
}));
|
|
449055
|
-
};
|
|
449056
|
-
|
|
449057
|
-
// src/App/router.tsx
|
|
449058
449010
|
function getRender(app) {
|
|
449059
449011
|
const router = createBrowserRouter([
|
|
449060
449012
|
{
|
|
449061
|
-
element: /* @__PURE__ */
|
|
449013
|
+
element: /* @__PURE__ */ import_react447.default.createElement(AppLayout, {
|
|
449062
449014
|
app
|
|
449063
449015
|
}),
|
|
449064
449016
|
children: [
|
|
449065
|
-
{ path: "/", element: /* @__PURE__ */
|
|
449017
|
+
{ path: "/", element: /* @__PURE__ */ import_react447.default.createElement(Navigate2, {
|
|
449066
449018
|
to: "/boards/blank"
|
|
449067
449019
|
}) },
|
|
449068
449020
|
{
|
|
449069
449021
|
path: "/auth",
|
|
449070
|
-
element: /* @__PURE__ */
|
|
449022
|
+
element: /* @__PURE__ */ import_react447.default.createElement(AuthLayout, {
|
|
449071
449023
|
showPolicies: true
|
|
449072
449024
|
}),
|
|
449073
449025
|
children: [
|
|
449074
449026
|
{
|
|
449075
|
-
element: /* @__PURE__ */
|
|
449027
|
+
element: /* @__PURE__ */ import_react447.default.createElement(UnauthGuard, null),
|
|
449076
449028
|
children: [
|
|
449077
|
-
{ path: "sign-up", element: /* @__PURE__ */
|
|
449078
|
-
{ path: "sign-in", element: /* @__PURE__ */
|
|
449079
|
-
{ path: "verify", element: /* @__PURE__ */
|
|
449080
|
-
{ path: "restore-password", element: /* @__PURE__ */
|
|
449081
|
-
{ path: "forgot-password", element: /* @__PURE__ */
|
|
449029
|
+
{ path: "sign-up", element: /* @__PURE__ */ import_react447.default.createElement(SignupPage, null) },
|
|
449030
|
+
{ path: "sign-in", element: /* @__PURE__ */ import_react447.default.createElement(SigninPage, null) },
|
|
449031
|
+
{ path: "verify", element: /* @__PURE__ */ import_react447.default.createElement(VerifyMailPage, null) },
|
|
449032
|
+
{ path: "restore-password", element: /* @__PURE__ */ import_react447.default.createElement(RestorePasswordPage, null) },
|
|
449033
|
+
{ path: "forgot-password", element: /* @__PURE__ */ import_react447.default.createElement(ForgotPasswordPage, null) }
|
|
449082
449034
|
]
|
|
449083
449035
|
}
|
|
449084
449036
|
]
|
|
449085
449037
|
},
|
|
449086
449038
|
{
|
|
449087
449039
|
path: "/bind-email",
|
|
449088
|
-
element: /* @__PURE__ */
|
|
449040
|
+
element: /* @__PURE__ */ import_react447.default.createElement(AuthLayout, null),
|
|
449089
449041
|
children: [
|
|
449090
|
-
{ path: "add-email", element: /* @__PURE__ */
|
|
449091
|
-
{ path: "verify", element: /* @__PURE__ */
|
|
449042
|
+
{ path: "add-email", element: /* @__PURE__ */ import_react447.default.createElement(AddEmailPage, null) },
|
|
449043
|
+
{ path: "verify", element: /* @__PURE__ */ import_react447.default.createElement(BindEmailPage, null) }
|
|
449092
449044
|
]
|
|
449093
449045
|
},
|
|
449094
|
-
{ path: "/welcome", element: /* @__PURE__ */
|
|
449095
|
-
{ path: "/boards/:boardId?", element: /* @__PURE__ */
|
|
449096
|
-
{ path: "/selectBoard", element: /* @__PURE__ */
|
|
449097
|
-
{ path: "/test-wheel", element: /* @__PURE__ */
|
|
449098
|
-
{ path: "/snapshots/:uid?", element: /* @__PURE__ */
|
|
449099
|
-
{ path: "test", element: /* @__PURE__ */ import_react448.default.createElement(TestPage, null) }
|
|
449046
|
+
{ path: "/welcome", element: /* @__PURE__ */ import_react447.default.createElement(WelcomePage, null) },
|
|
449047
|
+
{ path: "/boards/:boardId?", element: /* @__PURE__ */ import_react447.default.createElement(BoardPage, null) },
|
|
449048
|
+
{ path: "/selectBoard", element: /* @__PURE__ */ import_react447.default.createElement(SelectBoardPage, null) },
|
|
449049
|
+
{ path: "/test-wheel", element: /* @__PURE__ */ import_react447.default.createElement(WheelEventLoggerPage, null) },
|
|
449050
|
+
{ path: "/snapshots/:uid?", element: /* @__PURE__ */ import_react447.default.createElement(HTMLSnapshot_default, null) }
|
|
449100
449051
|
]
|
|
449101
449052
|
}
|
|
449102
449053
|
]);
|
|
@@ -449110,7 +449061,7 @@ function getRender(app) {
|
|
|
449110
449061
|
if (!root3) {
|
|
449111
449062
|
root3 = import_client2.createRoot(container);
|
|
449112
449063
|
}
|
|
449113
|
-
root3.render(/* @__PURE__ */
|
|
449064
|
+
root3.render(/* @__PURE__ */ import_react447.default.createElement(RouterProvider, {
|
|
449114
449065
|
router
|
|
449115
449066
|
}));
|
|
449116
449067
|
},
|
|
@@ -449127,9 +449078,9 @@ function getLocalRender(app) {
|
|
|
449127
449078
|
if (!root3) {
|
|
449128
449079
|
root3 = import_client2.createRoot(container);
|
|
449129
449080
|
}
|
|
449130
|
-
root3.render(/* @__PURE__ */
|
|
449081
|
+
root3.render(/* @__PURE__ */ import_react447.default.createElement(LocalAppLayout, {
|
|
449131
449082
|
app
|
|
449132
|
-
}, /* @__PURE__ */
|
|
449083
|
+
}, /* @__PURE__ */ import_react447.default.createElement(LocalSidePanelContextProvider, null, /* @__PURE__ */ import_react447.default.createElement(LocalAppView, null))));
|
|
449133
449084
|
};
|
|
449134
449085
|
}
|
|
449135
449086
|
|
package/dist/spa.js
CHANGED
|
@@ -269075,14 +269075,14 @@ var getYouTubeVideoPreview = (youtubeUrl) => {
|
|
|
269075
269075
|
};
|
|
269076
269076
|
});
|
|
269077
269077
|
};
|
|
269078
|
+
var qualities = {
|
|
269079
|
+
maxres: "maxresdefault",
|
|
269080
|
+
sd: "sddefault",
|
|
269081
|
+
hq: "hqdefault",
|
|
269082
|
+
mq: "mqdefault",
|
|
269083
|
+
default: "default"
|
|
269084
|
+
};
|
|
269078
269085
|
var getYouTubeThumbnail = (videoId, quality = "maxres") => {
|
|
269079
|
-
const qualities = {
|
|
269080
|
-
maxres: "maxresdefault",
|
|
269081
|
-
sd: "sddefault",
|
|
269082
|
-
hq: "hqdefault",
|
|
269083
|
-
mq: "mqdefault",
|
|
269084
|
-
default: "default"
|
|
269085
|
-
};
|
|
269086
269086
|
return `https://img.youtube.com/vi/${videoId}/${qualities[quality]}.jpg`;
|
|
269087
269087
|
};
|
|
269088
269088
|
var captureFrame = (frameTime, video) => {
|
|
@@ -270682,7 +270682,7 @@ function createAudio(id2, data, board) {
|
|
|
270682
270682
|
if (!isAudioItemData(data)) {
|
|
270683
270683
|
throw new Error("Invalid data for AudioItem");
|
|
270684
270684
|
}
|
|
270685
|
-
const audio = new AudioItem(board, data.
|
|
270685
|
+
const audio = new AudioItem(board, data.url, board.events, id2, data.extension).setId(id2).deserialize(data);
|
|
270686
270686
|
return audio;
|
|
270687
270687
|
}
|
|
270688
270688
|
function createDrawing(id2, data, board) {
|
|
@@ -284422,12 +284422,6 @@ 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
|
-
}
|
|
284431
284425
|
function getWebsocketUrl() {
|
|
284432
284426
|
if (window.MICROBOARD_FRONT_CONFIG.wsURL) {
|
|
284433
284427
|
return window.MICROBOARD_FRONT_CONFIG.wsURL;
|
|
@@ -361007,7 +361001,7 @@ class Location {
|
|
|
361007
361001
|
}
|
|
361008
361002
|
|
|
361009
361003
|
// src/App/router.tsx
|
|
361010
|
-
var
|
|
361004
|
+
var import_react447 = __toESM(require_react(), 1);
|
|
361011
361005
|
|
|
361012
361006
|
// src/entities/AIInput/utils.ts
|
|
361013
361007
|
var PLACEHOLDER_OFFSET = "\t\t\t\t\t\t\t\t\t\t\t\t";
|
|
@@ -449013,90 +449007,47 @@ var WheelEventLoggerPage = () => {
|
|
|
449013
449007
|
|
|
449014
449008
|
// src/App/router.tsx
|
|
449015
449009
|
var import_client2 = __toESM(require_client(), 1);
|
|
449016
|
-
|
|
449017
|
-
// src/pages/TestPage.tsx
|
|
449018
|
-
var import_react447 = __toESM(require_react(), 1);
|
|
449019
|
-
var TestPage = () => {
|
|
449020
|
-
const containerRef = import_react447.useRef(null);
|
|
449021
|
-
import_react447.useEffect(() => {
|
|
449022
|
-
const script1 = document.createElement("script");
|
|
449023
|
-
script1.src = `${getPublicUrl()}/embedMicroboard.js`;
|
|
449024
|
-
document.body.appendChild(script1);
|
|
449025
|
-
return () => {
|
|
449026
|
-
document.body.removeChild(script1);
|
|
449027
|
-
};
|
|
449028
|
-
}, []);
|
|
449029
|
-
return /* @__PURE__ */ import_react447.default.createElement("div", {
|
|
449030
|
-
style: {
|
|
449031
|
-
width: "100%",
|
|
449032
|
-
height: "100%",
|
|
449033
|
-
display: "flex",
|
|
449034
|
-
flexDirection: "column"
|
|
449035
|
-
}
|
|
449036
|
-
}, /* @__PURE__ */ import_react447.default.createElement("button", {
|
|
449037
|
-
style: { border: "1px solid black" },
|
|
449038
|
-
onClick: () => window.microboardOpener.selectBoard({
|
|
449039
|
-
success: (data) => {
|
|
449040
|
-
console.log("SUCCESS", data);
|
|
449041
|
-
const { visitorsLink } = data;
|
|
449042
|
-
if (containerRef.current) {
|
|
449043
|
-
containerRef.current.innerHTML = `<iframe src="${visitorsLink}" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>`;
|
|
449044
|
-
}
|
|
449045
|
-
},
|
|
449046
|
-
error: console.error,
|
|
449047
|
-
cancel: console.warn
|
|
449048
|
-
})
|
|
449049
|
-
}, "Открыть окно"), /* @__PURE__ */ import_react447.default.createElement("div", {
|
|
449050
|
-
style: {
|
|
449051
|
-
flexGrow: 1
|
|
449052
|
-
},
|
|
449053
|
-
ref: containerRef
|
|
449054
|
-
}));
|
|
449055
|
-
};
|
|
449056
|
-
|
|
449057
|
-
// src/App/router.tsx
|
|
449058
449010
|
function getRender(app) {
|
|
449059
449011
|
const router = createBrowserRouter([
|
|
449060
449012
|
{
|
|
449061
|
-
element: /* @__PURE__ */
|
|
449013
|
+
element: /* @__PURE__ */ import_react447.default.createElement(AppLayout, {
|
|
449062
449014
|
app
|
|
449063
449015
|
}),
|
|
449064
449016
|
children: [
|
|
449065
|
-
{ path: "/", element: /* @__PURE__ */
|
|
449017
|
+
{ path: "/", element: /* @__PURE__ */ import_react447.default.createElement(Navigate2, {
|
|
449066
449018
|
to: "/boards/blank"
|
|
449067
449019
|
}) },
|
|
449068
449020
|
{
|
|
449069
449021
|
path: "/auth",
|
|
449070
|
-
element: /* @__PURE__ */
|
|
449022
|
+
element: /* @__PURE__ */ import_react447.default.createElement(AuthLayout, {
|
|
449071
449023
|
showPolicies: true
|
|
449072
449024
|
}),
|
|
449073
449025
|
children: [
|
|
449074
449026
|
{
|
|
449075
|
-
element: /* @__PURE__ */
|
|
449027
|
+
element: /* @__PURE__ */ import_react447.default.createElement(UnauthGuard, null),
|
|
449076
449028
|
children: [
|
|
449077
|
-
{ path: "sign-up", element: /* @__PURE__ */
|
|
449078
|
-
{ path: "sign-in", element: /* @__PURE__ */
|
|
449079
|
-
{ path: "verify", element: /* @__PURE__ */
|
|
449080
|
-
{ path: "restore-password", element: /* @__PURE__ */
|
|
449081
|
-
{ path: "forgot-password", element: /* @__PURE__ */
|
|
449029
|
+
{ path: "sign-up", element: /* @__PURE__ */ import_react447.default.createElement(SignupPage, null) },
|
|
449030
|
+
{ path: "sign-in", element: /* @__PURE__ */ import_react447.default.createElement(SigninPage, null) },
|
|
449031
|
+
{ path: "verify", element: /* @__PURE__ */ import_react447.default.createElement(VerifyMailPage, null) },
|
|
449032
|
+
{ path: "restore-password", element: /* @__PURE__ */ import_react447.default.createElement(RestorePasswordPage, null) },
|
|
449033
|
+
{ path: "forgot-password", element: /* @__PURE__ */ import_react447.default.createElement(ForgotPasswordPage, null) }
|
|
449082
449034
|
]
|
|
449083
449035
|
}
|
|
449084
449036
|
]
|
|
449085
449037
|
},
|
|
449086
449038
|
{
|
|
449087
449039
|
path: "/bind-email",
|
|
449088
|
-
element: /* @__PURE__ */
|
|
449040
|
+
element: /* @__PURE__ */ import_react447.default.createElement(AuthLayout, null),
|
|
449089
449041
|
children: [
|
|
449090
|
-
{ path: "add-email", element: /* @__PURE__ */
|
|
449091
|
-
{ path: "verify", element: /* @__PURE__ */
|
|
449042
|
+
{ path: "add-email", element: /* @__PURE__ */ import_react447.default.createElement(AddEmailPage, null) },
|
|
449043
|
+
{ path: "verify", element: /* @__PURE__ */ import_react447.default.createElement(BindEmailPage, null) }
|
|
449092
449044
|
]
|
|
449093
449045
|
},
|
|
449094
|
-
{ path: "/welcome", element: /* @__PURE__ */
|
|
449095
|
-
{ path: "/boards/:boardId?", element: /* @__PURE__ */
|
|
449096
|
-
{ path: "/selectBoard", element: /* @__PURE__ */
|
|
449097
|
-
{ path: "/test-wheel", element: /* @__PURE__ */
|
|
449098
|
-
{ path: "/snapshots/:uid?", element: /* @__PURE__ */
|
|
449099
|
-
{ path: "test", element: /* @__PURE__ */ import_react448.default.createElement(TestPage, null) }
|
|
449046
|
+
{ path: "/welcome", element: /* @__PURE__ */ import_react447.default.createElement(WelcomePage, null) },
|
|
449047
|
+
{ path: "/boards/:boardId?", element: /* @__PURE__ */ import_react447.default.createElement(BoardPage, null) },
|
|
449048
|
+
{ path: "/selectBoard", element: /* @__PURE__ */ import_react447.default.createElement(SelectBoardPage, null) },
|
|
449049
|
+
{ path: "/test-wheel", element: /* @__PURE__ */ import_react447.default.createElement(WheelEventLoggerPage, null) },
|
|
449050
|
+
{ path: "/snapshots/:uid?", element: /* @__PURE__ */ import_react447.default.createElement(HTMLSnapshot_default, null) }
|
|
449100
449051
|
]
|
|
449101
449052
|
}
|
|
449102
449053
|
]);
|
|
@@ -449110,7 +449061,7 @@ function getRender(app) {
|
|
|
449110
449061
|
if (!root3) {
|
|
449111
449062
|
root3 = import_client2.createRoot(container);
|
|
449112
449063
|
}
|
|
449113
|
-
root3.render(/* @__PURE__ */
|
|
449064
|
+
root3.render(/* @__PURE__ */ import_react447.default.createElement(RouterProvider, {
|
|
449114
449065
|
router
|
|
449115
449066
|
}));
|
|
449116
449067
|
},
|
|
@@ -449127,9 +449078,9 @@ function getLocalRender(app) {
|
|
|
449127
449078
|
if (!root3) {
|
|
449128
449079
|
root3 = import_client2.createRoot(container);
|
|
449129
449080
|
}
|
|
449130
|
-
root3.render(/* @__PURE__ */
|
|
449081
|
+
root3.render(/* @__PURE__ */ import_react447.default.createElement(LocalAppLayout, {
|
|
449131
449082
|
app
|
|
449132
|
-
}, /* @__PURE__ */
|
|
449083
|
+
}, /* @__PURE__ */ import_react447.default.createElement(LocalSidePanelContextProvider, null, /* @__PURE__ */ import_react447.default.createElement(LocalAppView, null))));
|
|
449133
449084
|
};
|
|
449134
449085
|
}
|
|
449135
449086
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microboard-ui-temp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.161",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"fix:css": "bun run scripts/cameliseCssClasses.ts",
|
|
10
10
|
"lint": "bun run lint:css",
|
|
11
11
|
"clean": "rimraf dist",
|
|
12
|
-
"build:watch": "bun run
|
|
12
|
+
"build:watch": "bun run scripts/buildDevAndCopy.ts",
|
|
13
13
|
"build:dev": "bun run scripts/buildDev.ts",
|
|
14
14
|
"build:prod": "bun run scripts/buildProd.ts",
|
|
15
15
|
"build": "bun run build:prod && bun run build:types",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
67
67
|
"js-cookie": "^3.0.5",
|
|
68
68
|
"jwt-decode": "^4.0.0",
|
|
69
|
-
"microboard-temp": "^0.5.
|
|
69
|
+
"microboard-temp": "^0.5.67",
|
|
70
70
|
"nanoid": "^5.1.5",
|
|
71
71
|
"prop-types": "^15.8.1",
|
|
72
72
|
"react-hot-toast": "2.4.1",
|