@generaltranslation/react-core 1.5.10 → 1.6.1

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,29 @@
1
1
  # @generaltranslation/react-core
2
2
 
3
+ ## 1.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1129](https://github.com/generaltranslation/gt/pull/1129) [`aabe764`](https://github.com/generaltranslation/gt/commit/aabe76422bfbba80ed3453667f82f01b1a195281) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - feat: derivation support for the t macro
8
+
9
+ - Updated dependencies [[`aabe764`](https://github.com/generaltranslation/gt/commit/aabe76422bfbba80ed3453667f82f01b1a195281)]:
10
+ - @generaltranslation/supported-locales@2.0.52
11
+ - generaltranslation@8.1.19
12
+ - gt-i18n@0.7.1
13
+
14
+ ## 1.6.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#1121](https://github.com/generaltranslation/gt/pull/1121) [`b6a58de`](https://github.com/generaltranslation/gt/commit/b6a58de76998b28ce3247aa1a7005fffaeb210a5) Thanks [@pie575](https://github.com/pie575)! - Added a versionId hook for users to better access what Version their GT translations are on
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`b6a58de`](https://github.com/generaltranslation/gt/commit/b6a58de76998b28ce3247aa1a7005fffaeb210a5), [`6d516a7`](https://github.com/generaltranslation/gt/commit/6d516a784f1192f7758689fcf4557e8a19de740a)]:
23
+ - gt-i18n@0.7.0
24
+ - generaltranslation@8.1.18
25
+ - @generaltranslation/supported-locales@2.0.51
26
+
3
27
  ## 1.5.10
4
28
 
5
29
  ### Patch Changes
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Retrieves the version ID from the `<GTProvider>` context.
3
+ *
4
+ * @returns {string | undefined} The version ID for the current source, if set.
5
+ *
6
+ * @example
7
+ * const versionId = useVersionId();
8
+ * console.log(versionId); // 'abc123'
9
+ */
10
+ export default function useVersionId(): string | undefined;
11
+ //# sourceMappingURL=useVersionId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVersionId.d.ts","sourceRoot":"","sources":["../../src/hooks/useVersionId.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,IAAI,MAAM,GAAG,SAAS,CAIzD"}