use-scroll-animate 8.4.0 → 8.6.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/docs/ROADMAP.md CHANGED
@@ -6,8 +6,8 @@
6
6
  - ✅ **v8.2** — 复古风:像素化、CRT 显示器、VHS 噪点、Y2K;新组件 复古按钮、终端窗口。
7
7
  - ✅ **v8.3** — 自然有机:水波涟漪、藤蔓生长、花朵绽放;新组件 有机卡片、液态导航。
8
8
  - ✅ **v8.4** — 赛博 / 科幻:HUD 线框、扫描线、全息投影;新组件 HUD 面板、雷达扫描。
9
- - **v8.5** — 纸张与手绘:折纸、铅笔素描、水彩晕染;新组件 便利贴墙、手绘图表。
10
- - **v8.6** — 霓虹 / 玻璃 / 新拟态主题系统;新组件 主题切换器。
9
+ - ✅ **v8.5** — 纸张与手绘:折纸、铅笔素描、水彩晕染;新组件 便利贴墙、手绘图表。
10
+ - ✅ **v8.6** — 霓虹 / 玻璃 / 新拟态主题系统;新组件 主题切换器。
11
11
  - **v8.7** — 手势 3.0:多点触控、陀螺仪;新组件 陀螺仪 3D 卡片。
12
12
  - **v8.8** — XR / 空间界面:WebXR 预览、空间卡片;新组件 全景查看器。
13
13
  - **v8.9** — 9.0 预备:9.0 弃用警告、`upgrading-9.md` 与 `usa-codemod-9`;低代码组件导出。
@@ -1046,6 +1046,49 @@ radar.addEventListener('usa:ping', (e) => console.log(e.detail.name));
1046
1046
  - `<usa-radar targets rings speed label>`: `targets`, `setTargets(list)`; `usa:ping` { name }; `parseTargets(str)`.
1047
1047
  - Cyber: `hud-frame` (`color`) · `scanline-sweep` (`color`, `passes`) · `hologram` (`color`) · `data-decode` (`speed`, `frames`); `decodeFrame(text, k, n)`.
1048
1048
 
1049
+ ### v8.5 Widgets: sticky-note wall, sketch chart (`components/widgets`) + paper pack (`motionary/fx/paper`)
1050
+
1051
+ ```html
1052
+ <usa-sticky-wall label="Ideas">
1053
+ <p>Ship 8.5</p><p data-color="pink">Call Mia</p><p data-color="blue">Buy paper</p>
1054
+ </usa-sticky-wall>
1055
+ <usa-sketch-chart values="3,7,5,9" labels="Q1,Q2,Q3,Q4" label="Revenue"></usa-sketch-chart>
1056
+
1057
+ <usa-fx effect="paper-unfold" trigger="enter"><div class="letter">Dear reader…</div></usa-fx>
1058
+ <usa-fx effect="pencil-sketch" trigger="enter"><svg viewBox="0 0 100 60"><path d="M5 55 L50 5 L95 55 Z"/></svg></usa-fx>
1059
+ ```
1060
+ ```js
1061
+ import { defineWidgets } from 'motionary/components/widgets';
1062
+ import { registerPaperPack } from 'motionary/fx/paper';
1063
+ defineWidgets(); registerPaperPack();
1064
+ chart.setValues([4, 8, 6, 10]);
1065
+ wall.addEventListener('usa:pick', (e) => console.log(e.detail.index));
1066
+ ```
1067
+ - `<usa-sticky-wall seed label>`: `notes`, `pick(index)`; `usa:pick` { index }.
1068
+ - `<usa-sketch-chart values labels type color label>`: `values`, `setValues(list)`; `usa:drawn`.
1069
+ - Paper: `paper-unfold` (`folds`) · `pencil-sketch` (`stagger`) · `watercolor` · `crumple`; `roughLine(x1, y1, x2, y2, seed, amp)`, `paperRandom(seed)`.
1070
+
1071
+ ### v8.6 Theme system: theme switcher, theme surface (`components/widgets`) + surface pack (`motionary/fx/surface`)
1072
+
1073
+ ```html
1074
+ <usa-theme-switcher themes="light,dark,neon,glass,neu" persist></usa-theme-switcher>
1075
+ <usa-theme-surface><h3>Follows the page theme</h3></usa-theme-surface>
1076
+ <usa-theme-surface theme="glass"><h3>Always glass</h3></usa-theme-surface>
1077
+
1078
+ <usa-fx effect="neon-ignite" trigger="enter" color="#f0abfc"><h2>OPEN</h2></usa-fx>
1079
+ <usa-fx effect="neu-press" trigger="click"><button class="neu">Press</button></usa-fx>
1080
+ ```
1081
+ ```js
1082
+ import { defineWidgets } from 'motionary/components/widgets';
1083
+ import { registerSurfacePack, applySurfaceTheme } from 'motionary/fx/surface';
1084
+ defineWidgets(); registerSurfacePack();
1085
+ applySurfaceTheme('neon'); // <html data-usa-surface="neon">
1086
+ switcher.addEventListener('usa:change', (e) => console.log(e.detail.theme));
1087
+ ```
1088
+ - `<usa-theme-switcher themes target value persist label>`: `value`; `usa:change` { theme }.
1089
+ - `<usa-theme-surface theme>`: `theme` (resolved); `usa:theme` { theme }.
1090
+ - Surface: `neon-ignite` · `neon-pulse` (`color`) · `glass-frost` · `neu-press`; `SURFACE_THEMES`, `applySurfaceTheme(name, target?)`.
1091
+
1049
1092
  ## Frameworks
1050
1093
 
1051
1094
  Custom elements work in every framework. Register once (e.g. in your entry file), then use the tags.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "use-scroll-animate",
3
- "version": "8.4.0",
3
+ "version": "8.6.0",
4
4
  "description": "Compatibility alias of motionary (same build). The project was renamed to Motionary — install `motionary` instead. Motionary (formerly use-scroll-animate): dependency-free scroll animations + 94 animated Web Components — 214 scroll-reveal presets, card/click/button morphs, physics, page transitions, generative & sound-reactive backgrounds, cursor/gesture effects, themes, micro-interactions, <usa-player>, WebGL. React, Vue, Svelte, Solid, Angular or plain HTML.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -328,6 +328,26 @@
328
328
  "default": "./dist/components/fx-cyber.cjs"
329
329
  }
330
330
  },
331
+ "./fx/paper": {
332
+ "import": {
333
+ "types": "./dist/components/fx-paper.d.ts",
334
+ "default": "./dist/components/fx-paper.js"
335
+ },
336
+ "require": {
337
+ "types": "./dist/components/fx-paper.d.cts",
338
+ "default": "./dist/components/fx-paper.cjs"
339
+ }
340
+ },
341
+ "./fx/surface": {
342
+ "import": {
343
+ "types": "./dist/components/fx-surface.d.ts",
344
+ "default": "./dist/components/fx-surface.js"
345
+ },
346
+ "require": {
347
+ "types": "./dist/components/fx-surface.d.cts",
348
+ "default": "./dist/components/fx-surface.cjs"
349
+ }
350
+ },
331
351
  "./components/reveal": {
332
352
  "import": {
333
353
  "types": "./dist/components/reveal.d.ts",
@@ -888,6 +908,26 @@
888
908
  "default": "./dist/components/fx-cyber.cjs"
889
909
  }
890
910
  },
911
+ "./components/fx-paper": {
912
+ "import": {
913
+ "types": "./dist/components/fx-paper.d.ts",
914
+ "default": "./dist/components/fx-paper.js"
915
+ },
916
+ "require": {
917
+ "types": "./dist/components/fx-paper.d.cts",
918
+ "default": "./dist/components/fx-paper.cjs"
919
+ }
920
+ },
921
+ "./components/fx-surface": {
922
+ "import": {
923
+ "types": "./dist/components/fx-surface.d.ts",
924
+ "default": "./dist/components/fx-surface.js"
925
+ },
926
+ "require": {
927
+ "types": "./dist/components/fx-surface.d.cts",
928
+ "default": "./dist/components/fx-surface.cjs"
929
+ }
930
+ },
891
931
  "./components/lite": {
892
932
  "import": {
893
933
  "types": "./dist/components/lite.d.ts",