@rive-app/canvas 2.37.0 → 2.37.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/canvas",
3
- "version": "2.37.0",
3
+ "version": "2.37.1",
4
4
  "description": "Rive's canvas based web api.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
@@ -27,7 +27,9 @@
27
27
  "rive.wasm",
28
28
  "rive_fallback.wasm",
29
29
  "rive.d.ts",
30
- "rive_advanced.mjs.d.ts"
30
+ "rive_advanced.mjs.d.ts",
31
+ "runtimeLoader.d.ts",
32
+ "utils"
31
33
  ],
32
34
  "typings": "rive.d.ts",
33
35
  "dependencies": {},
package/rive.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as rc from "./rive_advanced.mjs";
2
2
  import { RuntimeLoader, type RuntimeCallback } from "./runtimeLoader";
3
3
  import { ImageWrapper, AudioWrapper, FontWrapper, RiveFont as RiveFontClassUtil } from "./utils";
4
- export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => Boolean;
4
+ export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => boolean;
5
5
  export { RiveFontClassUtil as RiveFont };
6
6
  export type { FileAsset, AudioAsset, FontAsset, ImageAsset, } from "./rive_advanced.mjs";
7
7
  /**
@@ -285,7 +285,7 @@ export interface RiveParameters {
285
285
  */
286
286
  onloaderror?: EventCallback;
287
287
  /**
288
- * @deprecated Use `onPoad()` instead
288
+ * @deprecated Use `onPlay()` instead
289
289
  */
290
290
  onplay?: EventCallback;
291
291
  /**
package/rive.js CHANGED
@@ -1012,7 +1012,7 @@ function Za(a, b) {
1012
1012
  return Ya(c, a, b);
1013
1013
  }));
1014
1014
  }
1015
- var $a, ab, eb = {479682:(a, b, c, d, e) => {
1015
+ var $a, ab, eb = {479810:(a, b, c, d, e) => {
1016
1016
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
1017
1017
  return 0;
1018
1018
  }
@@ -1075,11 +1075,11 @@ var $a, ab, eb = {479682:(a, b, c, d, e) => {
1075
1075
  }
1076
1076
  window.h.za += 1;
1077
1077
  return 1;
1078
- }, 481860:() => {
1078
+ }, 481988:() => {
1079
1079
  "undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
1080
1080
  document.removeEventListener(a, window.h.unlock, !0);
1081
1081
  }), --window.h.za, 0 === window.h.za && delete window.h);
1082
- }, 482164:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 482268:() => {
1082
+ }, 482292:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 482396:() => {
1083
1083
  try {
1084
1084
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
1085
1085
  a.close();
@@ -1087,7 +1087,7 @@ var $a, ab, eb = {479682:(a, b, c, d, e) => {
1087
1087
  } catch (c) {
1088
1088
  return 0;
1089
1089
  }
1090
- }, 482439:(a, b, c, d, e, f) => {
1090
+ }, 482567:(a, b, c, d, e, f) => {
1091
1091
  if ("undefined" === typeof window.h) {
1092
1092
  return -1;
1093
1093
  }
@@ -1133,7 +1133,7 @@ var $a, ab, eb = {479682:(a, b, c, d, e) => {
1133
1133
  a == window.h.J.xa && g.Z.connect(g.L.destination);
1134
1134
  g.pb = f;
1135
1135
  return window.h.sc(g);
1136
- }, 485316:a => window.h.qa(a).L.sampleRate, 485389:a => {
1136
+ }, 485444:a => window.h.qa(a).L.sampleRate, 485517:a => {
1137
1137
  a = window.h.qa(a);
1138
1138
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
1139
1139
  }, a.Z.disconnect(), a.Z = void 0);
@@ -1141,13 +1141,13 @@ var $a, ab, eb = {479682:(a, b, c, d, e) => {
1141
1141
  a.L.close();
1142
1142
  a.L = void 0;
1143
1143
  a.pb = void 0;
1144
- }, 485789:a => {
1144
+ }, 485917:a => {
1145
1145
  window.h.Ab(a);
1146
- }, 485839:a => {
1146
+ }, 485967:a => {
1147
1147
  a = window.h.qa(a);
1148
1148
  a.L.resume();
1149
1149
  a.state = window.h.ga.wb;
1150
- }, 485978:a => {
1150
+ }, 486106:a => {
1151
1151
  a = window.h.qa(a);
1152
1152
  a.L.suspend();
1153
1153
  a.state = window.h.ga.stopped;
@@ -3659,7 +3659,7 @@ moduleRtn = ea;
3659
3659
  /* 5 */
3660
3660
  /***/ ((module) => {
3661
3661
 
3662
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.37.0","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3662
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.37.1","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts","runtimeLoader.d.ts","utils"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3663
3663
 
3664
3664
  /***/ }),
3665
3665
  /* 6 */