@ossy/resources 3.0.1 → 3.0.3

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@ossy/resources",
3
3
  "description": "Resource domain — aggregate and events for the Ossy resource model",
4
- "version": "3.0.1",
4
+ "version": "3.0.3",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "main": "./src/index.js",
@@ -23,10 +23,10 @@
23
23
  "src": "./src"
24
24
  },
25
25
  "dependencies": {
26
- "@ossy/event-store": "^3.0.1",
27
- "@ossy/fold": "^3.0.1",
28
- "@ossy/platform": "^3.0.1",
29
- "@ossy/schema": "^3.0.1"
26
+ "@ossy/event-store": "^3.0.3",
27
+ "@ossy/fold": "^3.0.3",
28
+ "@ossy/platform": "^3.0.3",
29
+ "@ossy/schema": "^3.0.3"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@ossy/design-system": ">=1.0.0",
@@ -49,5 +49,5 @@
49
49
  "/src",
50
50
  "README.md"
51
51
  ],
52
- "gitHead": "4a70ec216448680d2fddc57b2a8a0077489720ae"
52
+ "gitHead": "8d098a04b595b2d1f54788c5c7ed7f310e9cd7e1"
53
53
  }
@@ -22,7 +22,9 @@ export const ResourceDetails = ({ resourceId }) => {
22
22
  Created: resource?.created && new Date(resource?.created).toLocaleString(),
23
23
  }
24
24
 
25
- const showAccessToggle = resource?.id && resource?.type !== 'directory'
25
+ const showAccessToggle = resource?.id
26
+ && resource?.type !== '@ossy/platform/schema/directory'
27
+ && resource?.type !== 'directory'
26
28
 
27
29
  const onAccessChange = (event) => {
28
30
  const next = event.target.checked ? 'public' : 'restricted'
@@ -136,7 +136,7 @@ const ResourceListItem = memo(function ResourceListItem({
136
136
  })
137
137
 
138
138
  const ResourceIcon = memo(function ResourceIcon({ type, content, templateMap }) {
139
- if (type === 'directory') {
139
+ if (type === '@ossy/platform/schema/directory' || type === 'directory') {
140
140
  return (
141
141
  <Icon size="s" name="folder" style={{ fill: 'hsl(0, 0%, 60%)'}} />
142
142
  )