@generaltranslation/react-core 1.7.1 → 1.7.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 +11 -0
- package/dist/errors-dir/createErrors.d.ts +1 -0
- package/dist/errors-dir/createErrors.d.ts.map +1 -1
- package/dist/index.cjs.min.cjs +3 -3
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.esm.min.mjs +3 -3
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal/addGTIdentifier.d.ts.map +1 -1
- package/dist/internal/removeInjectedT.d.ts +11 -0
- package/dist/internal/removeInjectedT.d.ts.map +1 -0
- package/dist/internal.cjs.min.cjs +3 -3
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.d.ts +3 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.esm.min.mjs +3 -3
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/rendering/renderTranslatedChildren.d.ts.map +1 -1
- package/dist/types-dir/types.d.ts +8 -3
- package/dist/types-dir/types.d.ts.map +1 -1
- package/dist/types.d.ts +24 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/variables/Derive.d.ts +11 -2
- package/dist/variables/Derive.d.ts.map +1 -1
- package/dist/variables/_getVariableProps.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addGTIdentifier.d.ts","sourceRoot":"","sources":["../../src/internal/addGTIdentifier.
|
|
1
|
+
{"version":3,"file":"addGTIdentifier.d.ts","sourceRoot":"","sources":["../../src/internal/addGTIdentifier.ts"],"names":[],"mappings":"AAAA,OAAc,EAAgC,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAGL,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAO5B,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,QAAQ,EAAE,SAAS,EACnB,aAAa,GAAE,MAAU,GACxB,cAAc,CA+GhB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Remove injected _T components at runtime. This is only for i18n-context T components to use.
|
|
4
|
+
* This is necessary because when dealing with deriving fragmented content. The compiler will always
|
|
5
|
+
* inject a `_T` component.
|
|
6
|
+
*
|
|
7
|
+
* Only remove if within a `<Derive>` or `<Static>` component as this scopes this behavior
|
|
8
|
+
* to only where it can actually appear.
|
|
9
|
+
*/
|
|
10
|
+
export declare function removeInjectedT(children: ReactNode): ReactNode;
|
|
11
|
+
//# sourceMappingURL=removeInjectedT.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeInjectedT.d.ts","sourceRoot":"","sources":["../../src/internal/removeInjectedT.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EAKV,MAAM,OAAO,CAAC;AAGf;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAE9D"}
|