@rive-app/canvas 2.39.0 → 2.39.2

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.39.0",
3
+ "version": "2.39.2",
4
4
  "description": "Rive's canvas based web api.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
@@ -29,7 +29,8 @@
29
29
  "rive.d.ts",
30
30
  "rive_advanced.mjs.d.ts",
31
31
  "runtimeLoader.d.ts",
32
- "utils"
32
+ "utils",
33
+ "semantics"
33
34
  ],
34
35
  "typings": "rive.d.ts",
35
36
  "dependencies": {},
package/rive.js CHANGED
@@ -1084,7 +1084,7 @@ function Ya(a, b) {
1084
1084
  return Xa(c, a, b);
1085
1085
  }));
1086
1086
  }
1087
- var Za, $a, db = {487261:(a, b, c, d, e) => {
1087
+ var Za, $a, db = {494893:(a, b, c, d, e) => {
1088
1088
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
1089
1089
  return 0;
1090
1090
  }
@@ -1147,11 +1147,11 @@ var Za, $a, db = {487261:(a, b, c, d, e) => {
1147
1147
  }
1148
1148
  window.miniaudio.referenceCount += 1;
1149
1149
  return 1;
1150
- }, 489439:() => {
1150
+ }, 497071:() => {
1151
1151
  "undefined" !== typeof window.miniaudio && (window.miniaudio.unlock_event_types.map(function(a) {
1152
1152
  document.removeEventListener(a, window.miniaudio.unlock, !0);
1153
1153
  }), --window.miniaudio.referenceCount, 0 === window.miniaudio.referenceCount && delete window.miniaudio);
1154
- }, 489743:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 489847:() => {
1154
+ }, 497375:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 497479:() => {
1155
1155
  try {
1156
1156
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
1157
1157
  a.close();
@@ -1159,7 +1159,7 @@ var Za, $a, db = {487261:(a, b, c, d, e) => {
1159
1159
  } catch (c) {
1160
1160
  return 0;
1161
1161
  }
1162
- }, 490018:(a, b, c, d, e, f) => {
1162
+ }, 497650:(a, b, c, d, e, f) => {
1163
1163
  if ("undefined" === typeof window.miniaudio) {
1164
1164
  return -1;
1165
1165
  }
@@ -1205,7 +1205,7 @@ var Za, $a, db = {487261:(a, b, c, d, e) => {
1205
1205
  a == window.miniaudio.device_type.playback && g.W.connect(g.I.destination);
1206
1206
  g.hb = f;
1207
1207
  return window.miniaudio.track_device(g);
1208
- }, 492895:a => window.miniaudio.get_device_by_index(a).I.sampleRate, 492968:a => {
1208
+ }, 500527:a => window.miniaudio.get_device_by_index(a).I.sampleRate, 500600:a => {
1209
1209
  a = window.miniaudio.get_device_by_index(a);
1210
1210
  void 0 !== a.W && (a.W.onaudioprocess = function() {
1211
1211
  }, a.W.disconnect(), a.W = void 0);
@@ -1213,13 +1213,13 @@ var Za, $a, db = {487261:(a, b, c, d, e) => {
1213
1213
  a.I.close();
1214
1214
  a.I = void 0;
1215
1215
  a.hb = void 0;
1216
- }, 493368:a => {
1216
+ }, 501E3:a => {
1217
1217
  window.miniaudio.untrack_device_by_index(a);
1218
- }, 493418:a => {
1218
+ }, 501050:a => {
1219
1219
  a = window.miniaudio.get_device_by_index(a);
1220
1220
  a.I.resume();
1221
1221
  a.state = window.miniaudio.device_state.started;
1222
- }, 493557:a => {
1222
+ }, 501189:a => {
1223
1223
  a = window.miniaudio.get_device_by_index(a);
1224
1224
  a.I.suspend();
1225
1225
  a.state = window.miniaudio.device_state.stopped;
@@ -3752,7 +3752,7 @@ moduleRtn = da;
3752
3752
  /* 5 */
3753
3753
  /***/ ((module) => {
3754
3754
 
3755
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.39.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","runtimeLoader.d.ts","utils"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3755
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.39.2","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","semantics"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3756
3756
 
3757
3757
  /***/ }),
3758
3758
  /* 6 */
@@ -8932,8 +8932,14 @@ var Rive = /** @class */ (function () {
8932
8932
  this.animator.handleAdvancing(elapsedTime);
8933
8933
  // Poll focus state to see whether or not to blur or pull up a virtual keyboard for any change to a text input node.
8934
8934
  this.pollFocusState();
8935
- // Handle callbacks for view model property changes
8935
+ // Handle callbacks for main view model property changes
8936
8936
  (_b = this._viewModelInstance) === null || _b === void 0 ? void 0 : _b.handleCallbacks();
8937
+ // Handle callbacks for global view model property changes
8938
+ this._globalViewModelInstances.forEach(function (instance) {
8939
+ if (instance) {
8940
+ instance.handleCallbacks();
8941
+ }
8942
+ });
8937
8943
  };
8938
8944
  /**
8939
8945
  * Draw rendering loop; renders animation frames at the correct time interval.