react-luna-form 0.0.38 → 0.0.40

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.
Files changed (36) hide show
  1. package/dist/client/cjs/index.js +1 -1
  2. package/dist/client/esm/index.js +1 -1
  3. package/dist/config/cjs/index.js +1 -1
  4. package/dist/config/esm/index.js +1 -1
  5. package/dist/server/cjs/index.js +1 -1
  6. package/dist/server/esm/index.js +1 -1
  7. package/dist/types/luna-react/src/client/component/input-date.d.ts +16 -0
  8. package/dist/types/luna-react/src/client/hook/use-format.d.ts +5 -0
  9. package/package.json +3 -3
  10. package/dist/types/luna-core/src/fetcher.d.ts +0 -2
  11. package/dist/types/luna-core/src/handle/proxy-event.d.ts +0 -6
  12. package/dist/types/luna-core/src/handle/source-event.d.ts +0 -2
  13. package/dist/types/luna-core/src/handle/state-event.d.ts +0 -2
  14. package/dist/types/luna-core/src/handle/value-event.d.ts +0 -2
  15. package/dist/types/luna-core/src/helper/input.d.ts +0 -54
  16. package/dist/types/luna-core/src/index.d.ts +0 -24
  17. package/dist/types/luna-core/src/type.d.ts +0 -214
  18. package/dist/types/luna-core/src/util/attributes.d.ts +0 -6
  19. package/dist/types/luna-core/src/util/build.d.ts +0 -6
  20. package/dist/types/luna-core/src/util/column.d.ts +0 -2
  21. package/dist/types/luna-core/src/util/constant.d.ts +0 -51
  22. package/dist/types/luna-core/src/util/date.d.ts +0 -20
  23. package/dist/types/luna-core/src/util/extract.d.ts +0 -16
  24. package/dist/types/luna-core/src/util/is-input.d.ts +0 -24
  25. package/dist/types/luna-core/src/util/is-type.d.ts +0 -7
  26. package/dist/types/luna-core/src/util/list.d.ts +0 -4
  27. package/dist/types/luna-core/src/util/logger.d.ts +0 -5
  28. package/dist/types/luna-core/src/util/operator.d.ts +0 -1
  29. package/dist/types/luna-core/src/util/prepare.d.ts +0 -4
  30. package/dist/types/luna-core/src/util/schema.d.ts +0 -14
  31. package/dist/types/luna-core/src/util/source.d.ts +0 -2
  32. package/dist/types/luna-core/src/util/string.d.ts +0 -8
  33. package/dist/types/luna-core/src/util/stringify.d.ts +0 -1
  34. package/dist/types/luna-core/src/util/style.d.ts +0 -6
  35. package/dist/types/luna-core/src/util/translate.d.ts +0 -1
  36. package/dist/types/luna-core/src/util/url.d.ts +0 -10
@@ -1 +0,0 @@
1
- export declare const operators: Record<string, (current: unknown, value: unknown) => boolean>;
@@ -1,4 +0,0 @@
1
- import type { Definition, Filterable, Nullable } from '../type';
2
- export declare function prepare<T extends Filterable>(base?: readonly T[], definition?: Definition): any[];
3
- export declare function resolveRefs(base: unknown, definition?: Definition, cache?: Map<object, unknown>, visited?: WeakSet<object>): unknown;
4
- export declare function entries<T>(values?: Nullable<Record<string, T>>): [key: string, value: T][];
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- import type { CustomValidation, Field, Input, Schemas, ZodSchema } from '../type';
3
- export declare function buildSchema(schemas: Schemas, fields?: Field[], translations?: Record<string, string>): ZodSchema;
4
- export declare function flatten(error: z.ZodError<Record<string, unknown>>): Record<string, string[]>;
5
- export declare function getSchema(input: Input, translations?: Record<string, string>): z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
6
- export declare function getEmail(input: Input, translations?: Record<string, string>): z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodString, z.ZodEmail>> | z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodEmail>, z.ZodLiteral<"">]>>;
7
- export declare function getBoolean(input: Input, translations?: Record<string, string>): z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodCoercedBoolean<unknown>> | z.ZodNullable<z.ZodCoercedBoolean<unknown>>;
8
- export declare function getRadio(input: Input, translations?: Record<string, string>): z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedString<unknown>> | z.ZodNullable<z.ZodUnion<[z.ZodCoercedString<unknown>, z.ZodLiteral<"">]>>;
9
- export declare function getText(input: Input, translations?: Record<string, string>): z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedString<unknown>> | z.ZodNullable<z.ZodCoercedString<unknown>>;
10
- export declare function getNumber(input: Input, translations?: Record<string, string>): z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodCoercedNumber<unknown>> | z.ZodNullable<z.ZodCoercedNumber<unknown>>;
11
- export declare function getYearSchema(input: Input, translations?: Record<string, string>): z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodCoercedNumber<unknown>> | z.ZodNullable<z.ZodCoercedNumber<unknown>>;
12
- export declare function getMonthSchema(input: Input, translations?: Record<string, string>): z.ZodCoercedNumber<unknown> | z.ZodNullable<z.ZodCoercedNumber<unknown>>;
13
- export declare function applyCustomValidation(schema: ZodSchema, fields?: Field[], translations?: Record<string, string>): ZodSchema;
14
- export declare function validateCustom(value: unknown, rules: CustomValidation | Array<CustomValidation>, getValue: (name: string) => unknown, translations?: Record<string, string>): string[];
@@ -1,2 +0,0 @@
1
- import type { DataSource, Nullable } from '../type';
2
- export declare function mergeSource(sources: DataSource[]): Nullable<DataSource>;
@@ -1,8 +0,0 @@
1
- /**
2
- * Replaces placeholders in the format {key} with values from the provided object.
3
- * Supports nested objects using dot notation (e.g., {user.id}).
4
- */
5
- export declare function interpolate<T>(template: T, values?: Record<string, unknown>): T;
6
- export declare function interpolateIfNeeded<T>(template: T, values?: Record<string, unknown>): T;
7
- export declare function isInterpolated(template: unknown): boolean;
8
- export declare function formatMarkdown<K>(text?: string, callback?: (index: number, url: string, text?: string) => K): (string | K)[] | string | null;
@@ -1 +0,0 @@
1
- export declare function stringify<T>(body: T): string | null;
@@ -1,6 +0,0 @@
1
- import type { Style } from '../type';
2
- export declare function mergeStyle(globalStyle?: Style, localStyle?: Style): {
3
- compact?: boolean;
4
- horizontal?: boolean;
5
- showOptionalLabel?: boolean;
6
- };
@@ -1 +0,0 @@
1
- export declare function translate(key?: string, dictionary?: Record<string, string>): string;
@@ -1,10 +0,0 @@
1
- import type { RemotePattern } from '../type';
2
- /**
3
- * Validates a URL against a list of allowed remote patterns.
4
- * Internal URLs are allowed by default.
5
- * If patterns is undefined, all URLs are allowed.
6
- * If patterns is an empty array, all external URLs are blocked.
7
- */
8
- export declare function matchRemotePattern(urlStr: string, patterns?: RemotePattern[]): boolean;
9
- export declare function isExternalUrl(url: string): boolean;
10
- export declare function mergeUrl(baseUrl: string, targetUrl: string): string;