igniteui-astro-components 0.0.27 → 0.0.28

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.
Files changed (93) hide show
  1. package/README.md +82 -74
  2. package/package.json +15 -2
  3. package/src/components/CopyCode/CopyCode.astro +21 -7
  4. package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +33 -21
  5. package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +44 -43
  6. package/src/components/DocsBreadcrumb/README.md +10 -14
  7. package/src/components/DocsSidebar/DocsSidebar.astro +47 -45
  8. package/src/components/DocsSidebar/DocsSidebar.scss +120 -122
  9. package/src/components/DocsSidebar/README.md +25 -21
  10. package/src/components/DocsSidebar/SidebarFilterInput.astro +24 -29
  11. package/src/components/DocsSidebar/SidebarFilterInput.scss +90 -89
  12. package/src/components/DocsSidebar/SidebarLabel.astro +35 -26
  13. package/src/components/DocsSidebar/sidebar-filter.ts +93 -56
  14. package/src/components/DocsSubHeader/DocsSubHeader.astro +256 -195
  15. package/src/components/DocsSubHeader/DocsSubHeader.scss +181 -178
  16. package/src/components/DocsSubHeader/README.md +18 -16
  17. package/src/components/DocsToc/DocsToc.astro +301 -280
  18. package/src/components/DocsToc/DocsToc.scss +20 -21
  19. package/src/components/DocsToc/README.md +11 -9
  20. package/src/components/DocsToc/toTreeNodes.ts +3 -8
  21. package/src/components/DocsTree/DocsTree.astro +32 -20
  22. package/src/components/DocsTree/DocsTreeItem.astro +35 -30
  23. package/src/components/DocsTree/README.md +16 -15
  24. package/src/components/DocsTree/docs-tree.scss +267 -268
  25. package/src/components/GlobalFooter/GlobalFooter.astro +10 -10
  26. package/src/components/GlobalFooter/README.md +3 -2
  27. package/src/components/GlobalNavBar/GlobalNavBar.astro +4 -2
  28. package/src/components/GlobalNavBar/GlobalNavBar.module.scss +222 -222
  29. package/src/components/GlobalNavBar/README.md +3 -2
  30. package/src/components/LicenseIndicator/LicenseIndicator.astro +7 -5
  31. package/src/components/LicenseIndicator/LicenseIndicator.scss +3 -3
  32. package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +16 -17
  33. package/src/components/MobileSidebarToggle/README.md +3 -2
  34. package/src/components/MobileTocToggle/MobileTocToggle.astro +75 -61
  35. package/src/components/MobileTocToggle/MobileTocToggle.scss +65 -59
  36. package/src/components/Search/README.md +1 -0
  37. package/src/components/Search/Search.astro +137 -109
  38. package/src/components/Search/Search.scss +20 -20
  39. package/src/components/SearchAdvanced/README.md +21 -15
  40. package/src/components/SearchAdvanced/SearchAdvanced.astro +205 -133
  41. package/src/components/SearchAdvanced/SearchAdvanced.scss +152 -153
  42. package/src/components/mdx/ApiLink/ApiLink.astro +133 -113
  43. package/src/components/mdx/ApiLink/ApiLink.scss +9 -9
  44. package/src/components/mdx/ApiLink/README.md +26 -22
  45. package/src/components/mdx/ApiLink/api-link-index.ts +196 -173
  46. package/src/components/mdx/ApiRef/ApiRef.astro +54 -51
  47. package/src/components/mdx/ApiRef/README.md +20 -15
  48. package/src/components/mdx/Badge/Badge.astro +14 -14
  49. package/src/components/mdx/Badge/Badge.scss +61 -56
  50. package/src/components/mdx/Badge/README.md +24 -19
  51. package/src/components/mdx/DocsAside/DocsAside.astro +30 -37
  52. package/src/components/mdx/DocsAside/DocsAside.scss +82 -82
  53. package/src/components/mdx/DocsAside/README.md +22 -22
  54. package/src/components/mdx/Faq/Faq.astro +86 -0
  55. package/src/components/mdx/Faq/Faq.scss +105 -0
  56. package/src/components/mdx/Faq/FaqItem.astro +117 -0
  57. package/src/components/mdx/Faq/README.md +223 -0
  58. package/src/components/mdx/Faq/types.ts +34 -0
  59. package/src/components/mdx/PlatformBlock/PlatformBlock.astro +3 -2
  60. package/src/components/mdx/PlatformBlock/README.md +6 -8
  61. package/src/components/mdx/Sample/README.md +21 -16
  62. package/src/components/mdx/Sample/Sample.astro +97 -74
  63. package/src/components/mdx/Sample/Sample.scss +132 -132
  64. package/src/content-helper.ts +71 -72
  65. package/src/content.config.ts +1 -6
  66. package/src/integration.ts +566 -512
  67. package/src/layouts/DocsLayout/DocsLayout.astro +228 -182
  68. package/src/layouts/DocsLayout/DocsLayout.scss +261 -261
  69. package/src/layouts/DocsLayout/README.md +24 -35
  70. package/src/lib/nav-helpers.ts +88 -82
  71. package/src/lib/types.ts +76 -76
  72. package/src/llms.ts +205 -166
  73. package/src/platform.ts +312 -162
  74. package/src/plugins/rehype-heading-anchors.ts +45 -45
  75. package/src/plugins/rehype-pagefind-ignore.ts +19 -19
  76. package/src/plugins/rehype-table-wrapper.ts +30 -30
  77. package/src/plugins/remark-docfx.ts +12 -0
  78. package/src/plugins/remark-env-vars.ts +12 -4
  79. package/src/plugins/remark-md-links.ts +10 -4
  80. package/src/scripts/icon-manifest.ts +13 -5
  81. package/src/scripts/sample-widget.ts +557 -501
  82. package/src/sidebar.ts +103 -97
  83. package/src/styles/global/_code-blocks.scss +43 -44
  84. package/src/styles/global/_component-themes.scss +151 -153
  85. package/src/styles/global/_icon-gallery.scss +81 -81
  86. package/src/styles/global/_index.scss +0 -1
  87. package/src/styles/global/_markdown.scss +816 -787
  88. package/src/styles/global/_palette.scss +456 -110
  89. package/src/styles/global/_search-shared.scss +402 -398
  90. package/src/styles/global/_type-scale.scss +127 -127
  91. package/src/styles/global/_variables.scss +138 -111
  92. package/src/styles/theme.scss +41 -41
  93. package/src/virtual-modules.d.ts +11 -2
package/src/platform.ts CHANGED
@@ -15,23 +15,17 @@
15
15
 
16
16
  /** HTML tag names accepted by the `head` array. */
17
17
  export type HeadTag =
18
- | 'title' | 'link' | 'style' | 'base'
19
- | 'meta' | 'script' | 'noscript' | 'template';
18
+ 'title' | 'link' | 'style' | 'base' | 'meta' | 'script' | 'noscript' | 'template';
20
19
 
21
20
  /** Single entry in the `head` array — tag, attrs, optional content. */
22
21
  export type HeadEntry = {
23
- tag: HeadTag;
24
- attrs?: Record<string, string | boolean | undefined>;
25
- content?: string;
22
+ tag: HeadTag;
23
+ attrs?: Record<string, string | boolean | undefined>;
24
+ content?: string;
26
25
  };
27
26
 
28
27
  export type PlatformKey =
29
- | 'angular'
30
- | 'react'
31
- | 'blazor'
32
- | 'web-components'
33
- | 'slingshot'
34
- | 'appbuilder';
28
+ 'angular' | 'react' | 'blazor' | 'web-components' | 'slingshot' | 'appbuilder';
35
29
 
36
30
  /** Locale code for nav/API requests and UI string lookups. */
37
31
  export type NavLang = 'en' | 'jp' | 'kr';
@@ -44,90 +38,178 @@ export type NavLang = 'en' | 'jp' | 'kr';
44
38
  export type NavTheme = PlatformKey | 'igniteui';
45
39
 
46
40
  export interface PlatformMeta {
47
- title: string; description: string;
48
- key: PlatformKey; devPort: number;
49
- base: string; label: string;
50
- lang: NavLang;
41
+ title: string;
42
+ description: string;
43
+ key: PlatformKey;
44
+ devPort: number;
45
+ base: string;
46
+ label: string;
47
+ lang: NavLang;
51
48
  }
52
49
 
53
50
  type NavType = 'infragistics' | 'appbuilder' | 'none';
54
51
 
55
52
  interface PlatformDef {
56
- navType: NavType;
57
- styles: HeadEntry[];
58
- scripts: HeadEntry[];
53
+ navType: NavType;
54
+ styles: HeadEntry[];
55
+ scripts: HeadEntry[];
59
56
  }
60
57
 
61
58
  export interface NavConfig {
62
- navType: NavType;
63
- navUrl: string | null;
59
+ navType: NavType;
60
+ navUrl: string | null;
64
61
  }
65
62
 
66
63
  // ---------------------------------------------------------------------------
67
64
  // Shared IG styles — used by: angular, react, blazor, web-components, slingshot
68
65
  // ---------------------------------------------------------------------------
69
66
  const IG_STYLES: HeadEntry[] = [
70
- // Bootstrap is wrapped in a CSS cascade layer so its global resets do not
71
- // bleed into the docs theme. The layer priority order is declared at
72
- // the top of custom.scss: @layer bootstrap
73
- // Note: @import layer() does not support the `integrity` SRI attribute.
74
- {
75
- tag: 'style',
76
- content: '@import url("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css") layer(bootstrap);',
67
+ // Bootstrap is wrapped in a CSS cascade layer so its global resets do not
68
+ // bleed into the docs theme. The layer priority order is declared at
69
+ // the top of custom.scss: @layer bootstrap
70
+ // Note: @import layer() does not support the `integrity` SRI attribute.
71
+ {
72
+ tag: 'style',
73
+ content:
74
+ '@import url("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css") layer(bootstrap);',
75
+ },
76
+ {
77
+ tag: 'link',
78
+ attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/assets/modern/css/layout.css' },
79
+ },
80
+ {
81
+ tag: 'link',
82
+ attrs: {
83
+ rel: 'stylesheet',
84
+ href: 'https://www.infragistics.com/assets/modern/css/animate-custom.css',
77
85
  },
78
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/assets/modern/css/layout.css' } },
79
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/assets/modern/css/animate-custom.css' } },
80
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/assets/modern/css/fontello.css' } },
81
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons' } },
82
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/css/navigation.css' } },
83
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/css/footer.css' } },
86
+ },
87
+ {
88
+ tag: 'link',
89
+ attrs: {
90
+ rel: 'stylesheet',
91
+ href: 'https://www.infragistics.com/assets/modern/css/fontello.css',
92
+ },
93
+ },
94
+ {
95
+ tag: 'link',
96
+ attrs: { rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons' },
97
+ },
98
+ {
99
+ tag: 'link',
100
+ attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/css/navigation.css' },
101
+ },
102
+ {
103
+ tag: 'link',
104
+ attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/css/footer.css' },
105
+ },
84
106
  ];
85
107
 
86
108
  // ---------------------------------------------------------------------------
87
109
  // Shared IG scripts — used by: angular, react, blazor, web-components, slingshot
88
110
  // ---------------------------------------------------------------------------
89
111
  const IG_SCRIPTS: HeadEntry[] = [
90
- {
91
- tag: 'script',
92
- attrs: {
93
- src: 'https://code.jquery.com/jquery-3.1.0.js',
94
- integrity: 'sha256-slogkvB1K3VOkzAI8QITxV3VzpOnkeNVsKvtkYLMjfk=',
95
- crossorigin: 'anonymous',
96
- },
112
+ {
113
+ tag: 'script',
114
+ attrs: {
115
+ src: 'https://code.jquery.com/jquery-3.1.0.js',
116
+ integrity: 'sha256-slogkvB1K3VOkzAI8QITxV3VzpOnkeNVsKvtkYLMjfk=',
117
+ crossorigin: 'anonymous',
97
118
  },
98
- { tag: 'script', attrs: { src: 'https://www.infragistics.com/assets/modern/scripts/plugins.nav.js' } },
99
- { tag: 'script', attrs: { src: 'https://www.infragistics.com/assets/modern/scripts/navigation.js' } },
119
+ },
120
+ {
121
+ tag: 'script',
122
+ attrs: { src: 'https://www.infragistics.com/assets/modern/scripts/plugins.nav.js' },
123
+ },
124
+ {
125
+ tag: 'script',
126
+ attrs: { src: 'https://www.infragistics.com/assets/modern/scripts/navigation.js' },
127
+ },
100
128
  ];
101
129
 
102
130
  // ---------------------------------------------------------------------------
103
131
  // AppBuilder styles — source: head.tmpl.partial {{#_isAppBuilder}} block
104
132
  // ---------------------------------------------------------------------------
105
133
  const APPBUILDER_STYLES: HeadEntry[] = [
106
- // Mega-menu plugin styles
107
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://staging.appbuilder.dev/wp-content/uploads/maxmegamenu/style.css?ver=631e5d', media: 'all' } },
108
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://staging.appbuilder.dev/wp-includes/css/dashicons.min.css', media: 'all' } },
109
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu-pro/icons/genericons/genericons/genericons.css', media: 'all' } },
110
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu-pro/icons/fontawesome6/css/all.min.css', media: 'all' } },
111
- // Bootstrap v4.4 partials — wrapped in a CSS cascade layer so they don't
112
- // override the docs theme. See custom.scss @layer declaration.
113
- {
114
- tag: 'style',
115
- content: [
116
- '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_reboot.css") layer(bootstrap);',
117
- '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_type.css") layer(bootstrap);',
118
- '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_grid.css") layer(bootstrap);',
119
- '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_buttons.css") layer(bootstrap);',
120
- '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_forms.css") layer(bootstrap);',
121
- '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_input-group.css") layer(bootstrap);',
122
- '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_custom-forms.css") layer(bootstrap);',
123
- '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_utilities.css") layer(bootstrap);',
124
- ].join('\n'),
134
+ // Mega-menu plugin styles
135
+ {
136
+ tag: 'link',
137
+ attrs: {
138
+ rel: 'stylesheet',
139
+ href: 'https://staging.appbuilder.dev/wp-content/uploads/maxmegamenu/style.css?ver=631e5d',
140
+ media: 'all',
141
+ },
142
+ },
143
+ {
144
+ tag: 'link',
145
+ attrs: {
146
+ rel: 'stylesheet',
147
+ href: 'https://staging.appbuilder.dev/wp-includes/css/dashicons.min.css',
148
+ media: 'all',
149
+ },
150
+ },
151
+ {
152
+ tag: 'link',
153
+ attrs: {
154
+ rel: 'stylesheet',
155
+ href: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu-pro/icons/genericons/genericons/genericons.css',
156
+ media: 'all',
157
+ },
158
+ },
159
+ {
160
+ tag: 'link',
161
+ attrs: {
162
+ rel: 'stylesheet',
163
+ href: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu-pro/icons/fontawesome6/css/all.min.css',
164
+ media: 'all',
165
+ },
166
+ },
167
+ // Bootstrap v4.4 partials — wrapped in a CSS cascade layer so they don't
168
+ // override the docs theme. See custom.scss @layer declaration.
169
+ {
170
+ tag: 'style',
171
+ content: [
172
+ '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_reboot.css") layer(bootstrap);',
173
+ '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_type.css") layer(bootstrap);',
174
+ '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_grid.css") layer(bootstrap);',
175
+ '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_buttons.css") layer(bootstrap);',
176
+ '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_forms.css") layer(bootstrap);',
177
+ '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_input-group.css") layer(bootstrap);',
178
+ '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_custom-forms.css") layer(bootstrap);',
179
+ '@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_utilities.css") layer(bootstrap);',
180
+ ].join('\n'),
181
+ },
182
+ {
183
+ tag: 'link',
184
+ attrs: {
185
+ rel: 'stylesheet',
186
+ href: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/css/ig-modal.css',
187
+ media: 'all',
188
+ },
189
+ },
190
+ {
191
+ tag: 'link',
192
+ attrs: {
193
+ rel: 'stylesheet',
194
+ href: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/css/styles.css',
195
+ media: 'all',
125
196
  },
126
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/css/ig-modal.css', media: 'all' } },
127
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/css/styles.css', media: 'all' } },
128
- // Fonts
129
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Figtree:300,400,700&display=swap' } },
130
- { tag: 'link', attrs: { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap' } },
197
+ },
198
+ // Fonts
199
+ {
200
+ tag: 'link',
201
+ attrs: {
202
+ rel: 'stylesheet',
203
+ href: 'https://fonts.googleapis.com/css?family=Figtree:300,400,700&display=swap',
204
+ },
205
+ },
206
+ {
207
+ tag: 'link',
208
+ attrs: {
209
+ rel: 'stylesheet',
210
+ href: 'https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap',
211
+ },
212
+ },
131
213
  ];
132
214
 
133
215
  // ---------------------------------------------------------------------------
@@ -136,22 +218,66 @@ const APPBUILDER_STYLES: HeadEntry[] = [
136
218
  // header HTML calls jQuery / maxmegamenu on load.
137
219
  // ---------------------------------------------------------------------------
138
220
  const APPBUILDER_SCRIPTS: HeadEntry[] = [
139
- // jQuery from staging (megamenu plugins may depend on this specific version)
140
- { tag: 'script', attrs: { src: 'https://staging.appbuilder.dev/wp-includes/js/jquery/jquery.min.js?ver=3.7.1' } },
141
- { tag: 'script', attrs: { src: 'https://staging.appbuilder.dev/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1' } },
142
- // Site JS
143
- { tag: 'script', attrs: { src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/plugins.js?ver=1' } },
144
- { tag: 'script', attrs: { src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/script.js?ver=1' } },
145
- // Mega-menu plugins
146
- { tag: 'script', attrs: { src: 'https://staging.appbuilder.dev/wp-includes/js/hoverIntent.min.js?ver=1.10.2' } },
147
- // Inline megamenu config (must precede the megamenu plugin scripts)
148
- { tag: 'script', attrs: {}, content: 'var megamenu = {"timeout":"300","interval":"100"};' },
149
- { tag: 'script', attrs: { src: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu-pro/assets/public.js?ver=2.3.1.1' } },
150
- { tag: 'script', attrs: { src: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu/js/maxmegamenu.js?ver=3.3.1' } },
151
- // Contact form + lead tracking
152
- { tag: 'script', attrs: { src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/sf.common.js?ver=1' } },
153
- { tag: 'script', attrs: { src: 'https://www.google.com/recaptcha/api.js?render=6Lc-MFAaAAAAAIWi7UOrSUfUZnVmDUSsXjzS4BgY&ver=1' } },
154
- { tag: 'script', attrs: { src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/leadTracker.js?ver=1' } },
221
+ // jQuery from staging (megamenu plugins may depend on this specific version)
222
+ {
223
+ tag: 'script',
224
+ attrs: { src: 'https://staging.appbuilder.dev/wp-includes/js/jquery/jquery.min.js?ver=3.7.1' },
225
+ },
226
+ {
227
+ tag: 'script',
228
+ attrs: {
229
+ src: 'https://staging.appbuilder.dev/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1',
230
+ },
231
+ },
232
+ // Site JS
233
+ {
234
+ tag: 'script',
235
+ attrs: {
236
+ src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/plugins.js?ver=1',
237
+ },
238
+ },
239
+ {
240
+ tag: 'script',
241
+ attrs: { src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/script.js?ver=1' },
242
+ },
243
+ // Mega-menu plugins
244
+ {
245
+ tag: 'script',
246
+ attrs: { src: 'https://staging.appbuilder.dev/wp-includes/js/hoverIntent.min.js?ver=1.10.2' },
247
+ },
248
+ // Inline megamenu config (must precede the megamenu plugin scripts)
249
+ { tag: 'script', attrs: {}, content: 'var megamenu = {"timeout":"300","interval":"100"};' },
250
+ {
251
+ tag: 'script',
252
+ attrs: {
253
+ src: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu-pro/assets/public.js?ver=2.3.1.1',
254
+ },
255
+ },
256
+ {
257
+ tag: 'script',
258
+ attrs: {
259
+ src: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu/js/maxmegamenu.js?ver=3.3.1',
260
+ },
261
+ },
262
+ // Contact form + lead tracking
263
+ {
264
+ tag: 'script',
265
+ attrs: {
266
+ src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/sf.common.js?ver=1',
267
+ },
268
+ },
269
+ {
270
+ tag: 'script',
271
+ attrs: {
272
+ src: 'https://www.google.com/recaptcha/api.js?render=6Lc-MFAaAAAAAIWi7UOrSUfUZnVmDUSsXjzS4BgY&ver=1',
273
+ },
274
+ },
275
+ {
276
+ tag: 'script',
277
+ attrs: {
278
+ src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/leadTracker.js?ver=1',
279
+ },
280
+ },
155
281
  ];
156
282
 
157
283
  // ---------------------------------------------------------------------------
@@ -161,12 +287,12 @@ const APPBUILDER_SCRIPTS: HeadEntry[] = [
161
287
  // 'appbuilder' → www.appbuilder.dev/header-footer-export
162
288
  // ---------------------------------------------------------------------------
163
289
  export const PLATFORM_DEFS: Record<PlatformKey, PlatformDef> = {
164
- angular: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
165
- react: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
166
- blazor: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
167
- 'web-components': { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
168
- slingshot: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
169
- appbuilder: { navType: 'appbuilder', styles: APPBUILDER_STYLES, scripts: APPBUILDER_SCRIPTS },
290
+ angular: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
291
+ react: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
292
+ blazor: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
293
+ 'web-components': { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
294
+ slingshot: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
295
+ appbuilder: { navType: 'appbuilder', styles: APPBUILDER_STYLES, scripts: APPBUILDER_SCRIPTS },
170
296
  };
171
297
 
172
298
  // ---------------------------------------------------------------------------
@@ -178,56 +304,80 @@ export const PLATFORM_DEFS: Record<PlatformKey, PlatformDef> = {
178
304
  * Import this in `astro.config.ts` files instead of duplicating the data.
179
305
  */
180
306
  export const IGDOCS_PLATFORMS: Record<string, PlatformMeta> = {
181
- // English
182
- Angular: {
183
- lang: 'en', label: 'Angular', key: 'angular', devPort: 4331,
184
- base: '/docs-angular-new',
185
- title: 'Ignite UI for Angular',
186
- description: 'Component documentation for Ignite UI for Angular.',
187
- },
188
- React: {
189
- lang: 'en', label: 'React', key: 'react', devPort: 4332,
190
- base: '/docs-react-new',
191
- title: 'Ignite UI for React',
192
- description: 'Component documentation for Ignite UI for React.',
193
- },
194
- WebComponents: {
195
- lang: 'en', label: 'Web Components', key: 'web-components', devPort: 4333,
196
- base: '/docs-wc-new',
197
- title: 'Ignite UI for Web Components',
198
- description: 'Component documentation for Ignite UI for Web Components.',
199
- },
200
- Blazor: {
201
- lang: 'en', label: 'Blazor', key: 'blazor', devPort: 4334,
202
- base: '/docs-blazor-new',
203
- title: 'Ignite UI for Blazor',
204
- description: 'Component documentation for Ignite UI for Blazor.',
205
- },
206
- // Japanese
207
- AngularJP: {
208
- lang: 'jp', label: 'Angular', key: 'angular', devPort: 4341,
209
- base: '/docs-angular-new',
210
- title: 'Ignite UI for Angular',
211
- description: 'Component documentation for Ignite UI for Angular.',
212
- },
213
- ReactJP: {
214
- lang: 'jp', label: 'React', key: 'react', devPort: 4342,
215
- base: '/docs-react-new',
216
- title: 'Ignite UI for React',
217
- description: 'Component documentation for Ignite UI for React.',
218
- },
219
- WebComponentsJP: {
220
- lang: 'jp', label: 'Web Components', key: 'web-components', devPort: 4343,
221
- base: '/docs-wc-new',
222
- title: 'Ignite UI for Web Components',
223
- description: 'Component documentation for Ignite UI for Web Components.',
224
- },
225
- BlazorJP: {
226
- lang: 'jp', label: 'Blazor', key: 'blazor', devPort: 4344,
227
- base: '/docs-blazor-new',
228
- title: 'Ignite UI for Blazor',
229
- description: 'Component documentation for Ignite UI for Blazor.',
230
- },
307
+ // English
308
+ Angular: {
309
+ lang: 'en',
310
+ label: 'Angular',
311
+ key: 'angular',
312
+ devPort: 4331,
313
+ base: '/docs-angular-new',
314
+ title: 'Ignite UI for Angular',
315
+ description: 'Component documentation for Ignite UI for Angular.',
316
+ },
317
+ React: {
318
+ lang: 'en',
319
+ label: 'React',
320
+ key: 'react',
321
+ devPort: 4332,
322
+ base: '/docs-react-new',
323
+ title: 'Ignite UI for React',
324
+ description: 'Component documentation for Ignite UI for React.',
325
+ },
326
+ WebComponents: {
327
+ lang: 'en',
328
+ label: 'Web Components',
329
+ key: 'web-components',
330
+ devPort: 4333,
331
+ base: '/docs-wc-new',
332
+ title: 'Ignite UI for Web Components',
333
+ description: 'Component documentation for Ignite UI for Web Components.',
334
+ },
335
+ Blazor: {
336
+ lang: 'en',
337
+ label: 'Blazor',
338
+ key: 'blazor',
339
+ devPort: 4334,
340
+ base: '/docs-blazor-new',
341
+ title: 'Ignite UI for Blazor',
342
+ description: 'Component documentation for Ignite UI for Blazor.',
343
+ },
344
+ // Japanese
345
+ AngularJP: {
346
+ lang: 'jp',
347
+ label: 'Angular',
348
+ key: 'angular',
349
+ devPort: 4341,
350
+ base: '/docs-angular-new',
351
+ title: 'Ignite UI for Angular',
352
+ description: 'Component documentation for Ignite UI for Angular.',
353
+ },
354
+ ReactJP: {
355
+ lang: 'jp',
356
+ label: 'React',
357
+ key: 'react',
358
+ devPort: 4342,
359
+ base: '/docs-react-new',
360
+ title: 'Ignite UI for React',
361
+ description: 'Component documentation for Ignite UI for React.',
362
+ },
363
+ WebComponentsJP: {
364
+ lang: 'jp',
365
+ label: 'Web Components',
366
+ key: 'web-components',
367
+ devPort: 4343,
368
+ base: '/docs-wc-new',
369
+ title: 'Ignite UI for Web Components',
370
+ description: 'Component documentation for Ignite UI for Web Components.',
371
+ },
372
+ BlazorJP: {
373
+ lang: 'jp',
374
+ label: 'Blazor',
375
+ key: 'blazor',
376
+ devPort: 4344,
377
+ base: '/docs-blazor-new',
378
+ title: 'Ignite UI for Blazor',
379
+ description: 'Component documentation for Ignite UI for Blazor.',
380
+ },
231
381
  };
232
382
 
233
383
  /**
@@ -237,17 +387,17 @@ export const IGDOCS_PLATFORMS: Record<string, PlatformMeta> = {
237
387
  * @param platform - Platform identifier.
238
388
  * @param lang - Locale — not currently used but kept for API completeness.
239
389
  */
240
- export function getPlatformHead(platform: string, lang = 'en'): HeadEntry[] {
241
- const def = PLATFORM_DEFS[platform as PlatformKey];
242
- if (!def) {
243
- console.warn(`[docs-template] Unknown platform "${platform}" — no head entries injected.`);
244
- return [];
245
- }
246
- return [
247
- { tag: 'meta', attrs: { property: 'docs:platform', content: platform } },
248
- ...def.styles,
249
- ...def.scripts,
250
- ];
390
+ export function getPlatformHead(platform: string, _lang = 'en'): HeadEntry[] {
391
+ const def = PLATFORM_DEFS[platform as PlatformKey];
392
+ if (!def) {
393
+ console.warn(`[docs-template] Unknown platform "${platform}" — no head entries injected.`);
394
+ return [];
395
+ }
396
+ return [
397
+ { tag: 'meta', attrs: { property: 'docs:platform', content: platform } },
398
+ ...def.styles,
399
+ ...def.scripts,
400
+ ];
251
401
  }
252
402
 
253
403
  /**
@@ -258,17 +408,17 @@ export function getPlatformHead(platform: string, lang = 'en'): HeadEntry[] {
258
408
  * @param lang - Locale for the nav URL ('en' | 'jp' | 'kr').
259
409
  */
260
410
  export function getNavConfig(platform: string | null, lang = 'en'): NavConfig {
261
- const igBase = lang === 'jp' ? 'https://jp.infragistics.com' : 'https://www.infragistics.com';
262
- switch (platform) {
263
- case 'appbuilder':
264
- return { navType: 'appbuilder', navUrl: 'https://www.appbuilder.dev/header-footer-export' };
265
- case 'angular':
266
- case 'react':
267
- case 'blazor':
268
- case 'web-components':
269
- case 'slingshot':
270
- return { navType: 'infragistics', navUrl: `${igBase}/navigation` };
271
- default:
272
- return { navType: 'none', navUrl: null };
273
- }
411
+ const igBase = lang === 'jp' ? 'https://jp.infragistics.com' : 'https://www.infragistics.com';
412
+ switch (platform) {
413
+ case 'appbuilder':
414
+ return { navType: 'appbuilder', navUrl: 'https://www.appbuilder.dev/header-footer-export' };
415
+ case 'angular':
416
+ case 'react':
417
+ case 'blazor':
418
+ case 'web-components':
419
+ case 'slingshot':
420
+ return { navType: 'infragistics', navUrl: `${igBase}/navigation` };
421
+ default:
422
+ return { navType: 'none', navUrl: null };
423
+ }
274
424
  }