@commonpub/layer 0.21.7 → 0.21.8

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.
@@ -25,6 +25,7 @@ export interface FeatureFlags {
25
25
  admin: boolean;
26
26
  emailNotifications: boolean;
27
27
  publicApi: boolean;
28
+ contentImport: boolean;
28
29
  /**
29
30
  * Cross-instance delegated authorization. All sub-flags default false.
30
31
  * Mirrors `@commonpub/config`'s `IdentityFeatures`. Phase 1b+ — see
@@ -44,7 +45,7 @@ export const DEFAULT_FLAGS: FeatureFlags = {
44
45
  content: true, social: true, hubs: true, docs: true, video: true,
45
46
  contests: false, events: false, learning: true, explainers: true,
46
47
  editorial: true, federation: false, admin: false, emailNotifications: false,
47
- publicApi: false,
48
+ publicApi: false, contentImport: true,
48
49
  identity: {
49
50
  linkRemoteAccounts: false,
50
51
  signInWithRemote: false,
@@ -118,6 +119,7 @@ export function useFeatures() {
118
119
  admin: computed(() => flags.value.admin),
119
120
  emailNotifications: computed(() => flags.value.emailNotifications),
120
121
  publicApi: computed(() => flags.value.publicApi),
122
+ contentImport: computed(() => flags.value.contentImport),
121
123
  identity: computed(() => flags.value.identity),
122
124
  };
123
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonpub/layer",
3
- "version": "0.21.7",
3
+ "version": "0.21.8",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [
@@ -50,16 +50,16 @@
50
50
  "vue": "^3.4.0",
51
51
  "vue-router": "^4.3.0",
52
52
  "zod": "^4.3.6",
53
+ "@commonpub/auth": "0.6.0",
53
54
  "@commonpub/docs": "0.6.3",
54
- "@commonpub/editor": "0.7.9",
55
- "@commonpub/explainer": "0.7.13",
56
- "@commonpub/protocol": "0.9.10",
57
- "@commonpub/config": "0.12.0",
58
55
  "@commonpub/learning": "0.5.2",
59
- "@commonpub/server": "2.53.1",
60
- "@commonpub/ui": "0.8.5",
61
56
  "@commonpub/schema": "0.16.0",
62
- "@commonpub/auth": "0.6.0"
57
+ "@commonpub/editor": "0.7.9",
58
+ "@commonpub/protocol": "0.10.0",
59
+ "@commonpub/ui": "0.8.5",
60
+ "@commonpub/explainer": "0.7.13",
61
+ "@commonpub/server": "2.54.0",
62
+ "@commonpub/config": "0.13.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@testing-library/jest-dom": "^6.9.1",
@@ -7,6 +7,7 @@ const importBodySchema = z.object({
7
7
  });
8
8
 
9
9
  export default defineEventHandler(async (event): Promise<ImportResult> => {
10
+ requireFeature('contentImport');
10
11
  requireAuth(event);
11
12
 
12
13
  const { url } = await parseBody(event, importBodySchema);