@anywayseo/gatsby-plugin 2.2.1 → 2.4.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@anywayseo/gatsby-plugin",
3
3
  "description": "Shared config for Anywayseo sites",
4
- "version": "2.2.1",
4
+ "version": "2.4.0",
5
5
  "author": "zerg41",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
@@ -1 +1 @@
1
- export declare const components = "\n # === COMPONENT DEFINITIONS ===\n union ContentComponent =\n STRAPI__COMPONENT_CONTENT_FAQ\n | STRAPI__COMPONENT_CONTENT_FEATURES\n | STRAPI__COMPONENT_CONTENT_PROS_CONS\n | STRAPI__COMPONENT_CONTENT_GAME_DEMO\n | STRAPI__COMPONENT_CONTENT_GAME_INFO\n | STRAPI__COMPONENT_CONTENT_HOW_TO\n | STRAPI__COMPONENT_CONTENT_TIP\n | STRAPI__COMPONENT_CONTENT_RICH_TEXT\n | STRAPI__COMPONENT_CONTENT_MEDIA\n | STRAPI__COMPONENT_CONTENT_LIST\n | STRAPI__COMPONENT_CONTENT_TABLE\n\n\n # === FAQ ===\n type STRAPI__COMPONENT_CONTENT_FAQ @dontInfer {\n items: [FaqItem!]\n }\n\n type FaqItem {\n question: String\n answer: String\n }\n\n\n # === FEATURES ===\n type STRAPI__COMPONENT_CONTENT_FEATURES @dontInfer {\n items: [ListItem!]\n }\n\n\n # === PROS_CONS ===\n type STRAPI__COMPONENT_CONTENT_PROS_CONS @dontInfer {\n pros: [ListItem!]\n cons: [ListItem!]\n }\n\n type ListItem {\n title: String\n description: String\n }\n\n\n # === GAME_DEMO ===\n type STRAPI__COMPONENT_CONTENT_GAME_DEMO @dontInfer {\n name: String\n src: String\n href: String\n previewImage: Image\n }\n\n\n # === GAME_INFO ===\n type STRAPI__COMPONENT_CONTENT_GAME_INFO @dontInfer {\n general: GameInfoGeneral\n features: GameInfoFeatures\n }\n\n type GameInfoGeneral @dontInfer {\n NAME: String\n DEVELOPER: String\n RELEASE_DATE: Date @dateformat\n THEME: String\n TYPE: String\n VOLATILITY: String\n RTP: String\n PAY_LINES: String\n ROWS_WITH_PINS: String\n REELS_NUMBER: String\n MIN_BET: String\n MAX_BET: String\n MAX_WIN: String\n COMPATIBILITY: String\n }\n\n type GameInfoFeatures @dontInfer {\n HAS_DEMO: Boolean\n HAS_AUTOPLAY: Boolean\n HAS_FREE_SPINS: Boolean\n HAS_FAST_SPIN: Boolean\n HAS_BONUS_PURCHASE: Boolean\n HAS_COLLECTION_SYMBOLS: Boolean\n HAS_PROGRESSIVE_JACKPOT: Boolean\n BONUS_FEATURES: String\n FUNCTIONS: String\n LANGUAGES: String\n }\n\n\n # === HOW_TO ===\n type STRAPI__COMPONENT_CONTENT_HOW_TO @dontInfer {\n steps: [HowToStep!]\n }\n\n type HowToStep {\n title: String!\n description: String\n thumbnail: Image\n }\n\n\n # === TIP ===\n type STRAPI__COMPONENT_CONTENT_TIP @dontInfer {\n tip: String\n author: Author\n }\n\n\n # === RICH_TEXT ===\n type STRAPI__COMPONENT_CONTENT_RICH_TEXT @dontInfer {\n content: RichTextContent\n }\n\n type RichTextContent {\n data: RichTextData\n }\n\n type RichTextData {\n content: String\n }\n\n\n # === MEDIA ===\n type STRAPI__COMPONENT_CONTENT_MEDIA @dontInfer {\n file: Image\n }\n\n # === LIST ===\n type STRAPI__COMPONENT_CONTENT_LIST @dontInfer {\n bullet: String\n content: JsonValue\n }\n\n # === TABLE ===\n type STRAPI__COMPONENT_CONTENT_TABLE @dontInfer {\n columnNumber: Int\n striped: Boolean\n bordered: Boolean\n scrollable: Boolean\n caption: String\n content: JsonValue\n }\n\n type JsonValue {\n strapi_json_value: JSON\n }\n ";
1
+ export declare const components = "\n # === COMPONENT DEFINITIONS ===\n union ContentComponent =\n STRAPI__COMPONENT_CONTENT_FAQ\n | STRAPI__COMPONENT_CONTENT_FEATURES\n | STRAPI__COMPONENT_CONTENT_PROS_CONS\n | STRAPI__COMPONENT_CONTENT_GAME_DEMO\n | STRAPI__COMPONENT_CONTENT_GAME_INFO\n | STRAPI__COMPONENT_CONTENT_HOW_TO\n | STRAPI__COMPONENT_CONTENT_TIP\n | STRAPI__COMPONENT_CONTENT_RICH_TEXT\n | STRAPI__COMPONENT_CONTENT_MEDIA\n | STRAPI__COMPONENT_CONTENT_LIST\n | STRAPI__COMPONENT_CONTENT_TABLE\n\n\n # === FAQ ===\n type STRAPI__COMPONENT_CONTENT_FAQ @dontInfer {\n items: [FaqItem!]\n }\n\n type FaqItem {\n question: String\n answer: String\n }\n\n\n # === FEATURES ===\n type STRAPI__COMPONENT_CONTENT_FEATURES @dontInfer {\n items: [ListItem!]\n }\n\n\n # === PROS_CONS ===\n type STRAPI__COMPONENT_CONTENT_PROS_CONS @dontInfer {\n pros: [ListItem!]\n cons: [ListItem!]\n }\n\n type ListItem {\n title: String\n description: String\n }\n\n\n # === GAME_DEMO ===\n type STRAPI__COMPONENT_CONTENT_GAME_DEMO @dontInfer {\n name: String\n src: String\n href: String\n previewImage: Image\n }\n\n\n # === GAME_INFO ===\n type STRAPI__COMPONENT_CONTENT_GAME_INFO @dontInfer {\n general: GameInfoGeneral\n features: GameInfoFeatures\n currency: CurrencyList\n }\n\n type GameInfoGeneral @dontInfer {\n NAME: String\n DEVELOPER: String\n RELEASE_DATE: Date @dateformat\n THEME: String\n TYPE: String\n VOLATILITY: String\n RTP: String\n PAY_LINES: String\n ROWS_WITH_PINS: String\n REELS_NUMBER: String\n MIN_BET: String\n MAX_BET: String\n MAX_WIN: String\n COMPATIBILITY: String\n }\n\n type GameInfoFeatures @dontInfer {\n HAS_DEMO: Boolean\n HAS_AUTOPLAY: Boolean\n HAS_FREE_SPINS: Boolean\n HAS_FAST_SPIN: Boolean\n HAS_BONUS_PURCHASE: Boolean\n HAS_COLLECTION_SYMBOLS: Boolean\n HAS_PROGRESSIVE_JACKPOT: Boolean\n BONUS_FEATURES: String\n FUNCTIONS: String\n LANGUAGES: String\n }\n\n type Currency {\n code: String!\n }\n\n type CurrencyList @dontInfer {\n items: [Currency!]\n }\n\n # === HOW_TO ===\n type STRAPI__COMPONENT_CONTENT_HOW_TO @dontInfer {\n steps: [HowToStep!]\n }\n\n type HowToStep {\n title: String!\n description: String\n thumbnail: Image\n }\n\n\n # === TIP ===\n type STRAPI__COMPONENT_CONTENT_TIP @dontInfer {\n tip: String\n author: Author\n }\n\n\n # === RICH_TEXT ===\n type STRAPI__COMPONENT_CONTENT_RICH_TEXT @dontInfer {\n content: RichTextContent\n }\n\n type RichTextContent {\n data: RichTextData\n }\n\n type RichTextData {\n content: String\n }\n\n\n # === MEDIA ===\n type STRAPI__COMPONENT_CONTENT_MEDIA @dontInfer {\n file: Image\n }\n\n # === LIST ===\n type STRAPI__COMPONENT_CONTENT_LIST @dontInfer {\n bullet: String\n content: JsonValue\n }\n\n # === TABLE ===\n type STRAPI__COMPONENT_CONTENT_TABLE @dontInfer {\n columnNumber: Int\n striped: Boolean\n bordered: Boolean\n scrollable: Boolean\n caption: String\n content: JsonValue\n }\n\n type JsonValue {\n strapi_json_value: JSON\n }\n ";
@@ -59,6 +59,7 @@ exports.components = `
59
59
  type STRAPI__COMPONENT_CONTENT_GAME_INFO @dontInfer {
60
60
  general: GameInfoGeneral
61
61
  features: GameInfoFeatures
62
+ currency: CurrencyList
62
63
  }
63
64
 
64
65
  type GameInfoGeneral @dontInfer {
@@ -91,6 +92,13 @@ exports.components = `
91
92
  LANGUAGES: String
92
93
  }
93
94
 
95
+ type Currency {
96
+ code: String!
97
+ }
98
+
99
+ type CurrencyList @dontInfer {
100
+ items: [Currency!]
101
+ }
94
102
 
95
103
  # === HOW_TO ===
96
104
  type STRAPI__COMPONENT_CONTENT_HOW_TO @dontInfer {
@@ -1 +1 @@
1
- export declare const shared = "\n # === SHARED DEFINITIONS ===\n type Image {\n localFile: File @link(from: \"localFile\")\n alternativeText: String\n }\n\n type Seo {\n metaTitle: String\n metaDescription: String\n }\n\n type Author {\n name: String\n role: String\n bio: String\n avatar: Image\n }\n ";
1
+ export declare const shared = "\n # === SHARED DEFINITIONS ===\n type Image {\n localFile: File @link(from: \"localFile\")\n alternativeText: String\n }\n\n type Seo {\n metaTitle: String\n metaDescription: String\n }\n\n type SocialNetwork {\n kind: String!\n url: String!\n }\n\n type SocialNetworkList {\n items: [SocialNetwork!]\n }\n\n type Author {\n name: String!\n role: String!\n bio: String!\n avatar: Image!\n socialNetworks: SocialNetworkList \n }\n ";
@@ -13,10 +13,20 @@ exports.shared = `
13
13
  metaDescription: String
14
14
  }
15
15
 
16
+ type SocialNetwork {
17
+ kind: String!
18
+ url: String!
19
+ }
20
+
21
+ type SocialNetworkList {
22
+ items: [SocialNetwork!]
23
+ }
24
+
16
25
  type Author {
17
- name: String
18
- role: String
19
- bio: String
20
- avatar: Image
26
+ name: String!
27
+ role: String!
28
+ bio: String!
29
+ avatar: Image!
30
+ socialNetworks: SocialNetworkList
21
31
  }
22
32
  `;
@@ -1 +1 @@
1
- export declare const site = "\n # === STRAPI SITE DEFINITIONS ===\n type StrapiSite implements Node {\n id: ID!\n name: String\n locale: String\n currency: String\n seo: Seo\n logo: Image\n }\n ";
1
+ export declare const site = "\n # === STRAPI SITE DEFINITIONS ===\n type StrapiSite implements Node {\n id: ID!\n name: String\n locale: String!\n currency: String!\n seo: Seo!\n logo: Image!\n favicon: Image\n socialNetworks: SocialNetworkList \n }\n ";
@@ -6,9 +6,11 @@ exports.site = `
6
6
  type StrapiSite implements Node {
7
7
  id: ID!
8
8
  name: String
9
- locale: String
10
- currency: String
11
- seo: Seo
12
- logo: Image
9
+ locale: String!
10
+ currency: String!
11
+ seo: Seo!
12
+ logo: Image!
13
+ favicon: Image
14
+ socialNetworks: SocialNetworkList
13
15
  }
14
16
  `;
@@ -27,7 +27,19 @@ function sourceStrapiContentNode(args, strapiClient, config) {
27
27
  const singleTypes = [
28
28
  {
29
29
  singularName: 'site',
30
- queryParams: { populate: '*' },
30
+ queryParams: {
31
+ populate: {
32
+ logo: {
33
+ populate: '*',
34
+ },
35
+ seo: {
36
+ populate: '*',
37
+ },
38
+ socialNetworks: {
39
+ populate: '*',
40
+ },
41
+ },
42
+ },
31
43
  },
32
44
  ];
33
45
  const collectionTypes = [
@@ -50,7 +62,13 @@ function sourceStrapiContentNode(args, strapiClient, config) {
50
62
  populate: '*',
51
63
  },
52
64
  'content.game-info': {
53
- populate: '*',
65
+ populate: {
66
+ general: '*',
67
+ features: '*',
68
+ currency: {
69
+ populate: '*',
70
+ },
71
+ },
54
72
  },
55
73
  'content.how-to': {
56
74
  populate: {
@@ -80,7 +98,14 @@ function sourceStrapiContentNode(args, strapiClient, config) {
80
98
  },
81
99
  },
82
100
  author: {
83
- populate: '*',
101
+ populate: {
102
+ avatar: {
103
+ populate: '*',
104
+ },
105
+ socialNetworks: {
106
+ populate: '*',
107
+ },
108
+ },
84
109
  },
85
110
  },
86
111
  locale: '*',