@picked/react 0.0.95 → 0.0.96-next.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.
package/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copyright (c) Picked. All rights reserved. Contact Picked for a usage licence.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picked/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.96-next.1",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@picked/client": "workspace:*",
|
|
6
6
|
"@repo/eslint-config": "workspace:*",
|
|
@@ -88,14 +88,18 @@
|
|
|
88
88
|
"@repo/vitest-config"
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
91
92
|
"module": "./dist/index.js",
|
|
92
93
|
"peerDependencies": {
|
|
93
|
-
"@picked/client": "0.0.
|
|
94
|
+
"@picked/client": "0.0.96-next.1",
|
|
94
95
|
"effector": "^23.4.4",
|
|
95
96
|
"react": "^18.3.0 || ^19.0.0",
|
|
96
97
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
97
98
|
},
|
|
98
99
|
"private": false,
|
|
100
|
+
"publishConfig": {
|
|
101
|
+
"access": "public"
|
|
102
|
+
},
|
|
99
103
|
"scripts": {
|
|
100
104
|
"build": "vite build && tsgo -p tsconfig.build.json",
|
|
101
105
|
"build:docs": "pnpm typedoc",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isContentOfModel as e}from"@picked/client";import{describe as t,expectTypeOf as n,it as r}from"vitest";t(`typed hooks (augmented registry)`,()=>{r(`narrows content and field value types from the registry`,()=>{n().toEqualTypeOf(),n().toEqualTypeOf(),n().toEqualTypeOf()}),r(`narrows a text feature to its declared arms, including the boolean control`,()=>{n().toEqualTypeOf()}),r(`leaves a feature outside the value map resolving to the general value type`,()=>{n().toEqualTypeOf(),n().toEqualTypeOf()}),r(`reports exactly the keys the workspace declares`,()=>{n().toEqualTypeOf(),n().toEqualTypeOf(),n().toEqualTypeOf(),n().toEqualTypeOf(),n().toEqualTypeOf()}),r(`accepts a key defined in the application rather than the workspace`,()=>{n(`a-feature-from-createClient`).toExtend(),n(`a-locally-registered-step`).toExtend(),n(`a-locally-registered-experience`).toExtend(),n(`an-action-the-app-registers`).toExtend(),n(`a-locally-registered-field`).toExtend()}),r(`keeps the workspace keys inside the open unions, so an editor still suggests them`,()=>{n().toExtend(),n().toExtend(),n().toExtend()}),r(`narrows form callback data values to the field schema type`,()=>{n().toEqualTypeOf(),n().toEqualTypeOf()}),r(`type-checks known response keys while leaving unknown keys permissive`,()=>{n().toEqualTypeOf(),n().toEqualTypeOf()}),r(`narrows a content record to its model by key`,()=>{n().toEqualTypeOf(),n().toEqualTypeOf(),n().toEqualTypeOf();let t={id:`lc-1`,contentModelKey:`landing-page`,data:{}};e(t,`landing-page`)&&n(t.data).toEqualTypeOf(),e(t,`no-such-model`)})});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useContent as e}from"./content.js";import{describe as t,expectTypeOf as n,it as r}from"vitest";t(`typed hooks (unaugmented registry)`,()=>{r(`falls back to loose types when the registry is empty`,()=>{n().toExtend(),n().toExtend(),n().toExtend(),n().toExtend(),n().toEqualTypeOf(),n().toExtend(),n().toExtend(),n().toEqualTypeOf(),n().toEqualTypeOf(),n().toEqualTypeOf(),n().toEqualTypeOf(),n().toExtend(),n().toEqualTypeOf(),n().toEqualTypeOf()}),r(`accepts a generated-style type alias for the content escape hatch`,()=>{n(e(`lc_x`)).toEqualTypeOf()})});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{describe as e,expectTypeOf as t,it as n}from"vitest";e(`public form types`,()=>{n(`exports ReactFormField from the hooks entry`,()=>{t().toEqualTypeOf()}),n(`exports the same ReactFormField from the form entry`,()=>{t().toEqualTypeOf()}),n(`keeps the field props reachable for renderers`,()=>{t().toEqualTypeOf()})});
|