@amplifyup/sdk 0.1.49 → 0.1.51
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 +5 -3
- package/dist/AmplifyRenderer.js.map +1 -1
- package/dist/AmplifyRenderer.mjs.map +1 -1
- package/dist/middleware.d.mts +7 -0
- package/dist/middleware.d.ts +7 -0
- package/dist/middleware.js +18 -8
- package/dist/middleware.js.map +1 -1
- package/dist/middleware.mjs +18 -8
- package/dist/middleware.mjs.map +1 -1
- package/dist/react.d.mts +46 -15
- package/dist/react.d.ts +46 -15
- package/dist/react.js +80 -44
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +80 -44
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,18 +66,20 @@ export default function Page() {
|
|
|
66
66
|
```tsx
|
|
67
67
|
import { Field, Slot } from '@amplifyup/sdk/react';
|
|
68
68
|
|
|
69
|
-
export function Hero() {
|
|
69
|
+
export function Hero({ heading }: { heading: string }) {
|
|
70
70
|
return (
|
|
71
71
|
<section>
|
|
72
72
|
<h1>
|
|
73
|
-
<Field
|
|
73
|
+
<Field value={heading} fallback="Welcome" />
|
|
74
74
|
</h1>
|
|
75
75
|
</section>
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Pass `value={…}` from your component props (preferred). Deprecated `name="…"`
|
|
81
|
+
lookup still works alone — do not pass both. Connect CMS documents in Composer,
|
|
82
|
+
then **Deploy** so Edge can serve the page.
|
|
81
83
|
|
|
82
84
|
## Content sources
|
|
83
85
|
|