@team-monolith/cds 1.129.2-alpha.2 → 1.129.3-alpha
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/dist/CdsProvider.js +180 -180
- package/dist/components/AlertDialog/AlertDialogTitle.js +15 -15
- package/dist/components/Banner.js +28 -28
- package/dist/components/FileTypeAlertDialog.js +16 -16
- package/dist/components/Pagination.js +22 -22
- package/dist/emotion.d.ts +185 -0
- package/dist/i18n/i18n.js +14 -14
- package/dist/index.d.ts +8 -1
- package/dist/node_modules/.pnpm/html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js +78 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/I18nextProvider.js +12 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/Trans.js +26 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/TransWithoutContext.js +174 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/context.js +20 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/defaults.js +24 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/i18nInstance.js +6 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/initReactI18next.js +11 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/unescape.js +25 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js +69 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/utils.js +35 -0
- package/dist/patterns/LexicalEditor/Plugins.js +64 -64
- package/dist/patterns/LexicalEditor/components/FileSelectInput.js +19 -19
- package/dist/patterns/LexicalEditor/components/InsertImageDialog/ImagePreview.js +6 -6
- package/dist/patterns/LexicalEditor/components/InsertImageDialog/InsertImageDialog.js +34 -34
- package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +14 -14
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +17 -17
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +62 -62
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +25 -25
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormPlaceholder.js +7 -7
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +24 -23
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +48 -47
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +11 -11
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +15 -15
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +28 -28
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +30 -30
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +35 -35
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormIconAndLabel.js +21 -21
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormLabel.js +15 -15
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +17 -17
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/SettingForm.js +30 -30
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +20 -20
- package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +24 -24
- package/dist/patterns/LexicalEditor/nodes/SheetInputNode/SettingForm.js +28 -28
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxView.js +11 -11
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +26 -26
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormAllowMultipleAnswers.js +8 -8
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +27 -27
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +33 -33
- package/dist/patterns/LexicalEditor/nodes/VideoNode/VideoComponent.js +21 -21
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +99 -99
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/useContextMenuOptions.js +50 -50
- package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js +85 -85
- package/dist/patterns/LexicalEditor/plugins/DragDropPastePlugin/index.js +13 -13
- package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +48 -48
- package/dist/patterns/LexicalEditor/plugins/ImagesPlugin/useImageNodeTransform.js +16 -16
- package/dist/patterns/ToggleButtonGroup/ToggleButton.js +17 -17
- package/package.json +15 -18
- package/@types/emotion.d.ts +0 -197
- package/node_modules/react-i18next/.eslintrc.json +0 -74
- package/node_modules/react-i18next/.husky/pre-commit +0 -1
- package/node_modules/react-i18next/.prettierignore +0 -4
- package/node_modules/react-i18next/CHANGELOG.md +0 -1433
- package/node_modules/react-i18next/LICENSE +0 -22
- package/node_modules/react-i18next/README.md +0 -181
- package/node_modules/react-i18next/TransWithoutContext.d.mts +0 -1
- package/node_modules/react-i18next/TransWithoutContext.d.ts +0 -129
- package/node_modules/react-i18next/dist/amd/react-i18next.js +0 -867
- package/node_modules/react-i18next/dist/amd/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/dist/commonjs/I18nextProvider.js +0 -21
- package/node_modules/react-i18next/dist/commonjs/Trans.js +0 -54
- package/node_modules/react-i18next/dist/commonjs/TransWithoutContext.js +0 -330
- package/node_modules/react-i18next/dist/commonjs/Translation.js +0 -19
- package/node_modules/react-i18next/dist/commonjs/context.js +0 -81
- package/node_modules/react-i18next/dist/commonjs/defaults.js +0 -26
- package/node_modules/react-i18next/dist/commonjs/i18nInstance.js +0 -13
- package/node_modules/react-i18next/dist/commonjs/index.js +0 -128
- package/node_modules/react-i18next/dist/commonjs/initReactI18next.js +0 -15
- package/node_modules/react-i18next/dist/commonjs/unescape.js +0 -32
- package/node_modules/react-i18next/dist/commonjs/useSSR.js +0 -34
- package/node_modules/react-i18next/dist/commonjs/useTranslation.js +0 -114
- package/node_modules/react-i18next/dist/commonjs/utils.js +0 -76
- package/node_modules/react-i18next/dist/commonjs/withSSR.js +0 -27
- package/node_modules/react-i18next/dist/commonjs/withTranslation.js +0 -39
- package/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -15
- package/node_modules/react-i18next/dist/es/Trans.js +0 -43
- package/node_modules/react-i18next/dist/es/TransWithoutContext.js +0 -321
- package/node_modules/react-i18next/dist/es/Translation.js +0 -12
- package/node_modules/react-i18next/dist/es/context.js +0 -42
- package/node_modules/react-i18next/dist/es/defaults.js +0 -18
- package/node_modules/react-i18next/dist/es/i18nInstance.js +0 -5
- package/node_modules/react-i18next/dist/es/index.js +0 -18
- package/node_modules/react-i18next/dist/es/initReactI18next.js +0 -9
- package/node_modules/react-i18next/dist/es/package.json +0 -1
- package/node_modules/react-i18next/dist/es/unescape.js +0 -25
- package/node_modules/react-i18next/dist/es/useSSR.js +0 -27
- package/node_modules/react-i18next/dist/es/useTranslation.js +0 -107
- package/node_modules/react-i18next/dist/es/utils.js +0 -62
- package/node_modules/react-i18next/dist/es/withSSR.js +0 -20
- package/node_modules/react-i18next/dist/es/withTranslation.js +0 -32
- package/node_modules/react-i18next/dist/umd/react-i18next.js +0 -871
- package/node_modules/react-i18next/dist/umd/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/helpers.d.ts +0 -3
- package/node_modules/react-i18next/icu.macro.d.mts +0 -1
- package/node_modules/react-i18next/icu.macro.d.ts +0 -103
- package/node_modules/react-i18next/icu.macro.js +0 -729
- package/node_modules/react-i18next/index.d.mts +0 -1
- package/node_modules/react-i18next/index.d.ts +0 -209
- package/node_modules/react-i18next/initReactI18next.d.mts +0 -1
- package/node_modules/react-i18next/initReactI18next.d.ts +0 -3
- package/node_modules/react-i18next/lint-staged.config.mjs +0 -4
- package/node_modules/react-i18next/package.json +0 -167
- package/node_modules/react-i18next/react-i18next.js +0 -871
- package/node_modules/react-i18next/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/src/I18nextProvider.js +0 -7
- package/node_modules/react-i18next/src/Trans.js +0 -45
- package/node_modules/react-i18next/src/TransWithoutContext.js +0 -479
- package/node_modules/react-i18next/src/Translation.js +0 -14
- package/node_modules/react-i18next/src/context.js +0 -54
- package/node_modules/react-i18next/src/defaults.js +0 -20
- package/node_modules/react-i18next/src/i18nInstance.js +0 -7
- package/node_modules/react-i18next/src/index.js +0 -22
- package/node_modules/react-i18next/src/initReactI18next.js +0 -11
- package/node_modules/react-i18next/src/unescape.js +0 -31
- package/node_modules/react-i18next/src/useSSR.js +0 -33
- package/node_modules/react-i18next/src/useTranslation.js +0 -171
- package/node_modules/react-i18next/src/utils.js +0 -93
- package/node_modules/react-i18next/src/withSSR.js +0 -21
- package/node_modules/react-i18next/src/withTranslation.js +0 -35
- package/node_modules/react-i18next/vitest.workspace.typescript.mts +0 -52
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './index.js';
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import type { $Subtract, $Tuple } from './helpers.js';
|
|
2
|
-
import type {
|
|
3
|
-
ReactOptions,
|
|
4
|
-
i18n,
|
|
5
|
-
Resource,
|
|
6
|
-
FlatNamespace,
|
|
7
|
-
Namespace,
|
|
8
|
-
TypeOptions,
|
|
9
|
-
TFunction,
|
|
10
|
-
KeyPrefix,
|
|
11
|
-
} from 'i18next';
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import {
|
|
14
|
-
Trans,
|
|
15
|
-
TransProps,
|
|
16
|
-
TransSelectorProps,
|
|
17
|
-
ErrorCode,
|
|
18
|
-
ErrorArgs,
|
|
19
|
-
} from './TransWithoutContext.js';
|
|
20
|
-
export { initReactI18next } from './initReactI18next.js';
|
|
21
|
-
|
|
22
|
-
export const TransWithoutContext: typeof Trans;
|
|
23
|
-
export { Trans, TransProps, TransSelectorProps, ErrorArgs, ErrorCode };
|
|
24
|
-
|
|
25
|
-
export function setDefaults(options: ReactOptions): void;
|
|
26
|
-
export function getDefaults(): ReactOptions;
|
|
27
|
-
export function setI18n(instance: i18n): void;
|
|
28
|
-
export function getI18n(): i18n;
|
|
29
|
-
export function composeInitialProps(ForComponent: any): (ctx: unknown) => Promise<any>;
|
|
30
|
-
export function getInitialProps(): {
|
|
31
|
-
initialI18nStore: {
|
|
32
|
-
[ns: string]: {};
|
|
33
|
-
};
|
|
34
|
-
initialLanguage: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export interface ReportNamespaces {
|
|
38
|
-
addUsedNamespaces(namespaces: Namespace): void;
|
|
39
|
-
getUsedNamespaces(): string[];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare module 'i18next' {
|
|
43
|
-
// interface i18n {
|
|
44
|
-
// reportNamespaces?: ReportNamespaces;
|
|
45
|
-
// }
|
|
46
|
-
interface CustomInstanceExtensions {
|
|
47
|
-
reportNamespaces?: ReportNamespaces;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true
|
|
52
|
-
? Record<string, unknown>
|
|
53
|
-
: never;
|
|
54
|
-
|
|
55
|
-
type ReactI18NextChildren = React.ReactNode | ObjectOrNever;
|
|
56
|
-
|
|
57
|
-
declare module 'react' {
|
|
58
|
-
namespace JSX {
|
|
59
|
-
interface IntrinsicAttributes {
|
|
60
|
-
i18nIsDynamicList?: boolean;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface HTMLAttributes<T> {
|
|
65
|
-
// This union is inspired by the typings for React.ReactNode. We do this to fix "This JSX tag's 'children' prop
|
|
66
|
-
// expects a single child of type 'ReactI18NextChildren', but multiple children were provided":
|
|
67
|
-
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/5a1e9f91ed0143adede394adb3f540e650455f71/types/react/index.d.ts#L268
|
|
68
|
-
children?: ReactI18NextChildren | Iterable<ReactI18NextChildren>;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
type _DefaultNamespace = TypeOptions['defaultNS'];
|
|
73
|
-
|
|
74
|
-
export function useSSR(initialI18nStore: Resource, initialLanguage: string): void;
|
|
75
|
-
|
|
76
|
-
// If the version is earlier than i18next v25.4.0, enableSelector does not exist in TypeOptions, so a conditional type is used to maintain type compatibility.
|
|
77
|
-
type _EnableSelector = TypeOptions extends { enableSelector: infer U } ? U : false;
|
|
78
|
-
|
|
79
|
-
export type UseTranslationOptions<KPrefix> = {
|
|
80
|
-
i18n?: i18n;
|
|
81
|
-
useSuspense?: boolean;
|
|
82
|
-
keyPrefix?: KPrefix;
|
|
83
|
-
bindI18n?: string | false;
|
|
84
|
-
nsMode?: 'fallback' | 'default';
|
|
85
|
-
lng?: string;
|
|
86
|
-
// other of these options might also work: https://github.com/i18next/i18next/blob/master/index.d.ts#L127
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export type UseTranslationResponse<Ns extends Namespace, KPrefix> = [
|
|
90
|
-
t: TFunction<Ns, KPrefix>,
|
|
91
|
-
i18n: i18n,
|
|
92
|
-
ready: boolean,
|
|
93
|
-
] & {
|
|
94
|
-
t: TFunction<Ns, KPrefix>;
|
|
95
|
-
i18n: i18n;
|
|
96
|
-
ready: boolean;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
// Workaround to make code completion to work when suggesting namespaces.
|
|
100
|
-
// This is a typescript limitation when using generics with default values,
|
|
101
|
-
// it'll be addressed in this issue: https://github.com/microsoft/TypeScript/issues/52516
|
|
102
|
-
export type FallbackNs<Ns> = Ns extends undefined
|
|
103
|
-
? _DefaultNamespace
|
|
104
|
-
: Ns extends Namespace
|
|
105
|
-
? Ns
|
|
106
|
-
: _DefaultNamespace;
|
|
107
|
-
|
|
108
|
-
export const useTranslation: _EnableSelector extends true | 'optimize'
|
|
109
|
-
? UseTranslationSelector
|
|
110
|
-
: UseTranslationLegacy;
|
|
111
|
-
|
|
112
|
-
interface UseTranslationLegacy {
|
|
113
|
-
<
|
|
114
|
-
const Ns extends FlatNamespace | $Tuple<FlatNamespace> | undefined = undefined,
|
|
115
|
-
const KPrefix extends KeyPrefix<FallbackNs<Ns>> = undefined,
|
|
116
|
-
>(
|
|
117
|
-
ns?: Ns,
|
|
118
|
-
options?: UseTranslationOptions<KPrefix>,
|
|
119
|
-
): UseTranslationResponse<FallbackNs<Ns>, KPrefix>;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
interface UseTranslationSelector {
|
|
123
|
-
<
|
|
124
|
-
const Ns extends FlatNamespace | $Tuple<FlatNamespace> | undefined = undefined,
|
|
125
|
-
const KPrefix = undefined,
|
|
126
|
-
>(
|
|
127
|
-
ns?: Ns,
|
|
128
|
-
options?: UseTranslationOptions<KPrefix>,
|
|
129
|
-
): UseTranslationResponse<FallbackNs<Ns>, KPrefix>;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// Need to see usage to improve this
|
|
133
|
-
export function withSSR(): <Props>(WrappedComponent: React.ComponentType<Props>) => {
|
|
134
|
-
({
|
|
135
|
-
initialI18nStore,
|
|
136
|
-
initialLanguage,
|
|
137
|
-
...rest
|
|
138
|
-
}: {
|
|
139
|
-
initialI18nStore: Resource;
|
|
140
|
-
initialLanguage: string;
|
|
141
|
-
} & Props): React.FunctionComponentElement<Props>;
|
|
142
|
-
getInitialProps: (ctx: unknown) => Promise<any>;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
export interface WithTranslation<
|
|
146
|
-
Ns extends FlatNamespace | $Tuple<FlatNamespace> | undefined = undefined,
|
|
147
|
-
KPrefix extends KeyPrefix<FallbackNs<Ns>> = undefined,
|
|
148
|
-
> {
|
|
149
|
-
t: TFunction<FallbackNs<Ns>, KPrefix>;
|
|
150
|
-
i18n: i18n;
|
|
151
|
-
tReady: boolean;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface WithTranslationProps {
|
|
155
|
-
i18n?: i18n;
|
|
156
|
-
useSuspense?: boolean;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export function withTranslation<
|
|
160
|
-
Ns extends FlatNamespace | $Tuple<FlatNamespace> | undefined = undefined,
|
|
161
|
-
KPrefix extends KeyPrefix<FallbackNs<Ns>> = undefined,
|
|
162
|
-
>(
|
|
163
|
-
ns?: Ns,
|
|
164
|
-
options?: {
|
|
165
|
-
withRef?: boolean;
|
|
166
|
-
keyPrefix?: KPrefix;
|
|
167
|
-
},
|
|
168
|
-
): <
|
|
169
|
-
C extends React.ComponentType<React.ComponentProps<any> & WithTranslationProps>,
|
|
170
|
-
ResolvedProps = React.JSX.LibraryManagedAttributes<
|
|
171
|
-
C,
|
|
172
|
-
$Subtract<React.ComponentProps<C>, WithTranslationProps>
|
|
173
|
-
>,
|
|
174
|
-
>(
|
|
175
|
-
component: C,
|
|
176
|
-
) => React.ComponentType<Omit<ResolvedProps, keyof WithTranslation<Ns>> & WithTranslationProps>;
|
|
177
|
-
|
|
178
|
-
export interface I18nextProviderProps {
|
|
179
|
-
children?: React.ReactNode;
|
|
180
|
-
i18n: i18n;
|
|
181
|
-
defaultNS?: string | string[];
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export const I18nextProvider: React.FunctionComponent<I18nextProviderProps>;
|
|
185
|
-
export const I18nContext: React.Context<{ i18n: i18n }>;
|
|
186
|
-
|
|
187
|
-
export interface TranslationProps<
|
|
188
|
-
Ns extends FlatNamespace | $Tuple<FlatNamespace> | undefined = undefined,
|
|
189
|
-
KPrefix extends KeyPrefix<FallbackNs<Ns>> = undefined,
|
|
190
|
-
> {
|
|
191
|
-
children: (
|
|
192
|
-
t: TFunction<FallbackNs<Ns>, KPrefix>,
|
|
193
|
-
options: {
|
|
194
|
-
i18n: i18n;
|
|
195
|
-
lng: string;
|
|
196
|
-
},
|
|
197
|
-
ready: boolean,
|
|
198
|
-
) => React.ReactNode;
|
|
199
|
-
ns?: Ns;
|
|
200
|
-
i18n?: i18n;
|
|
201
|
-
useSuspense?: boolean;
|
|
202
|
-
keyPrefix?: KPrefix;
|
|
203
|
-
nsMode?: 'fallback' | 'default';
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export function Translation<
|
|
207
|
-
Ns extends FlatNamespace | $Tuple<FlatNamespace> | undefined = undefined,
|
|
208
|
-
KPrefix extends KeyPrefix<FallbackNs<Ns>> = undefined,
|
|
209
|
-
>(props: TranslationProps<Ns, KPrefix>): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './initReactI18next.js';
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-i18next",
|
|
3
|
-
"version": "15.7.3",
|
|
4
|
-
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
|
|
5
|
-
"main": "dist/commonjs/index.js",
|
|
6
|
-
"types": "./index.d.mts",
|
|
7
|
-
"jsnext:main": "dist/es/index.js",
|
|
8
|
-
"module": "dist/es/index.js",
|
|
9
|
-
"keywords": [
|
|
10
|
-
"i18next",
|
|
11
|
-
"internationalization",
|
|
12
|
-
"i18n",
|
|
13
|
-
"translation",
|
|
14
|
-
"localization",
|
|
15
|
-
"l10n",
|
|
16
|
-
"globalization",
|
|
17
|
-
"react",
|
|
18
|
-
"reactjs"
|
|
19
|
-
],
|
|
20
|
-
"exports": {
|
|
21
|
-
"./package.json": "./package.json",
|
|
22
|
-
".": {
|
|
23
|
-
"types": {
|
|
24
|
-
"require": "./index.d.ts",
|
|
25
|
-
"import": "./index.d.mts"
|
|
26
|
-
},
|
|
27
|
-
"module": "./dist/es/index.js",
|
|
28
|
-
"import": "./dist/es/index.js",
|
|
29
|
-
"require": "./dist/commonjs/index.js",
|
|
30
|
-
"default": "./dist/es/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./TransWithoutContext": {
|
|
33
|
-
"types": {
|
|
34
|
-
"require": "./TransWithoutContext.d.ts",
|
|
35
|
-
"import": "./TransWithoutContext.d.mts"
|
|
36
|
-
},
|
|
37
|
-
"module": "./dist/es/TransWithoutContext.js",
|
|
38
|
-
"import": "./dist/es/TransWithoutContext.js",
|
|
39
|
-
"require": "./dist/commonjs/TransWithoutContext.js",
|
|
40
|
-
"default": "./dist/es/TransWithoutContext.js"
|
|
41
|
-
},
|
|
42
|
-
"./initReactI18next": {
|
|
43
|
-
"types": {
|
|
44
|
-
"require": "./initReactI18next.d.ts",
|
|
45
|
-
"import": "./initReactI18next.d.mts"
|
|
46
|
-
},
|
|
47
|
-
"module": "./dist/es/initReactI18next.js",
|
|
48
|
-
"import": "./dist/es/initReactI18next.js",
|
|
49
|
-
"require": "./dist/commonjs/initReactI18next.js",
|
|
50
|
-
"default": "./dist/es/initReactI18next.js"
|
|
51
|
-
},
|
|
52
|
-
"./icu.macro": {
|
|
53
|
-
"types": {
|
|
54
|
-
"require": "./icu.macro..d.ts",
|
|
55
|
-
"import": "./icu.macro..d.mts"
|
|
56
|
-
},
|
|
57
|
-
"default": "./icu.macro.js"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"homepage": "https://github.com/i18next/react-i18next",
|
|
61
|
-
"bugs": "https://github.com/i18next/react-i18next/issues",
|
|
62
|
-
"repository": {
|
|
63
|
-
"type": "git",
|
|
64
|
-
"url": "https://github.com/i18next/react-i18next.git"
|
|
65
|
-
},
|
|
66
|
-
"dependencies": {
|
|
67
|
-
"@babel/runtime": "^7.27.6",
|
|
68
|
-
"html-parse-stringify": "^3.0.1"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"i18next": ">= 25.4.1",
|
|
72
|
-
"react": ">= 16.8.0",
|
|
73
|
-
"typescript": "^5"
|
|
74
|
-
},
|
|
75
|
-
"peerDependenciesMeta": {
|
|
76
|
-
"react-dom": {
|
|
77
|
-
"optional": true
|
|
78
|
-
},
|
|
79
|
-
"react-native": {
|
|
80
|
-
"optional": true
|
|
81
|
-
},
|
|
82
|
-
"typescript": {
|
|
83
|
-
"optional": true
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"devDependencies": {
|
|
87
|
-
"@babel/cli": "^7.28.0",
|
|
88
|
-
"@babel/core": "^7.28.0",
|
|
89
|
-
"@babel/eslint-parser": "^7.28.0",
|
|
90
|
-
"@babel/plugin-proposal-async-generator-functions": "^7.20.7",
|
|
91
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
92
|
-
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
|
|
93
|
-
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
94
|
-
"@babel/polyfill": "^7.12.1",
|
|
95
|
-
"@babel/preset-env": "^7.28.0",
|
|
96
|
-
"@babel/preset-react": "^7.27.1",
|
|
97
|
-
"@babel/register": "^7.27.1",
|
|
98
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
99
|
-
"@rollup/plugin-commonjs": "^26.0.3",
|
|
100
|
-
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
101
|
-
"@rollup/plugin-replace": "^5.0.7",
|
|
102
|
-
"@rollup/plugin-terser": "0.4.4",
|
|
103
|
-
"@testing-library/dom": "^10.4.0",
|
|
104
|
-
"@testing-library/jest-dom": "^6.4.8",
|
|
105
|
-
"@testing-library/react": "^16.1.0",
|
|
106
|
-
"@types/jest": "^29.5.12",
|
|
107
|
-
"@types/react": "^19.1.0",
|
|
108
|
-
"@vitest/coverage-v8": "^2.0.5",
|
|
109
|
-
"all-contributors-cli": "^6.26.1",
|
|
110
|
-
"babel-core": "^7.0.0-bridge.0",
|
|
111
|
-
"babel-plugin-macros": "^3.1.0",
|
|
112
|
-
"babel-plugin-tester": "^11.0.4",
|
|
113
|
-
"coveralls": "^3.1.1",
|
|
114
|
-
"cpy-cli": "^5.0.0",
|
|
115
|
-
"cross-env": "^7.0.3",
|
|
116
|
-
"eslint": "^8.57.0",
|
|
117
|
-
"eslint-config-airbnb": "19.0.4",
|
|
118
|
-
"eslint-config-prettier": "^9.1.0",
|
|
119
|
-
"eslint-plugin-import": "^2.32.0",
|
|
120
|
-
"eslint-plugin-jest-dom": "^5.5.0",
|
|
121
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
122
|
-
"eslint-plugin-react": "^7.37.5",
|
|
123
|
-
"eslint-plugin-testing-library": "^6.5.0",
|
|
124
|
-
"happy-dom": "^14.12.3",
|
|
125
|
-
"husky": "^9.1.7",
|
|
126
|
-
"i18next": "^25.4.1",
|
|
127
|
-
"lint-staged": "^15.5.2",
|
|
128
|
-
"mkdirp": "^3.0.1",
|
|
129
|
-
"prettier": "^3.6.2",
|
|
130
|
-
"react": "^19.1.0",
|
|
131
|
-
"react-dom": "^19.1.0",
|
|
132
|
-
"react-test-renderer": "^19.1.0",
|
|
133
|
-
"rimraf": "^6.0.1",
|
|
134
|
-
"rollup": "^4.44.1",
|
|
135
|
-
"typescript": "~5.5.4",
|
|
136
|
-
"vitest": "^2.0.5",
|
|
137
|
-
"yargs": "^17.7.2"
|
|
138
|
-
},
|
|
139
|
-
"scripts": {
|
|
140
|
-
"clean": "rimraf dist && mkdirp dist",
|
|
141
|
-
"lint": "eslint --cache .",
|
|
142
|
-
"lint:fix": "eslint --cache --fix .",
|
|
143
|
-
"format": "prettier . --check",
|
|
144
|
-
"format:fix": "prettier . --write --list-different",
|
|
145
|
-
"copy": "cpy ./dist/umd/react-i18next.min.js ./dist/umd/react-i18next.js . --flat && echo '{\"type\":\"module\"}' > dist/es/package.json",
|
|
146
|
-
"build:es": "cross-env BABEL_ENV=ESNext babel src --out-dir dist/es",
|
|
147
|
-
"build:cjs": "babel src --out-dir dist/commonjs",
|
|
148
|
-
"build:umd": "rollup -c rollup.config.mjs --format umd && rollup -c rollup.config.mjs --format umd --uglify",
|
|
149
|
-
"build:amd": "rollup -c rollup.config.mjs --format amd && rollup -c rollup.config.mjs --format amd --uglify",
|
|
150
|
-
"build:iife": "rollup -c rollup.config.mjs --format iife && rollup -c rollup.config.mjs --format iife --uglify",
|
|
151
|
-
"build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:amd && npm run copy",
|
|
152
|
-
"fix_dist_package": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > dist/es/package.json",
|
|
153
|
-
"preversion": "npm run build && git push",
|
|
154
|
-
"postversion": "npm run fix_dist_package && git push && git push --tags",
|
|
155
|
-
"test": "vitest",
|
|
156
|
-
"test:coverage": "npm run test -- --coverage --run",
|
|
157
|
-
"test:typescript": "vitest --workspace vitest.workspace.typescript.mts",
|
|
158
|
-
"contributors:add": "all-contributors add",
|
|
159
|
-
"contributors:generate": "all-contributors generate",
|
|
160
|
-
"prepare": "husky"
|
|
161
|
-
},
|
|
162
|
-
"author": "Jan Mühlemann <jan.muehlemann@gmail.com> (https://github.com/jamuhl)",
|
|
163
|
-
"license": "MIT",
|
|
164
|
-
"lock": false,
|
|
165
|
-
"sideEffects": false,
|
|
166
|
-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
167
|
-
}
|