@dev-fastn-ai/react-core 1.0.0
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/CHANGELOG.md +78 -0
- package/LICENSE +21 -0
- package/README.md +1710 -0
- package/dist/core/src/core/activate-connector.d.ts +42 -0
- package/dist/core/src/core/config.d.ts +3 -0
- package/dist/core/src/core/configuration-form.d.ts +27 -0
- package/dist/core/src/core/configurations.d.ts +2 -0
- package/dist/core/src/core/connectors.d.ts +7 -0
- package/dist/core/src/core/execute-flow.d.ts +9 -0
- package/dist/core/src/core/register-refetch-functions.d.ts +4 -0
- package/dist/core/src/index.d.ts +11 -0
- package/dist/core/src/services/api-hooks.d.ts +35 -0
- package/dist/core/src/services/apollo.d.ts +4 -0
- package/dist/core/src/types/config.d.ts +9 -0
- package/dist/core/src/types/index.d.ts +269 -0
- package/dist/core/src/utils/constants.d.ts +12 -0
- package/dist/core/src/utils/errors.d.ts +22 -0
- package/dist/core/src/utils/google-files-picker.d.ts +13 -0
- package/dist/core/src/utils/misc.d.ts +35 -0
- package/dist/index.cjs.js +18271 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +18259 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/react-core/src/core/provider.d.ts +9 -0
- package/dist/react-core/src/core/use-configuration-form.d.ts +2 -0
- package/dist/react-core/src/core/use-configurations.d.ts +2 -0
- package/dist/react-core/src/core/use-connectors.d.ts +1 -0
- package/dist/react-core/src/core/use-field-options.d.ts +36 -0
- package/dist/react-core/src/index.d.ts +7 -0
- package/package.json +76 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.0] - 2024-01-XX
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Initial release of @fastn-ai/react-core
|
|
12
|
+
- React hooks and components for Fastn AI integration
|
|
13
|
+
- Built on top of @fastn-ai/core with React Query
|
|
14
|
+
- FastnProvider for React application setup
|
|
15
|
+
- useConnectors hook for fetching marketplace connectors
|
|
16
|
+
- useConfigurations hook for managing connector configurations
|
|
17
|
+
- useConfigurationForm hook for dynamic form handling
|
|
18
|
+
- useFieldOptions hook for async select field options
|
|
19
|
+
- Complete TypeScript support with full type exports
|
|
20
|
+
- React Query integration for caching and performance
|
|
21
|
+
- Comprehensive error handling and loading states
|
|
22
|
+
- Optimistic updates and background refetching
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
- `FastnProvider` component for application setup
|
|
26
|
+
- `useConnectors()` hook with React Query caching
|
|
27
|
+
- `useConfigurations()` hook for configuration management
|
|
28
|
+
- `useConfigurationForm()` hook for form handling
|
|
29
|
+
- `useFieldOptions()` hook for async select fields
|
|
30
|
+
- Full TypeScript support with exported types
|
|
31
|
+
- React Query integration for optimal performance
|
|
32
|
+
- Error boundaries and loading state management
|
|
33
|
+
|
|
34
|
+
### Hooks
|
|
35
|
+
- `useConnectors` - Fetch and manage marketplace connectors
|
|
36
|
+
- `useConfigurations` - Handle connector configurations
|
|
37
|
+
- `useConfigurationForm` - Manage dynamic configuration forms
|
|
38
|
+
- `useFieldOptions` - Async select field options with search/pagination
|
|
39
|
+
|
|
40
|
+
### Components
|
|
41
|
+
- `FastnProvider` - Main provider component with configuration
|
|
42
|
+
- Context provider for Fastn client access
|
|
43
|
+
- React Query provider integration
|
|
44
|
+
|
|
45
|
+
### Types
|
|
46
|
+
- All types from @fastn-ai/core exported
|
|
47
|
+
- React-specific type definitions
|
|
48
|
+
- Hook return type definitions
|
|
49
|
+
- Component prop type definitions
|
|
50
|
+
|
|
51
|
+
### Performance
|
|
52
|
+
- React Query integration for intelligent caching
|
|
53
|
+
- Background refetching and stale data management
|
|
54
|
+
- Optimistic updates for better UX
|
|
55
|
+
- Automatic retry on failure
|
|
56
|
+
- Cache invalidation and garbage collection
|
|
57
|
+
|
|
58
|
+
### Developer Experience
|
|
59
|
+
- Complete TypeScript support
|
|
60
|
+
- Comprehensive documentation with examples
|
|
61
|
+
- Error handling with custom error classes
|
|
62
|
+
- Loading states and skeleton components
|
|
63
|
+
- Best practices and troubleshooting guides
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## [Unreleased]
|
|
68
|
+
|
|
69
|
+
### Planned
|
|
70
|
+
- Additional React components for common UI patterns
|
|
71
|
+
- Form validation integration
|
|
72
|
+
- Advanced caching strategies
|
|
73
|
+
- Real-time updates with WebSocket support
|
|
74
|
+
- Performance optimizations
|
|
75
|
+
- Additional hook utilities
|
|
76
|
+
- Testing utilities and examples
|
|
77
|
+
- Storybook integration
|
|
78
|
+
- Advanced error recovery mechanisms
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Fastn AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|