microboard-ui-temp 0.1.75 → 0.1.76

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.
@@ -0,0 +1,22 @@
1
+ <svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g filter="url(#filter0_dd_4488_42225)">
3
+ <path d="M6.80084 18C6.57679 18 6.35923 18.0752 6.18305 18.2137L3.61778 20.229C2.96165 20.7445 2 20.2771 2 19.4427V3C2 2.73478 2.10536 2.48043 2.29289 2.29289C2.48043 2.10536 2.73478 2 3 2H21C21.2652 2 21.5196 2.10536 21.7071 2.29289C21.8946 2.48043 22 2.73478 22 3V17C22 17.2652 21.8946 17.5196 21.7071 17.7071C21.5196 17.8946 21.2652 18 21 18H6.80084ZM5.49106 16.2136C5.66723 16.0752 5.88478 16 6.10882 16H20V4H4V17.385L5.49106 16.2136Z" fill="#14151A"/>
4
+ <path d="M5.49106 16.2136C5.66723 16.0752 5.88478 16 6.10882 16H20V4H4V17.385L5.49106 16.2136Z" fill="white"/>
5
+ </g>
6
+ <defs>
7
+ <filter id="filter0_dd_4488_42225" x="-1" y="0" width="26" height="24.4446" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
8
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
9
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
10
+ <feOffset dy="1"/>
11
+ <feGaussianBlur stdDeviation="1"/>
12
+ <feColorMatrix type="matrix" values="0 0 0 0 0.0784314 0 0 0 0 0.0823529 0 0 0 0 0.101961 0 0 0 0.06 0"/>
13
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4488_42225"/>
14
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
15
+ <feOffset dy="1"/>
16
+ <feGaussianBlur stdDeviation="1.5"/>
17
+ <feColorMatrix type="matrix" values="0 0 0 0 0.0784314 0 0 0 0 0.0823529 0 0 0 0 0.101961 0 0 0 0.1 0"/>
18
+ <feBlend mode="normal" in2="effect1_dropShadow_4488_42225" result="effect2_dropShadow_4488_42225"/>
19
+ <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_4488_42225" result="shape"/>
20
+ </filter>
21
+ </defs>
22
+ </svg>
@@ -48,12 +48,7 @@ function createWheelHandler(itemsDiv) {
48
48
  };
49
49
  }
50
50
  var handlers = {};
51
- function initListeners() {
52
- const itemsDiv = document.querySelector("#items");
53
- if (!itemsDiv) {
54
- console.error("ITEMS DIV NOT FOUND!");
55
- return;
56
- }
51
+ function initListeners(itemsDiv) {
57
52
  itemsDiv.style.transformOrigin = "0 0";
58
53
  document.body.style.cursor = "grab";
59
54
  handlers.mousedown = createMouseDownHandler(itemsDiv);
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10.6667 14.8333H15.6667C16.1269 14.8333 16.5 15.2064 16.5 15.6667C16.5 16.1269 16.1269 16.5 15.6667 16.5H9.00001L5.66835 16.5017L0.262513 11.0958C0.106287 10.9396 0.0185242 10.7276 0.0185242 10.5067C0.0185242 10.2857 0.106287 10.0738 0.262513 9.9175L9.10001 1.07833C9.17741 1.00085 9.26931 0.939383 9.37048 0.897446C9.47164 0.855509 9.58008 0.833923 9.6896 0.833923C9.79911 0.833923 9.90755 0.855509 10.0087 0.897446C10.1099 0.939383 10.2018 1.00085 10.2792 1.07833L16.7608 7.56C16.9171 7.71627 17.0048 7.92819 17.0048 8.14916C17.0048 8.37013 16.9171 8.58206 16.7608 8.73833L10.6667 14.8333ZM12.0475 11.0958L14.9933 8.14916L9.69001 2.84583L6.74418 5.7925L12.0475 11.0958Z" fill="#14151A"/>
3
+ </svg>
@@ -0,0 +1,95 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta
6
+ name="viewport"
7
+ content="
8
+ width=device-width,
9
+ initial-scale=1,
10
+ shrink-to-fit=no
11
+ minimum-scale=1.0,
12
+ maximum-scale=1.0,
13
+ user-scalable=no
14
+ "
15
+ />
16
+ <title>Microboard</title>
17
+ <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16-yz8wdy0r.png" />
18
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32-cwn1gceh.png" />
19
+ <link rel="icon" type="image/svg+xml" href="public/favicon.svg" />
20
+ <link rel="icon" href="/favicon-886rjdq8.ico" />
21
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-8hjanz47.png" />
22
+ <link rel="manifest" href="/site-fdcbs67f.webmanifest" />
23
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
24
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
25
+ <link
26
+ href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap"
27
+ rel="stylesheet"
28
+ />
29
+ <link
30
+ href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap"
31
+ rel="stylesheet"
32
+ />
33
+ <link rel="stylesheet" type="text/css" href="https://unpkg.com/microboard-ui-temp/dist/index.css" />
34
+ </head>
35
+
36
+ <body
37
+ style="
38
+ margin: 0;
39
+ height: 100%;
40
+ width: 100%;
41
+ /* overflow: hidden; */
42
+ position: fixed;
43
+ padding: 0;
44
+ touch-action: none;
45
+ -ms-touch-action: none;
46
+ background-color: #fff;
47
+ "
48
+ >
49
+ <div
50
+ id="root"
51
+ style="
52
+ height: 100%;
53
+ width: 100%;
54
+ resize: none;
55
+ background: none;
56
+ outline: none;
57
+ border: none;
58
+ padding: 0px;
59
+ margin: 0px;
60
+ overflow: auto;
61
+ "
62
+ >
63
+ <div
64
+ style="
65
+ display: flex;
66
+ justify-content: center;
67
+ align-items: center;
68
+ height: 100vh;
69
+ width: 100vw;
70
+ "
71
+ >
72
+ <div style="transform: scale(7)">
73
+ <img src="public/loader.svg" alt="" />
74
+ </div>
75
+ </div>
76
+ </div>
77
+ <div id="modal"></div>
78
+ <div id="selector"></div>
79
+ <div
80
+ id="drag"
81
+ style="
82
+ position: fixed;
83
+ left: 0;
84
+ top: 0;
85
+ touch-action: none;
86
+ height: 100%;
87
+ width: 100%;
88
+ z-index: 1000;
89
+ pointer-events: none;
90
+ "
91
+ ></div>
92
+ <div id="tooltip"></div>
93
+ <script type="module" src="https://unpkg.com/microboard-ui-temp/dist/spa.js"></script>
94
+ </body>
95
+ </html>
Binary file
Binary file
Binary file
package/dist/index.css CHANGED
@@ -13774,7 +13774,7 @@ audio::-webkit-media-controls-enclosure {
13774
13774
  rotate: 90deg;
13775
13775
  }
13776
13776
 
13777
- /* src/index.css */
13777
+ /* src/public/index.css */
13778
13778
  :root {
13779
13779
  --background-surface-default: #fff;
13780
13780
  --background-button-secondary: #fff;
package/dist/index.js CHANGED
@@ -335301,7 +335301,9 @@ Upgrade to Plus to increase the limit and keep working`,
335301
335301
  connectionLostHeader: "You are offline. Reconnecting...",
335302
335302
  connectionReestablished: "Connection restored.",
335303
335303
  restoringConnectionHeader: "Restoring connection.",
335304
- restoringConnectionBody: "Do not refresh the page or close the tab to avoid losing your progress"
335304
+ restoringConnectionBody: "Do not refresh the page or close the tab to avoid losing your progress",
335305
+ offlineHeader: "Board opened in offline mode.",
335306
+ offlineBody: "Changes will not be saved."
335305
335307
  },
335306
335308
  landing: {
335307
335309
  menu: {
@@ -336537,7 +336539,9 @@ var ru_default = {
336537
336539
  connectionLostHeader: "Доска в оффлайн-режиме. Восстанавливаем соединение...",
336538
336540
  connectionReestablished: "Соединение восстановлено.",
336539
336541
  restoringConnectionHeader: "Восстанавливаем соединение",
336540
- restoringConnectionBody: "Не обновляйте страницу и не закрывайте вкладку, чтобы не потерять прогресс"
336542
+ restoringConnectionBody: "Не обновляйте страницу и не закрывайте вкладку, чтобы не потерять прогресс",
336543
+ offlineHeader: "Доска открыта в оффлайн режиме.",
336544
+ offlineBody: "Изменения не будут сохранены."
336541
336545
  },
336542
336546
  landing: {
336543
336547
  menu: {
@@ -427255,6 +427259,7 @@ function Sprite() {
427255
427259
  // src/features/AppView/AppView.tsx
427256
427260
  function AppView() {
427257
427261
  const { app, board } = useAppContext();
427262
+ const { t: t11 } = useTranslation();
427258
427263
  const { setQuotedText, tryToSendGenerationRequest } = useAIContext();
427259
427264
  const { setHyperLinkData, hyperLinkData } = useHyperLinkContext();
427260
427265
  const location3 = useLocation();
@@ -427281,6 +427286,12 @@ function AppView() {
427281
427286
  Audio: AudioPlayer
427282
427287
  };
427283
427288
  import_react414.useEffect(() => {
427289
+ notify2({
427290
+ header: t11("notifications.offlineHeader"),
427291
+ body: t11("notifications.offlineBody"),
427292
+ variant: "info",
427293
+ duration: Infinity
427294
+ });
427284
427295
  const handleCtrlWheel = (ev) => {
427285
427296
  if (ev.ctrlKey) {
427286
427297
  ev.preventDefault();
@@ -446305,15 +446316,13 @@ var pasteWelcomeBoardData = (board, lang) => {
446305
446316
  function WelcomePage() {
446306
446317
  const { app } = useAppContext();
446307
446318
  const navigate = useNavigate();
446308
- const { i18n: i18n7, t: t11 } = useTranslation();
446309
- const boardsList = useBoardsList();
446310
446319
  const createPublicBoard = async (app2) => {
446311
446320
  const lastBoardId = app2.getLastBoardId();
446312
446321
  if (lastBoardId) {
446313
446322
  await app2.openBoard(lastBoardId);
446314
446323
  return lastBoardId;
446315
446324
  }
446316
- return "welcome";
446325
+ return "welcome-local";
446317
446326
  };
446318
446327
  import_react419.default.useEffect(() => {
446319
446328
  createPublicBoard(app).then((boardId) => {
@@ -448712,8 +448721,8 @@ function createApp(isHistory = true) {
448712
448721
  const authInterceptor = getAuthInterceptor(account);
448713
448722
  api.interceptors.addRequestInterceptor(authInterceptor);
448714
448723
  async function openBoard(id3, accessKey) {
448715
- if (id3 === "welcome") {
448716
- const welcomeBoard = new Board("welcome");
448724
+ if (id3.includes("welcome")) {
448725
+ const welcomeBoard = new Board(id3);
448717
448726
  pasteWelcomeBoardData(welcomeBoard, conf.i18n.language);
448718
448727
  subscriptions.setBoard(welcomeBoard);
448719
448728
  boardSubject.publish(welcomeBoard);
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5 11.1L7 9.1L12.5 14.6L16 11.1L19 14.1V5H5V11.1ZM4 3H20C20.2652 3 20.5196 3.10536 20.7071 3.29289C20.8946 3.48043 21 3.73478 21 4V20C21 20.2652 20.8946 20.5196 20.7071 20.7071C20.5196 20.8946 20.2652 21 20 21H4C3.73478 21 3.48043 20.8946 3.29289 20.7071C3.10536 20.5196 3 20.2652 3 20V4C3 3.73478 3.10536 3.48043 3.29289 3.29289C3.48043 3.10536 3.73478 3 4 3ZM15.5 10C15.1022 10 14.7206 9.84196 14.4393 9.56066C14.158 9.27936 14 8.89782 14 8.5C14 8.10218 14.158 7.72064 14.4393 7.43934C14.7206 7.15804 15.1022 7 15.5 7C15.8978 7 16.2794 7.15804 16.5607 7.43934C16.842 7.72064 17 8.10218 17 8.5C17 8.89782 16.842 9.27936 16.5607 9.56066C16.2794 9.84196 15.8978 10 15.5 10Z" fill="white" fill-opacity="0.6"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17.4956 10.7475L13.4 6.65092V5.64988L12.5464 6.50344L2.64645 16.4034L2.5 16.5499V16.757V21V21.5H3H7.242H7.44909L7.59554 21.3536L17.4955 11.4546L17.8491 11.1011L17.4956 10.7475ZM13.9604 5.09052L13.607 5.44408L13.9604 5.79754L18.2024 10.0395L18.5559 10.393L18.9095 10.0396L21.0315 7.91863L21.0316 7.91849C21.3128 7.6372 21.4708 7.25574 21.4708 6.85799C21.4708 6.46024 21.3128 6.07878 21.0316 5.79749L21.0316 5.79744L18.2026 2.96844L18.2025 2.96839C17.9212 2.68718 17.5397 2.52921 17.142 2.52921C16.7443 2.52921 16.3628 2.68718 16.0815 2.96839L16.0814 2.96852L13.9604 5.09052Z" fill="#14151A" stroke="white"/>
3
+ </svg>
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "MyWebSite",
3
+ "short_name": "MySite",
4
+ "icons": [
5
+ {
6
+ "src": "/web-app-manifest-192x192.png",
7
+ "sizes": "192x192",
8
+ "type": "image/png",
9
+ "purpose": "maskable"
10
+ },
11
+ {
12
+ "src": "/web-app-manifest-512x512.png",
13
+ "sizes": "512x512",
14
+ "type": "image/png",
15
+ "purpose": "maskable"
16
+ }
17
+ ],
18
+ "theme_color": "#ffffff",
19
+ "background_color": "#ffffff",
20
+ "display": "standalone"
21
+ }