@mittwald/flow-react-components 1.1.0-next.0 → 1.1.0-next.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/AGENTS.md +12 -5
- package/dist/assets/component-index.json +1 -1
- package/dist/assets/doc-properties.json +1 -1
- package/dist/css/all-layered.css +1 -1
- package/dist/css/all.css +1 -1
- package/dist/js/packages/components/src/components/Button/Button.mjs.map +1 -1
- package/dist/js/packages/components/src/components/FileField/components/FileInput.mjs +2 -1
- package/dist/js/packages/components/src/components/FileField/components/FileInput.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/components/Table/Table.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Table/Table.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/components/Table/Table.module.mjs +1 -3
- package/dist/js/packages/components/src/components/List/components/Table/Table.module.mjs.map +1 -1
- package/dist/types/components/Button/Button.d.ts +6 -1
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/FileField/FileField.browser.test.d.ts +2 -0
- package/dist/types/components/FileField/FileField.browser.test.d.ts.map +1 -0
- package/dist/types/components/List/components/Table/Table.d.ts.map +1 -1
- package/package.json +10 -10
package/AGENTS.md
CHANGED
|
@@ -156,15 +156,18 @@ Remote generation details:
|
|
|
156
156
|
`AdaptChild*EventHandler<any, ReactElement<…>>` type every event prop carries
|
|
157
157
|
is not swept in). What it cannot convert is a **function returning** rendered
|
|
158
158
|
output, because the host has to call it: that needs an eager slot or
|
|
159
|
-
`@flr-ignore-props`. `checkSerializableProps`
|
|
160
|
-
|
|
159
|
+
`@flr-ignore-props`. `checkSerializableProps` **fails generation** on any such
|
|
160
|
+
prop, so a new one cannot ship.
|
|
161
161
|
- `@flr-ignore-props` excludes props that must not cross the remote boundary —
|
|
162
162
|
either because they cannot be serialized, or because they could do **too much
|
|
163
163
|
on the host side**. A global ignore list lives in
|
|
164
164
|
`dev/remote-components-generator/config.ts`: `style` and
|
|
165
165
|
`dangerouslySetInnerHTML` are always ignored for safety; `ref`, `controller`,
|
|
166
|
-
`tunnel`, `key`, `children`, `wrapWith` because they don't serialize
|
|
167
|
-
|
|
166
|
+
`tunnel`, `key`, `children`, `wrapWith` because they don't serialize; and
|
|
167
|
+
`renderEmptyState` plus react-aria's `render` because the host would call them
|
|
168
|
+
and get rendered output back — neither was ever a deliberate Flow API, and
|
|
169
|
+
both cost the whole mutation batch when they were tried. Use the per-component
|
|
170
|
+
tag for additional cases (see `TunnelEntry.tsx`).
|
|
168
171
|
- After changing props of an `@flr-generate` component:
|
|
169
172
|
`pnpm nx build:remote-components components` and **commit** the results
|
|
170
173
|
(view.ts, `src/views/*`, `remote-*/src/auto-generated/**`).
|
|
@@ -291,7 +294,11 @@ to zero components.
|
|
|
291
294
|
|
|
292
295
|
Prop JSDoc feeds the generated `doc-properties.json` and the docs site: write
|
|
293
296
|
doc comments on public props, use `@default` for defaults and `@internal` for
|
|
294
|
-
props to hide.
|
|
297
|
+
props to hide. A deprecated **value** of a still-current prop — `Button`'s
|
|
298
|
+
`color="accent"` — is listed with `@deprecatedValues accent` (comma-separated
|
|
299
|
+
for several) and drops out of the properties table, so the table only offers
|
|
300
|
+
values that should still be used. The value stays in the prop's type and keeps
|
|
301
|
+
working; the runtime warns via `useWarnDeprecation` as usual.
|
|
295
302
|
|
|
296
303
|
## Misc
|
|
297
304
|
|