@fluenti/react 0.6.0 → 0.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.
@@ -1,3 +1,3 @@
1
- import { CompileTimeT } from '../../core/src/index.ts';
1
+ import { CompileTimeT } from '@fluenti/core';
2
2
  export declare const t: CompileTimeT;
3
3
  //# sourceMappingURL=compile-time-t.d.ts.map
@@ -1,5 +1,5 @@
1
- import { MessageDescriptor } from '../../../core/src/index.ts';
2
- import { buildICUPluralMessage, buildICUSelectMessage, normalizeSelectForms } from '../../../core/src/runtime.ts';
1
+ import { MessageDescriptor } from '@fluenti/core';
2
+ import { buildICUPluralMessage, buildICUSelectMessage, normalizeSelectForms } from '@fluenti/core/runtime';
3
3
  import { ReactElement, ReactNode } from 'react';
4
4
  export { buildICUPluralMessage, buildICUSelectMessage, normalizeSelectForms };
5
5
  export interface RichMessagePart {
@@ -1,4 +1,4 @@
1
- import { PluralCategory } from '../../../core/src/runtime.ts';
1
+ import { PluralCategory } from '@fluenti/core/runtime';
2
2
  import { ReactNode } from 'react';
3
3
  export declare function resolveCompiledMessageId(id: string | undefined, message: string, context: string | undefined): string;
4
4
  export declare function buildPlainPluralMessage(forms: Record<PluralCategory, ReactNode | undefined>, offset?: number): string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { PluralCategory } from '../../../core/src/runtime.ts';
3
- export { PLURAL_CATEGORIES, type PluralCategory } from '../../../core/src/runtime.ts';
2
+ import { PluralCategory } from '@fluenti/core/runtime';
3
+ export { PLURAL_CATEGORIES, type PluralCategory } from '@fluenti/core/runtime';
4
4
  /**
5
5
  * Resolve which plural category to use.
6
6
  * Checks for exact =0 match first, then falls back to CLDR rules.
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, ReactElement } from 'react';
2
- import { hashMessage } from '../../../core/src/runtime.ts';
2
+ import { hashMessage } from '@fluenti/core/runtime';
3
3
  export { hashMessage };
4
4
  /**
5
5
  * Extract a message string and component list from React children.
@@ -1,4 +1,4 @@
1
- import { FluentiCoreInstanceFull as FluentInstanceExtended, CompiledMessage, Locale, Messages, AllMessages, DateFormatOptions, NumberFormatOptions, LocalizedString, MessageDescriptor } from '../../core/src/index.ts';
1
+ import { FluentiCoreInstanceFull as FluentInstanceExtended, CompiledMessage, Locale, Messages, AllMessages, DateFormatOptions, NumberFormatOptions, LocalizedString, MessageDescriptor } from '@fluenti/core';
2
2
  /**
3
3
  * Configuration for `createFluenti()`.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { FluentiCoreInstanceFull } from '../../core/src/index.ts';
1
+ import { FluentiCoreInstanceFull } from '@fluenti/core';
2
2
  /**
3
3
  * Global i18n instance registry.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { FluentiCoreInstanceFull } from '../../../core/src/index.ts';
1
+ import { FluentiCoreInstanceFull } from '@fluenti/core';
2
2
  /**
3
3
  * Internal hook used by the Vite plugin's compiled output.
4
4
  * Returns the i18n instance for direct t() calls.
@@ -1,2 +1,2 @@
1
- export { msg } from '../../core/src/index.ts';
1
+ export { msg } from '@fluenti/core';
2
2
  //# sourceMappingURL=msg.d.ts.map
@@ -1,3 +1,3 @@
1
- import { RuntimeGenerator } from '../../vite-plugin/src/index.ts';
1
+ import { RuntimeGenerator } from '@fluenti/vite-plugin';
2
2
  export declare const reactRuntimeGenerator: RuntimeGenerator;
3
3
  //# sourceMappingURL=react-runtime.d.ts.map
@@ -1,8 +1,8 @@
1
- import { FluentiCoreInstanceFull, FluentiCoreConfigFull, Locale, Messages, DateFormatOptions, NumberFormatOptions } from '../../core/src/index.ts';
1
+ import { FluentiCoreInstanceFull, FluentiCoreConfigFull, Locale, Messages, DateFormatOptions, NumberFormatOptions } from '@fluenti/core';
2
2
  import { ReactNode, ReactElement } from 'react';
3
- export { detectLocale, getSSRLocaleScript, getHydratedLocale } from '../../core/src/ssr-entry.ts';
4
- export type { DetectLocaleOptions } from '../../core/src/ssr-entry.ts';
5
- export { isRTL, getDirection } from '../../core/src/index.ts';
3
+ export { detectLocale, getSSRLocaleScript, getHydratedLocale } from '@fluenti/core/ssr';
4
+ export type { DetectLocaleOptions } from '@fluenti/core/ssr';
5
+ export { isRTL, getDirection } from '@fluenti/core';
6
6
  /**
7
7
  * Configuration for `createServerI18n`.
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { Locale, LocalizedString, Messages, AllMessages, CompiledMessage, MessageDescriptor, CompileTimeMessageDescriptor, CompileTimeT, DateFormatOptions, NumberFormatOptions, DiagnosticsConfig } from '../../core/src/index.ts';
2
+ import { Locale, LocalizedString, Messages, AllMessages, CompiledMessage, MessageDescriptor, CompileTimeMessageDescriptor, CompileTimeT, DateFormatOptions, NumberFormatOptions, DiagnosticsConfig } from '@fluenti/core';
3
3
  export interface FluentiContext {
4
4
  /** Translate a message by id with optional interpolation values */
5
5
  t: {
@@ -1,6 +1,6 @@
1
1
  import { Plugin } from 'vite';
2
- import { FluentiPluginOptions } from '../../vite-plugin/src/index.ts';
3
- export type { FluentiPluginOptions as FluentiReactOptions } from '../../vite-plugin/src/index.ts';
2
+ import { FluentiPluginOptions } from '@fluenti/vite-plugin';
3
+ export type { FluentiPluginOptions as FluentiReactOptions } from '@fluenti/vite-plugin';
4
4
  /**
5
5
  * Fluenti React Vite plugin.
6
6
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluenti/react",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "description": "React bindings for Fluenti — I18nProvider, useI18n, Trans/Plural/Select components",
6
6
  "homepage": "https://fluenti.dev",
@@ -89,8 +89,8 @@
89
89
  }
90
90
  },
91
91
  "dependencies": {
92
- "@fluenti/vite-plugin": "0.6.0",
93
- "@fluenti/core": "0.6.0"
92
+ "@fluenti/core": "0.6.1",
93
+ "@fluenti/vite-plugin": "0.6.1"
94
94
  },
95
95
  "devDependencies": {
96
96
  "typescript": "^5.9",