@dominevo/addon-media-library 0.1.15 → 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,19 @@ 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
+
16
+ ## [0.1.16] - 2026-12-04
17
+
18
+ ### Changed
19
+
20
+ - Media opens as the addon's own app inside the Viewer (needs Viewer 0.1.44)
21
+ - The Media app now ships from the addon as a native plugin (full browse, details and player)
22
+
10
23
  ## [0.1.15] - 2026-12-04
11
24
 
12
25
  ### Changed
@@ -9132,7 +9132,13 @@ function readPluginVersion(packageDir) {
9132
9132
  //#endregion
9133
9133
  //#region src/app-source.ts
9134
9134
  var APP_ID = "media";
9135
- function buildApp() {
9135
+ /** The host API the plugin bundle is built against (`hostApi` of its `index.tsx`). */
9136
+ var PLUGIN_HOST_API = 2;
9137
+ /**
9138
+ * The Media app. `version` is the build's cache key (`readPluginVersion`); a checkout whose bundle is
9139
+ * not built (`null`) falls back to the viewer's native `/media` route, so the app is never absent.
9140
+ */
9141
+ function buildApp(version) {
9136
9142
  return {
9137
9143
  id: APP_ID,
9138
9144
  label: {
@@ -9143,36 +9149,10 @@ function buildApp() {
9143
9149
  kind: "image",
9144
9150
  asset: "assets/app-icon.svg"
9145
9151
  },
9146
- entry: {
9152
+ entry: version === null ? {
9147
9153
  kind: "native",
9148
9154
  route: "/media"
9149
- },
9150
- reach: { kind: "hub" },
9151
- adminOnly: false,
9152
- nav: [],
9153
- takesSharedSearch: false,
9154
- settings: null
9155
- };
9156
- }
9157
- var PLUGIN_APP_ID = "media-plugin";
9158
- /** The host API the plugin bundle is built against (`hostApi` of its `index.tsx`). */
9159
- var PLUGIN_HOST_API = 1;
9160
- /**
9161
- * The React Native plugin spike (planning#908), declared next to the native Media app and
9162
- * admin-only until phase 2 replaces it. `version` is the build's cache key (`readPluginVersion`).
9163
- */
9164
- function buildPluginApp(version) {
9165
- return {
9166
- id: PLUGIN_APP_ID,
9167
- label: {
9168
- key: "media-library:apps.mediaPlugin",
9169
- fallback: "Media (plugin)"
9170
- },
9171
- icon: {
9172
- kind: "image",
9173
- asset: "assets/app-icon.svg"
9174
- },
9175
- entry: {
9155
+ } : {
9176
9156
  kind: "rn-plugin",
9177
9157
  native: PLUGIN_NATIVE_ASSET,
9178
9158
  web: PLUGIN_WEB_ASSET,
@@ -15746,8 +15726,7 @@ var MediaLibraryAddon = class extends BaseAddon {
15746
15726
  scans.schedule(settings.rescanMinutes);
15747
15727
  scans.start("boot");
15748
15728
  const apps = { listApps: async () => {
15749
- const pluginVersion = readPluginVersion((0, node_path.join)(__dirname, ".."));
15750
- return pluginVersion === null ? [buildApp()] : [buildApp(), buildPluginApp(pluginVersion)];
15729
+ return [buildApp(readPluginVersion((0, node_path.join)(__dirname, "..")))];
15751
15730
  } };
15752
15731
  const addressRoles = { listAddressRoles: async () => buildAddressRoles() };
15753
15732
  logger.info("media-library initialized");
@@ -9128,7 +9128,13 @@ function readPluginVersion(packageDir) {
9128
9128
  //#endregion
9129
9129
  //#region src/app-source.ts
9130
9130
  var APP_ID = "media";
9131
- function buildApp() {
9131
+ /** The host API the plugin bundle is built against (`hostApi` of its `index.tsx`). */
9132
+ var PLUGIN_HOST_API = 2;
9133
+ /**
9134
+ * The Media app. `version` is the build's cache key (`readPluginVersion`); a checkout whose bundle is
9135
+ * not built (`null`) falls back to the viewer's native `/media` route, so the app is never absent.
9136
+ */
9137
+ function buildApp(version) {
9132
9138
  return {
9133
9139
  id: APP_ID,
9134
9140
  label: {
@@ -9139,36 +9145,10 @@ function buildApp() {
9139
9145
  kind: "image",
9140
9146
  asset: "assets/app-icon.svg"
9141
9147
  },
9142
- entry: {
9148
+ entry: version === null ? {
9143
9149
  kind: "native",
9144
9150
  route: "/media"
9145
- },
9146
- reach: { kind: "hub" },
9147
- adminOnly: false,
9148
- nav: [],
9149
- takesSharedSearch: false,
9150
- settings: null
9151
- };
9152
- }
9153
- var PLUGIN_APP_ID = "media-plugin";
9154
- /** The host API the plugin bundle is built against (`hostApi` of its `index.tsx`). */
9155
- var PLUGIN_HOST_API = 1;
9156
- /**
9157
- * The React Native plugin spike (planning#908), declared next to the native Media app and
9158
- * admin-only until phase 2 replaces it. `version` is the build's cache key (`readPluginVersion`).
9159
- */
9160
- function buildPluginApp(version) {
9161
- return {
9162
- id: PLUGIN_APP_ID,
9163
- label: {
9164
- key: "media-library:apps.mediaPlugin",
9165
- fallback: "Media (plugin)"
9166
- },
9167
- icon: {
9168
- kind: "image",
9169
- asset: "assets/app-icon.svg"
9170
- },
9171
- entry: {
9151
+ } : {
9172
9152
  kind: "rn-plugin",
9173
9153
  native: PLUGIN_NATIVE_ASSET,
9174
9154
  web: PLUGIN_WEB_ASSET,
@@ -15742,8 +15722,7 @@ var MediaLibraryAddon = class extends BaseAddon {
15742
15722
  scans.schedule(settings.rescanMinutes);
15743
15723
  scans.start("boot");
15744
15724
  const apps = { listApps: async () => {
15745
- const pluginVersion = readPluginVersion(join(__dirname, ".."));
15746
- return pluginVersion === null ? [buildApp()] : [buildApp(), buildPluginApp(pluginVersion)];
15725
+ return [buildApp(readPluginVersion(join(__dirname, "..")))];
15747
15726
  } };
15748
15727
  const addressRoles = { listAddressRoles: async () => buildAddressRoles() };
15749
15728
  logger.info("media-library initialized");