@sanoma-ai/connector-ghost 0.4.0 → 0.4.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.
package/dist/connector.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineConnector } from "@sanoma-ai/workflows";
1
+ import { defineConnector, vendorInfo } from "@sanoma-ai/workflows";
2
2
  import { z } from "zod";
3
3
  /** A post, as the operations return it. */
4
4
  export const Post = z.object({
@@ -9,12 +9,6 @@ export const Post = z.object({
9
9
  status: z.enum(["draft", "scheduled", "published", "sent"]),
10
10
  publishedAt: z.string().nullable(),
11
11
  });
12
- /**
13
- * Ghost's glyph, from simple-icons (https://simpleicons.org/?q=ghost, CC0; drawn from Ghost's
14
- * own admin icon), in one colour: Ghost's near-black, white on dark backgrounds. Ghost publishes
15
- * no SVG of its own.
16
- */
17
- const glyph = (fill) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="${fill}" d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm.256 2.313c2.47.005 5.116 2.008 5.898 2.962l.244.3c1.64 1.994 3.569 4.34 3.569 6.966 0 3.719-2.98 5.808-6.158 7.508-1.433.766-2.98 1.508-4.748 1.508-4.543 0-8.366-3.569-8.366-8.112 0-.706.17-1.425.342-2.15.122-.515.244-1.033.307-1.549.548-4.539 2.967-6.795 8.422-7.408a4.29 4.29 0 01.49-.026Z"/></svg>`;
18
12
  /** Ghost Admin API: https://ghost.org/docs/admin-api/ */
19
13
  export const ghostOps = defineConnector("ghost", {
20
14
  post: {
@@ -34,10 +28,5 @@ export const ghostOps = defineConnector("ghost", {
34
28
  output: Post,
35
29
  },
36
30
  },
37
- }, {
38
- title: "Ghost",
39
- logo: { svg: glyph("#15171A"), dark: glyph("white") },
40
- package: "@sanoma-ai/connector-ghost",
41
- homepage: "https://github.com/Sanoma-AI/sanoma/tree/main/connectors/ghost#readme",
42
- });
31
+ }, vendorInfo(import.meta.url));
43
32
  //# sourceMappingURL=connector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2CAA2C;AAC3C,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,+DAA+D;IAC/D,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;IAC3D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE,CAC7B,2EAA2E,IAAI,4XAA4X,CAAC;AAE9c,yDAAyD;AACzD,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CACrC,OAAO,EACP;IACE,IAAI,EAAE;QACJ,MAAM,EAAE;YACN,MAAM,EAAE,OAAO;YACf,WAAW,EAAE,oDAAoD;YACjE,OAAO,EAAE,EAAE,KAAK,EAAE,8BAA8B,EAAE,MAAM,EAAE,kCAAkC,EAAE;YAC9F,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5G,MAAM,EAAE,IAA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AO,EAAE,EAAE,KAAK,EAAE,8BAA8B,EAAE,MAAM,EAAE,kCAAkC,EAAE;YAC9F,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5G,MAAM,EAAE,IAAI;SACb;QACD,OAAO,EAAE;YACP,MAAM,EAAE,SAAS;YACjB,WAAW,EAAE,wDAAwD;YACrE,OAAO,EAAE,EAAE,MAAM,EAAE,wBAAwB,EAAE;YAC7C,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;YACnC,MAAM,EAAE,IAAI;SACb;KACF;CACF,EACD,UAAU,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAC5B,CAAC"}
package/logo-dark.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm.256 2.313c2.47.005 5.116 2.008 5.898 2.962l.244.3c1.64 1.994 3.569 4.34 3.569 6.966 0 3.719-2.98 5.808-6.158 7.508-1.433.766-2.98 1.508-4.748 1.508-4.543 0-8.366-3.569-8.366-8.112 0-.706.17-1.425.342-2.15.122-.515.244-1.033.307-1.549.548-4.539 2.967-6.795 8.422-7.408a4.29 4.29 0 01.49-.026Z"/></svg>
package/logo.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#15171A" d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm.256 2.313c2.47.005 5.116 2.008 5.898 2.962l.244.3c1.64 1.994 3.569 4.34 3.569 6.966 0 3.719-2.98 5.808-6.158 7.508-1.433.766-2.98 1.508-4.748 1.508-4.543 0-8.366-3.569-8.366-8.112 0-.706.17-1.425.342-2.15.122-.515.244-1.033.307-1.549.548-4.539 2.967-6.795 8.422-7.408a4.29 4.29 0 01.49-.026Z"/></svg>
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@sanoma-ai/connector-ghost",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Ghost Admin API operations for Sanoma workflows",
5
5
  "keywords": [
6
6
  "blog",
7
7
  "connector",
8
8
  "ghost",
9
- "sanoma"
9
+ "sanoma",
10
+ "sanoma-connector"
10
11
  ],
11
12
  "homepage": "https://github.com/Sanoma-AI/sanoma/tree/main/connectors/ghost#readme",
12
13
  "bugs": "https://github.com/Sanoma-AI/sanoma/issues",
@@ -19,6 +20,8 @@
19
20
  "files": [
20
21
  "dist",
21
22
  "features",
23
+ "logo.svg",
24
+ "logo-dark.svg",
22
25
  "README.md",
23
26
  "LICENSE"
24
27
  ],
@@ -47,17 +50,22 @@
47
50
  "jose": "^6.2.12"
48
51
  },
49
52
  "devDependencies": {
50
- "@sanoma-ai/workflows": "0.4.0",
53
+ "@sanoma-ai/workflows": "0.4.2",
51
54
  "msw": "^3.0.2",
52
55
  "zod": "^4.6.5"
53
56
  },
54
57
  "peerDependencies": {
55
- "@sanoma-ai/workflows": "^0.4.0",
58
+ "@sanoma-ai/workflows": "^0.4.2",
56
59
  "zod": "^4"
57
60
  },
58
61
  "engines": {
59
62
  "node": ">=24"
60
63
  },
64
+ "sanoma": {
65
+ "title": "Ghost",
66
+ "logo": "logo.svg",
67
+ "logoDark": "logo-dark.svg"
68
+ },
61
69
  "scripts": {
62
70
  "build": "tsc -p tsconfig.build.json",
63
71
  "clean": "rm -rf dist",