@petrarca/sonnet-core 0.1.1 → 0.1.2
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/README.md +23 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @petrarca/sonnet-core
|
|
2
|
+
|
|
3
|
+
Foundation utilities for the Petrarca Sonnet component library. This is the leaf package -- all other Sonnet packages depend on it.
|
|
4
|
+
|
|
5
|
+
## Entry points
|
|
6
|
+
|
|
7
|
+
| Import | What |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `@petrarca/sonnet-core` | Utility functions (`cn`, `isEqual`, `formatDateTime`, `normalizeError`, logging, etc.) |
|
|
10
|
+
| `@petrarca/sonnet-core/schema` | JSON Schema types, resolution, validation, diffing |
|
|
11
|
+
| `@petrarca/sonnet-core/search` | Filter expression types and helpers (`FilterExpr`, `buildListParams`, etc.) |
|
|
12
|
+
| `@petrarca/sonnet-core/hooks` | React hooks (`useClipboard`, `useDisclosure`, `useFormState`, `useEntityOptions`) |
|
|
13
|
+
| `@petrarca/sonnet-core/entityOptions` | Entity option fetcher context and factory for async select/autocomplete |
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pnpm add @petrarca/sonnet-core
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
Apache 2.0
|