snow-flow 3.4.35 → 3.4.39

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 (50) hide show
  1. package/README.md +412 -287
  2. package/dist/cli/deploy-artifact.js +2 -2
  3. package/dist/mcp/servicenow-deployment-mcp.js +1 -1
  4. package/dist/mcp/servicenow-mcp-server.js +2 -2
  5. package/dist/mcp/shared/mcp-logger.js +6 -12
  6. package/dist/queen/agent-factory.js +134 -52
  7. package/dist/queen/servicenow-queen.d.ts +127 -2
  8. package/dist/queen/servicenow-queen.js +978 -618
  9. package/dist/services/widget-deployment-service.d.ts +1 -1
  10. package/dist/services/widget-deployment-service.js +1 -1
  11. package/dist/templates/claude-md-template.d.ts +1 -1
  12. package/dist/templates/claude-md-template.js +2 -2
  13. package/dist/types/servicenow.types.d.ts +1 -1
  14. package/dist/utils/dependency-detector.d.ts +1 -1
  15. package/dist/utils/dependency-detector.js +1 -1
  16. package/dist/utils/servicenow-client.d.ts +1 -1
  17. package/dist/utils/servicenow-client.js +4 -8
  18. package/package.json +1 -1
  19. package/website/components/README.md +419 -0
  20. package/website/components/code-display/CodeDisplay.css +583 -0
  21. package/website/components/code-display/CodeDisplay.html +200 -0
  22. package/website/components/code-display/CodeDisplay.js +375 -0
  23. package/website/components/code-display/CodeDisplay.jsx +268 -0
  24. package/website/components/demo/ComponentLibraryDemo.html +845 -0
  25. package/website/components/feature-cards/FeatureCards.css +573 -0
  26. package/website/components/feature-cards/FeatureCards.html +247 -0
  27. package/website/components/feature-cards/FeatureCards.js +382 -0
  28. package/website/components/feature-cards/FeatureCards.jsx +235 -0
  29. package/website/components/hero/Hero.css +558 -0
  30. package/website/components/hero/Hero.html +98 -0
  31. package/website/components/hero/Hero.js +415 -0
  32. package/website/components/hero/Hero.jsx +214 -0
  33. package/website/components/interactive/InteractiveElements.css +776 -0
  34. package/website/components/interactive/InteractiveElements.html +283 -0
  35. package/website/components/interactive/InteractiveElements.js +489 -0
  36. package/website/components/interactive/InteractiveElements.jsx +444 -0
  37. package/website/components/layout/LayoutComponents.css +697 -0
  38. package/website/components/layout/LayoutComponents.html +374 -0
  39. package/website/components/layout/LayoutComponents.js +447 -0
  40. package/website/components/layout/LayoutComponents.jsx +379 -0
  41. package/website/components/navigation/Navigation.css +383 -0
  42. package/website/components/navigation/Navigation.html +89 -0
  43. package/website/components/navigation/Navigation.js +248 -0
  44. package/website/components/navigation/Navigation.jsx +124 -0
  45. package/website/css/animations.css +854 -0
  46. package/website/css/style.css +916 -948
  47. package/website/index.html +394 -424
  48. package/website/js/animations.js +707 -0
  49. package/website/js/main.js +310 -383
  50. package/website/mcp-servers.html +310 -0
@@ -0,0 +1,379 @@
1
+ import React from 'react';
2
+ import './LayoutComponents.css';
3
+
4
+ // Container Component
5
+ const Container = ({
6
+ children,
7
+ maxWidth = '1200px',
8
+ padding = 'medium',
9
+ fluid = false,
10
+ className = '',
11
+ ...props
12
+ }) => (
13
+ <div
14
+ className={`sf-container sf-container--${padding} ${fluid ? 'sf-container--fluid' : ''} ${className}`}
15
+ style={{ maxWidth: fluid ? '100%' : maxWidth }}
16
+ {...props}
17
+ >
18
+ {children}
19
+ </div>
20
+ );
21
+
22
+ // Grid Component
23
+ const Grid = ({
24
+ children,
25
+ columns = 'auto',
26
+ gap = 'medium',
27
+ alignItems = 'stretch',
28
+ justifyContent = 'start',
29
+ responsive = true,
30
+ className = '',
31
+ ...props
32
+ }) => {
33
+ const gridColumns = typeof columns === 'number'
34
+ ? `repeat(${columns}, 1fr)`
35
+ : columns === 'auto'
36
+ ? 'repeat(auto-fit, minmax(250px, 1fr))'
37
+ : columns;
38
+
39
+ const style = {
40
+ gridTemplateColumns: gridColumns,
41
+ alignItems,
42
+ justifyContent,
43
+ ...props.style
44
+ };
45
+
46
+ return (
47
+ <div
48
+ className={`sf-grid sf-grid--gap-${gap} ${responsive ? 'sf-grid--responsive' : ''} ${className}`}
49
+ style={style}
50
+ {...props}
51
+ >
52
+ {children}
53
+ </div>
54
+ );
55
+ };
56
+
57
+ // Flex Component
58
+ const Flex = ({
59
+ children,
60
+ direction = 'row',
61
+ align = 'stretch',
62
+ justify = 'start',
63
+ wrap = false,
64
+ gap = 'medium',
65
+ className = '',
66
+ ...props
67
+ }) => (
68
+ <div
69
+ className={`sf-flex sf-flex--${direction} sf-flex--align-${align} sf-flex--justify-${justify} ${wrap ? 'sf-flex--wrap' : ''} sf-flex--gap-${gap} ${className}`}
70
+ {...props}
71
+ >
72
+ {children}
73
+ </div>
74
+ );
75
+
76
+ // Section Component
77
+ const Section = ({
78
+ children,
79
+ background = 'default',
80
+ padding = 'large',
81
+ className = '',
82
+ ...props
83
+ }) => (
84
+ <section
85
+ className={`sf-section sf-section--bg-${background} sf-section--padding-${padding} ${className}`}
86
+ {...props}
87
+ >
88
+ {children}
89
+ </section>
90
+ );
91
+
92
+ // Divider Component
93
+ const Divider = ({
94
+ type = 'line',
95
+ orientation = 'horizontal',
96
+ gradient = false,
97
+ animated = false,
98
+ thickness = 'thin',
99
+ className = ''
100
+ }) => {
101
+ if (type === 'space') {
102
+ return <div className={`sf-divider sf-divider--space sf-divider--${thickness} ${className}`} />;
103
+ }
104
+
105
+ return (
106
+ <div
107
+ className={`sf-divider sf-divider--${type} sf-divider--${orientation} sf-divider--${thickness} ${gradient ? 'sf-divider--gradient' : ''} ${animated ? 'sf-divider--animated' : ''} ${className}`}
108
+ >
109
+ {type === 'dots' && (
110
+ <div className="sf-divider__dots">
111
+ <span></span>
112
+ <span></span>
113
+ <span></span>
114
+ </div>
115
+ )}
116
+ {type === 'wave' && (
117
+ <svg className="sf-divider__wave" viewBox="0 0 1200 120" preserveAspectRatio="none">
118
+ <path d="M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z"/>
119
+ </svg>
120
+ )}
121
+ </div>
122
+ );
123
+ };
124
+
125
+ // Card Component
126
+ const Card = ({
127
+ children,
128
+ elevation = 'medium',
129
+ padding = 'medium',
130
+ radius = 'medium',
131
+ border = false,
132
+ hover = false,
133
+ className = '',
134
+ ...props
135
+ }) => (
136
+ <div
137
+ className={`sf-card sf-card--elevation-${elevation} sf-card--padding-${padding} sf-card--radius-${radius} ${border ? 'sf-card--border' : ''} ${hover ? 'sf-card--hover' : ''} ${className}`}
138
+ {...props}
139
+ >
140
+ {children}
141
+ </div>
142
+ );
143
+
144
+ // Stack Component
145
+ const Stack = ({
146
+ children,
147
+ spacing = 'medium',
148
+ direction = 'vertical',
149
+ align = 'start',
150
+ className = '',
151
+ ...props
152
+ }) => (
153
+ <div
154
+ className={`sf-stack sf-stack--${direction} sf-stack--spacing-${spacing} sf-stack--align-${align} ${className}`}
155
+ {...props}
156
+ >
157
+ {children}
158
+ </div>
159
+ );
160
+
161
+ // Spacer Component
162
+ const Spacer = ({
163
+ size = 'medium',
164
+ responsive = true,
165
+ className = ''
166
+ }) => (
167
+ <div className={`sf-spacer sf-spacer--${size} ${responsive ? 'sf-spacer--responsive' : ''} ${className}`} />
168
+ );
169
+
170
+ // Center Component
171
+ const Center = ({
172
+ children,
173
+ height = 'auto',
174
+ className = '',
175
+ ...props
176
+ }) => (
177
+ <div
178
+ className={`sf-center ${className}`}
179
+ style={{ height }}
180
+ {...props}
181
+ >
182
+ {children}
183
+ </div>
184
+ );
185
+
186
+ // Demo Component showcasing all layout components
187
+ const LayoutComponents = () => (
188
+ <div className="sf-layout-demo">
189
+ <Container>
190
+ <Stack spacing="large">
191
+ <div className="sf-layout-demo__header">
192
+ <h1 className="sf-layout-demo__title">Layout Components</h1>
193
+ <p className="sf-layout-demo__subtitle">
194
+ Essential building blocks for creating structured, responsive layouts
195
+ </p>
196
+ </div>
197
+
198
+ {/* Container Demo */}
199
+ <Section background="light" padding="large">
200
+ <Stack spacing="medium">
201
+ <h2 className="sf-demo-title">Container</h2>
202
+ <p>Responsive containers with configurable max-widths and padding</p>
203
+
204
+ <Card padding="small" border>
205
+ <Container maxWidth="800px" padding="medium">
206
+ <p>This content is inside a container with max-width: 800px</p>
207
+ </Container>
208
+ </Card>
209
+
210
+ <Card padding="small" border>
211
+ <Container fluid padding="small">
212
+ <p>This is a fluid container that takes full width</p>
213
+ </Container>
214
+ </Card>
215
+ </Stack>
216
+ </Section>
217
+
218
+ {/* Grid Demo */}
219
+ <Section>
220
+ <Stack spacing="medium">
221
+ <h2 className="sf-demo-title">Grid System</h2>
222
+ <p>Flexible CSS Grid layouts with responsive behavior</p>
223
+
224
+ <div className="sf-demo-grid-container">
225
+ <h3>Auto-fit Grid (default)</h3>
226
+ <Grid gap="medium">
227
+ <Card>Item 1</Card>
228
+ <Card>Item 2</Card>
229
+ <Card>Item 3</Card>
230
+ <Card>Item 4</Card>
231
+ </Grid>
232
+ </div>
233
+
234
+ <div className="sf-demo-grid-container">
235
+ <h3>3-Column Fixed Grid</h3>
236
+ <Grid columns={3} gap="small">
237
+ <Card>Column 1</Card>
238
+ <Card>Column 2</Card>
239
+ <Card>Column 3</Card>
240
+ </Grid>
241
+ </div>
242
+ </Stack>
243
+ </Section>
244
+
245
+ {/* Flex Demo */}
246
+ <Section background="light">
247
+ <Stack spacing="medium">
248
+ <h2 className="sf-demo-title">Flex Layouts</h2>
249
+ <p>Flexbox utilities for common layout patterns</p>
250
+
251
+ <div className="sf-demo-flex-container">
252
+ <h3>Horizontal Flex (space-between)</h3>
253
+ <Flex justify="space-between" align="center">
254
+ <Card padding="small">Left</Card>
255
+ <Card padding="small">Center</Card>
256
+ <Card padding="small">Right</Card>
257
+ </Flex>
258
+ </div>
259
+
260
+ <div className="sf-demo-flex-container">
261
+ <h3>Vertical Flex with Gap</h3>
262
+ <Flex direction="column" gap="small" style={{height: '200px'}}>
263
+ <Card padding="small">Top</Card>
264
+ <Card padding="small">Middle</Card>
265
+ <Card padding="small">Bottom</Card>
266
+ </Flex>
267
+ </div>
268
+ </Stack>
269
+ </Section>
270
+
271
+ {/* Dividers Demo */}
272
+ <Section>
273
+ <Stack spacing="medium">
274
+ <h2 className="sf-demo-title">Dividers</h2>
275
+ <p>Various divider styles to separate content</p>
276
+
277
+ <div className="sf-divider-demo">
278
+ <Card padding="small">Content above</Card>
279
+ <Divider />
280
+ <Card padding="small">Content below (line divider)</Card>
281
+
282
+ <Divider type="dots" />
283
+ <Card padding="small">Content below (dots divider)</Card>
284
+
285
+ <Divider gradient animated />
286
+ <Card padding="small">Content below (gradient animated divider)</Card>
287
+
288
+ <Divider type="wave" />
289
+ <Card padding="small">Content below (wave divider)</Card>
290
+ </div>
291
+ </Stack>
292
+ </Section>
293
+
294
+ {/* Cards Demo */}
295
+ <Section background="light">
296
+ <Stack spacing="medium">
297
+ <h2 className="sf-demo-title">Cards</h2>
298
+ <p>Card components with various elevations and styles</p>
299
+
300
+ <Grid columns={3} gap="medium">
301
+ <Card elevation="low" padding="medium">
302
+ <h3>Low Elevation</h3>
303
+ <p>Subtle shadow for minimal depth</p>
304
+ </Card>
305
+
306
+ <Card elevation="medium" padding="medium" hover>
307
+ <h3>Medium Elevation + Hover</h3>
308
+ <p>Standard elevation with hover effect</p>
309
+ </Card>
310
+
311
+ <Card elevation="high" padding="medium" border>
312
+ <h3>High Elevation + Border</h3>
313
+ <p>Strong shadow with border accent</p>
314
+ </Card>
315
+ </Grid>
316
+ </Stack>
317
+ </Section>
318
+
319
+ {/* Stack and Spacing Demo */}
320
+ <Section>
321
+ <Stack spacing="medium">
322
+ <h2 className="sf-demo-title">Stack & Spacing</h2>
323
+ <p>Consistent spacing utilities and stacking layouts</p>
324
+
325
+ <div className="sf-stack-demo">
326
+ <h3>Vertical Stack with Medium Spacing</h3>
327
+ <Stack spacing="medium">
328
+ <Card padding="small">Item 1</Card>
329
+ <Card padding="small">Item 2</Card>
330
+ <Card padding="small">Item 3</Card>
331
+ </Stack>
332
+
333
+ <Spacer size="large" />
334
+
335
+ <h3>Horizontal Stack</h3>
336
+ <Stack direction="horizontal" spacing="small">
337
+ <Card padding="small">A</Card>
338
+ <Card padding="small">B</Card>
339
+ <Card padding="small">C</Card>
340
+ </Stack>
341
+ </div>
342
+ </Stack>
343
+ </Section>
344
+
345
+ {/* Center Demo */}
346
+ <Section background="light">
347
+ <Stack spacing="medium">
348
+ <h2 className="sf-demo-title">Centering</h2>
349
+ <p>Perfect centering for content</p>
350
+
351
+ <Card border style={{height: '200px'}}>
352
+ <Center height="100%">
353
+ <Card padding="medium">
354
+ <h3>Perfectly Centered</h3>
355
+ <p>Both horizontally and vertically</p>
356
+ </Card>
357
+ </Center>
358
+ </Card>
359
+ </Stack>
360
+ </Section>
361
+ </Stack>
362
+ </Container>
363
+ </div>
364
+ );
365
+
366
+ // Export all components
367
+ export {
368
+ Container,
369
+ Grid,
370
+ Flex,
371
+ Section,
372
+ Divider,
373
+ Card,
374
+ Stack,
375
+ Spacer,
376
+ Center
377
+ };
378
+
379
+ export default LayoutComponents;