Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@directus/extensions

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@directus/extensions - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

82

dist/index.d.ts

@@ -10,10 +10,10 @@ import { z } from 'zod';

declare const APP_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel"];
declare const APP_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme"];
declare const API_EXTENSION_TYPES: readonly ["hook", "endpoint"];
declare const HYBRID_EXTENSION_TYPES: readonly ["operation"];
declare const BUNDLE_EXTENSION_TYPES: readonly ["bundle"];
declare const EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "hook", "endpoint", "operation", "bundle"];
declare const NESTED_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "hook", "endpoint", "operation"];
declare const APP_OR_HYBRID_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "operation"];
declare const APP_OR_HYBRID_EXTENSION_PACKAGE_TYPES: readonly ["interface", "display", "layout", "module", "panel", "operation", "bundle"];
declare const EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme", "hook", "endpoint", "operation", "bundle"];
declare const NESTED_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme", "hook", "endpoint", "operation"];
declare const APP_OR_HYBRID_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme", "operation"];
declare const APP_OR_HYBRID_EXTENSION_PACKAGE_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme", "operation", "bundle"];

@@ -55,3 +55,3 @@ declare const EXTENSION_LANGUAGES: readonly ["javascript", "typescript"];

}>, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
path: z.ZodString;

@@ -61,7 +61,7 @@ source: z.ZodString;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;
}, {
path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -293,11 +293,11 @@ }>, z.ZodObject<{

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -343,3 +343,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -366,3 +366,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -386,3 +386,3 @@ source: string;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -444,3 +444,3 @@ }) | ({

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -470,3 +470,3 @@ source: string;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -528,3 +528,3 @@ }) | ({

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -656,11 +656,11 @@ source: string;

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -708,3 +708,3 @@ source: string;

declare const ExtensionOptionsApp: z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
path: z.ZodString;

@@ -714,7 +714,7 @@ source: z.ZodString;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;
}, {
path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -949,11 +949,11 @@ }>;

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -999,3 +999,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1022,3 +1022,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1049,11 +1049,11 @@ source: string;

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1100,3 +1100,3 @@ source: string;

}>, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
path: z.ZodString;

@@ -1106,7 +1106,7 @@ source: z.ZodString;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;
}, {
path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -1338,11 +1338,11 @@ }>, z.ZodObject<{

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1388,3 +1388,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1411,3 +1411,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1481,3 +1481,2 @@ source: string;

type SchemaFields = 'type' | 'local';
/**

@@ -1489,3 +1488,3 @@ * The API output structure used when engaging with the /extensions endpoints

bundle: string | null;
schema: Pick<Extension, SchemaFields> | null;
schema: Partial<Extension> | null;
meta: Omit<ExtensionSettings, 'name'>;

@@ -1620,3 +1619,2 @@ }

icon: string;
color?: string;
routes: RouteRecordRaw[];

@@ -1623,0 +1621,0 @@ hidden?: boolean;

// src/shared/constants/extension-types.ts
var APP_EXTENSION_TYPES = ["interface", "display", "layout", "module", "panel"];
var APP_EXTENSION_TYPES = ["interface", "display", "layout", "module", "panel", "theme"];
var API_EXTENSION_TYPES = ["hook", "endpoint"];

@@ -4,0 +4,0 @@ var HYBRID_EXTENSION_TYPES = ["operation"];

@@ -21,10 +21,10 @@ import { z } from 'zod';

declare const APP_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel"];
declare const APP_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme"];
declare const API_EXTENSION_TYPES: readonly ["hook", "endpoint"];
declare const HYBRID_EXTENSION_TYPES: readonly ["operation"];
declare const BUNDLE_EXTENSION_TYPES: readonly ["bundle"];
declare const EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "hook", "endpoint", "operation", "bundle"];
declare const NESTED_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "hook", "endpoint", "operation"];
declare const APP_OR_HYBRID_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "operation"];
declare const APP_OR_HYBRID_EXTENSION_PACKAGE_TYPES: readonly ["interface", "display", "layout", "module", "panel", "operation", "bundle"];
declare const EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme", "hook", "endpoint", "operation", "bundle"];
declare const NESTED_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme", "hook", "endpoint", "operation"];
declare const APP_OR_HYBRID_EXTENSION_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme", "operation"];
declare const APP_OR_HYBRID_EXTENSION_PACKAGE_TYPES: readonly ["interface", "display", "layout", "module", "panel", "theme", "operation", "bundle"];

@@ -66,3 +66,3 @@ declare const EXTENSION_LANGUAGES: readonly ["javascript", "typescript"];

}>, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
path: z.ZodString;

@@ -72,7 +72,7 @@ source: z.ZodString;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;
}, {
path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -304,11 +304,11 @@ }>, z.ZodObject<{

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -354,3 +354,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -377,3 +377,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -397,3 +397,3 @@ source: string;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -455,3 +455,3 @@ }) | ({

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -481,3 +481,3 @@ source: string;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -539,3 +539,3 @@ }) | ({

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -667,11 +667,11 @@ source: string;

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -719,3 +719,3 @@ source: string;

declare const ExtensionOptionsApp: z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
path: z.ZodString;

@@ -725,7 +725,7 @@ source: z.ZodString;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;
}, {
path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -960,11 +960,11 @@ }>;

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1010,3 +1010,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1033,3 +1033,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1060,11 +1060,11 @@ source: string;

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1111,3 +1111,3 @@ source: string;

}>, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
path: z.ZodString;

@@ -1117,7 +1117,7 @@ source: z.ZodString;

path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;
}, {
path: string;
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
source: string;

@@ -1349,11 +1349,11 @@ }>, z.ZodObject<{

}>, z.ZodObject<{
type: z.ZodEnum<["interface", "display", "layout", "module", "panel"]>;
type: z.ZodEnum<["interface", "display", "layout", "module", "panel", "theme"]>;
name: z.ZodString;
source: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;
source: string;
}, {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1399,3 +1399,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1422,3 +1422,3 @@ source: string;

} | {
type: "interface" | "display" | "layout" | "module" | "panel";
type: "interface" | "display" | "layout" | "module" | "panel" | "theme";
name: string;

@@ -1481,3 +1481,2 @@ source: string;

type SchemaFields = 'type' | 'local';
/**

@@ -1489,3 +1488,3 @@ * The API output structure used when engaging with the /extensions endpoints

bundle: string | null;
schema: Pick<Extension, SchemaFields> | null;
schema: Partial<Extension> | null;
meta: Omit<ExtensionSettings, 'name'>;

@@ -1620,3 +1619,2 @@ }

icon: string;
color?: string;
routes: RouteRecordRaw[];

@@ -1623,0 +1621,0 @@ hidden?: boolean;

@@ -17,3 +17,3 @@ // src/node/utils/ensure-extension-dirs.ts

// src/shared/constants/extension-types.ts
var APP_EXTENSION_TYPES = ["interface", "display", "layout", "module", "panel"];
var APP_EXTENSION_TYPES = ["interface", "display", "layout", "module", "panel", "theme"];
var API_EXTENSION_TYPES = ["hook", "endpoint"];

@@ -20,0 +20,0 @@ var HYBRID_EXTENSION_TYPES = ["operation"];

{
"name": "@directus/extensions",
"version": "0.1.1",
"version": "0.2.0",
"description": "Utilities and types for Directus extensions",

@@ -31,3 +31,3 @@ "homepage": "https://directus.io",

"zod": "3.22.4",
"@directus/utils": "11.0.1"
"@directus/utils": "11.0.2"
},

@@ -49,5 +49,5 @@ "devDependencies": {

"vue-router": "4.2.0",
"@directus/tsconfig": "1.0.1",
"@directus/constants": "11.0.1",
"@directus/tsconfig": "1.0.1",
"@directus/types": "11.0.1"
"@directus/types": "11.0.2"
},

@@ -54,0 +54,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc