@kontainer/strapi-plugin 0.1.0 → 0.1.2

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.
@@ -1,3 +1,3 @@
1
- import * as React from "react";
1
+ import * as React from 'react';
2
2
  declare const _default: React.ComponentType;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { StrapiApp } from '@strapi/strapi/admin';
2
- declare const plugin: StrapiApp["appPlugins"][string];
2
+ declare const plugin: StrapiApp['appPlugins'][string];
3
3
  export default plugin;
@@ -1,3 +1,3 @@
1
- import * as React from "react";
1
+ import * as React from 'react';
2
2
  declare const Settings: () => React.JSX.Element;
3
3
  export default Settings;
@@ -266,9 +266,7 @@ const service = ({ strapi }) => ({
266
266
  return this.componentHasKontainerField(attr.component, seen);
267
267
  }
268
268
  if (attr.type === "dynamiczone") {
269
- return attr.components.some(
270
- (c) => this.componentHasKontainerField(c, seen)
271
- );
269
+ return attr.components.some((c) => this.componentHasKontainerField(c, seen));
272
270
  }
273
271
  return false;
274
272
  });
@@ -290,9 +288,7 @@ const service = ({ strapi }) => ({
290
288
  );
291
289
  if (withField.length) {
292
290
  populate[name] = {
293
- on: Object.fromEntries(
294
- withField.map((c) => [c, this.populateForComponent(c)])
295
- )
291
+ on: Object.fromEntries(withField.map((c) => [c, this.populateForComponent(c)]))
296
292
  };
297
293
  }
298
294
  }
@@ -264,9 +264,7 @@ const service = ({ strapi }) => ({
264
264
  return this.componentHasKontainerField(attr.component, seen);
265
265
  }
266
266
  if (attr.type === "dynamiczone") {
267
- return attr.components.some(
268
- (c) => this.componentHasKontainerField(c, seen)
269
- );
267
+ return attr.components.some((c) => this.componentHasKontainerField(c, seen));
270
268
  }
271
269
  return false;
272
270
  });
@@ -288,9 +286,7 @@ const service = ({ strapi }) => ({
288
286
  );
289
287
  if (withField.length) {
290
288
  populate[name] = {
291
- on: Object.fromEntries(
292
- withField.map((c) => [c, this.populateForComponent(c)])
293
- )
289
+ on: Object.fromEntries(withField.map((c) => [c, this.populateForComponent(c)]))
294
290
  };
295
291
  }
296
292
  }
@@ -28,7 +28,7 @@ declare const _default: {
28
28
  };
29
29
  };
30
30
  routes: {
31
- "content-api": () => {
31
+ 'content-api': () => {
32
32
  type: string;
33
33
  routes: {
34
34
  method: string;
@@ -1,5 +1,5 @@
1
1
  declare const routes: {
2
- "content-api": () => {
2
+ 'content-api': () => {
3
3
  type: string;
4
4
  routes: {
5
5
  method: string;
@@ -5,7 +5,7 @@ export interface UsageEntry {
5
5
  documentId: string;
6
6
  id: number;
7
7
  locale: string | null;
8
- status: "draft" | "published";
8
+ status: 'draft' | 'published';
9
9
  }
10
10
  type Attributes = Record<string, Record<string, unknown>>;
11
11
  declare const service: ({ strapi }: {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.1.2",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "strapi-plugin",
@@ -40,7 +40,13 @@
40
40
  "watch:link": "strapi-plugin watch:link",
41
41
  "verify": "strapi-plugin verify",
42
42
  "test:ts:front": "tsc -p admin/tsconfig.json --noEmit",
43
- "test:ts:back": "tsc -p server/tsconfig.json --noEmit"
43
+ "test:ts:back": "tsc -p server/tsconfig.json --noEmit",
44
+ "lint": "prettier --check . && npm run test:ts:front && npm run test:ts:back",
45
+ "preversion": "npm run lint && npm run build && npm run verify",
46
+ "postversion": "git push --follow-tags",
47
+ "release:patch": "npm version patch",
48
+ "release:minor": "npm version minor",
49
+ "release:major": "npm version major"
44
50
  },
45
51
  "dependencies": {},
46
52
  "devDependencies": {
@@ -74,16 +80,19 @@
74
80
  "kind": "plugin",
75
81
  "name": "kontainer",
76
82
  "displayName": "Kontainer DAM",
77
- "description": "Pick assets from Kontainer and store CDN references \u2014 Kontainer stays the single source of truth."
83
+ "description": "Pick assets from Kontainer and store CDN references Kontainer stays the single source of truth."
78
84
  },
79
85
  "name": "@kontainer/strapi-plugin",
80
- "description": "Kontainer DAM integration for Strapi 5 \u2014 pick assets from Kontainer, store CDN references only, track file usage.",
86
+ "description": "Kontainer DAM integration for Strapi 5 pick assets from Kontainer, store CDN references only, track file usage.",
81
87
  "license": "MIT",
82
88
  "author": "Kontainer <support@kontainer.com> (https://kontainer.com)",
83
89
  "homepage": "https://kontainer.com/integrations",
84
90
  "repository": {
85
91
  "type": "git",
86
- "url": "ssh://git@git.konform.com:7999/konform/kontainer-plugin-strapi.git"
92
+ "url": "git+https://github.com/Kontainer-Dam-and-Pim/kontainer-strapi-plugin.git"
93
+ },
94
+ "bugs": {
95
+ "url": "https://github.com/Kontainer-Dam-and-Pim/kontainer-strapi-plugin/issues"
87
96
  },
88
97
  "engines": {
89
98
  "node": ">=18.0.0"