Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/tree-view-table-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"type": "layout",
"path": "dist/index.js",
"source": "src/index.ts",
"host": "^10.10.0 || ^11.0.0"
"host": "^10.10.0 || ^11.0.0 || ^12.0.0"
},
"scripts": {
"build": "directus-extension build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import type { ShowSelect } from '@directus/extensions';
// import { Header, Sort } from './types';
import type { Header, Sort } from '../core-clones/components/v-table/types';
import { useSync } from '@directus/composables';
// useSync comes from the SDK, not @directus/composables: Directus 12's app bundle does not
// provide @directus/composables in its import map, so importing it directly leaves an
// unresolvable bare specifier that breaks the whole extension at runtime. The SDK re-exports it.
import { useSync } from '@directus/extensions-sdk';
import { clone, throttle } from 'lodash';
import { computed, ref, useSlots } from 'vue';
import { useI18n } from 'vue-i18n';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { isSystemCollection } from '@directus/system-data';
// Inlined from @directus/system-data: Directus 12's app bundle does not provide that package in
// its import map, so importing it directly leaves an unresolvable bare specifier that breaks the
// whole extension at runtime. The check is just the documented "directus_" system-prefix test.
function isSystemCollection(collection: string): boolean {
return typeof collection === 'string' && collection.startsWith('directus_');
}

const accessibleSystemCollections = {
directus_users: { route: '/users' },
Expand Down