@univerjs/docs-hyper-link-ui 0.24.0 → 0.25.0

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 (89) hide show
  1. package/lib/cjs/index.js +35 -24
  2. package/lib/cjs/locale/ar-SA.js +24 -0
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +24 -0
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +24 -0
  10. package/lib/cjs/locale/it-IT.js +24 -0
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +24 -0
  14. package/lib/cjs/locale/pt-BR.js +24 -0
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +24 -0
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +37 -26
  22. package/lib/es/locale/ar-SA.js +23 -0
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +23 -0
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +23 -0
  30. package/lib/es/locale/it-IT.js +23 -0
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +23 -0
  34. package/lib/es/locale/pt-BR.js +23 -0
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +23 -0
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +37 -26
  42. package/lib/locale/ar-SA.js +23 -0
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +23 -0
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +23 -0
  50. package/lib/locale/it-IT.js +23 -0
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +23 -0
  54. package/lib/locale/pt-BR.js +23 -0
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +23 -0
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/locale/ar-SA.d.ts +18 -0
  62. package/lib/types/locale/de-DE.d.ts +18 -0
  63. package/lib/types/locale/en-US.d.ts +1 -1
  64. package/lib/types/locale/id-ID.d.ts +18 -0
  65. package/lib/types/locale/it-IT.d.ts +18 -0
  66. package/lib/types/locale/pl-PL.d.ts +18 -0
  67. package/lib/types/locale/pt-BR.d.ts +18 -0
  68. package/lib/types/locale/zh-HK.d.ts +18 -0
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -0
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -0
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -0
  78. package/lib/umd/locale/it-IT.js +1 -0
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -0
  82. package/lib/umd/locale/pt-BR.js +1 -0
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -0
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +11 -11
package/lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { BuildTextUtils, CommandType, CustomRangeType, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOCS_ZEN_EDITOR_UNIT_ID_KEY, DependentOn, Disposable, ICommandService, IConfigService, IUniverInstanceService, Inject, Injector, LocaleService, Plugin, Tools, UniverInstanceType, generateRandomId, getBodySlice, merge } from "@univerjs/core";
1
+ import { BuildTextUtils, CommandType, CustomRangeType, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOCS_ZEN_EDITOR_UNIT_ID_KEY, DependentOn, Disposable, ICommandService, IConfigService, IUniverInstanceService, Inject, Injector, LocaleService, Plugin, Tools, UniverInstanceType, generateRandomId, getBodySlice, isSafeUrl, merge } from "@univerjs/core";
2
2
  import { UniverDocsHyperLinkPlugin } from "@univerjs/docs-hyper-link";
3
3
  import { IRenderManagerService } from "@univerjs/engine-render";
4
4
  import { DOC_INTERCEPTOR_POINT, DocInterceptorService, DocSelectionManagerService, DocSkeletonManagerService, SetTextSelectionsOperation, addCustomRangeBySelectionFactory, deleteCustomRangeFactory, replaceSelectionFactory } from "@univerjs/docs";
5
- import { DocCanvasPopManagerService, DocEventManagerService, DocRenderController, whenDocAndEditorFocused } from "@univerjs/docs-ui";
5
+ import { DocCanvasPopManagerService, DocEventManagerService, DocRenderController, EMPTY_PARAGRAPH_MENU_ID, INSERT_BELLOW_MENU_ID, whenDocAndEditorFocused } from "@univerjs/docs-ui";
6
6
  import { BehaviorSubject, Observable, debounceTime, distinctUntilChanged, pairwise } from "rxjs";
7
7
  import { Button, FormLayout, Input, MessageType, Tooltip, borderClassName, clsx } from "@univerjs/design";
8
8
  import { ComponentManager, ContextMenuGroup, ContextMenuPosition, IMenuManagerService, IMessageService, IShortcutService, KeyCode, MenuItemType, MetaKeys, RibbonInsertGroup, getMenuHiddenObservable, useDependency, useObservable } from "@univerjs/ui";
@@ -12,7 +12,7 @@ import { CopyIcon, LinkIcon, UnlinkIcon, WriteIcon } from "@univerjs/icons";
12
12
 
13
13
  //#region package.json
14
14
  var name = "@univerjs/docs-hyper-link-ui";
15
- var version = "0.24.0";
15
+ var version = "0.25.0";
16
16
 
17
17
  //#endregion
18
18
  //#region src/config/config.ts
@@ -181,8 +181,8 @@ const DocHyperLinkEdit = () => {
181
181
  return /* @__PURE__ */ jsxs("div", {
182
182
  className: clsx("univer-box-border univer-w-[328px] univer-rounded-xl univer-bg-white univer-px-6 univer-py-5 univer-shadow dark:!univer-bg-gray-900", borderClassName),
183
183
  children: [/* @__PURE__ */ jsxs("div", { children: [editing ? /* @__PURE__ */ jsx(FormLayout, {
184
- label: localeService.t("docLink.edit.label"),
185
- error: showError && isBlankInput(label) ? localeService.t("docLink.edit.labelError") : "",
184
+ label: localeService.t("docs-hyper-link-ui.edit.label"),
185
+ error: showError && isBlankInput(label) ? localeService.t("docs-hyper-link-ui.edit.labelError") : "",
186
186
  children: /* @__PURE__ */ jsx(Input, {
187
187
  value: label,
188
188
  onChange: setLabel,
@@ -192,8 +192,8 @@ const DocHyperLinkEdit = () => {
192
192
  }
193
193
  })
194
194
  }) : null, /* @__PURE__ */ jsx(FormLayout, {
195
- label: localeService.t("docLink.edit.address"),
196
- error: showError && !isLegal ? localeService.t("docLink.edit.addressError") : "",
195
+ label: localeService.t("docs-hyper-link-ui.edit.address"),
196
+ error: showError && !isLegal ? localeService.t("docs-hyper-link-ui.edit.addressError") : "",
197
197
  children: /* @__PURE__ */ jsx(Input, {
198
198
  value: link,
199
199
  onChange: setLink,
@@ -206,12 +206,12 @@ const DocHyperLinkEdit = () => {
206
206
  className: "univer-flex univer-justify-end univer-gap-3",
207
207
  children: [/* @__PURE__ */ jsx(Button, {
208
208
  onClick: handleCancel,
209
- children: localeService.t("docLink.edit.cancel")
209
+ children: localeService.t("docs-hyper-link-ui.edit.cancel")
210
210
  }), /* @__PURE__ */ jsx(Button, {
211
211
  variant: "primary",
212
212
  disabled: isBlankInput(link),
213
213
  onClick: handleConfirm,
214
- children: localeService.t("docLink.edit.confirm")
214
+ children: localeService.t("docs-hyper-link-ui.edit.confirm")
215
215
  })]
216
216
  })]
217
217
  });
@@ -286,7 +286,8 @@ const ClickDocHyperLinkOperation = {
286
286
  const doc = accessor.get(IUniverInstanceService).getUnit(unitId, UniverInstanceType.UNIVER_DOC);
287
287
  const body = doc === null || doc === void 0 ? void 0 : doc.getSelfOrHeaderFooterModel(segmentId).getBody();
288
288
  const link = body === null || body === void 0 || (_body$customRanges = body.customRanges) === null || _body$customRanges === void 0 || (_body$customRanges = _body$customRanges.find((range) => range.rangeId === linkId && range.rangeType === CustomRangeType.HYPERLINK)) === null || _body$customRanges === void 0 || (_body$customRanges = _body$customRanges.properties) === null || _body$customRanges === void 0 ? void 0 : _body$customRanges.url;
289
- if (link) window.open(link, "_blank", "noopener noreferrer");
289
+ if (!isSafeUrl(link)) return false;
290
+ window.open(link, "_blank", "noopener noreferrer");
290
291
  return true;
291
292
  }
292
293
  };
@@ -335,13 +336,13 @@ const DocLinkPopup = () => {
335
336
  onClick: () => {
336
337
  navigator.clipboard.writeText(url);
337
338
  messageService.show({
338
- content: localeService.t("docLink.info.coped"),
339
+ content: localeService.t("docs-hyper-link-ui.info.coped"),
339
340
  type: MessageType.Info
340
341
  });
341
342
  },
342
343
  children: /* @__PURE__ */ jsx(Tooltip, {
343
344
  placement: "bottom",
344
- title: localeService.t("docLink.info.copy"),
345
+ title: localeService.t("docs-hyper-link-ui.info.copy"),
345
346
  children: /* @__PURE__ */ jsx(CopyIcon, {})
346
347
  })
347
348
  }),
@@ -352,7 +353,7 @@ const DocLinkPopup = () => {
352
353
  },
353
354
  children: /* @__PURE__ */ jsx(Tooltip, {
354
355
  placement: "bottom",
355
- title: localeService.t("docLink.info.edit"),
356
+ title: localeService.t("docs-hyper-link-ui.info.edit"),
356
357
  children: /* @__PURE__ */ jsx(WriteIcon, {})
357
358
  })
358
359
  }),
@@ -367,7 +368,7 @@ const DocLinkPopup = () => {
367
368
  },
368
369
  children: /* @__PURE__ */ jsx(Tooltip, {
369
370
  placement: "bottom",
370
- title: localeService.t("docLink.info.cancel"),
371
+ title: localeService.t("docs-hyper-link-ui.info.cancel"),
371
372
  children: /* @__PURE__ */ jsx(UnlinkIcon, {})
372
373
  })
373
374
  })
@@ -378,7 +379,7 @@ const DocLinkPopup = () => {
378
379
  DocLinkPopup.componentKey = "univer.doc.link-info-popup";
379
380
 
380
381
  //#endregion
381
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
382
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
382
383
  function _typeof(o) {
383
384
  "@babel/helpers - typeof";
384
385
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -389,7 +390,7 @@ function _typeof(o) {
389
390
  }
390
391
 
391
392
  //#endregion
392
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
393
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
393
394
  function toPrimitive(t, r) {
394
395
  if ("object" != _typeof(t) || !t) return t;
395
396
  var e = t[Symbol.toPrimitive];
@@ -402,14 +403,14 @@ function toPrimitive(t, r) {
402
403
  }
403
404
 
404
405
  //#endregion
405
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
406
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
406
407
  function toPropertyKey(t) {
407
408
  var i = toPrimitive(t, "string");
408
409
  return "symbol" == _typeof(i) ? i : i + "";
409
410
  }
410
411
 
411
412
  //#endregion
412
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
413
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
413
414
  function _defineProperty(e, r, t) {
414
415
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
415
416
  value: t,
@@ -420,7 +421,7 @@ function _defineProperty(e, r, t) {
420
421
  }
421
422
 
422
423
  //#endregion
423
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
424
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
424
425
  function __decorateParam(paramIndex, decorator) {
425
426
  return function(target, key) {
426
427
  decorator(target, key, paramIndex);
@@ -428,7 +429,7 @@ function __decorateParam(paramIndex, decorator) {
428
429
  }
429
430
 
430
431
  //#endregion
431
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
432
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
432
433
  function __decorate(decorators, target, key, desc) {
433
434
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
434
435
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -611,10 +612,10 @@ let DocHyperLinkEventRenderController = class DocHyperLinkEventRenderController
611
612
  }
612
613
  _initHover() {
613
614
  this.disposeWithMe(this._docEventManagerService.hoverCustomRanges$.subscribe((ranges) => {
614
- var _link$segmentId;
615
+ var _activeRanges$, _link$segmentId;
615
616
  const link = ranges.find((range) => range.range.rangeType === CustomRangeType.HYPERLINK);
616
617
  const activeRanges = this._docSelectionManagerService.getTextRanges();
617
- const currentSegmentId = activeRanges === null || activeRanges === void 0 ? void 0 : activeRanges[0].segmentId;
618
+ const currentSegmentId = activeRanges === null || activeRanges === void 0 || (_activeRanges$ = activeRanges[0]) === null || _activeRanges$ === void 0 ? void 0 : _activeRanges$.segmentId;
618
619
  if (((_link$segmentId = link === null || link === void 0 ? void 0 : link.segmentId) !== null && _link$segmentId !== void 0 ? _link$segmentId : "") !== currentSegmentId) {
619
620
  this._hideInfoPopup();
620
621
  return;
@@ -701,8 +702,8 @@ function AddHyperLinkMenuItemFactory(accessor) {
701
702
  id: ShowDocHyperLinkEditPopupOperation.id,
702
703
  type: MenuItemType.BUTTON,
703
704
  icon: DOC_LINK_ICON,
704
- title: "docLink.menu.tooltip",
705
- tooltip: "docLink.menu.tooltip",
705
+ title: "docs-hyper-link-ui.menu.tooltip",
706
+ tooltip: "docs-hyper-link-ui.menu.tooltip",
706
707
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_DOC),
707
708
  disabled$: new Observable(function(subscribe) {
708
709
  const observer = accessor.get(DocSelectionManagerService).textSelection$.pipe(debounceTime(16)).subscribe(() => {
@@ -717,7 +718,7 @@ function AddHyperLinkMenuItemFactory(accessor) {
717
718
  const addLinkShortcut = {
718
719
  id: ShowDocHyperLinkEditPopupOperation.id,
719
720
  binding: MetaKeys.CTRL_COMMAND | KeyCode.K,
720
- description: "docLink.menu.tooltip",
721
+ description: "docs-hyper-link-ui.menu.tooltip",
721
722
  preconditions: whenDocAndEditorFocused
722
723
  };
723
724
 
@@ -731,7 +732,17 @@ const menuSchema = {
731
732
  [ContextMenuPosition.MAIN_AREA]: { [ContextMenuGroup.DATA]: { [ShowDocHyperLinkEditPopupOperation.id]: {
732
733
  order: 0,
733
734
  menuItemFactory: AddHyperLinkMenuItemFactory
734
- } } }
735
+ } } },
736
+ [ContextMenuPosition.PARAGRAPH]: {
737
+ [ContextMenuGroup.LAYOUT]: { [INSERT_BELLOW_MENU_ID]: { [ShowDocHyperLinkEditPopupOperation.id]: {
738
+ order: 6,
739
+ menuItemFactory: AddHyperLinkMenuItemFactory
740
+ } } },
741
+ [EMPTY_PARAGRAPH_MENU_ID]: { [ContextMenuGroup.LAYOUT]: { [ShowDocHyperLinkEditPopupOperation.id]: {
742
+ order: 6,
743
+ menuItemFactory: AddHyperLinkMenuItemFactory
744
+ } } }
745
+ }
735
746
  };
736
747
 
737
748
  //#endregion
@@ -0,0 +1,23 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "docs-hyper-link-ui": {
3
+ edit: {
4
+ confirm: "تأكيد",
5
+ cancel: "إلغاء",
6
+ title: "ارتباط",
7
+ address: "ارتباط",
8
+ placeholder: "يُرجى إدخال عنوان URL للارتباط",
9
+ addressError: "عنوان URL غير قانوني!",
10
+ label: "تسمية",
11
+ labelError: "يُرجى إدخال تسمية الارتباط"
12
+ },
13
+ info: {
14
+ copy: "نسخ",
15
+ edit: "تحرير",
16
+ cancel: "إلغاء الارتباط",
17
+ coped: "تم نسخ الارتباط إلى الحافظة"
18
+ },
19
+ menu: { tooltip: "إضافة ارتباط" }
20
+ } };
21
+
22
+ //#endregion
23
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ca-ES.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Confirma",
5
5
  cancel: "Cancel·la",
@@ -0,0 +1,23 @@
1
+ //#region src/locale/de-DE.ts
2
+ const locale = { "docs-hyper-link-ui": {
3
+ edit: {
4
+ confirm: "Bestätigen",
5
+ cancel: "Abbrechen",
6
+ title: "Link",
7
+ address: "Link",
8
+ placeholder: "Bitte eine Link-URL eingeben",
9
+ addressError: "URL ist ungültig!",
10
+ label: "Bezeichnung",
11
+ labelError: "Bitte die Bezeichnung des Links eingeben"
12
+ },
13
+ info: {
14
+ copy: "Kopieren",
15
+ edit: "Bearbeiten",
16
+ cancel: "Link abbrechen",
17
+ coped: "Link in die Zwischenablage kopiert"
18
+ },
19
+ menu: { tooltip: "Link hinzufügen" }
20
+ } };
21
+
22
+ //#endregion
23
+ export { locale as default };
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- const locale = { docLink: {
17
+ const locale = { "docs-hyper-link-ui": {
18
18
  edit: {
19
19
  confirm: "Confirm",
20
20
  cancel: "Cancel",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/es-ES.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Confirmar",
5
5
  cancel: "Cancelar",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/fa-IR.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "تایید",
5
5
  cancel: "انصراف",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/fr-FR.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Confirmer",
5
5
  cancel: "Annuler",
@@ -0,0 +1,23 @@
1
+ //#region src/locale/id-ID.ts
2
+ const locale = { "docs-hyper-link-ui": {
3
+ edit: {
4
+ confirm: "Konfirmasi",
5
+ cancel: "Batal",
6
+ title: "Tautan",
7
+ address: "Tautan",
8
+ placeholder: "Silakan masukkan URL tautan",
9
+ addressError: "URL tidak valid!",
10
+ label: "Label",
11
+ labelError: "Silakan masukkan label tautan"
12
+ },
13
+ info: {
14
+ copy: "Salin",
15
+ edit: "Edit",
16
+ cancel: "Batalkan tautan",
17
+ coped: "Tautan disalin ke clipboard"
18
+ },
19
+ menu: { tooltip: "Tambah tautan" }
20
+ } };
21
+
22
+ //#endregion
23
+ export { locale as default };
@@ -0,0 +1,23 @@
1
+ //#region src/locale/it-IT.ts
2
+ const locale = { "docs-hyper-link-ui": {
3
+ edit: {
4
+ confirm: "Conferma",
5
+ cancel: "Annulla",
6
+ title: "Collegamento",
7
+ address: "Collegamento",
8
+ placeholder: "Inserisci un URL di collegamento",
9
+ addressError: "URL non valido!",
10
+ label: "Etichetta",
11
+ labelError: "Inserisci l'etichetta del collegamento"
12
+ },
13
+ info: {
14
+ copy: "Copia",
15
+ edit: "Modifica",
16
+ cancel: "Annulla collegamento",
17
+ coped: "Collegamento copiato negli appunti"
18
+ },
19
+ menu: { tooltip: "Aggiungi collegamento" }
20
+ } };
21
+
22
+ //#endregion
23
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ja-JP.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "OK",
5
5
  cancel: "キャンセル",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ko-KR.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "확인",
5
5
  cancel: "취소",
@@ -0,0 +1,23 @@
1
+ //#region src/locale/pl-PL.ts
2
+ const locale = { "docs-hyper-link-ui": {
3
+ edit: {
4
+ confirm: "Potwierdź",
5
+ cancel: "Anuluj",
6
+ title: "Łącze",
7
+ address: "Łącze",
8
+ placeholder: "Wprowadź adres URL",
9
+ addressError: "Adres URL jest nieprawidłowy!",
10
+ label: "Etykieta",
11
+ labelError: "Wprowadź etykietę łącza"
12
+ },
13
+ info: {
14
+ copy: "Kopiuj",
15
+ edit: "Edytuj",
16
+ cancel: "Usuń łącze",
17
+ coped: "Łącze skopiowane do schowka"
18
+ },
19
+ menu: { tooltip: "Dodaj łącze" }
20
+ } };
21
+
22
+ //#endregion
23
+ export { locale as default };
@@ -0,0 +1,23 @@
1
+ //#region src/locale/pt-BR.ts
2
+ const locale = { "docs-hyper-link-ui": {
3
+ edit: {
4
+ confirm: "Confirmar",
5
+ cancel: "Cancelar",
6
+ title: "Link",
7
+ address: "Link",
8
+ placeholder: "Insira uma URL de link",
9
+ addressError: "URL inválida!",
10
+ label: "Rótulo",
11
+ labelError: "Insira o rótulo do link"
12
+ },
13
+ info: {
14
+ copy: "Copiar",
15
+ edit: "Editar",
16
+ cancel: "Cancelar link",
17
+ coped: "Link copiado para a área de transferência"
18
+ },
19
+ menu: { tooltip: "Adicionar link" }
20
+ } };
21
+
22
+ //#endregion
23
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ru-RU.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Подтвердить",
5
5
  cancel: "Отменить",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/sk-SK.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Potvrdiť",
5
5
  cancel: "Zrušiť",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/vi-VN.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Xác nhận",
5
5
  cancel: "Hủy",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/zh-CN.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "确认",
5
5
  cancel: "取消",
@@ -0,0 +1,23 @@
1
+ //#region src/locale/zh-HK.ts
2
+ const locale = { "docs-hyper-link-ui": {
3
+ edit: {
4
+ confirm: "確認",
5
+ cancel: "取消",
6
+ title: "連結",
7
+ address: "連結",
8
+ label: "文本",
9
+ labelError: "请输入链接文本",
10
+ placeholder: "請輸入合法的連結",
11
+ addressError: "請輸入合法的連結"
12
+ },
13
+ info: {
14
+ copy: "複製",
15
+ edit: "編輯",
16
+ cancel: "取消連結",
17
+ coped: "連結已複製到剪貼板"
18
+ },
19
+ menu: { tooltip: "新增連結" }
20
+ } };
21
+
22
+ //#endregion
23
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/zh-TW.ts
2
- const locale = { docLink: {
2
+ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "確認",
5
5
  cancel: "取消",
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  declare const locale: {
17
- docLink: {
17
+ 'docs-hyper-link-ui': {
18
18
  edit: {
19
19
  confirm: string;
20
20
  cancel: string;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;