You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-intlayer

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intlayer - npm Package Compare versions

Comparing version

to
5.0.3

6

dist/types/client/useDictionary.d.ts

@@ -1,3 +0,3 @@

import type { Locales } from '@intlayer/config/client';
import { type Dictionary } from '@intlayer/core';
import type { LocalesValues } from '@intlayer/config/client';
import { DeepTransformContent, type Dictionary } from '@intlayer/core';
/**

@@ -8,3 +8,3 @@ * On the server side, Hook that transform a dictionary and return the content

*/
export declare const useDictionary: <T extends Dictionary>(dictionary: T, locale?: Locales) => import("@intlayer/core").DeepTransformContent<T["content"], import("../plugins").IInterpreterPluginState>;
export declare const useDictionary: <T extends Dictionary>(dictionary: T, locale?: LocalesValues) => DeepTransformContent<T["content"]>;
//# sourceMappingURL=useDictionary.d.ts.map
import type { Locales } from '@intlayer/config/client';
import { type DictionaryKeys } from '@intlayer/core';
import type { DictionaryKeys } from '@intlayer/core';
import { IntlayerDictionaryTypesConnector } from 'intlayer';
import type { DeepTransformContent } from '../plugins';
/**

@@ -9,3 +10,3 @@ * On the client side, Hook that picking one dictionary by its key and return the content

*/
export declare const useIntlayer: <T extends DictionaryKeys>(key: T, locale?: Locales) => import("@intlayer/core").DeepTransformContent<IntlayerDictionaryTypesConnector[T]["content"], import("../plugins").IInterpreterPluginState>;
export declare const useIntlayer: <T extends DictionaryKeys>(key: T, locale?: Locales) => DeepTransformContent<IntlayerDictionaryTypesConnector[T]["content"]>;
//# sourceMappingURL=useIntlayer.d.ts.map
import { type Dictionary, type Plugins } from '@intlayer/core';
import { type DeepTransformContent } from './plugins';
import type { Locales, LocalesValues } from '@intlayer/config/client';
export declare const getDictionary: <T extends Dictionary<unknown, false>, L extends LocalesValues = Locales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<T["content"]>;
export declare const getDictionary: <T extends Dictionary, L extends LocalesValues = Locales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<T["content"]>;
//# sourceMappingURL=getDictionary.d.ts.map
import { IInterpreterPluginReact } from './plugins';
declare module '@intlayer/core' {
interface IInterpreterPlugin<T, S> extends IInterpreterPluginReact<T, S> {
interface IInterpreterPlugin<T, S> extends IInterpreterPluginReact<T> {
}

@@ -5,0 +5,0 @@ }

@@ -7,3 +7,3 @@ import { type Plugins, type IInterpreterPluginState as IInterpreterPluginStateCore, type DeepTransformContent as DeepTransformContentCore, NodeType } from '@intlayer/core';

* --------------------------------------------- */
export type IntlayerNodeCond<T, _S> = T extends number | string ? IntlayerNode<T> : never;
export type IntlayerNodeCond<T> = T extends number | string ? IntlayerNode<T> : never;
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */

@@ -14,3 +14,3 @@ export declare const intlayerNodePlugins: Plugins;

* --------------------------------------------- */
export type ReactNodeCond<T, _S> = T extends {
export type ReactNodeCond<T> = T extends {
ref: any;

@@ -25,3 +25,3 @@ props: any;

*/
export type MarkdownCond<T, _S> = T extends {
export type MarkdownCond<T> = T extends {
nodeType: NodeType | string;

@@ -35,6 +35,6 @@ [NodeType.Markdown]: string;

* --------------------------------------------- */
export interface IInterpreterPluginReact<T, _S> {
reactNode: ReactNodeCond<T, _S>;
intlayerNode: IntlayerNodeCond<T, _S>;
markdown: MarkdownCond<T, _S>;
export interface IInterpreterPluginReact<T> {
reactNode: ReactNodeCond<T>;
intlayerNode: IntlayerNodeCond<T>;
markdown: MarkdownCond<T>;
}

@@ -41,0 +41,0 @@ /**

@@ -8,3 +8,3 @@ import type { LocalesValues } from '@intlayer/config/client';

*/
export declare const useDictionary: <T extends Dictionary>(dictionary: T, locale?: LocalesValues, isRenderEditor?: boolean) => import("@intlayer/core").DeepTransformContent<T["content"], import("../plugins").IInterpreterPluginState>;
export declare const useDictionary: <T extends Dictionary>(dictionary: T, locale?: LocalesValues) => import("@intlayer/core").DeepTransformContent<T["content"], import("../plugins").IInterpreterPluginState>;
//# sourceMappingURL=useDictionary.d.ts.map

@@ -8,3 +8,3 @@ import type { LocalesValues } from '@intlayer/config/client';

*/
export declare const useIntlayer: <T extends DictionaryKeys, K extends LocalesValues>(key: T, locale?: K, isRenderEditor?: boolean) => import("@intlayer/core").DeepTransformContent<import("intlayer").IntlayerDictionaryTypesConnector[T]["content"], import("../plugins").IInterpreterPluginState>;
export declare const useIntlayer: <T extends DictionaryKeys, K extends LocalesValues>(key: T, locale?: K) => import("@intlayer/core").DeepTransformContent<import("intlayer").IntlayerDictionaryTypesConnector[T]["content"], import("../plugins").IInterpreterPluginState>;
//# sourceMappingURL=useIntlayer.d.ts.map
{
"name": "react-intlayer",
"version": "5.0.2",
"version": "5.0.3",
"private": false,

@@ -71,7 +71,7 @@ "description": "Easily internationalize i18n your React applications with type-safe multilingual content management.",

"js-cookie": "^3.0.5",
"@intlayer/api": "5.0.2",
"@intlayer/config": "5.0.2",
"@intlayer/core": "5.0.2",
"@intlayer/dictionaries-entry": "5.0.2",
"@intlayer/editor-react": "5.0.2"
"@intlayer/api": "5.0.3",
"@intlayer/config": "5.0.3",
"@intlayer/dictionaries-entry": "5.0.3",
"@intlayer/core": "5.0.3",
"@intlayer/editor-react": "5.0.3"
},

@@ -91,7 +91,7 @@ "devDependencies": {

"typescript": "^5.7.3",
"@intlayer/backend": "5.0.2",
"@utils/eslint-config": "1.0.4",
"@utils/ts-config": "1.0.4",
"@utils/ts-config-types": "1.0.4",
"@utils/tsup-config": "1.0.4",
"@utils/ts-config": "1.0.4"
"@intlayer/backend": "5.0.3"
},

@@ -101,8 +101,8 @@ "peerDependencies": {

"react-dom": ">=16.0.0",
"@intlayer/api": "5.0.2",
"@intlayer/core": "5.0.2",
"@intlayer/config": "5.0.2",
"@intlayer/dictionaries-entry": "5.0.2",
"@intlayer/editor-react": "5.0.2",
"intlayer": "5.0.2"
"@intlayer/api": "5.0.3",
"@intlayer/config": "5.0.3",
"@intlayer/core": "5.0.3",
"@intlayer/editor-react": "5.0.3",
"@intlayer/dictionaries-entry": "5.0.3",
"intlayer": "5.0.3"
},

@@ -109,0 +109,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet