microboard-ui-temp 0.1.105 → 0.1.107
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 +2 -1
- package/dist/example.html +2 -1
- package/dist/index.js +13 -13
- package/dist/spa.js +0 -1
- package/package.json +1 -1
package/dist/board.html
CHANGED
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
></shape-item
|
|
83
83
|
>
|
|
84
84
|
</div>
|
|
85
|
-
<script
|
|
85
|
+
<script src="/env.js"></script>
|
|
86
|
+
<script type="module" src="https://unpkg.com/microboard-ui-temp/dist/customWebComponents.js"></script>
|
|
86
87
|
<script type="module" src="https://unpkg.com/microboard-ui-temp/dist/controlsHandlers.js"></script>
|
|
87
88
|
<script type="module" src="https://unpkg.com/microboard-ui-temp/dist/titlePanel.js"></script>
|
|
88
89
|
<script defer src="https://unpkg.com/microboard-ui-temp/dist/loadLinksImages.js"></script>
|
package/dist/example.html
CHANGED
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"
|
|
105
105
|
></div>
|
|
106
106
|
<div id="tooltip"></div>
|
|
107
|
-
<script
|
|
107
|
+
<script src="/env.js"></script>
|
|
108
|
+
<script type="module" src="https://unpkg.com/microboard-ui-temp/dist/spa.js"></script>
|
|
108
109
|
</body>
|
|
109
110
|
</html>
|
package/dist/index.js
CHANGED
|
@@ -134733,7 +134733,7 @@ function proxy(initialObject = {}) {
|
|
|
134733
134733
|
}
|
|
134734
134734
|
function subscribe(proxyObject, callback, notifyInSync) {
|
|
134735
134735
|
const proxyState = proxyStateMap.get(proxyObject);
|
|
134736
|
-
if ((import.meta.env ?
|
|
134736
|
+
if ((import.meta.env ? globalThis.__ENV__?.MODE ?? "" : undefined) !== "production" && !proxyState) {
|
|
134737
134737
|
console.warn("Please use proxy object");
|
|
134738
134738
|
}
|
|
134739
134739
|
let promise;
|
|
@@ -134764,7 +134764,7 @@ function subscribe(proxyObject, callback, notifyInSync) {
|
|
|
134764
134764
|
}
|
|
134765
134765
|
function snapshot(proxyObject, handlePromise) {
|
|
134766
134766
|
const proxyState = proxyStateMap.get(proxyObject);
|
|
134767
|
-
if ((import.meta.env ?
|
|
134767
|
+
if ((import.meta.env ? globalThis.__ENV__?.MODE ?? "" : undefined) !== "production" && !proxyState) {
|
|
134768
134768
|
console.warn("Please use proxy object");
|
|
134769
134769
|
}
|
|
134770
134770
|
const [target, ensureVersion, createSnapshot] = proxyState;
|
|
@@ -134850,7 +134850,7 @@ var isObject6 = (x8) => typeof x8 === "object" && x8 !== null, proxyStateMap, re
|
|
|
134850
134850
|
};
|
|
134851
134851
|
const propProxyStates = /* @__PURE__ */ new Map;
|
|
134852
134852
|
const addPropListener = (prop, propProxyState) => {
|
|
134853
|
-
if ((import.meta.env ?
|
|
134853
|
+
if ((import.meta.env ? globalThis.__ENV__?.MODE ?? "" : undefined) !== "production" && propProxyStates.has(prop)) {
|
|
134854
134854
|
throw new Error("prop listener already exists");
|
|
134855
134855
|
}
|
|
134856
134856
|
if (listeners3.size) {
|
|
@@ -134872,7 +134872,7 @@ var isObject6 = (x8) => typeof x8 === "object" && x8 !== null, proxyStateMap, re
|
|
|
134872
134872
|
listeners3.add(listener);
|
|
134873
134873
|
if (listeners3.size === 1) {
|
|
134874
134874
|
propProxyStates.forEach(([propProxyState, prevRemove], prop) => {
|
|
134875
|
-
if ((import.meta.env ?
|
|
134875
|
+
if ((import.meta.env ? globalThis.__ENV__?.MODE ?? "" : undefined) !== "production" && prevRemove) {
|
|
134876
134876
|
throw new Error("remove already exists");
|
|
134877
134877
|
}
|
|
134878
134878
|
const remove2 = propProxyState[3](createPropListener(prop));
|
|
@@ -358202,7 +358202,7 @@ var ImgAuthClipboardModal = () => {
|
|
|
358202
358202
|
const { app } = useAppContext();
|
|
358203
358203
|
const onAuthClick = () => {
|
|
358204
358204
|
closeModal2();
|
|
358205
|
-
const clientId =
|
|
358205
|
+
const clientId = globalThis.__ENV__?.MIRO_CLIENT_ID ?? "";
|
|
358206
358206
|
const redirectRoute = "/boards/blank?clipboard=true";
|
|
358207
358207
|
const redirectUrl = window.location.origin + redirectRoute;
|
|
358208
358208
|
window.location.href = "https://miro.com/oauth/authorize?response_type=code&client_id=" + clientId + "&redirect_uri=" + redirectUrl;
|
|
@@ -375574,8 +375574,8 @@ function ImportMiro() {
|
|
|
375574
375574
|
const { openModal: openModal2 } = useUiModalContext();
|
|
375575
375575
|
const fetchToken = async () => {
|
|
375576
375576
|
try {
|
|
375577
|
-
const clientId =
|
|
375578
|
-
const clientSecret =
|
|
375577
|
+
const clientId = globalThis.__ENV__?.MIRO_CLIENT_ID ?? "";
|
|
375578
|
+
const clientSecret = globalThis.__ENV__?.MIRO_CLIENT_SECRET ?? "";
|
|
375579
375579
|
const redirectRoute = "/boards/blank?clipboard=true";
|
|
375580
375580
|
const redirectUrl = window.location.origin + redirectRoute;
|
|
375581
375581
|
const response = await fetch(getApiUrl("/miro/token" + "?grant_type=authorization_code&client_id=" + clientId + "&client_secret=" + clientSecret + "&code=" + authCode + "&redirect_uri=" + redirectUrl), {
|
|
@@ -435448,9 +435448,9 @@ var TolgeeProviderProvider = import_react309.memo(({ children }) => {
|
|
|
435448
435448
|
language: "en",
|
|
435449
435449
|
availableLanguages: ["en", "ru"],
|
|
435450
435450
|
observerType: "text",
|
|
435451
|
-
apiUrl:
|
|
435452
|
-
apiKey:
|
|
435453
|
-
projectId:
|
|
435451
|
+
apiUrl: globalThis.__ENV__?.TOLGEE_API_URL ?? "",
|
|
435452
|
+
apiKey: globalThis.__ENV__?.TOLGEE_API_KEY ?? "",
|
|
435453
|
+
projectId: globalThis.__ENV__?.TOLGEE_PROJECT_ID ?? "",
|
|
435454
435454
|
staticData: {}
|
|
435455
435455
|
}), []);
|
|
435456
435456
|
return /* @__PURE__ */ import_react309.default.createElement(TolgeeProvider, {
|
|
@@ -435463,7 +435463,7 @@ function getTolgeeApiUrl(path5) {
|
|
|
435463
435463
|
if (!path5) {
|
|
435464
435464
|
path5 = "";
|
|
435465
435465
|
}
|
|
435466
|
-
return `${
|
|
435466
|
+
return `${globalThis.__ENV__?.TOLGEE_API_URL ?? ""}/v2/projects/${globalThis.__ENV__?.TOLGEE_PROJECT_ID ?? ""}${path5}`;
|
|
435467
435467
|
}
|
|
435468
435468
|
|
|
435469
435469
|
// src/features/Templates/lib.ts
|
|
@@ -435641,7 +435641,7 @@ var CreateTemplate = () => {
|
|
|
435641
435641
|
method: "get",
|
|
435642
435642
|
headers: {
|
|
435643
435643
|
Accept: "application/json",
|
|
435644
|
-
"X-API-Key":
|
|
435644
|
+
"X-API-Key": globalThis.__ENV__?.TOLGEE_API_KEY ?? ""
|
|
435645
435645
|
}
|
|
435646
435646
|
});
|
|
435647
435647
|
return (await response.json())._embedded.languages;
|
|
@@ -435656,7 +435656,7 @@ var CreateTemplate = () => {
|
|
|
435656
435656
|
headers: {
|
|
435657
435657
|
"Content-Type": "application/json",
|
|
435658
435658
|
Accept: "application/json",
|
|
435659
|
-
"X-API-Key":
|
|
435659
|
+
"X-API-Key": globalThis.__ENV__?.TOLGEE_API_KEY ?? ""
|
|
435660
435660
|
},
|
|
435661
435661
|
body: data
|
|
435662
435662
|
}).then((response) => response.json()).catch((error3) => console.log(error3));
|
package/dist/spa.js
CHANGED
|
@@ -449544,7 +449544,6 @@ window.enableTemplateCreating = false;
|
|
|
449544
449544
|
window.enableDiagrams = false;
|
|
449545
449545
|
window.enableVideos = true;
|
|
449546
449546
|
window.enableGames = true;
|
|
449547
|
-
window.microboardFrontendConfig.apiURL = "testurl";
|
|
449548
449547
|
async function initializeApp() {
|
|
449549
449548
|
await initInter();
|
|
449550
449549
|
window.app = createApp();
|