@archbase/core 3.0.0 → 3.0.3

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/LICENSE +21 -0
  2. package/README.md +12 -4
  3. package/dist/context/ArchbaseAppContext.d.ts +1 -1
  4. package/dist/context/ArchbaseGlobalProvider.d.ts +1 -2
  5. package/dist/context/ArchbaseSimpleAppContext.d.ts +1 -1
  6. package/dist/errorboundary/ArchbaseErrorBoundary.d.ts +2 -2
  7. package/dist/errorboundary/ArchbaseErrorBoundaryContext.d.ts +1 -1
  8. package/dist/errorboundary/index.d.ts +6 -6
  9. package/dist/errorboundary/types.d.ts +1 -1
  10. package/dist/fallback/ArchbaseSafeMigrationWrapper.d.ts +2 -10
  11. package/dist/hooks/ArchbaseDepencyManager.d.ts +1 -55
  12. package/dist/hooks/lifecycle/index.d.ts +4 -4
  13. package/dist/hooks/useArchbasePassiveLayoutEffect.d.ts +1 -1
  14. package/dist/hooks/useArchbasePasswordRemember.d.ts +3 -3
  15. package/dist/hooks/useArchbaseResizeObserver.d.ts +1 -1
  16. package/dist/index.d.ts +1 -3
  17. package/dist/locales/config.d.ts +0 -3
  18. package/dist/locales/en/translation.json.d.ts +627 -0
  19. package/dist/locales/es/translation.json.d.ts +536 -0
  20. package/dist/locales/pt-BR/translation.json.d.ts +628 -0
  21. package/dist/rsql/parser/lexer/LexerProcessor.d.ts +2 -2
  22. package/dist/types/types.d.ts +1 -1
  23. package/dist/utils/deepFilter.d.ts +1 -1
  24. package/dist/utils/deepFind.d.ts +1 -1
  25. package/dist/utils/deepForEach.d.ts +1 -1
  26. package/dist/utils/deepMap.d.ts +1 -1
  27. package/dist/utils/filter.d.ts +1 -1
  28. package/dist/utils/getElementName.d.ts +1 -1
  29. package/dist/utils/groupByType.d.ts +1 -1
  30. package/dist/utils/hasChildren.d.ts +1 -1
  31. package/dist/utils/hasComplexChildren.d.ts +1 -1
  32. package/dist/utils/onlyText.d.ts +1 -1
  33. package/dist/utils/onlyValid.d.ts +1 -1
  34. package/dist/validator/ArchbaseValidator.d.ts +1 -1
  35. package/package.json +8 -7
  36. package/dist/archbase-core-3.0.0.tgz +0 -0
@@ -1,2 +1,2 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export declare const deepMap: (children: ReactNode | ReactNode[], deepMapFn: (child: ReactNode, index?: number, children?: ReactNode[]) => ReactNode) => ReactNode[];
@@ -1,2 +1,2 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export declare const filter: (children: ReactNode | ReactNode[], filterFn: (child: ReactNode, index?: number, children?: ReactNode[]) => boolean) => ReactNode[];
@@ -1,2 +1,2 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export declare const getElementName: (element: ReactNode) => string | null;
@@ -1,2 +1,2 @@
1
- import type { ComponentClass, FunctionComponent, ReactNode } from 'react';
1
+ import { ComponentClass, FunctionComponent, ReactNode } from 'react';
2
2
  export declare const groupByType: (children: ReactNode | ReactNode[], types?: (ComponentClass<any> | FunctionComponent | string)[], rest?: string) => Record<string, ReactNode[]>;
@@ -1,4 +1,4 @@
1
- import type { ReactElement, ReactNode } from 'react';
1
+ import { ReactElement, ReactNode } from 'react';
2
2
  export declare const hasChildren: (element: ReactNode) => element is ReactElement<{
3
3
  children: ReactNode | ReactNode[];
4
4
  }>;
@@ -1,4 +1,4 @@
1
- import type { ReactElement, ReactNode } from 'react';
1
+ import { ReactElement, ReactNode } from 'react';
2
2
  export declare const hasComplexChildren: (element: ReactNode) => element is ReactElement<{
3
3
  children: ReactNode | ReactNode[];
4
4
  }>;
@@ -1,3 +1,3 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export declare const childToString: (child?: ReactNode) => string;
3
3
  export declare const onlyText: (children: ReactNode | ReactNode[]) => string;
@@ -1,2 +1,2 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export declare const onlyValid: (children: ReactNode | ReactNode[]) => ReactNode[];
@@ -1,3 +1,4 @@
1
+ import { ValidatorOptions, ValidationError } from './index';
1
2
  export interface DataSourceValidationError {
2
3
  errorMessage: string;
3
4
  debugMessage: string;
@@ -6,7 +7,6 @@ export interface DataSourceValidationError {
6
7
  export interface IDataSourceValidator {
7
8
  validateEntity<T>(value: T): DataSourceValidationError[];
8
9
  }
9
- import { ValidatorOptions, ValidationError } from './index';
10
10
  export declare class ArchbaseValidator implements IDataSourceValidator {
11
11
  constructor();
12
12
  validateEntity<T>(value: T): DataSourceValidationError[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archbase/core",
3
- "version": "3.0.0",
3
+ "version": "3.0.3",
4
4
  "description": "Core utilities and foundation for Archbase React v3",
5
5
  "author": "Edson Martins <edsonmartins2005@gmail.com>",
6
6
  "license": "MIT",
@@ -36,8 +36,8 @@
36
36
  "@mantine/modals": "8.3.12",
37
37
  "@mantine/notifications": "8.3.12",
38
38
  "@mantine/spotlight": "8.3.12",
39
- "react": "^18.3.0 || ^19.0.0",
40
- "react-dom": "^18.3.0 || ^19.0.0"
39
+ "react": "^18.3.0 || ^19.2.0",
40
+ "react-dom": "^18.3.0 || ^19.2.0"
41
41
  },
42
42
  "dependencies": {
43
43
  "@juggle/resize-observer": "^3.4.0",
@@ -65,20 +65,21 @@
65
65
  "validator": "^13.11.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@types/react": "^19.0.4",
68
+ "@types/react": "^19.0.6",
69
69
  "@types/react-dom": "^19.0.2",
70
70
  "@types/validator": "^13.15.10",
71
71
  "@vitejs/plugin-react": "^4.3.4",
72
- "react": "^19.0.0",
73
- "react-dom": "^19.0.0",
72
+ "react": "^19.2.3",
73
+ "react-dom": "^19.2.3",
74
74
  "typescript": "~5.7.2",
75
75
  "vite": "^6.0.3",
76
+ "vite-plugin-dts": "^4.5.4",
76
77
  "vite-plugin-external": "^6.2.2",
77
78
  "vitest": "^2.1.8"
78
79
  },
79
80
  "scripts": {
80
81
  "dev": "NODE_OPTIONS=\"--max-old-space-size=16384\" vite build --watch",
81
- "build": "NODE_OPTIONS=\"--max-old-space-size=16384\" vite build && tsc --emitDeclarationOnly || true",
82
+ "build": "NODE_OPTIONS=\"--max-old-space-size=16384\" vite build",
82
83
  "test": "vitest run",
83
84
  "test:watch": "vitest",
84
85
  "test:coverage": "vitest run --coverage",
Binary file