@ossy/app 3.0.2 → 3.0.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/cli/build.task.js CHANGED
@@ -387,6 +387,14 @@ export async function build (cliArgs = []) {
387
387
  if (id === '@ossy/platform' || id.startsWith('@ossy/platform/')) return true
388
388
  if (id === '@ossy/event-store' || id.startsWith('@ossy/event-store/')) return true
389
389
  if (id === '@ossy/observability' || id.startsWith('@ossy/observability/')) return true
390
+ // Absolute paths into @ossy/event-store (from relative imports inside that
391
+ // package). Entry modules (*.task.js etc.) must still be bundled — only
392
+ // shared runtime files stay external so AggregateRebuild remains a
393
+ // process-wide singleton (same Map the server registers aggregates into).
394
+ if (
395
+ /[/\\]node_modules[/\\]@ossy[/\\]event-store[/\\]/.test(id)
396
+ && !/\.(task|action|api|aggregate|startup|integration|schema|page|component|email|e2e|flow|layout|translations)\.[cm]?[jt]sx?$/.test(id)
397
+ ) return true
390
398
  // Shared in-memory outbox — email integration appends, dev-inbox API reads.
391
399
  if (id === '@ossy/email/local-outbox') return true
392
400
  return false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/app",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "",
5
5
  "source": "./src/index.js",
6
6
  "main": "./src/index.js",
@@ -49,21 +49,21 @@
49
49
  "@babel/eslint-parser": "^7.15.8",
50
50
  "@babel/preset-react": "^7.26.3",
51
51
  "@babel/register": "^7.25.9",
52
- "@ossy/authentication": "^3.0.2",
53
- "@ossy/design-system": "^3.0.2",
54
- "@ossy/locale": "^3.0.2",
55
- "@ossy/manifest": "^3.0.2",
56
- "@ossy/package-catalog": "^3.0.2",
57
- "@ossy/pages": "^3.0.2",
58
- "@ossy/platform": "^3.0.2",
59
- "@ossy/resources": "^3.0.2",
60
- "@ossy/router": "^3.0.2",
61
- "@ossy/router-react": "^3.0.2",
62
- "@ossy/schema": "^3.0.2",
63
- "@ossy/sdk": "^3.0.2",
64
- "@ossy/sdk-react": "^3.0.2",
65
- "@ossy/themes": "^3.0.2",
66
- "@ossy/workspaces": "^3.0.2",
52
+ "@ossy/authentication": "^3.0.4",
53
+ "@ossy/design-system": "^3.0.4",
54
+ "@ossy/locale": "^3.0.4",
55
+ "@ossy/manifest": "^3.0.4",
56
+ "@ossy/package-catalog": "^3.0.4",
57
+ "@ossy/pages": "^3.0.4",
58
+ "@ossy/platform": "^3.0.4",
59
+ "@ossy/resources": "^3.0.4",
60
+ "@ossy/router": "^3.0.4",
61
+ "@ossy/router-react": "^3.0.4",
62
+ "@ossy/schema": "^3.0.4",
63
+ "@ossy/sdk": "^3.0.4",
64
+ "@ossy/sdk-react": "^3.0.4",
65
+ "@ossy/themes": "^3.0.4",
66
+ "@ossy/workspaces": "^3.0.4",
67
67
  "@rollup/plugin-alias": "^6.0.0",
68
68
  "@rollup/plugin-babel": "^7.0.0",
69
69
  "@rollup/plugin-commonjs": "^29.0.0",
@@ -97,5 +97,5 @@
97
97
  "README.md",
98
98
  "tsconfig.json"
99
99
  ],
100
- "gitHead": "f0a8af3c370bbaffe4f7388c14f9345a5c6c56e5"
100
+ "gitHead": "831c9816bee67c5e53d0a4be4f6401975f23d72a"
101
101
  }
@@ -1,9 +1,7 @@
1
1
  import React, { useState, useMemo, useRef, useEffect, useCallback } from 'react'
2
2
  import { Button, View, Slot, useLocale } from '@ossy/design-system'
3
3
  import { useRouter } from '@ossy/router-react'
4
- import { useSdk } from '@ossy/sdk-react'
5
- import { GetWorkspace } from '@ossy/workspaces'
6
- import { useApp, buildSidebarNav, patchUserAppSettings, useCompactShellLayout } from '@ossy/app/shell'
4
+ import { useApp, buildSidebarNav, patchUserAppSettings, useCompactShellLayout, useShellWorkspace } from '@ossy/app/shell'
7
5
 
8
6
  export const metadata = { id: '@ossy/app/component/sidebar/default' }
9
7
 
@@ -61,8 +59,7 @@ export default function DefaultSidebar ({
61
59
  }, [])
62
60
 
63
61
  const small = compactViewport || sidebarCollapsed || smallProp
64
- const sdk = useSdk()
65
- const { data: workspace } = sdk.read(GetWorkspace)
62
+ const { workspace } = useShellWorkspace()
66
63
  const router = useRouter()
67
64
  const { t } = useLocale()
68
65