@uxland/primary-shell 7.46.3 → 7.46.4

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": "@uxland/primary-shell",
3
- "version": "7.46.3",
3
+ "version": "7.46.4",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -1,9 +1,5 @@
1
1
  import type { BootstrappedPlugin, PluginDefinition, Plugin as PluginType } from "@uxland/harmonix";
2
2
  import { bootstrapPlugins as pluginBootstrapper } from "@uxland/harmonix";
3
- import {
4
- dispose as activityHistoryDispose,
5
- initialize as activityHistoryInitialize,
6
- } from "../../../plugins/activity-history/src/plugin";
7
3
  import { PrimariaApi, primariaApiFactory } from "./api/api";
8
4
  export type { PluginDefinition, PluginInfo } from "@uxland/harmonix";
9
5
 
@@ -29,13 +25,13 @@ const CORE_FIRST_ID = "activity-history";
29
25
  // from the plugin store (versioned/uploadable) like any other plugin; this
30
26
  // bundled copy is the fallback used when the caller does not provide it — e.g.
31
27
  // third-party sandboxes that install primary-shell without a plugin store.
28
+ //
29
+ // The import stays inside the importer on purpose: importing it statically would
30
+ // evaluate the plugin's modules on shell load and register its custom elements,
31
+ // so the copy coming from the store would fail to define them again.
32
32
  const bundledActivityHistory: PluginDefinition = {
33
33
  pluginId: CORE_FIRST_ID,
34
- importer: () =>
35
- Promise.resolve({
36
- initialize: activityHistoryInitialize,
37
- dispose: activityHistoryDispose,
38
- }),
34
+ importer: () => import("../../../plugins/activity-history/src/plugin"),
39
35
  };
40
36
 
41
37
  export const bootstrapPlugins = async (plugins: PluginDefinition[], startup?: PrimariaStartupPlugin) => {