@rogieking/figui3 2.38.2 → 2.39.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/README.md +4 -2
- package/dist/fig.js +72 -72
- package/fig.js +343 -223
- package/package.json +2 -1
- package/polyfills/custom-elements-webkit.js +216 -0
package/README.md
CHANGED
|
@@ -46,14 +46,14 @@ import "@rogieking/figui3/fig.js";
|
|
|
46
46
|
|
|
47
47
|
```html
|
|
48
48
|
<link rel="stylesheet" href="https://unpkg.com/@rogieking/figui3@latest/fig.css" />
|
|
49
|
-
<script src="https://unpkg.com/@rogieking/figui3@latest/fig.js"></script>
|
|
49
|
+
<script type="module" src="https://unpkg.com/@rogieking/figui3@latest/fig.js"></script>
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
Or via esm.sh:
|
|
53
53
|
|
|
54
54
|
```html
|
|
55
55
|
<link rel="stylesheet" href="https://esm.sh/@rogieking/figui3@latest/fig.css" />
|
|
56
|
-
<script src="https://esm.sh/@rogieking/figui3@latest/fig.js"></script>
|
|
56
|
+
<script type="module" src="https://esm.sh/@rogieking/figui3@latest/fig.js"></script>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### Development
|
|
@@ -892,6 +892,8 @@ function ColorPicker({ value, onChange }) {
|
|
|
892
892
|
```
|
|
893
893
|
|
|
894
894
|
> **Note:** Avoid setting the `value` prop directly on web components in JSX during re-renders, as `attributeChangedCallback` may trigger events that cause infinite loops. Use refs to control updates.
|
|
895
|
+
>
|
|
896
|
+
> **SSR note (Next.js/Remix/Astro):** import `@rogieking/figui3/fig.js` only on the client (for example in a client-only entry/module). This keeps server rendering safe while still allowing FigUI3 to auto-load its WebKit/iOS customized built-in polyfill when needed.
|
|
895
897
|
|
|
896
898
|
### Vue
|
|
897
899
|
|