@dominevo/addon-media-library 0.1.16 → 0.1.17

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 CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.17] - 2026-12-04
11
+
12
+ ### Changed
13
+
14
+ - Media opens on phones again: the app bundle no longer contains code the phone runtime cannot load
15
+
10
16
  ## [0.1.16] - 2026-12-04
11
17
 
12
18
  ### Changed
@@ -96,85 +96,14 @@ var require_use_sync_external_store_shim_production = __commonJS({
96
96
  exports.useSyncExternalStore = void 0 !== React26.useSyncExternalStore ? React26.useSyncExternalStore : shim;
97
97
  }
98
98
  });
99
- var require_use_sync_external_store_shim_development = __commonJS({
100
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
101
- "use strict";
102
-
103
- "production" !== process.env.NODE_ENV && function () {
104
- function is(x, y) {
105
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
106
- }
107
- function useSyncExternalStore$2(subscribe, getSnapshot) {
108
- didWarnOld18Alpha || void 0 === React26.startTransition || (didWarnOld18Alpha = true, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
109
- var value = getSnapshot();
110
- if (!didWarnUncachedGetSnapshot) {
111
- var cachedValue = getSnapshot();
112
- objectIs(value, cachedValue) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = true);
113
- }
114
- cachedValue = useState9({
115
- inst: {
116
- value,
117
- getSnapshot
118
- }
119
- });
120
- var inst = cachedValue[0].inst,
121
- forceUpdate = cachedValue[1];
122
- useLayoutEffect(function () {
123
- inst.value = value;
124
- inst.getSnapshot = getSnapshot;
125
- checkIfSnapshotChanged(inst) && forceUpdate({
126
- inst
127
- });
128
- }, [subscribe, value, getSnapshot]);
129
- useEffect5(function () {
130
- checkIfSnapshotChanged(inst) && forceUpdate({
131
- inst
132
- });
133
- return subscribe(function () {
134
- checkIfSnapshotChanged(inst) && forceUpdate({
135
- inst
136
- });
137
- });
138
- }, [subscribe]);
139
- useDebugValue2(value);
140
- return value;
141
- }
142
- function checkIfSnapshotChanged(inst) {
143
- var latestGetSnapshot = inst.getSnapshot;
144
- inst = inst.value;
145
- try {
146
- var nextValue = latestGetSnapshot();
147
- return !objectIs(inst, nextValue);
148
- } catch (error) {
149
- return true;
150
- }
151
- }
152
- function useSyncExternalStore$1(subscribe, getSnapshot) {
153
- return getSnapshot();
154
- }
155
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
156
- var React26 = require("react"),
157
- objectIs = "function" === typeof Object.is ? Object.is : is,
158
- useState9 = React26.useState,
159
- useEffect5 = React26.useEffect,
160
- useLayoutEffect = React26.useLayoutEffect,
161
- useDebugValue2 = React26.useDebugValue,
162
- didWarnOld18Alpha = false,
163
- didWarnUncachedGetSnapshot = false,
164
- shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
165
- exports.useSyncExternalStore = void 0 !== React26.useSyncExternalStore ? React26.useSyncExternalStore : shim;
166
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
167
- }();
168
- }
169
- });
170
99
  var require_shim = __commonJS({
171
100
  "../../node_modules/use-sync-external-store/shim/index.js"(exports, module2) {
172
101
  "use strict";
173
102
 
174
- if (process.env.NODE_ENV === "production") {
103
+ if (true) {
175
104
  module2.exports = require_use_sync_external_store_shim_production();
176
105
  } else {
177
- module2.exports = require_use_sync_external_store_shim_development();
106
+ module2.exports = null;
178
107
  }
179
108
  }
180
109
  });
@@ -241,81 +170,14 @@ var require_with_selector_production = __commonJS({
241
170
  };
242
171
  }
243
172
  });
244
- var require_with_selector_development = __commonJS({
245
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
246
- "use strict";
247
-
248
- "production" !== process.env.NODE_ENV && function () {
249
- function is(x, y) {
250
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
251
- }
252
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
253
- var React26 = require("react"),
254
- shim = require_shim(),
255
- objectIs = "function" === typeof Object.is ? Object.is : is,
256
- useSyncExternalStore = shim.useSyncExternalStore,
257
- useRef7 = React26.useRef,
258
- useEffect5 = React26.useEffect,
259
- useMemo11 = React26.useMemo,
260
- useDebugValue2 = React26.useDebugValue;
261
- exports.useSyncExternalStoreWithSelector = function (subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
262
- var instRef = useRef7(null);
263
- if (null === instRef.current) {
264
- var inst = {
265
- hasValue: false,
266
- value: null
267
- };
268
- instRef.current = inst;
269
- } else inst = instRef.current;
270
- instRef = useMemo11(function () {
271
- function memoizedSelector(nextSnapshot) {
272
- if (!hasMemo) {
273
- hasMemo = true;
274
- memoizedSnapshot = nextSnapshot;
275
- nextSnapshot = selector(nextSnapshot);
276
- if (void 0 !== isEqual && inst.hasValue) {
277
- var currentSelection = inst.value;
278
- if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
279
- }
280
- return memoizedSelection = nextSnapshot;
281
- }
282
- currentSelection = memoizedSelection;
283
- if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
284
- var nextSelection = selector(nextSnapshot);
285
- if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
286
- memoizedSnapshot = nextSnapshot;
287
- return memoizedSelection = nextSelection;
288
- }
289
- var hasMemo = false,
290
- memoizedSnapshot,
291
- memoizedSelection,
292
- maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
293
- return [function () {
294
- return memoizedSelector(getSnapshot());
295
- }, null === maybeGetServerSnapshot ? void 0 : function () {
296
- return memoizedSelector(maybeGetServerSnapshot());
297
- }];
298
- }, [getSnapshot, getServerSnapshot, selector, isEqual]);
299
- var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
300
- useEffect5(function () {
301
- inst.hasValue = true;
302
- inst.value = value;
303
- }, [value]);
304
- useDebugValue2(value);
305
- return value;
306
- };
307
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
308
- }();
309
- }
310
- });
311
173
  var require_with_selector = __commonJS({
312
174
  "../../node_modules/use-sync-external-store/shim/with-selector.js"(exports, module2) {
313
175
  "use strict";
314
176
 
315
- if (process.env.NODE_ENV === "production") {
177
+ if (true) {
316
178
  module2.exports = require_with_selector_production();
317
179
  } else {
318
- module2.exports = require_with_selector_development();
180
+ module2.exports = null;
319
181
  }
320
182
  }
321
183
  });
@@ -3457,7 +3319,7 @@ function resetStreak() {
3457
3319
  }
3458
3320
  var storageLoad = null;
3459
3321
  function loadStorage() {
3460
- storageLoad ?? (storageLoad = import("@react-native-async-storage/async-storage").then(m => m.default, () => null));
3322
+ storageLoad ?? (storageLoad = Promise.resolve().then(() => __toESM(require("@react-native-async-storage/async-storage"))).then(m => m.default, () => null));
3461
3323
  return storageLoad;
3462
3324
  }
3463
3325
  var MEDIA_PREFS_STORAGE_KEY = "viewer-media-prefs-v1";
@@ -96,85 +96,14 @@ var require_use_sync_external_store_shim_production = __commonJS({
96
96
  exports.useSyncExternalStore = void 0 !== React26.useSyncExternalStore ? React26.useSyncExternalStore : shim;
97
97
  }
98
98
  });
99
- var require_use_sync_external_store_shim_development = __commonJS({
100
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
101
- "use strict";
102
-
103
- "production" !== process.env.NODE_ENV && function () {
104
- function is(x, y) {
105
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
106
- }
107
- function useSyncExternalStore$2(subscribe, getSnapshot) {
108
- didWarnOld18Alpha || void 0 === React26.startTransition || (didWarnOld18Alpha = true, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
109
- var value = getSnapshot();
110
- if (!didWarnUncachedGetSnapshot) {
111
- var cachedValue = getSnapshot();
112
- objectIs(value, cachedValue) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = true);
113
- }
114
- cachedValue = useState9({
115
- inst: {
116
- value,
117
- getSnapshot
118
- }
119
- });
120
- var inst = cachedValue[0].inst,
121
- forceUpdate = cachedValue[1];
122
- useLayoutEffect(function () {
123
- inst.value = value;
124
- inst.getSnapshot = getSnapshot;
125
- checkIfSnapshotChanged(inst) && forceUpdate({
126
- inst
127
- });
128
- }, [subscribe, value, getSnapshot]);
129
- useEffect5(function () {
130
- checkIfSnapshotChanged(inst) && forceUpdate({
131
- inst
132
- });
133
- return subscribe(function () {
134
- checkIfSnapshotChanged(inst) && forceUpdate({
135
- inst
136
- });
137
- });
138
- }, [subscribe]);
139
- useDebugValue2(value);
140
- return value;
141
- }
142
- function checkIfSnapshotChanged(inst) {
143
- var latestGetSnapshot = inst.getSnapshot;
144
- inst = inst.value;
145
- try {
146
- var nextValue = latestGetSnapshot();
147
- return !objectIs(inst, nextValue);
148
- } catch (error) {
149
- return true;
150
- }
151
- }
152
- function useSyncExternalStore$1(subscribe, getSnapshot) {
153
- return getSnapshot();
154
- }
155
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
156
- var React26 = require("react"),
157
- objectIs = "function" === typeof Object.is ? Object.is : is,
158
- useState9 = React26.useState,
159
- useEffect5 = React26.useEffect,
160
- useLayoutEffect = React26.useLayoutEffect,
161
- useDebugValue2 = React26.useDebugValue,
162
- didWarnOld18Alpha = false,
163
- didWarnUncachedGetSnapshot = false,
164
- shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
165
- exports.useSyncExternalStore = void 0 !== React26.useSyncExternalStore ? React26.useSyncExternalStore : shim;
166
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
167
- }();
168
- }
169
- });
170
99
  var require_shim = __commonJS({
171
100
  "../../node_modules/use-sync-external-store/shim/index.js"(exports, module2) {
172
101
  "use strict";
173
102
 
174
- if (process.env.NODE_ENV === "production") {
103
+ if (true) {
175
104
  module2.exports = require_use_sync_external_store_shim_production();
176
105
  } else {
177
- module2.exports = require_use_sync_external_store_shim_development();
106
+ module2.exports = null;
178
107
  }
179
108
  }
180
109
  });
@@ -241,81 +170,14 @@ var require_with_selector_production = __commonJS({
241
170
  };
242
171
  }
243
172
  });
244
- var require_with_selector_development = __commonJS({
245
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
246
- "use strict";
247
-
248
- "production" !== process.env.NODE_ENV && function () {
249
- function is(x, y) {
250
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
251
- }
252
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
253
- var React26 = require("react"),
254
- shim = require_shim(),
255
- objectIs = "function" === typeof Object.is ? Object.is : is,
256
- useSyncExternalStore = shim.useSyncExternalStore,
257
- useRef7 = React26.useRef,
258
- useEffect5 = React26.useEffect,
259
- useMemo11 = React26.useMemo,
260
- useDebugValue2 = React26.useDebugValue;
261
- exports.useSyncExternalStoreWithSelector = function (subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
262
- var instRef = useRef7(null);
263
- if (null === instRef.current) {
264
- var inst = {
265
- hasValue: false,
266
- value: null
267
- };
268
- instRef.current = inst;
269
- } else inst = instRef.current;
270
- instRef = useMemo11(function () {
271
- function memoizedSelector(nextSnapshot) {
272
- if (!hasMemo) {
273
- hasMemo = true;
274
- memoizedSnapshot = nextSnapshot;
275
- nextSnapshot = selector(nextSnapshot);
276
- if (void 0 !== isEqual && inst.hasValue) {
277
- var currentSelection = inst.value;
278
- if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
279
- }
280
- return memoizedSelection = nextSnapshot;
281
- }
282
- currentSelection = memoizedSelection;
283
- if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
284
- var nextSelection = selector(nextSnapshot);
285
- if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
286
- memoizedSnapshot = nextSnapshot;
287
- return memoizedSelection = nextSelection;
288
- }
289
- var hasMemo = false,
290
- memoizedSnapshot,
291
- memoizedSelection,
292
- maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
293
- return [function () {
294
- return memoizedSelector(getSnapshot());
295
- }, null === maybeGetServerSnapshot ? void 0 : function () {
296
- return memoizedSelector(maybeGetServerSnapshot());
297
- }];
298
- }, [getSnapshot, getServerSnapshot, selector, isEqual]);
299
- var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
300
- useEffect5(function () {
301
- inst.hasValue = true;
302
- inst.value = value;
303
- }, [value]);
304
- useDebugValue2(value);
305
- return value;
306
- };
307
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
308
- }();
309
- }
310
- });
311
173
  var require_with_selector = __commonJS({
312
174
  "../../node_modules/use-sync-external-store/shim/with-selector.js"(exports, module2) {
313
175
  "use strict";
314
176
 
315
- if (process.env.NODE_ENV === "production") {
177
+ if (true) {
316
178
  module2.exports = require_with_selector_production();
317
179
  } else {
318
- module2.exports = require_with_selector_development();
180
+ module2.exports = null;
319
181
  }
320
182
  }
321
183
  });
@@ -3457,7 +3319,7 @@ function resetStreak() {
3457
3319
  }
3458
3320
  var storageLoad = null;
3459
3321
  function loadStorage() {
3460
- storageLoad ?? (storageLoad = import("@react-native-async-storage/async-storage").then(m => m.default, () => null));
3322
+ storageLoad ?? (storageLoad = Promise.resolve().then(() => __toESM(require("@react-native-async-storage/async-storage"))).then(m => m.default, () => null));
3461
3323
  return storageLoad;
3462
3324
  }
3463
3325
  var MEDIA_PREFS_STORAGE_KEY = "viewer-media-prefs-v1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dominevo/addon-media-library",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "The self-hosted media library: a catalogue built from the arr apps and plain folders, probed files, per-user progress, direct play with Range and a native /media app in the viewer.",
5
5
  "keywords": [
6
6
  "dominevo",