microboard-ui-temp 0.1.63 → 0.1.65

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.css CHANGED
@@ -6175,41 +6175,37 @@ td.currentTariff_0VfwRg {
6175
6175
  right: var(--absolute-position-panel-padding);
6176
6176
  pointer-events: auto;
6177
6177
  z-index: 1000;
6178
- transition: transform .2s ease-in-out;
6178
+ opacity: .6;
6179
+ transition: all .2s ease-in-out;
6179
6180
  }
6180
6181
 
6181
6182
  .watermark_0KzpeA:hover {
6182
- transform: scale(1.05);
6183
- }
6184
-
6185
- .watermarkSvg_0KzpeA {
6186
- display: block;
6187
- filter: drop-shadow(0 1px 2px #0000001a);
6188
- transition: filter .2s ease-in-out;
6183
+ opacity: .9;
6184
+ transform: translateY(-1px);
6189
6185
  }
6190
6186
 
6191
- .watermark_0KzpeA:hover .watermarkSvg_0KzpeA {
6192
- filter: drop-shadow(0 2px 4px #0003);
6193
- }
6194
-
6195
- .watermarkBorder_0KzpeA {
6196
- transition: stroke .2s ease-in-out;
6187
+ .watermarkText_0KzpeA {
6188
+ letter-spacing: .3px;
6189
+ fill: #666;
6190
+ transition: all .2s ease-in-out;
6191
+ font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
6192
+ font-size: 13px;
6193
+ font-weight: 400;
6194
+ line-height: 1.2;
6197
6195
  }
6198
6196
 
6199
- .watermark_0KzpeA:hover .watermarkBorder_0KzpeA {
6200
- stroke: #333 !important;
6197
+ .watermark_0KzpeA:hover .watermarkText_0KzpeA {
6198
+ fill: #333;
6201
6199
  }
6202
6200
 
6203
- .watermarkText_0KzpeA {
6204
- letter-spacing: .5px;
6205
- transition: fill .2s ease-in-out;
6206
- font-family: Arial, Helvetica, sans-serif;
6207
- font-size: 11px;
6208
- font-weight: 600;
6201
+ .watermarkSvg_0KzpeA {
6202
+ display: block;
6203
+ filter: drop-shadow(0 1px 2px #0000000d);
6204
+ transition: filter .2s ease-in-out;
6209
6205
  }
6210
6206
 
6211
- .watermark_0KzpeA:hover .watermarkText_0KzpeA {
6212
- fill: #333 !important;
6207
+ .watermark_0KzpeA:hover .watermarkSvg_0KzpeA {
6208
+ filter: drop-shadow(0 2px 4px #0000001a);
6213
6209
  }
6214
6210
 
6215
6211
  /* src/features/AccessDeniedModal/AccessDeniedModal.module.css */
package/dist/index.js CHANGED
@@ -288547,6 +288547,7 @@ function removeAvatar() {
288547
288547
  // src/shared/api/boards/index.ts
288548
288548
  var exports_boards = {};
288549
288549
  __export(exports_boards, {
288550
+ publishSnapshot: () => publishSnapshot,
288550
288551
  manageAccess: () => manageAccess,
288551
288552
  grantAccess: () => grantAccess,
288552
288553
  getGrantedUsers: () => getGrantedUsers,
@@ -288681,6 +288682,17 @@ function manageAccess(boardId, manageAccess2) {
288681
288682
  }
288682
288683
  });
288683
288684
  }
288685
+ async function publishSnapshot(HTMLSnapshot, snapshotUId, boardUId) {
288686
+ const { data } = await api.post("/media/snapshot", {
288687
+ snapshot: HTMLSnapshot,
288688
+ snapshotUId,
288689
+ boardUId
288690
+ });
288691
+ if (!data) {
288692
+ throw new Error;
288693
+ }
288694
+ return data;
288695
+ }
288684
288696
  // src/shared/api/folders/index.ts
288685
288697
  var exports_folders = {};
288686
288698
  __export(exports_folders, {
@@ -345606,57 +345618,32 @@ var import_react185 = __toESM(require_react(), 1);
345606
345618
  // src/entities/Canvas/Watermark.module.css
345607
345619
  var Watermark_module_default = {
345608
345620
  watermark: "watermark_0KzpeA",
345609
- watermarkSvg: "watermarkSvg_0KzpeA",
345610
- watermarkBorder: "watermarkBorder_0KzpeA",
345611
- watermarkText: "watermarkText_0KzpeA"
345621
+ watermarkText: "watermarkText_0KzpeA",
345622
+ watermarkSvg: "watermarkSvg_0KzpeA"
345612
345623
  };
345613
345624
 
345614
345625
  // src/entities/Canvas/Watermark.tsx
345615
345626
  function Watermark() {
345616
345627
  return /* @__PURE__ */ import_react185.default.createElement("a", {
345617
- href: "https://github.com/hyperboard/microboard",
345628
+ href: "https://microboard.io",
345618
345629
  target: "_blank",
345619
345630
  rel: "noopener noreferrer",
345620
345631
  className: Watermark_module_default.watermark
345621
345632
  }, /* @__PURE__ */ import_react185.default.createElement("svg", {
345622
- width: "200",
345623
- height: "50",
345624
- viewBox: "0 0 200 50",
345633
+ width: "140",
345634
+ height: "38",
345635
+ viewBox: "0 0 140 38",
345625
345636
  className: Watermark_module_default.watermarkSvg
345626
- }, /* @__PURE__ */ import_react185.default.createElement("defs", null, /* @__PURE__ */ import_react185.default.createElement("linearGradient", {
345627
- id: "watermarkGradient",
345628
- x1: "0%",
345629
- y1: "0%",
345630
- x2: "100%",
345631
- y2: "0%"
345632
- }, /* @__PURE__ */ import_react185.default.createElement("stop", {
345633
- offset: "0%",
345634
- style: { stopColor: "#999", stopOpacity: 0.5 }
345635
- }), /* @__PURE__ */ import_react185.default.createElement("stop", {
345636
- offset: "100%",
345637
- style: { stopColor: "#666", stopOpacity: 0.7 }
345638
- }))), /* @__PURE__ */ import_react185.default.createElement("rect", {
345639
- x: "5",
345640
- y: "5",
345641
- width: "190",
345642
- height: "40",
345643
- rx: "8",
345644
- fill: "none",
345645
- stroke: "url(#watermarkGradient)",
345646
- strokeWidth: "1",
345647
- className: Watermark_module_default.watermarkBorder
345648
- }), /* @__PURE__ */ import_react185.default.createElement("text", {
345649
- x: "100",
345650
- y: "22",
345637
+ }, /* @__PURE__ */ import_react185.default.createElement("text", {
345638
+ x: "70",
345639
+ y: "16",
345651
345640
  textAnchor: "middle",
345652
- className: Watermark_module_default.watermarkText,
345653
- fill: "url(#watermarkGradient)"
345654
- }, "Made with"), /* @__PURE__ */ import_react185.default.createElement("text", {
345655
- x: "100",
345656
- y: "38",
345641
+ className: Watermark_module_default.watermarkText
345642
+ }, "Powered by"), /* @__PURE__ */ import_react185.default.createElement("text", {
345643
+ x: "70",
345644
+ y: "30",
345657
345645
  textAnchor: "middle",
345658
- className: Watermark_module_default.watermarkText,
345659
- fill: "url(#watermarkGradient)"
345646
+ className: Watermark_module_default.watermarkText
345660
345647
  }, "Microboard")));
345661
345648
  }
345662
345649
 
@@ -1,3 +1,4 @@
1
+ import { MessageResponse } from "../types";
1
2
  import { type AccessKey, type AccessKeyPayload, type Board, type BoardPayload, type ClaimBoardsPayload, type GrantAccessPayload, type GrantedUser, type ManageAccessPayload } from "./types";
2
3
  export declare function createBoard(body: BoardPayload): Promise<import("..").HTTPResponse<Board>>;
3
4
  export declare function claimBoards(body: ClaimBoardsPayload): Promise<import("..").HTTPResponse<unknown>>;
@@ -11,3 +12,6 @@ export declare function deleteAccessKey(boardId: string, accessKey: string, auth
11
12
  export declare function getGrantedUsers(boardId: string): Promise<import("..").HTTPResponse<GrantedUser[]>>;
12
13
  export declare function grantAccess(boardId: string, users: GrantAccessPayload[]): Promise<import("..").HTTPResponse<unknown>>;
13
14
  export declare function manageAccess(boardId: string, manageAccess: ManageAccessPayload): Promise<import("..").HTTPResponse<unknown>>;
15
+ export declare function publishSnapshot(HTMLSnapshot: string, snapshotUId: string, boardUId: string): Promise<MessageResponse & {
16
+ snapshotURI: string;
17
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",