motionary 7.3.0 → 7.4.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/CHANGELOG.md +18 -0
- package/dist/components/fx-social.cjs +121 -0
- package/dist/components/fx-social.cjs.map +1 -0
- package/dist/components/fx-social.d.cts +66 -0
- package/dist/components/fx-social.d.ts +66 -0
- package/dist/components/fx-social.js +117 -0
- package/dist/components/fx-social.js.map +1 -0
- package/dist/components/fx2.cjs +6 -0
- package/dist/components/fx2.cjs.map +1 -1
- package/dist/components/fx2.d.cts +23 -1
- package/dist/components/fx2.d.ts +23 -1
- package/dist/components/fx2.js +5 -1
- package/dist/components/fx2.js.map +1 -1
- package/dist/components/widgets.cjs +459 -85
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +92 -2
- package/dist/components/widgets.d.ts +92 -2
- package/dist/components/widgets.js +453 -86
- package/dist/components/widgets.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +1 -1
- package/docs/components.md +24 -0
- package/package.json +21 -1
package/docs/ROADMAP.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- ✅ **v7.1** — 音乐可视化:频谱柱、波形、节拍脉冲、唱片旋转;新组件 音乐播放器、音量旋钮、均衡器。
|
|
6
6
|
- ✅ **v7.2** — 数据可视化动效:柱状 / 折线 / 环形 / 桑基图入场与数值过渡;新组件 仪表盘(Gauge)、迷你走势图(Sparkline)、KPI 指标卡。
|
|
7
7
|
- ✅ **v7.3** — 电商动效:飞入购物车、价格翻牌、库存脉冲、优惠券撕开;新组件 购物车抽屉、商品图库、限时倒计时。
|
|
8
|
-
- **v7.4** — 聊天 / 社交:输入中气泡、表情回应飘升、已读回执、消息撤回;新组件 消息列表、头像叠放、通知铃铛。
|
|
8
|
+
- ✅ **v7.4** — 聊天 / 社交:输入中气泡、表情回应飘升、已读回执、消息撤回;新组件 消息列表、头像叠放、通知铃铛。
|
|
9
9
|
- **v7.5** — 游戏化:成就解锁、经验条、宝箱开启、幸运转盘;新组件 排行榜、徽章墙、抽奖机。
|
|
10
10
|
- **v7.6** — 地图与地理:路线绘制、旋转地球、标记脉冲、飞线;新组件 3D 地球、位置卡片。
|
|
11
11
|
- **v7.7** — 表单动效:抖动校验、浮动标签、密码强度、成功勾选;新组件 动效输入框、验证码(OTP)输入、上传进度。
|
package/docs/components.md
CHANGED
|
@@ -803,6 +803,30 @@ cart.add({ id: 'tee', name: 'T-shirt', price: 24, img: 'tee.jpg' }); cart.toggle
|
|
|
803
803
|
- `<usa-countdown to seconds units labels label>`: `left`, `start()`, `stop()`; `usa:tick`, `usa:done`; `splitTime(sec)`.
|
|
804
804
|
- Shop: `fly-to-cart` (`to`, `duration`, `lift`) · `price-flip` (`stagger`, `duration`; `data-from`) · `stock-pulse` (`color`, `period`) · `sale-shine` · `badge-pop`; `arcPath(ax, ay, bx, by, lift, steps)`.
|
|
805
805
|
|
|
806
|
+
### v7.4 Widgets: message list, reactions, notification bell, presence (`components/widgets`) + chat & social motion (`motionary/fx/social`)
|
|
807
|
+
|
|
808
|
+
```html
|
|
809
|
+
<usa-message-list><p data-from="Ada">Hi! 👋</p><p data-me>Hey Ada</p></usa-message-list>
|
|
810
|
+
<usa-reactions emojis="👍,❤️,😂,🎉" counts="3,1,0,2"></usa-reactions>
|
|
811
|
+
<usa-notification-bell><li data-time="2m">Ada liked your post</li></usa-notification-bell>
|
|
812
|
+
<usa-presence name="Ada Lovelace" status="online" speaking></usa-presence>
|
|
813
|
+
|
|
814
|
+
<usa-fx effect="typing-dots" trigger="load"><span class="bubble"></span></usa-fx>
|
|
815
|
+
<usa-fx effect="reaction-burst" trigger="click"><button>❤️</button></usa-fx>
|
|
816
|
+
```
|
|
817
|
+
```js
|
|
818
|
+
import { defineWidgets } from 'motionary/components/widgets';
|
|
819
|
+
import { registerSocialPack } from 'motionary/fx/social';
|
|
820
|
+
defineWidgets(); registerSocialPack();
|
|
821
|
+
list.typing('Ada'); list.push({ from: 'Ada', text: 'Ship it?' });
|
|
822
|
+
bell.notify({ text: 'New follower', time: 'now' }); avatar.status = 'away';
|
|
823
|
+
```
|
|
824
|
+
- `<usa-message-list label>`: `messages`, `push(msg)`, `typing(name | false)`; `usa:message`.
|
|
825
|
+
- `<usa-reactions emojis counts picker>`: `counts`, `mine`, `toggle(emoji, on?)`; `usa:react`; `parseReactions()`.
|
|
826
|
+
- `<usa-notification-bell label>`: `unread`, `notices`, `open`, `notify()`, `markAllRead()`, `ring()`; `usa:notify`, `usa:read`.
|
|
827
|
+
- `<usa-presence name src status speaking story>`: `status`; `PRESENCE_STATES`, `initials()`.
|
|
828
|
+
- Social: `typing-dots` (`color`, `period`) · `message-in` (`side`, `duration`) · `reaction-burst` (`emoji`, `count`, `spread`) · `read-receipt` (`color`) · `mention-glow` (`color`); `fanAngles(n, spread)`.
|
|
829
|
+
|
|
806
830
|
## Frameworks
|
|
807
831
|
|
|
808
832
|
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": "motionary",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"description": "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",
|
|
@@ -228,6 +228,16 @@
|
|
|
228
228
|
"default": "./dist/components/fx-shop.cjs"
|
|
229
229
|
}
|
|
230
230
|
},
|
|
231
|
+
"./fx/social": {
|
|
232
|
+
"import": {
|
|
233
|
+
"types": "./dist/components/fx-social.d.ts",
|
|
234
|
+
"default": "./dist/components/fx-social.js"
|
|
235
|
+
},
|
|
236
|
+
"require": {
|
|
237
|
+
"types": "./dist/components/fx-social.d.cts",
|
|
238
|
+
"default": "./dist/components/fx-social.cjs"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
231
241
|
"./components/reveal": {
|
|
232
242
|
"import": {
|
|
233
243
|
"types": "./dist/components/reveal.d.ts",
|
|
@@ -688,6 +698,16 @@
|
|
|
688
698
|
"default": "./dist/components/fx-shop.cjs"
|
|
689
699
|
}
|
|
690
700
|
},
|
|
701
|
+
"./components/fx-social": {
|
|
702
|
+
"import": {
|
|
703
|
+
"types": "./dist/components/fx-social.d.ts",
|
|
704
|
+
"default": "./dist/components/fx-social.js"
|
|
705
|
+
},
|
|
706
|
+
"require": {
|
|
707
|
+
"types": "./dist/components/fx-social.d.cts",
|
|
708
|
+
"default": "./dist/components/fx-social.cjs"
|
|
709
|
+
}
|
|
710
|
+
},
|
|
691
711
|
"./components/lite": {
|
|
692
712
|
"import": {
|
|
693
713
|
"types": "./dist/components/lite.d.ts",
|