microboard-ui-temp 0.1.21 → 0.1.22

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -346580,6 +346580,7 @@ function UiSelector({
346580
346580
  value: value2,
346581
346581
  disabledTooltip
346582
346582
  }) {
346583
+ const { t: t10 } = useTranslation();
346583
346584
  const selectedOption = options3.find((opt) => opt.value === value2);
346584
346585
  const [isOpen, setIsOpen] = import_react192.useState(false);
346585
346586
  const [position4, setPosition] = import_react192.useState({ top: 0, left: 0, width: 0 });
@@ -346643,7 +346644,7 @@ function UiSelector({
346643
346644
  style: { color: iconColor }
346644
346645
  }, icon), /* @__PURE__ */ import_react192.default.createElement("p", {
346645
346646
  className: UiSelector_module_default.selectedOptionText
346646
- }, selectedOption?.label), /* @__PURE__ */ import_react192.default.createElement("div", {
346647
+ }, t10(selectedOption?.label)), /* @__PURE__ */ import_react192.default.createElement("div", {
346647
346648
  className: UiSelector_module_default.mark
346648
346649
  }, /* @__PURE__ */ import_react192.default.createElement(Icon, {
346649
346650
  width: 20,
@@ -346668,7 +346669,7 @@ function UiSelector({
346668
346669
  className: UiSelector_module_default.optionIcon
346669
346670
  }, opt.icon), /* @__PURE__ */ import_react192.default.createElement("span", {
346670
346671
  className: UiSelector_module_default.optionText
346671
- }, opt.label), /* @__PURE__ */ import_react192.default.createElement("span", {
346672
+ }, t10(opt.label)), /* @__PURE__ */ import_react192.default.createElement("span", {
346672
346673
  className: UiSelector_module_default.checkMark
346673
346674
  }, /* @__PURE__ */ import_react192.default.createElement(Icon, {
346674
346675
  width: 20,
@@ -347250,7 +347251,7 @@ var import_isEmail2 = __toESM(require_isEmail(), 1);
347250
347251
  var SHARE_MODAL_ID = Symbol("shareModal");
347251
347252
  var PRIVACY_SELECTOR_OPTIONS = [
347252
347253
  {
347253
- label: instance2.t("sharing.privacyOptions.public"),
347254
+ label: "sharing.privacyOptions.public",
347254
347255
  value: "public",
347255
347256
  icon: /* @__PURE__ */ import_react196.default.createElement(Icon, {
347256
347257
  width: 20,
@@ -347259,7 +347260,7 @@ var PRIVACY_SELECTOR_OPTIONS = [
347259
347260
  })
347260
347261
  },
347261
347262
  {
347262
- label: instance2.t("sharing.privacyOptions.private"),
347263
+ label: "sharing.privacyOptions.private",
347263
347264
  value: "private",
347264
347265
  icon: /* @__PURE__ */ import_react196.default.createElement(Icon, {
347265
347266
  width: 20,
@@ -347270,7 +347271,7 @@ var PRIVACY_SELECTOR_OPTIONS = [
347270
347271
  ];
347271
347272
  var MODE_SELECTOR_OPTIONS2 = [
347272
347273
  {
347273
- label: instance2.t("sharing.accessOptions.edit"),
347274
+ label: "sharing.accessOptions.edit",
347274
347275
  value: "edit",
347275
347276
  icon: /* @__PURE__ */ import_react196.default.createElement(Icon, {
347276
347277
  width: 20,
@@ -347279,7 +347280,7 @@ var MODE_SELECTOR_OPTIONS2 = [
347279
347280
  })
347280
347281
  },
347281
347282
  {
347282
- label: instance2.t("sharing.accessOptions.view"),
347283
+ label: "sharing.accessOptions.view",
347283
347284
  value: "view",
347284
347285
  icon: /* @__PURE__ */ import_react196.default.createElement(Icon, {
347285
347286
  width: 20,
@@ -347589,7 +347590,7 @@ function ShareModal() {
347589
347590
  var USER_ACCESS_SELECTOR_OPTIONS = [
347590
347591
  {
347591
347592
  value: "edit",
347592
- label: instance2.t("sharing.accessOptions.edit"),
347593
+ label: "sharing.accessOptions.edit",
347593
347594
  icon: /* @__PURE__ */ import_react196.default.createElement(Icon, {
347594
347595
  width: 20,
347595
347596
  height: 20,
@@ -347598,7 +347599,7 @@ var USER_ACCESS_SELECTOR_OPTIONS = [
347598
347599
  },
347599
347600
  {
347600
347601
  value: "view",
347601
- label: instance2.t("sharing.accessOptions.view"),
347602
+ label: "sharing.accessOptions.view",
347602
347603
  icon: /* @__PURE__ */ import_react196.default.createElement(Icon, {
347603
347604
  width: 20,
347604
347605
  height: 20,
@@ -347607,7 +347608,7 @@ var USER_ACCESS_SELECTOR_OPTIONS = [
347607
347608
  },
347608
347609
  {
347609
347610
  value: "noAccess",
347610
- label: instance2.t("sharing.accessOptions.noAccess"),
347611
+ label: "sharing.accessOptions.noAccess",
347611
347612
  icon: /* @__PURE__ */ import_react196.default.createElement(Icon, {
347612
347613
  width: 20,
347613
347614
  height: 20,
@@ -446478,12 +446479,12 @@ function generateComparisonPlaywrightCode(oldSnapshot) {
446478
446479
  }
446479
446480
 
446480
446481
  // src/App/App.ts
446481
- var { i18n: i18n8 } = conf;
446482
446482
  var LAST_BOARD_KEY = "lastSeenBoard";
446483
446483
  var LAST_BOARD_KEY_QS = LAST_BOARD_KEY.concat("Wqs");
446484
446484
  function createApp(isHistory = true) {
446485
446485
  const connection = createConnection(getBoard2, getAccount3, getStorage);
446486
446486
  conf.connection = connection;
446487
+ conf.i18n = instance2;
446487
446488
  const clipboard = new Clipboard;
446488
446489
  const location3 = new Location;
446489
446490
  const storage2 = new Storage;
@@ -446794,7 +446795,7 @@ function createApp(isHistory = true) {
446794
446795
  account.onLogout?.();
446795
446796
  router.navigate(`/auth/sign-in${window.location.search}`);
446796
446797
  notify2({
446797
- body: i18n8.t("auth.sessionExpired"),
446798
+ body: conf.i18n.t("auth.sessionExpired"),
446798
446799
  variant: "error"
446799
446800
  });
446800
446801
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",