@10x-media/undo-redo 0.1.0-beta.1 → 0.1.0-beta.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @10x-media/undo-redo
2
2
 
3
+ ## 0.1.0-beta.2
4
+
5
+ ### Minor Changes
6
+
7
+ - More built-in locales for the `undoRedo:` strings.
8
+
9
+ - Added: `es`, `fr`, `id`, `pt`, `ru`, `zh`, `uk`, `ar`, `ko`. Every key is covered in each.
10
+
3
11
  ## 0.1.0-beta.1
4
12
 
5
13
  ### Patch Changes
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 10x Media GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 10x Media GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,18 @@
1
+ import { keys } from "./keys.js";
2
+ //#region src/translations/ar.ts
3
+ const ar = {
4
+ [keys.undo]: "تراجع",
5
+ [keys.redo]: "إعادة",
6
+ [keys.debug]: "سجل التراجع",
7
+ [keys.debugTooltip]: "فحص سجل التراجع",
8
+ [keys.debugTitle]: "سجل التراجع",
9
+ [keys.debugEmpty]: "لم يُسجَّل أي سجل بعد.",
10
+ [keys.debugClose]: "إغلاق",
11
+ [keys.debugPending]: "قيد الانتظار (غير مسجل)",
12
+ [keys.debugOriginal]: "الحالة الأصلية",
13
+ [keys.debugCopy]: "نسخ JSON"
14
+ };
15
+ //#endregion
16
+ export { ar };
17
+
18
+ //# sourceMappingURL=ar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ar.js","names":[],"sources":["../../src/translations/ar.ts"],"sourcesContent":["import { keys, type TranslationKey } from './keys'\n\nexport const ar: Record<TranslationKey, string> = {\n\t[keys.undo]: 'تراجع',\n\t[keys.redo]: 'إعادة',\n\t[keys.debug]: 'سجل التراجع',\n\t[keys.debugTooltip]: 'فحص سجل التراجع',\n\t[keys.debugTitle]: 'سجل التراجع',\n\t[keys.debugEmpty]: 'لم يُسجَّل أي سجل بعد.',\n\t[keys.debugClose]: 'إغلاق',\n\t[keys.debugPending]: 'قيد الانتظار (غير مسجل)',\n\t[keys.debugOriginal]: 'الحالة الأصلية',\n\t[keys.debugCopy]: 'نسخ JSON',\n}\n"],"mappings":";;AAEA,MAAa,KAAqC;EAChD,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,eAAe;EACpB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,eAAe;EACpB,KAAK,gBAAgB;EACrB,KAAK,YAAY;AACnB"}
@@ -0,0 +1,18 @@
1
+ import { keys } from "./keys.js";
2
+ //#region src/translations/es.ts
3
+ const es = {
4
+ [keys.undo]: "Deshacer",
5
+ [keys.redo]: "Rehacer",
6
+ [keys.debug]: "Historial de deshacer",
7
+ [keys.debugTooltip]: "Inspeccionar el historial de deshacer",
8
+ [keys.debugTitle]: "Historial de deshacer",
9
+ [keys.debugEmpty]: "Todavía no se ha registrado ningún historial.",
10
+ [keys.debugClose]: "Cerrar",
11
+ [keys.debugPending]: "Pendiente (sin registrar)",
12
+ [keys.debugOriginal]: "Estado original",
13
+ [keys.debugCopy]: "Copiar JSON"
14
+ };
15
+ //#endregion
16
+ export { es };
17
+
18
+ //# sourceMappingURL=es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.js","names":[],"sources":["../../src/translations/es.ts"],"sourcesContent":["import { keys, type TranslationKey } from './keys'\n\nexport const es: Record<TranslationKey, string> = {\n\t[keys.undo]: 'Deshacer',\n\t[keys.redo]: 'Rehacer',\n\t[keys.debug]: 'Historial de deshacer',\n\t[keys.debugTooltip]: 'Inspeccionar el historial de deshacer',\n\t[keys.debugTitle]: 'Historial de deshacer',\n\t[keys.debugEmpty]: 'Todavía no se ha registrado ningún historial.',\n\t[keys.debugClose]: 'Cerrar',\n\t[keys.debugPending]: 'Pendiente (sin registrar)',\n\t[keys.debugOriginal]: 'Estado original',\n\t[keys.debugCopy]: 'Copiar JSON',\n}\n"],"mappings":";;AAEA,MAAa,KAAqC;EAChD,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,eAAe;EACpB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,eAAe;EACpB,KAAK,gBAAgB;EACrB,KAAK,YAAY;AACnB"}
@@ -0,0 +1,18 @@
1
+ import { keys } from "./keys.js";
2
+ //#region src/translations/fr.ts
3
+ const fr = {
4
+ [keys.undo]: "Annuler",
5
+ [keys.redo]: "Rétablir",
6
+ [keys.debug]: "Historique des annulations",
7
+ [keys.debugTooltip]: "Inspecter l'historique des annulations",
8
+ [keys.debugTitle]: "Historique des annulations",
9
+ [keys.debugEmpty]: "Aucun historique enregistré pour le moment.",
10
+ [keys.debugClose]: "Fermer",
11
+ [keys.debugPending]: "En attente (non enregistré)",
12
+ [keys.debugOriginal]: "État initial",
13
+ [keys.debugCopy]: "Copier le JSON"
14
+ };
15
+ //#endregion
16
+ export { fr };
17
+
18
+ //# sourceMappingURL=fr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr.js","names":[],"sources":["../../src/translations/fr.ts"],"sourcesContent":["import { keys, type TranslationKey } from './keys'\n\nexport const fr: Record<TranslationKey, string> = {\n\t[keys.undo]: 'Annuler',\n\t[keys.redo]: 'Rétablir',\n\t[keys.debug]: 'Historique des annulations',\n\t[keys.debugTooltip]: \"Inspecter l'historique des annulations\",\n\t[keys.debugTitle]: 'Historique des annulations',\n\t[keys.debugEmpty]: 'Aucun historique enregistré pour le moment.',\n\t[keys.debugClose]: 'Fermer',\n\t[keys.debugPending]: 'En attente (non enregistré)',\n\t[keys.debugOriginal]: 'État initial',\n\t[keys.debugCopy]: 'Copier le JSON',\n}\n"],"mappings":";;AAEA,MAAa,KAAqC;EAChD,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,eAAe;EACpB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,eAAe;EACpB,KAAK,gBAAgB;EACrB,KAAK,YAAY;AACnB"}
@@ -0,0 +1,18 @@
1
+ import { keys } from "./keys.js";
2
+ //#region src/translations/id.ts
3
+ const id = {
4
+ [keys.undo]: "Urungkan",
5
+ [keys.redo]: "Ulangi",
6
+ [keys.debug]: "Riwayat urungkan",
7
+ [keys.debugTooltip]: "Periksa riwayat urungkan",
8
+ [keys.debugTitle]: "Riwayat urungkan",
9
+ [keys.debugEmpty]: "Belum ada riwayat yang direkam.",
10
+ [keys.debugClose]: "Tutup",
11
+ [keys.debugPending]: "Tertunda (belum direkam)",
12
+ [keys.debugOriginal]: "Kondisi awal",
13
+ [keys.debugCopy]: "Salin JSON"
14
+ };
15
+ //#endregion
16
+ export { id };
17
+
18
+ //# sourceMappingURL=id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"id.js","names":[],"sources":["../../src/translations/id.ts"],"sourcesContent":["import { keys, type TranslationKey } from './keys'\n\nexport const id: Record<TranslationKey, string> = {\n\t[keys.undo]: 'Urungkan',\n\t[keys.redo]: 'Ulangi',\n\t[keys.debug]: 'Riwayat urungkan',\n\t[keys.debugTooltip]: 'Periksa riwayat urungkan',\n\t[keys.debugTitle]: 'Riwayat urungkan',\n\t[keys.debugEmpty]: 'Belum ada riwayat yang direkam.',\n\t[keys.debugClose]: 'Tutup',\n\t[keys.debugPending]: 'Tertunda (belum direkam)',\n\t[keys.debugOriginal]: 'Kondisi awal',\n\t[keys.debugCopy]: 'Salin JSON',\n}\n"],"mappings":";;AAEA,MAAa,KAAqC;EAChD,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,eAAe;EACpB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,eAAe;EACpB,KAAK,gBAAgB;EACrB,KAAK,YAAY;AACnB"}
@@ -7,8 +7,17 @@ type TranslationsOption = {
7
7
  };
8
8
  /** Per-locale messages merged into `config.i18n.translations`. */
9
9
  declare const translations: {
10
- en: Record<string, Record<string, string>>;
10
+ ar: Record<string, Record<string, string>>;
11
11
  de: Record<string, Record<string, string>>;
12
+ en: Record<string, Record<string, string>>;
13
+ es: Record<string, Record<string, string>>;
14
+ fr: Record<string, Record<string, string>>;
15
+ id: Record<string, Record<string, string>>;
16
+ ko: Record<string, Record<string, string>>;
17
+ pt: Record<string, Record<string, string>>;
18
+ ru: Record<string, Record<string, string>>;
19
+ uk: Record<string, Record<string, string>>;
20
+ zh: Record<string, Record<string, string>>;
12
21
  };
13
22
  //#endregion
14
23
  export { TranslationsOption, translations };
@@ -1,6 +1,15 @@
1
1
  import "./keys.js";
2
+ import { ar } from "./ar.js";
2
3
  import { de } from "./de.js";
3
4
  import { en } from "./en.js";
5
+ import { es } from "./es.js";
6
+ import { fr } from "./fr.js";
7
+ import { id } from "./id.js";
8
+ import { ko } from "./ko.js";
9
+ import { pt } from "./pt.js";
10
+ import { ru } from "./ru.js";
11
+ import { uk } from "./uk.js";
12
+ import { zh } from "./zh.js";
4
13
  //#region src/translations/index.ts
5
14
  /**
6
15
  * Flat `undoRedo:foo` entries to the nested `{ undoRedo: { foo } }`
@@ -21,8 +30,17 @@ const toNested = (flat) => {
21
30
  };
22
31
  /** Per-locale messages merged into `config.i18n.translations`. */
23
32
  const translations = {
33
+ ar: toNested(ar),
34
+ de: toNested(de),
24
35
  en: toNested(en),
25
- de: toNested(de)
36
+ es: toNested(es),
37
+ fr: toNested(fr),
38
+ id: toNested(id),
39
+ ko: toNested(ko),
40
+ pt: toNested(pt),
41
+ ru: toNested(ru),
42
+ uk: toNested(uk),
43
+ zh: toNested(zh)
26
44
  };
27
45
  //#endregion
28
46
  export { toNested, translations };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/translations/index.ts"],"sourcesContent":["import { de } from './de'\nimport { en } from './en'\nimport type { TranslationKey } from './keys'\n\nexport type { TranslationKey } from './keys'\nexport { keys } from './keys'\n\n/** Per-locale string overrides keyed by this plugin's typed translation keys. */\nexport type TranslationsOption = {\n\t[locale: string]: Partial<Record<TranslationKey, string>>\n}\n\n/**\n * Flat `undoRedo:foo` entries to the nested `{ undoRedo: { foo } }`\n * shape Payload resolves `t('undoRedo:foo')` against (it splits on `:`).\n * Undefined values are skipped so `Partial` override maps pass through.\n */\nexport const toNested = (flat: {\n\t[key: string]: string | undefined\n}): Record<string, Record<string, string>> => {\n\tconst out: Record<string, Record<string, string>> = {}\n\tfor (const [fullKey, value] of Object.entries(flat)) {\n\t\tif (typeof value !== 'string') {\n\t\t\tcontinue\n\t\t}\n\t\tconst separator = fullKey.indexOf(':')\n\t\tconst namespace = fullKey.slice(0, separator)\n\t\tconst bucket = out[namespace] ?? {}\n\t\tbucket[fullKey.slice(separator + 1)] = value\n\t\tout[namespace] = bucket\n\t}\n\treturn out\n}\n\n/** Per-locale messages merged into `config.i18n.translations`. */\nexport const translations = {\n\ten: toNested(en),\n\tde: toNested(de),\n}\n"],"mappings":";;;;;;;;;AAiBA,MAAa,YAAY,SAEqB;CAC7C,MAAM,MAA8C,CAAC;CACrD,KAAK,MAAM,CAAC,SAAS,UAAU,OAAO,QAAQ,IAAI,GAAG;EACpD,IAAI,OAAO,UAAU,UACpB;EAED,MAAM,YAAY,QAAQ,QAAQ,GAAG;EACrC,MAAM,YAAY,QAAQ,MAAM,GAAG,SAAS;EAC5C,MAAM,SAAS,IAAI,cAAc,CAAC;EAClC,OAAO,QAAQ,MAAM,YAAY,CAAC,KAAK;EACvC,IAAI,aAAa;CAClB;CACA,OAAO;AACR;;AAGA,MAAa,eAAe;CAC3B,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;AAChB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/translations/index.ts"],"sourcesContent":["import { ar } from './ar'\nimport { de } from './de'\nimport { en } from './en'\nimport { es } from './es'\nimport { fr } from './fr'\nimport { id } from './id'\nimport type { TranslationKey } from './keys'\nimport { ko } from './ko'\nimport { pt } from './pt'\nimport { ru } from './ru'\nimport { uk } from './uk'\nimport { zh } from './zh'\n\nexport type { TranslationKey } from './keys'\nexport { keys } from './keys'\n\n/** Per-locale string overrides keyed by this plugin's typed translation keys. */\nexport type TranslationsOption = {\n\t[locale: string]: Partial<Record<TranslationKey, string>>\n}\n\n/**\n * Flat `undoRedo:foo` entries to the nested `{ undoRedo: { foo } }`\n * shape Payload resolves `t('undoRedo:foo')` against (it splits on `:`).\n * Undefined values are skipped so `Partial` override maps pass through.\n */\nexport const toNested = (flat: {\n\t[key: string]: string | undefined\n}): Record<string, Record<string, string>> => {\n\tconst out: Record<string, Record<string, string>> = {}\n\tfor (const [fullKey, value] of Object.entries(flat)) {\n\t\tif (typeof value !== 'string') {\n\t\t\tcontinue\n\t\t}\n\t\tconst separator = fullKey.indexOf(':')\n\t\tconst namespace = fullKey.slice(0, separator)\n\t\tconst bucket = out[namespace] ?? {}\n\t\tbucket[fullKey.slice(separator + 1)] = value\n\t\tout[namespace] = bucket\n\t}\n\treturn out\n}\n\n/** Per-locale messages merged into `config.i18n.translations`. */\nexport const translations = {\n\tar: toNested(ar),\n\tde: toNested(de),\n\ten: toNested(en),\n\tes: toNested(es),\n\tfr: toNested(fr),\n\tid: toNested(id),\n\tko: toNested(ko),\n\tpt: toNested(pt),\n\tru: toNested(ru),\n\tuk: toNested(uk),\n\tzh: toNested(zh),\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,MAAa,YAAY,SAEqB;CAC7C,MAAM,MAA8C,CAAC;CACrD,KAAK,MAAM,CAAC,SAAS,UAAU,OAAO,QAAQ,IAAI,GAAG;EACpD,IAAI,OAAO,UAAU,UACpB;EAED,MAAM,YAAY,QAAQ,QAAQ,GAAG;EACrC,MAAM,YAAY,QAAQ,MAAM,GAAG,SAAS;EAC5C,MAAM,SAAS,IAAI,cAAc,CAAC;EAClC,OAAO,QAAQ,MAAM,YAAY,CAAC,KAAK;EACvC,IAAI,aAAa;CAClB;CACA,OAAO;AACR;;AAGA,MAAa,eAAe;CAC3B,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;CACf,IAAI,SAAS,EAAE;AAChB"}
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Typed translation keys. Lookups must go through these constants, not string
4
4
  * literals (enforced by requireI18nKeysTyped.grit). Every key here must have a
5
- * value in every locale (`en.ts`, `de.ts`), or it is a type error.
5
+ * value in every locale file, or it is a type error.
6
6
  */
7
7
  declare const keys: {
8
8
  readonly undo: "undoRedo:undo";
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Typed translation keys. Lookups must go through these constants, not string
4
4
  * literals (enforced by requireI18nKeysTyped.grit). Every key here must have a
5
- * value in every locale (`en.ts`, `de.ts`), or it is a type error.
5
+ * value in every locale file, or it is a type error.
6
6
  */
7
7
  const keys = {
8
8
  undo: "undoRedo:undo",
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","names":[],"sources":["../../src/translations/keys.ts"],"sourcesContent":["/**\n * Typed translation keys. Lookups must go through these constants, not string\n * literals (enforced by requireI18nKeysTyped.grit). Every key here must have a\n * value in every locale (`en.ts`, `de.ts`), or it is a type error.\n */\nexport const keys = {\n\tundo: 'undoRedo:undo',\n\tredo: 'undoRedo:redo',\n\tdebug: 'undoRedo:debug',\n\tdebugTooltip: 'undoRedo:debugTooltip',\n\tdebugTitle: 'undoRedo:debugTitle',\n\tdebugEmpty: 'undoRedo:debugEmpty',\n\tdebugClose: 'undoRedo:debugClose',\n\tdebugPending: 'undoRedo:debugPending',\n\tdebugOriginal: 'undoRedo:debugOriginal',\n\tdebugCopy: 'undoRedo:debugCopy',\n} as const\n\nexport type TranslationKey = (typeof keys)[keyof typeof keys]\n"],"mappings":";;;;;;AAKA,MAAa,OAAO;CACnB,MAAM;CACN,MAAM;CACN,OAAO;CACP,cAAc;CACd,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,cAAc;CACd,eAAe;CACf,WAAW;AACZ"}
1
+ {"version":3,"file":"keys.js","names":[],"sources":["../../src/translations/keys.ts"],"sourcesContent":["/**\n * Typed translation keys. Lookups must go through these constants, not string\n * literals (enforced by requireI18nKeysTyped.grit). Every key here must have a\n * value in every locale file, or it is a type error.\n */\nexport const keys = {\n\tundo: 'undoRedo:undo',\n\tredo: 'undoRedo:redo',\n\tdebug: 'undoRedo:debug',\n\tdebugTooltip: 'undoRedo:debugTooltip',\n\tdebugTitle: 'undoRedo:debugTitle',\n\tdebugEmpty: 'undoRedo:debugEmpty',\n\tdebugClose: 'undoRedo:debugClose',\n\tdebugPending: 'undoRedo:debugPending',\n\tdebugOriginal: 'undoRedo:debugOriginal',\n\tdebugCopy: 'undoRedo:debugCopy',\n} as const\n\nexport type TranslationKey = (typeof keys)[keyof typeof keys]\n"],"mappings":";;;;;;AAKA,MAAa,OAAO;CACnB,MAAM;CACN,MAAM;CACN,OAAO;CACP,cAAc;CACd,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,cAAc;CACd,eAAe;CACf,WAAW;AACZ"}
@@ -0,0 +1,18 @@
1
+ import { keys } from "./keys.js";
2
+ //#region src/translations/ko.ts
3
+ const ko = {
4
+ [keys.undo]: "실행 취소",
5
+ [keys.redo]: "다시 실행",
6
+ [keys.debug]: "실행 취소 기록",
7
+ [keys.debugTooltip]: "실행 취소 기록 살펴보기",
8
+ [keys.debugTitle]: "실행 취소 기록",
9
+ [keys.debugEmpty]: "아직 기록된 내역이 없습니다.",
10
+ [keys.debugClose]: "닫기",
11
+ [keys.debugPending]: "대기 중 (기록되지 않음)",
12
+ [keys.debugOriginal]: "원래 상태",
13
+ [keys.debugCopy]: "JSON 복사"
14
+ };
15
+ //#endregion
16
+ export { ko };
17
+
18
+ //# sourceMappingURL=ko.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ko.js","names":[],"sources":["../../src/translations/ko.ts"],"sourcesContent":["import { keys, type TranslationKey } from './keys'\n\nexport const ko: Record<TranslationKey, string> = {\n\t[keys.undo]: '실행 취소',\n\t[keys.redo]: '다시 실행',\n\t[keys.debug]: '실행 취소 기록',\n\t[keys.debugTooltip]: '실행 취소 기록 살펴보기',\n\t[keys.debugTitle]: '실행 취소 기록',\n\t[keys.debugEmpty]: '아직 기록된 내역이 없습니다.',\n\t[keys.debugClose]: '닫기',\n\t[keys.debugPending]: '대기 중 (기록되지 않음)',\n\t[keys.debugOriginal]: '원래 상태',\n\t[keys.debugCopy]: 'JSON 복사',\n}\n"],"mappings":";;AAEA,MAAa,KAAqC;EAChD,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,eAAe;EACpB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,eAAe;EACpB,KAAK,gBAAgB;EACrB,KAAK,YAAY;AACnB"}
@@ -0,0 +1,18 @@
1
+ import { keys } from "./keys.js";
2
+ //#region src/translations/pt.ts
3
+ const pt = {
4
+ [keys.undo]: "Desfazer",
5
+ [keys.redo]: "Refazer",
6
+ [keys.debug]: "Histórico de desfazer",
7
+ [keys.debugTooltip]: "Inspecionar o histórico de desfazer",
8
+ [keys.debugTitle]: "Histórico de desfazer",
9
+ [keys.debugEmpty]: "Ainda não há histórico capturado.",
10
+ [keys.debugClose]: "Fechar",
11
+ [keys.debugPending]: "Pendente (não capturado)",
12
+ [keys.debugOriginal]: "Estado original",
13
+ [keys.debugCopy]: "Copiar JSON"
14
+ };
15
+ //#endregion
16
+ export { pt };
17
+
18
+ //# sourceMappingURL=pt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt.js","names":[],"sources":["../../src/translations/pt.ts"],"sourcesContent":["import { keys, type TranslationKey } from './keys'\n\nexport const pt: Record<TranslationKey, string> = {\n\t[keys.undo]: 'Desfazer',\n\t[keys.redo]: 'Refazer',\n\t[keys.debug]: 'Histórico de desfazer',\n\t[keys.debugTooltip]: 'Inspecionar o histórico de desfazer',\n\t[keys.debugTitle]: 'Histórico de desfazer',\n\t[keys.debugEmpty]: 'Ainda não há histórico capturado.',\n\t[keys.debugClose]: 'Fechar',\n\t[keys.debugPending]: 'Pendente (não capturado)',\n\t[keys.debugOriginal]: 'Estado original',\n\t[keys.debugCopy]: 'Copiar JSON',\n}\n"],"mappings":";;AAEA,MAAa,KAAqC;EAChD,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,eAAe;EACpB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,eAAe;EACpB,KAAK,gBAAgB;EACrB,KAAK,YAAY;AACnB"}
@@ -0,0 +1,18 @@
1
+ import { keys } from "./keys.js";
2
+ //#region src/translations/ru.ts
3
+ const ru = {
4
+ [keys.undo]: "Отменить",
5
+ [keys.redo]: "Повторить",
6
+ [keys.debug]: "История отмен",
7
+ [keys.debugTooltip]: "Посмотреть историю отмен",
8
+ [keys.debugTitle]: "История отмен",
9
+ [keys.debugEmpty]: "История пока пуста.",
10
+ [keys.debugClose]: "Закрыть",
11
+ [keys.debugPending]: "Ожидает (не записано)",
12
+ [keys.debugOriginal]: "Исходное состояние",
13
+ [keys.debugCopy]: "Копировать JSON"
14
+ };
15
+ //#endregion
16
+ export { ru };
17
+
18
+ //# sourceMappingURL=ru.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ru.js","names":[],"sources":["../../src/translations/ru.ts"],"sourcesContent":["import { keys, type TranslationKey } from './keys'\n\nexport const ru: Record<TranslationKey, string> = {\n\t[keys.undo]: 'Отменить',\n\t[keys.redo]: 'Повторить',\n\t[keys.debug]: 'История отмен',\n\t[keys.debugTooltip]: 'Посмотреть историю отмен',\n\t[keys.debugTitle]: 'История отмен',\n\t[keys.debugEmpty]: 'История пока пуста.',\n\t[keys.debugClose]: 'Закрыть',\n\t[keys.debugPending]: 'Ожидает (не записано)',\n\t[keys.debugOriginal]: 'Исходное состояние',\n\t[keys.debugCopy]: 'Копировать JSON',\n}\n"],"mappings":";;AAEA,MAAa,KAAqC;EAChD,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,eAAe;EACpB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,eAAe;EACpB,KAAK,gBAAgB;EACrB,KAAK,YAAY;AACnB"}
@@ -0,0 +1,18 @@
1
+ import { keys } from "./keys.js";
2
+ //#region src/translations/uk.ts
3
+ const uk = {
4
+ [keys.undo]: "Скасувати",
5
+ [keys.redo]: "Повторити",
6
+ [keys.debug]: "Історія скасувань",
7
+ [keys.debugTooltip]: "Переглянути історію скасувань",
8
+ [keys.debugTitle]: "Історія скасувань",
9
+ [keys.debugEmpty]: "Історія поки порожня.",
10
+ [keys.debugClose]: "Закрити",
11
+ [keys.debugPending]: "Очікує (не записано)",
12
+ [keys.debugOriginal]: "Початковий стан",
13
+ [keys.debugCopy]: "Копіювати JSON"
14
+ };
15
+ //#endregion
16
+ export { uk };
17
+
18
+ //# sourceMappingURL=uk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uk.js","names":[],"sources":["../../src/translations/uk.ts"],"sourcesContent":["import { keys, type TranslationKey } from './keys'\n\nexport const uk: Record<TranslationKey, string> = {\n\t[keys.undo]: 'Скасувати',\n\t[keys.redo]: 'Повторити',\n\t[keys.debug]: 'Історія скасувань',\n\t[keys.debugTooltip]: 'Переглянути історію скасувань',\n\t[keys.debugTitle]: 'Історія скасувань',\n\t[keys.debugEmpty]: 'Історія поки порожня.',\n\t[keys.debugClose]: 'Закрити',\n\t[keys.debugPending]: 'Очікує (не записано)',\n\t[keys.debugOriginal]: 'Початковий стан',\n\t[keys.debugCopy]: 'Копіювати JSON',\n}\n"],"mappings":";;AAEA,MAAa,KAAqC;EAChD,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,eAAe;EACpB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,eAAe;EACpB,KAAK,gBAAgB;EACrB,KAAK,YAAY;AACnB"}
@@ -0,0 +1,18 @@
1
+ import { keys } from "./keys.js";
2
+ //#region src/translations/zh.ts
3
+ const zh = {
4
+ [keys.undo]: "撤销",
5
+ [keys.redo]: "重做",
6
+ [keys.debug]: "撤销历史",
7
+ [keys.debugTooltip]: "查看撤销历史",
8
+ [keys.debugTitle]: "撤销历史",
9
+ [keys.debugEmpty]: "尚未记录任何历史。",
10
+ [keys.debugClose]: "关闭",
11
+ [keys.debugPending]: "待处理(未记录)",
12
+ [keys.debugOriginal]: "原始状态",
13
+ [keys.debugCopy]: "复制 JSON"
14
+ };
15
+ //#endregion
16
+ export { zh };
17
+
18
+ //# sourceMappingURL=zh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh.js","names":[],"sources":["../../src/translations/zh.ts"],"sourcesContent":["import { keys, type TranslationKey } from './keys'\n\nexport const zh: Record<TranslationKey, string> = {\n\t[keys.undo]: '撤销',\n\t[keys.redo]: '重做',\n\t[keys.debug]: '撤销历史',\n\t[keys.debugTooltip]: '查看撤销历史',\n\t[keys.debugTitle]: '撤销历史',\n\t[keys.debugEmpty]: '尚未记录任何历史。',\n\t[keys.debugClose]: '关闭',\n\t[keys.debugPending]: '待处理(未记录)',\n\t[keys.debugOriginal]: '原始状态',\n\t[keys.debugCopy]: '复制 JSON',\n}\n"],"mappings":";;AAEA,MAAa,KAAqC;EAChD,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,eAAe;EACpB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,aAAa;EAClB,KAAK,eAAe;EACpB,KAAK,gBAAgB;EACrB,KAAK,YAAY;AACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10x-media/undo-redo",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.1.0-beta.2",
4
4
  "description": "Introduces undo/redo functionality to Payload forms",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -73,8 +73,8 @@
73
73
  "tsdown": "0.22.1",
74
74
  "typescript": "5.9.3",
75
75
  "vitest": "4.1.7",
76
- "@10x-media/tsdown-config": "0.0.0",
77
76
  "@10x-media/tsconfig": "0.0.0",
77
+ "@10x-media/tsdown-config": "0.0.0",
78
78
  "@10x-media/payload-test-harness": "0.0.0",
79
79
  "@10x-media/vitest-config": "0.0.0"
80
80
  },