motionary 10.4.0 → 10.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.
Files changed (125) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +97 -0
  3. package/dist/chunks/{anim-image-blQgPFFS.cjs → anim-image-DECLkPH4.cjs} +2 -2
  4. package/dist/chunks/{anim-image-blQgPFFS.cjs.map → anim-image-DECLkPH4.cjs.map} +1 -1
  5. package/dist/chunks/{anim-image-DDdb9q3X.js → anim-image-DNghy017.js} +2 -2
  6. package/dist/chunks/{anim-image-DDdb9q3X.js.map → anim-image-DNghy017.js.map} +1 -1
  7. package/dist/chunks/{keyframes-tC3I7anQ.cjs → keyframes-CbUZjD_5.cjs} +2 -2
  8. package/dist/chunks/{keyframes-tC3I7anQ.cjs.map → keyframes-CbUZjD_5.cjs.map} +1 -1
  9. package/dist/chunks/{keyframes-B5PWe5bU.js → keyframes-F6vp6tZZ.js} +2 -2
  10. package/dist/chunks/{keyframes-B5PWe5bU.js.map → keyframes-F6vp6tZZ.js.map} +1 -1
  11. package/dist/chunks/{registry-CT-TT_bx.js → registry-D8LAoXI-.js} +2 -2
  12. package/dist/chunks/{registry-CT-TT_bx.js.map → registry-D8LAoXI-.js.map} +1 -1
  13. package/dist/chunks/{registry-tzwKkldE.cjs → registry-dr1CPTk1.cjs} +2 -2
  14. package/dist/chunks/{registry-tzwKkldE.cjs.map → registry-dr1CPTk1.cjs.map} +1 -1
  15. package/dist/chunks/{ticker-Un0bvTWR.cjs → ticker-DaAlEyOd.cjs} +2 -2
  16. package/dist/chunks/{ticker-Un0bvTWR.cjs.map → ticker-DaAlEyOd.cjs.map} +1 -1
  17. package/dist/chunks/{ticker-C8lSGml9.js → ticker-Do9bGsaV.js} +2 -2
  18. package/dist/chunks/{ticker-C8lSGml9.js.map → ticker-Do9bGsaV.js.map} +1 -1
  19. package/dist/chunks/{tween-BcejKpsx.js → tween-BzCGq_Ba.js} +2 -2
  20. package/dist/chunks/{tween-BcejKpsx.js.map → tween-BzCGq_Ba.js.map} +1 -1
  21. package/dist/chunks/{tween-CwLLC3Ko.cjs → tween-CmkdSyaC.cjs} +2 -2
  22. package/dist/chunks/{tween-CwLLC3Ko.cjs.map → tween-CmkdSyaC.cjs.map} +1 -1
  23. package/dist/components/lite.cjs +179 -0
  24. package/dist/components/lite.cjs.map +1 -1
  25. package/dist/components/lite.js +176 -1
  26. package/dist/components/lite.js.map +1 -1
  27. package/dist/components/tokens.cjs +179 -0
  28. package/dist/components/tokens.cjs.map +1 -1
  29. package/dist/components/tokens.d.cts +36 -1
  30. package/dist/components/tokens.d.ts +36 -1
  31. package/dist/components/tokens.js +176 -1
  32. package/dist/components/tokens.js.map +1 -1
  33. package/dist/components/widgets.cjs +1138 -213
  34. package/dist/components/widgets.cjs.map +1 -1
  35. package/dist/components/widgets.d.cts +401 -2
  36. package/dist/components/widgets.d.ts +401 -2
  37. package/dist/components/widgets.js +1124 -214
  38. package/dist/components/widgets.js.map +1 -1
  39. package/dist/components.cjs +4 -0
  40. package/dist/components.cjs.map +1 -1
  41. package/dist/components.d.cts +36 -1
  42. package/dist/components.d.ts +36 -1
  43. package/dist/components.js +1 -1
  44. package/dist/components.umd.js +2 -2
  45. package/dist/components.umd.js.map +1 -1
  46. package/dist/index.umd.js.map +1 -1
  47. package/dist/llms-full.txt +273 -1
  48. package/dist/llms.txt +14 -2
  49. package/dist/manifest.json +736 -1
  50. package/dist/runtime/format-apng.cjs +4 -4
  51. package/dist/runtime/format-apng.js +4 -4
  52. package/dist/runtime/format-css.cjs +4 -4
  53. package/dist/runtime/format-css.js +4 -4
  54. package/dist/runtime/format-gif.cjs +4 -4
  55. package/dist/runtime/format-gif.js +4 -4
  56. package/dist/runtime/format-gltf.cjs +207 -0
  57. package/dist/runtime/format-gltf.cjs.map +1 -0
  58. package/dist/runtime/format-gltf.d.cts +251 -0
  59. package/dist/runtime/format-gltf.d.ts +251 -0
  60. package/dist/runtime/format-gltf.iife.js +2 -0
  61. package/dist/runtime/format-gltf.iife.js.map +1 -0
  62. package/dist/runtime/format-gltf.js +200 -0
  63. package/dist/runtime/format-gltf.js.map +1 -0
  64. package/dist/runtime/format-motion.cjs +4 -4
  65. package/dist/runtime/format-motion.js +4 -4
  66. package/dist/runtime/format-obj.cjs +181 -0
  67. package/dist/runtime/format-obj.cjs.map +1 -0
  68. package/dist/runtime/format-obj.d.cts +176 -0
  69. package/dist/runtime/format-obj.d.ts +176 -0
  70. package/dist/runtime/format-obj.iife.js +2 -0
  71. package/dist/runtime/format-obj.iife.js.map +1 -0
  72. package/dist/runtime/format-obj.js +174 -0
  73. package/dist/runtime/format-obj.js.map +1 -0
  74. package/dist/runtime/format-sprite.cjs +3 -3
  75. package/dist/runtime/format-sprite.js +3 -3
  76. package/dist/runtime/format-svg.cjs +3 -3
  77. package/dist/runtime/format-svg.js +3 -3
  78. package/dist/runtime/format-webp.cjs +4 -4
  79. package/dist/runtime/format-webp.js +4 -4
  80. package/dist/runtime/gl.cjs +763 -0
  81. package/dist/runtime/gl.cjs.map +1 -0
  82. package/dist/runtime/gl.d.cts +260 -0
  83. package/dist/runtime/gl.d.ts +260 -0
  84. package/dist/runtime/gl.iife.js +2 -0
  85. package/dist/runtime/gl.iife.js.map +1 -0
  86. package/dist/runtime/gl.js +739 -0
  87. package/dist/runtime/gl.js.map +1 -0
  88. package/dist/runtime/scroll.cjs +2 -2
  89. package/dist/runtime/scroll.js +2 -2
  90. package/dist/runtime/smooth.cjs +1 -1
  91. package/dist/runtime/smooth.js +1 -1
  92. package/dist/runtime/text.cjs +1 -1
  93. package/dist/runtime/text.js +1 -1
  94. package/dist/runtime/vector.cjs +704 -0
  95. package/dist/runtime/vector.cjs.map +1 -0
  96. package/dist/runtime/vector.d.cts +306 -0
  97. package/dist/runtime/vector.d.ts +306 -0
  98. package/dist/runtime/vector.iife.js +2 -0
  99. package/dist/runtime/vector.iife.js.map +1 -0
  100. package/dist/runtime/vector.js +692 -0
  101. package/dist/runtime/vector.js.map +1 -0
  102. package/dist/runtime.cjs +3 -3
  103. package/dist/runtime.d.cts +1 -1
  104. package/dist/runtime.d.ts +1 -1
  105. package/dist/runtime.iife.js +1 -1
  106. package/dist/runtime.iife.js.map +1 -1
  107. package/dist/runtime.js +5 -5
  108. package/dist/widgets.umd.js +1 -1
  109. package/dist/widgets.umd.js.map +1 -1
  110. package/docs/ROADMAP.md +2 -2
  111. package/docs/components/README.md +11 -1
  112. package/docs/components/usa-gl-scene.md +66 -0
  113. package/docs/components/usa-gpu-particles.md +32 -0
  114. package/docs/components/usa-lottie-player.md +60 -0
  115. package/docs/components/usa-rive.md +57 -0
  116. package/docs/components/usa-shader-backdrop.md +36 -0
  117. package/docs/components/usa-three-scene.md +20 -0
  118. package/docs/components/usa-token-editor.md +32 -0
  119. package/docs/components.md +120 -0
  120. package/docs/runtime/format-gltf.md +63 -0
  121. package/docs/runtime/format-obj.md +59 -0
  122. package/docs/runtime/gl.md +62 -0
  123. package/docs/runtime/rive.md +55 -0
  124. package/docs/runtime/vector.md +67 -0
  125. package/package.json +47 -3
@@ -3,7 +3,7 @@
3
3
  "format": "motionary/components",
4
4
  "schemaVersion": 1,
5
5
  "package": "motionary",
6
- "version": "10.4.0",
6
+ "version": "10.6.0",
7
7
  "homepage": "https://harrisoncn.github.io/Motionary/",
8
8
  "llms": "https://harrisoncn.github.io/Motionary/llms.txt",
9
9
  "cdn": {
@@ -757,6 +757,394 @@
757
757
  ]
758
758
  ],
759
759
  "example": "import { use } from 'motionary/runtime';\nimport { formatWebp, loadWebp, animatedImagePlayer } from 'motionary/runtime/format-webp';\nuse(formatWebp);\nconst anim = await loadWebp('/hero.webp');\nconst p = animatedImagePlayer(document.querySelector('canvas'), anim, { speed: 0.5 });"
760
+ },
761
+ {
762
+ "kind": "runtime",
763
+ "id": "gl",
764
+ "label": "motionary/runtime/gl",
765
+ "title": "WebGL2 scene renderer",
766
+ "summary": "A small WebGL2 renderer with its own API: scene graph, camera, lights, box / plane / sphere / torus, PBR-style materials, shader materials, image and video textures, orbit controls — not a Three.js clone.",
767
+ "install": "npm i motionary",
768
+ "importPath": "motionary/runtime/gl",
769
+ "import": "import { use } from 'motionary/runtime';\nimport { gl } from 'motionary/runtime/gl';",
770
+ "register": "use(gl);",
771
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js\"></script>",
772
+ "cdnEsm": "https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.js",
773
+ "order": "Register the core first, then the module: use(gl) also registers the core. CDN: load runtime.iife.js, then runtime/gl.iife.js (it registers itself).",
774
+ "docs": "docs/runtime/gl.md",
775
+ "budget": 9216,
776
+ "exports": [
777
+ "gl",
778
+ "createRenderer",
779
+ "Scene",
780
+ "Camera",
781
+ "GlNode",
782
+ "box",
783
+ "plane",
784
+ "sphere",
785
+ "torus",
786
+ "standardMaterial",
787
+ "unlitMaterial",
788
+ "shaderMaterial",
789
+ "texture",
790
+ "orbitControls",
791
+ "frameNode",
792
+ "bounds",
793
+ "scrubVideo",
794
+ "mat4",
795
+ "quatFromEuler",
796
+ "quatSlerp"
797
+ ],
798
+ "compat": [
799
+ [
800
+ "scene graph: nodes, TRS / matrix, hierarchy, bounds, frameNode()",
801
+ "yes",
802
+ ""
803
+ ],
804
+ [
805
+ "perspective camera, orbit controls (drag / wheel / pinch / arrow keys)",
806
+ "yes",
807
+ "auto-rotate off under reduced motion"
808
+ ],
809
+ [
810
+ "ambient + up to 4 directional / point lights",
811
+ "yes",
812
+ ""
813
+ ],
814
+ [
815
+ "standard material (metallic-roughness approximation), unlit, shader",
816
+ "yes",
817
+ "sRGB in/out, Reinhard tone mapping"
818
+ ],
819
+ [
820
+ "image / canvas / ImageBitmap / raw RGBA textures, mipmaps (power of two)",
821
+ "yes",
822
+ ""
823
+ ],
824
+ [
825
+ "video textures (MP4 / WebM), scroll-scrubbed video (scrubVideo)",
826
+ "yes",
827
+ "requestVideoFrameCallback; codecs depend on the browser"
828
+ ],
829
+ [
830
+ "shadows, normal / occlusion / metallic-roughness maps, IBL",
831
+ "no",
832
+ "planned work beyond 11.0"
833
+ ],
834
+ [
835
+ "WebGL1 / no WebGL2",
836
+ "no",
837
+ "createRenderer() throws a clear error"
838
+ ],
839
+ [
840
+ "SSR / workers",
841
+ "partial",
842
+ "math / geometry / scene graph are pure; rendering needs WebGL2 (OffscreenCanvas works)"
843
+ ]
844
+ ],
845
+ "example": "import { use } from 'motionary/runtime';\nimport { gl, createRenderer, Scene, Camera, GlNode, torus, standardMaterial } from 'motionary/runtime/gl';\nuse(gl);\nconst r = createRenderer(canvas);\nconst scene = new Scene();\nscene.add(new GlNode('donut', { geometry: torus(), material: standardMaterial({ color: [0.5, 0.55, 1, 1] }) }));\nr.resize(); r.render(scene, new Camera({ position: [0, 0.5, 3] }));"
846
+ },
847
+ {
848
+ "kind": "runtime",
849
+ "id": "format-gltf",
850
+ "label": "motionary/runtime/format-gltf",
851
+ "title": "glTF 2.0 / GLB loader",
852
+ "summary": "Load glTF 2.0 (.gltf with external or data: buffers, .glb) into motionary/runtime/gl nodes: node hierarchy, meshes, PBR metallic-roughness materials, embedded / external images.",
853
+ "install": "npm i motionary",
854
+ "importPath": "motionary/runtime/format-gltf",
855
+ "import": "import { use } from 'motionary/runtime';\nimport { formatGltf } from 'motionary/runtime/format-gltf';",
856
+ "register": "use(formatGltf);",
857
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.iife.js\"></script>",
858
+ "cdnEsm": "https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.js",
859
+ "order": "Register the core first, then the module: use(formatGltf) also registers the core. CDN: load runtime.iife.js, then runtime/format-gltf.iife.js (it registers itself).",
860
+ "docs": "docs/runtime/format-gltf.md",
861
+ "budget": 6144,
862
+ "exports": [
863
+ "formatGltf",
864
+ "loadGltf",
865
+ "parseGlb",
866
+ "gltfToNode",
867
+ "readAccessor",
868
+ "SUPPORTED_EXTENSIONS"
869
+ ],
870
+ "compat": [
871
+ [
872
+ ".gltf (external + data: URI buffers / images) and .glb",
873
+ "yes",
874
+ ""
875
+ ],
876
+ [
877
+ "scenes, node hierarchy, TRS and matrix transforms",
878
+ "yes",
879
+ ""
880
+ ],
881
+ [
882
+ "POSITION / NORMAL / TEXCOORD_0, indices, all component types, normalised ints, byteStride",
883
+ "yes",
884
+ "missing normals computed (flat)"
885
+ ],
886
+ [
887
+ "primitive modes points / lines / triangles / strips / fans",
888
+ "yes",
889
+ "strips and fans converted to triangles"
890
+ ],
891
+ [
892
+ "PBR metallic-roughness factors, base colour texture, emissive, alpha blend, double-sided",
893
+ "yes",
894
+ "KHR_materials_emissive_strength, KHR_materials_unlit"
895
+ ],
896
+ [
897
+ "skins, morph targets, animations",
898
+ "no",
899
+ "arrive in 10.8"
900
+ ],
901
+ [
902
+ "Draco / meshopt / KTX2 (Basis) compression",
903
+ "no",
904
+ "files that require them fail with a clear error; decoder hooks planned for 10.9"
905
+ ],
906
+ [
907
+ "sparse accessors, cameras, KHR_lights_punctual, texture transforms",
908
+ "no",
909
+ "ignored"
910
+ ],
911
+ [
912
+ "SSR / workers",
913
+ "partial",
914
+ "parseGlb / gltfToNode are pure; loadGltf decodes images with createImageBitmap"
915
+ ]
916
+ ],
917
+ "example": "import { use } from 'motionary/runtime';\nimport { gl, createRenderer, Scene, Camera, frameNode } from 'motionary/runtime/gl';\nimport { formatGltf, loadGltf } from 'motionary/runtime/format-gltf';\nuse(gl, formatGltf);\nconst model = await loadGltf('/models/chair.glb');\nconst scene = new Scene().add(model), cam = new Camera();\nframeNode(cam, model);\nconst r = createRenderer(canvas); r.resize(); r.render(scene, cam);"
918
+ },
919
+ {
920
+ "kind": "runtime",
921
+ "id": "format-obj",
922
+ "label": "motionary/runtime/format-obj",
923
+ "title": "OBJ / MTL loader",
924
+ "summary": "Load Wavefront OBJ (+ MTL materials and diffuse textures) into motionary/runtime/gl nodes: polygons triangulated, groups, per-material meshes.",
925
+ "install": "npm i motionary",
926
+ "importPath": "motionary/runtime/format-obj",
927
+ "import": "import { use } from 'motionary/runtime';\nimport { formatObj } from 'motionary/runtime/format-obj';",
928
+ "register": "use(formatObj);",
929
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.iife.js\"></script>",
930
+ "cdnEsm": "https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.js",
931
+ "order": "Register the core first, then the module: use(formatObj) also registers the core. CDN: load runtime.iife.js, then runtime/format-obj.iife.js (it registers itself).",
932
+ "docs": "docs/runtime/format-obj.md",
933
+ "budget": 3072,
934
+ "exports": [
935
+ "formatObj",
936
+ "loadObj",
937
+ "parseObj",
938
+ "parseMtl",
939
+ "objToNode",
940
+ "objMaterial"
941
+ ],
942
+ "compat": [
943
+ [
944
+ "v / vt / vn, faces with any vertex count (fan-triangulated), negative indices",
945
+ "yes",
946
+ ""
947
+ ],
948
+ [
949
+ "o / g groups, usemtl (one mesh per material), mtllib",
950
+ "yes",
951
+ ""
952
+ ],
953
+ [
954
+ "MTL Kd, Ks + Ns (→ roughness), Ke, d / Tr, map_Kd (options stripped)",
955
+ "yes",
956
+ ""
957
+ ],
958
+ [
959
+ "missing normals",
960
+ "yes",
961
+ "computed (flat)"
962
+ ],
963
+ [
964
+ "smoothing groups (s), lines (l), free-form curves / surfaces",
965
+ "no",
966
+ "ignored"
967
+ ],
968
+ [
969
+ "bump / normal / specular maps, PBR MTL extensions",
970
+ "no",
971
+ "ignored"
972
+ ],
973
+ [
974
+ "SSR / workers",
975
+ "partial",
976
+ "parsing is pure; loadObj fetches files and decodes textures with createImageBitmap"
977
+ ]
978
+ ],
979
+ "example": "import { use } from 'motionary/runtime';\nimport { gl, Scene } from 'motionary/runtime/gl';\nimport { formatObj, loadObj } from 'motionary/runtime/format-obj';\nuse(gl, formatObj);\nconst cube = await loadObj('/models/cube.obj'); // + cube.mtl + textures next to it\nnew Scene().add(cube);"
980
+ },
981
+ {
982
+ "kind": "runtime",
983
+ "id": "vector",
984
+ "label": "motionary/runtime/vector",
985
+ "title": "Lottie + dotLottie player",
986
+ "summary": "Plays Lottie (bodymovin JSON) and dotLottie (.lottie) files on Canvas 2D with Motionary’s own renderer (no lottie-web code): shapes, gradients, trim paths, masks, track mattes, precomps, images; a runtime timeline you can seek, reverse and scrub.",
987
+ "install": "npm i motionary",
988
+ "importPath": "motionary/runtime/vector",
989
+ "import": "import { use } from 'motionary/runtime';\nimport { vector } from 'motionary/runtime/vector';",
990
+ "register": "use(vector);",
991
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/vector.iife.js\"></script>",
992
+ "cdnEsm": "https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/vector.js",
993
+ "order": "Register the core first, then the module: use(vector) also registers the core. CDN: load runtime.iife.js, then runtime/vector.iife.js (it registers itself).",
994
+ "docs": "docs/runtime/vector.md",
995
+ "budget": 12288,
996
+ "exports": [
997
+ "vector",
998
+ "loadLottie",
999
+ "parseDotLottie",
1000
+ "unzipEntries",
1001
+ "lottiePlayer",
1002
+ "renderLottieFrame",
1003
+ "inspectLottie",
1004
+ "propValue",
1005
+ "transformAt",
1006
+ "trimContours",
1007
+ "loadLottieImages"
1008
+ ],
1009
+ "compat": [
1010
+ [
1011
+ "shape, solid, null, image and precomp layers; parenting; in / out points",
1012
+ "yes",
1013
+ "precomp time stretch + time remap"
1014
+ ],
1015
+ [
1016
+ "transforms: anchor, position (split X / Y, spatial bezier), scale, rotation, skew, opacity",
1017
+ "yes",
1018
+ ""
1019
+ ],
1020
+ [
1021
+ "paths, rectangles (rounded), ellipses, stars / polygons, groups",
1022
+ "yes",
1023
+ ""
1024
+ ],
1025
+ [
1026
+ "fills (non-zero / even-odd), strokes (caps, joins, dashes)",
1027
+ "yes",
1028
+ ""
1029
+ ],
1030
+ [
1031
+ "linear + radial gradient fills / strokes",
1032
+ "yes",
1033
+ "highlight length / angle ignored"
1034
+ ],
1035
+ [
1036
+ "trim paths (individually / simultaneously)",
1037
+ "yes",
1038
+ ""
1039
+ ],
1040
+ [
1041
+ "masks: add, subtract, intersect, inverted, opacity",
1042
+ "yes",
1043
+ ""
1044
+ ],
1045
+ [
1046
+ "track mattes: alpha, alpha inverted",
1047
+ "yes",
1048
+ "luma mattes approximated by alpha"
1049
+ ],
1050
+ [
1051
+ "keyframes: per-dimension bezier easing, hold keyframes, v4 + v5 files",
1052
+ "yes",
1053
+ ""
1054
+ ],
1055
+ [
1056
+ "dotLottie (.lottie): stored + deflate entries, manifest v1 / v2, several animations, embedded images",
1057
+ "yes",
1058
+ "deflate needs the native DecompressionStream"
1059
+ ],
1060
+ [
1061
+ "markers → named segments",
1062
+ "yes",
1063
+ ""
1064
+ ],
1065
+ [
1066
+ "text layers, expressions",
1067
+ "no",
1068
+ "planned for 10.8 (subset)"
1069
+ ],
1070
+ [
1071
+ "3D layers, layer effects, merge paths, repeaters",
1072
+ "no",
1073
+ "listed by inspectLottie() / el.unsupported"
1074
+ ],
1075
+ [
1076
+ "dotLottie themes / state machines",
1077
+ "no",
1078
+ "planned for 10.9 (subset)"
1079
+ ],
1080
+ [
1081
+ "SSR / workers",
1082
+ "partial",
1083
+ "parsing + unzip are pure; rendering needs a 2D canvas (OffscreenCanvas works)"
1084
+ ]
1085
+ ],
1086
+ "example": "import { use } from 'motionary/runtime';\nimport { vector, loadLottie, lottiePlayer } from 'motionary/runtime/vector';\nuse(vector);\nconst { animation } = await loadLottie('/anim/hero.lottie');\nconst player = lottiePlayer(canvas, animation, { loop: true });\nplayer.play();"
1087
+ },
1088
+ {
1089
+ "kind": "peer",
1090
+ "id": "rive",
1091
+ "label": "@rive-app/canvas",
1092
+ "title": "Official Rive runtime",
1093
+ "summary": "The official MIT-licensed Rive runtime, used by <usa-rive> to play .riv files (artboards, animations, state machines with inputs). Optional peer dependency: lazy-loaded on first use, never bundled into Motionary.",
1094
+ "install": "npm i @rive-app/canvas",
1095
+ "importPath": "@rive-app/canvas",
1096
+ "import": "import { provideRiveRuntime } from 'motionary/components/widgets';",
1097
+ "register": "provideRiveRuntime(() => import('@rive-app/canvas')); // lazy: fetched when the first <usa-rive> mounts",
1098
+ "cdn": "<script src=\"https://unpkg.com/@rive-app/canvas@2.44.1/rive.js\"></script>",
1099
+ "cdnEsm": "https://cdn.jsdelivr.net/npm/@rive-app/canvas@2.44.1/+esm",
1100
+ "order": "Install the official runtime next to motionary, then hand <usa-rive> a lazy loader with provideRiveRuntime(() => import('@rive-app/canvas')) before the element mounts — your bundler splits the runtime into its own chunk, fetched only when the first <usa-rive> appears. Without a bundler: load the official rive.js from a CDN before the component bundles (window.rive), use an import map, or set runtime-src on the element. Missing → a clear message in place + usa:runtime-missing.",
1101
+ "why": ".riv is Rive’s proprietary binary format with a state-machine runtime; the official runtime is the only faithful player, so Motionary does not reimplement it",
1102
+ "docs": "docs/runtime/rive.md",
1103
+ "budget": 0,
1104
+ "exports": [
1105
+ "provideRiveRuntime",
1106
+ "loadRiveRuntime",
1107
+ "RIVE_PEER",
1108
+ "RIVE_CDN"
1109
+ ],
1110
+ "compat": [
1111
+ [
1112
+ ".riv files: artboards, linear animations",
1113
+ "yes",
1114
+ "played by the official runtime"
1115
+ ],
1116
+ [
1117
+ "state machines + inputs (boolean, number, trigger)",
1118
+ "yes",
1119
+ "el.input(name)"
1120
+ ],
1121
+ [
1122
+ "fit: contain, cover, fill, fitWidth, fitHeight, none",
1123
+ "yes",
1124
+ ""
1125
+ ],
1126
+ [
1127
+ "lazy loading, clear error when the runtime is missing",
1128
+ "yes",
1129
+ "usa:runtime-missing"
1130
+ ],
1131
+ [
1132
+ "reduced motion",
1133
+ "yes",
1134
+ "no autoplay (first frame)"
1135
+ ],
1136
+ [
1137
+ "WebGL2 renderer (@rive-app/webgl2)",
1138
+ "partial",
1139
+ "pass its URL as runtime-src or provideRiveRuntime(() => import('@rive-app/webgl2'))"
1140
+ ],
1141
+ [
1142
+ "SSR",
1143
+ "yes",
1144
+ "nothing loads until the element mounts in a browser"
1145
+ ]
1146
+ ],
1147
+ "example": "// npm i @rive-app/canvas\nimport { defineRive } from 'motionary/components/widgets';\ndefineRive();\n// <usa-rive src=\"/anim/icon.riv\" state-machine=\"State Machine 1\" autoplay></usa-rive>"
760
1148
  }
761
1149
  ],
762
1150
  "components": [
@@ -3422,6 +3810,78 @@
3422
3810
  "prerequisites": null,
3423
3811
  "source": "src/components/widgets/gesture-sticker.ts"
3424
3812
  },
3813
+ {
3814
+ "id": "gl-scene",
3815
+ "tag": "usa-gl-scene",
3816
+ "title": "3D scene (glTF / OBJ)",
3817
+ "description": "10.5: a WebGL2 3D viewer on Motionary’s own renderer — glTF 2.0 / GLB and OBJ / MTL models or built-in shapes, PBR-style materials, orbit controls (drag, wheel, pinch, arrow keys), auto-rotate and video textures. Requires motionary/runtime/gl (+ format-gltf for .gltf / .glb, format-obj for .obj) — npm i motionary, then use(gl, formatGltf, formatObj) before it mounts. Alias: <usa-three-scene>.",
3818
+ "category": "ui",
3819
+ "since": "10.5",
3820
+ "keywords": [
3821
+ "3d",
3822
+ "webgl",
3823
+ "gltf",
3824
+ "glb",
3825
+ "obj",
3826
+ "model viewer",
3827
+ "runtime"
3828
+ ],
3829
+ "import": {
3830
+ "path": "motionary/components/widgets",
3831
+ "define": "defineGlScene",
3832
+ "register": "defineGlScene();"
3833
+ },
3834
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
3835
+ "attributes": [
3836
+ "src",
3837
+ "shape",
3838
+ "color",
3839
+ "metallic",
3840
+ "roughness",
3841
+ "background",
3842
+ "exposure",
3843
+ "controls",
3844
+ "auto-rotate",
3845
+ "video",
3846
+ "video-scrub",
3847
+ "label"
3848
+ ],
3849
+ "events": [
3850
+ "usa:error",
3851
+ "usa:load",
3852
+ "usa:runtime-missing"
3853
+ ],
3854
+ "slots": [],
3855
+ "methods": [
3856
+ "reload"
3857
+ ],
3858
+ "example": "<usa-gl-scene src=\"/models/chair.glb\" controls auto-rotate=\"20\" label=\"Chair\"></usa-gl-scene>",
3859
+ "esm": "import { use } from 'motionary/runtime';\nimport { gl } from 'motionary/runtime/gl';\nimport { formatGltf } from 'motionary/runtime/format-gltf';\nimport { formatObj } from 'motionary/runtime/format-obj';\n\nuse(gl, formatGltf, formatObj);\nimport { defineGlScene } from 'motionary/components/widgets';\n\ndefineGlScene(); // registers <usa-gl-scene>\n\n/* then use it in your HTML:\n<usa-gl-scene src=\"/models/chair.glb\" controls auto-rotate=\"20\" label=\"Chair\"></usa-gl-scene>\n*/",
3860
+ "requires": [
3861
+ "gl",
3862
+ "format-gltf",
3863
+ "format-obj"
3864
+ ],
3865
+ "prerequisites": {
3866
+ "badge": "Requires: motionary/runtime/gl + motionary/runtime/format-gltf + motionary/runtime/format-obj",
3867
+ "modules": [
3868
+ "motionary/runtime/gl",
3869
+ "motionary/runtime/format-gltf",
3870
+ "motionary/runtime/format-obj"
3871
+ ],
3872
+ "install": "npm i motionary",
3873
+ "importAndRegister": "import { use } from 'motionary/runtime';\nimport { gl } from 'motionary/runtime/gl';\nimport { formatGltf } from 'motionary/runtime/format-gltf';\nimport { formatObj } from 'motionary/runtime/format-obj';\nimport { defineGlScene } from 'motionary/components/widgets';\n\nuse(gl, formatGltf, formatObj);\ndefineGlScene(); // registers <usa-gl-scene> — after the prerequisites",
3874
+ "order": "Register the core first, then the module: use(gl) also registers the core. CDN: load runtime.iife.js, then runtime/gl.iife.js (it registers itself). Register the core first, then the module: use(formatGltf) also registers the core. CDN: load runtime.iife.js, then runtime/format-gltf.iife.js (it registers itself). Register the core first, then the module: use(formatObj) also registers the core. CDN: load runtime.iife.js, then runtime/format-obj.iife.js (it registers itself).",
3875
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.iife.js\"></script>\n<!-- then the component bundles -->\n<script src=\"https://unpkg.com/motionary@10/dist/components.umd.js\"></script>\n<script src=\"https://unpkg.com/motionary@10/dist/widgets.umd.js\"></script>",
3876
+ "example": "<usa-gl-scene src=\"/models/chair.glb\" controls auto-rotate=\"20\" label=\"Chair\"></usa-gl-scene>",
3877
+ "docs": [
3878
+ "https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/gl.md",
3879
+ "https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/format-gltf.md",
3880
+ "https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/format-obj.md"
3881
+ ]
3882
+ },
3883
+ "source": "src/components/widgets/gl-scene.ts"
3884
+ },
3425
3885
  {
3426
3886
  "id": "glitch",
3427
3887
  "tag": "usa-glitch",
@@ -3492,6 +3952,47 @@
3492
3952
  "prerequisites": null,
3493
3953
  "source": "src/components/widgets/globe.ts"
3494
3954
  },
3955
+ {
3956
+ "id": "gpu-particles",
3957
+ "tag": "usa-gpu-particles",
3958
+ "title": "GPU particle canvas",
3959
+ "description": "10.5 (WebGPU effects 2.0): tens of thousands of particles simulated by a WebGPU compute shader and drawn as instanced quads — swirl, galaxy or fountain, pointer repulsion, trails; Canvas 2D fallback where WebGPU is missing.",
3960
+ "category": "ui",
3961
+ "since": "10.5",
3962
+ "keywords": [
3963
+ "webgpu",
3964
+ "compute shader",
3965
+ "particles",
3966
+ "gpu",
3967
+ "canvas"
3968
+ ],
3969
+ "import": {
3970
+ "path": "motionary/components/widgets",
3971
+ "define": "defineGpuParticles",
3972
+ "register": "defineGpuParticles();"
3973
+ },
3974
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
3975
+ "attributes": [
3976
+ "count",
3977
+ "mode",
3978
+ "colors",
3979
+ "size",
3980
+ "speed",
3981
+ "trail",
3982
+ "pointer",
3983
+ "label"
3984
+ ],
3985
+ "events": [
3986
+ "usa:backend"
3987
+ ],
3988
+ "slots": [],
3989
+ "methods": [],
3990
+ "example": "<usa-gpu-particles count=\"30000\" mode=\"galaxy\" colors=\"#818cf8,#f472b6\" pointer></usa-gpu-particles>",
3991
+ "esm": "import { defineGpuParticles } from 'motionary/components/widgets';\n\ndefineGpuParticles(); // registers <usa-gpu-particles>\n\n/* then use it in your HTML:\n<usa-gpu-particles count=\"30000\" mode=\"galaxy\" colors=\"#818cf8,#f472b6\" pointer></usa-gpu-particles>\n*/",
3992
+ "requires": [],
3993
+ "prerequisites": null,
3994
+ "source": "src/components/widgets/gpu-particles.ts"
3995
+ },
3495
3996
  {
3496
3997
  "id": "gradient-text",
3497
3998
  "tag": "usa-gradient-text",
@@ -4279,6 +4780,75 @@
4279
4780
  "prerequisites": null,
4280
4781
  "source": "src/components/widgets/lottie-icon.ts"
4281
4782
  },
4783
+ {
4784
+ "id": "lottie-player",
4785
+ "tag": "usa-lottie-player",
4786
+ "title": "Lottie player (JSON + dotLottie)",
4787
+ "description": "10.6: plays Lottie JSON and dotLottie (.lottie) files with Motionary’s own Canvas 2D renderer — shapes, gradients, trim paths, masks, track mattes, precomps and images; autoplay, loop, bounce, segments / markers, play on hover or scrub with scroll. Requires motionary/runtime/vector — npm i motionary, then use(vector) before it mounts.",
4788
+ "category": "ui",
4789
+ "since": "10.6",
4790
+ "keywords": [
4791
+ "lottie",
4792
+ "dotlottie",
4793
+ "bodymovin",
4794
+ "vector animation",
4795
+ "player",
4796
+ "runtime"
4797
+ ],
4798
+ "import": {
4799
+ "path": "motionary/components/widgets",
4800
+ "define": "defineLottiePlayer",
4801
+ "register": "defineLottiePlayer();"
4802
+ },
4803
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
4804
+ "attributes": [
4805
+ "src",
4806
+ "animation",
4807
+ "autoplay",
4808
+ "loop",
4809
+ "speed",
4810
+ "mode",
4811
+ "segment",
4812
+ "hover",
4813
+ "scrub",
4814
+ "fit",
4815
+ "background",
4816
+ "label"
4817
+ ],
4818
+ "events": [
4819
+ "usa:complete",
4820
+ "usa:load",
4821
+ "usa:error",
4822
+ "usa:runtime-missing"
4823
+ ],
4824
+ "slots": [],
4825
+ "methods": [
4826
+ "play",
4827
+ "pause",
4828
+ "stop",
4829
+ "seek"
4830
+ ],
4831
+ "example": "<usa-lottie-player src=\"/anim/hero.lottie\" autoplay loop label=\"Hero animation\"></usa-lottie-player>",
4832
+ "esm": "import { use } from 'motionary/runtime';\nimport { vector } from 'motionary/runtime/vector';\n\nuse(vector);\nimport { defineLottiePlayer } from 'motionary/components/widgets';\n\ndefineLottiePlayer(); // registers <usa-lottie-player>\n\n/* then use it in your HTML:\n<usa-lottie-player src=\"/anim/hero.lottie\" autoplay loop label=\"Hero animation\"></usa-lottie-player>\n*/",
4833
+ "requires": [
4834
+ "vector"
4835
+ ],
4836
+ "prerequisites": {
4837
+ "badge": "Requires: motionary/runtime/vector",
4838
+ "modules": [
4839
+ "motionary/runtime/vector"
4840
+ ],
4841
+ "install": "npm i motionary",
4842
+ "importAndRegister": "import { use } from 'motionary/runtime';\nimport { vector } from 'motionary/runtime/vector';\nimport { defineLottiePlayer } from 'motionary/components/widgets';\n\nuse(vector);\ndefineLottiePlayer(); // registers <usa-lottie-player> — after the prerequisites",
4843
+ "order": "Register the core first, then the module: use(vector) also registers the core. CDN: load runtime.iife.js, then runtime/vector.iife.js (it registers itself).",
4844
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/vector.iife.js\"></script>\n<!-- then the component bundles -->\n<script src=\"https://unpkg.com/motionary@10/dist/components.umd.js\"></script>\n<script src=\"https://unpkg.com/motionary@10/dist/widgets.umd.js\"></script>",
4845
+ "example": "<usa-lottie-player src=\"/anim/hero.lottie\" autoplay loop label=\"Hero animation\"></usa-lottie-player>",
4846
+ "docs": [
4847
+ "https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/vector.md"
4848
+ ]
4849
+ },
4850
+ "source": "src/components/widgets/lottie-player.ts"
4851
+ },
4282
4852
  {
4283
4853
  "id": "lyrics",
4284
4854
  "tag": "usa-lyrics",
@@ -6269,6 +6839,69 @@
6269
6839
  "prerequisites": null,
6270
6840
  "source": "src/components/interaction/ripple.ts"
6271
6841
  },
6842
+ {
6843
+ "id": "rive",
6844
+ "tag": "usa-rive",
6845
+ "title": "Rive player (official runtime)",
6846
+ "description": "10.6: plays Rive (.riv) files — artboards, animations and state machines with inputs — through the official Rive runtime @rive-app/canvas, an optional peer dependency that is lazy-loaded on first use (Motionary does not reimplement the proprietary .riv format). Requires @rive-app/canvas — npm i @rive-app/canvas, or load its CDN script first; missing → a clear message in place.",
6847
+ "category": "ui",
6848
+ "since": "10.6",
6849
+ "keywords": [
6850
+ "rive",
6851
+ "riv",
6852
+ "state machine",
6853
+ "interactive animation",
6854
+ "official runtime",
6855
+ "peer"
6856
+ ],
6857
+ "import": {
6858
+ "path": "motionary/components/widgets",
6859
+ "define": "defineRive",
6860
+ "register": "defineRive();"
6861
+ },
6862
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
6863
+ "attributes": [
6864
+ "src",
6865
+ "artboard",
6866
+ "animation",
6867
+ "state-machine",
6868
+ "autoplay",
6869
+ "fit",
6870
+ "label",
6871
+ "runtime-src"
6872
+ ],
6873
+ "events": [
6874
+ "usa:load",
6875
+ "usa:error",
6876
+ "usa:runtime-missing"
6877
+ ],
6878
+ "slots": [],
6879
+ "methods": [
6880
+ "play",
6881
+ "pause",
6882
+ "input"
6883
+ ],
6884
+ "example": "<usa-rive src=\"/anim/icon.riv\" state-machine=\"State Machine 1\" autoplay label=\"Icon\"></usa-rive>",
6885
+ "esm": "import { provideRiveRuntime } from 'motionary/components/widgets';\n\nprovideRiveRuntime(() => import('@rive-app/canvas')); // lazy: fetched when the first <usa-rive> mounts\nimport { defineRive } from 'motionary/components/widgets';\n\ndefineRive(); // registers <usa-rive>\n\n/* then use it in your HTML:\n<usa-rive src=\"/anim/icon.riv\" state-machine=\"State Machine 1\" autoplay label=\"Icon\"></usa-rive>\n*/",
6886
+ "requires": [
6887
+ "rive"
6888
+ ],
6889
+ "prerequisites": {
6890
+ "badge": "Requires: @rive-app/canvas",
6891
+ "modules": [
6892
+ "@rive-app/canvas"
6893
+ ],
6894
+ "install": "npm i @rive-app/canvas",
6895
+ "importAndRegister": "import { provideRiveRuntime } from 'motionary/components/widgets';\nimport { defineRive } from 'motionary/components/widgets';\n\nprovideRiveRuntime(() => import('@rive-app/canvas')); // lazy: fetched when the first <usa-rive> mounts\ndefineRive(); // registers <usa-rive> — after the prerequisites",
6896
+ "order": "Install the official runtime next to motionary, then hand <usa-rive> a lazy loader with provideRiveRuntime(() => import('@rive-app/canvas')) before the element mounts — your bundler splits the runtime into its own chunk, fetched only when the first <usa-rive> appears. Without a bundler: load the official rive.js from a CDN before the component bundles (window.rive), use an import map, or set runtime-src on the element. Missing → a clear message in place + usa:runtime-missing.",
6897
+ "cdn": "<script src=\"https://unpkg.com/@rive-app/canvas@2.44.1/rive.js\"></script>\n<!-- then the component bundles -->\n<script src=\"https://unpkg.com/motionary@10/dist/components.umd.js\"></script>\n<script src=\"https://unpkg.com/motionary@10/dist/widgets.umd.js\"></script>",
6898
+ "example": "<usa-rive src=\"/anim/icon.riv\" state-machine=\"State Machine 1\" autoplay label=\"Icon\"></usa-rive>",
6899
+ "docs": [
6900
+ "https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/rive.md"
6901
+ ]
6902
+ },
6903
+ "source": "src/components/widgets/rive.ts"
6904
+ },
6272
6905
  {
6273
6906
  "id": "route-transition",
6274
6907
  "tag": "usa-route-transition",
@@ -6656,6 +7289,45 @@
6656
7289
  }
6657
7290
  ]
6658
7291
  },
7292
+ {
7293
+ "id": "shader-backdrop",
7294
+ "tag": "usa-shader-backdrop",
7295
+ "title": "Shader backdrop + post chain",
7296
+ "description": "10.5 (WebGPU effects 2.0): an animated shader background (aurora, plasma, waves, nebula or your own GLSL) run through a post-processing chain — bloom, vignette, grain, chromatic aberration, pixelate, scanlines — in any order; CSS gradient fallback.",
7297
+ "category": "ui",
7298
+ "since": "10.5",
7299
+ "keywords": [
7300
+ "shader",
7301
+ "background",
7302
+ "post-processing",
7303
+ "bloom",
7304
+ "glsl"
7305
+ ],
7306
+ "import": {
7307
+ "path": "motionary/components/widgets",
7308
+ "define": "defineShaderBackdrop",
7309
+ "register": "defineShaderBackdrop();"
7310
+ },
7311
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
7312
+ "attributes": [
7313
+ "preset",
7314
+ "post",
7315
+ "colors",
7316
+ "speed",
7317
+ "intensity",
7318
+ "label"
7319
+ ],
7320
+ "events": [
7321
+ "usa:backend"
7322
+ ],
7323
+ "slots": [],
7324
+ "methods": [],
7325
+ "example": "<usa-shader-backdrop preset=\"aurora\" post=\"bloom,vignette,grain\">\n <h1>Hello</h1>\n</usa-shader-backdrop>",
7326
+ "esm": "import { defineShaderBackdrop } from 'motionary/components/widgets';\n\ndefineShaderBackdrop(); // registers <usa-shader-backdrop>\n\n/* then use it in your HTML:\n<usa-shader-backdrop preset=\"aurora\" post=\"bloom,vignette,grain\">\n <h1>Hello</h1>\n</usa-shader-backdrop>\n*/",
7327
+ "requires": [],
7328
+ "prerequisites": null,
7329
+ "source": "src/components/widgets/shader-backdrop.ts"
7330
+ },
6659
7331
  {
6660
7332
  "id": "sheet",
6661
7333
  "tag": "usa-sheet",
@@ -7892,6 +8564,27 @@
7892
8564
  "prerequisites": null,
7893
8565
  "source": "src/components/widgets/theme-switcher.ts"
7894
8566
  },
8567
+ {
8568
+ "id": "three-scene",
8569
+ "tag": "usa-three-scene",
8570
+ "title": "<usa-three-scene>",
8571
+ "description": "`<usa-three-scene>` — alias of `<usa-gl-scene>` (same attributes, events and methods; no Three.js involved).",
8572
+ "category": "widgets",
8573
+ "import": {
8574
+ "path": "motionary/components/widgets",
8575
+ "define": "defineThreeScene",
8576
+ "register": "defineThreeScene();"
8577
+ },
8578
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
8579
+ "attributes": [],
8580
+ "events": [],
8581
+ "slots": [],
8582
+ "methods": [],
8583
+ "example": "<usa-three-scene></usa-three-scene>",
8584
+ "requires": [],
8585
+ "prerequisites": null,
8586
+ "source": "src/components/widgets/gl-scene.ts"
8587
+ },
7895
8588
  {
7896
8589
  "id": "tilt",
7897
8590
  "tag": "usa-tilt",
@@ -8076,6 +8769,48 @@
8076
8769
  "prerequisites": null,
8077
8770
  "source": "src/components/feedback/toast.ts"
8078
8771
  },
8772
+ {
8773
+ "id": "token-editor",
8774
+ "tag": "usa-token-editor",
8775
+ "title": "Motion token editor (W3C DTCG)",
8776
+ "description": "10.6 (motion design tokens 2.0): edit duration and cubic-bézier easing tokens with a live preview per token, then export W3C Design Tokens (DTCG 2025.10 or the earlier draft) or import a DTCG file — aliases resolved, problems listed; apply writes the tokens to :root custom properties as you edit.",
8777
+ "category": "ui",
8778
+ "since": "10.6",
8779
+ "keywords": [
8780
+ "design tokens",
8781
+ "dtcg",
8782
+ "w3c",
8783
+ "motion tokens",
8784
+ "easing",
8785
+ "duration"
8786
+ ],
8787
+ "import": {
8788
+ "path": "motionary/components/widgets",
8789
+ "define": "defineTokenEditor",
8790
+ "register": "defineTokenEditor();"
8791
+ },
8792
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
8793
+ "attributes": [
8794
+ "apply",
8795
+ "format",
8796
+ "groups"
8797
+ ],
8798
+ "events": [
8799
+ "usa:export",
8800
+ "usa:import",
8801
+ "usa:change"
8802
+ ],
8803
+ "slots": [],
8804
+ "methods": [
8805
+ "exportJSON",
8806
+ "importJSON"
8807
+ ],
8808
+ "example": "<usa-token-editor apply format=\"2025.10\"></usa-token-editor>",
8809
+ "esm": "import { defineTokenEditor } from 'motionary/components/widgets';\n\ndefineTokenEditor(); // registers <usa-token-editor>\n\n/* then use it in your HTML:\n<usa-token-editor apply format=\"2025.10\"></usa-token-editor>\n*/",
8810
+ "requires": [],
8811
+ "prerequisites": null,
8812
+ "source": "src/components/widgets/token-editor.ts"
8813
+ },
8079
8814
  {
8080
8815
  "id": "typewriter",
8081
8816
  "tag": "usa-typewriter",