@walkeros/explorer 2.0.1 → 2.1.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.
Files changed (56) hide show
  1. package/STYLE.md +240 -136
  2. package/dist/components/atoms/code.d.ts +4 -1
  3. package/dist/components/atoms/code.d.ts.map +1 -1
  4. package/dist/components/atoms/code.js +31 -10
  5. package/dist/components/atoms/code.js.map +1 -1
  6. package/dist/components/molecules/code-box.d.ts +2 -1
  7. package/dist/components/molecules/code-box.d.ts.map +1 -1
  8. package/dist/components/molecules/code-box.js +32 -6
  9. package/dist/components/molecules/code-box.js.map +1 -1
  10. package/dist/components/molecules/code-box.stories.d.ts +13 -0
  11. package/dist/components/molecules/code-box.stories.d.ts.map +1 -1
  12. package/dist/components/molecules/code-box.stories.js +76 -0
  13. package/dist/components/molecules/code-box.stories.js.map +1 -1
  14. package/dist/components/molecules/code-snippet.stories.d.ts +11 -0
  15. package/dist/components/molecules/code-snippet.stories.d.ts.map +1 -1
  16. package/dist/components/molecules/code-snippet.stories.js +38 -0
  17. package/dist/components/molecules/code-snippet.stories.js.map +1 -1
  18. package/dist/components/molecules/flow-selector.js +1 -1
  19. package/dist/components/molecules/flow-selector.js.map +1 -1
  20. package/dist/components/molecules/flow-selector.stories.js +4 -4
  21. package/dist/components/molecules/flow-selector.stories.js.map +1 -1
  22. package/dist/components/molecules/split-button.stories.js +6 -6
  23. package/dist/components/molecules/split-button.stories.js.map +1 -1
  24. package/dist/index.d.cts +23 -34
  25. package/dist/index.d.ts +1 -2
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +2 -1
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +342 -294
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/styles.css +46 -91
  32. package/dist/themes/lighthouse.d.ts.map +1 -1
  33. package/dist/themes/lighthouse.js +1 -0
  34. package/dist/themes/lighthouse.js.map +1 -1
  35. package/dist/themes/palenight.d.ts.map +1 -1
  36. package/dist/themes/palenight.js +1 -0
  37. package/dist/themes/palenight.js.map +1 -1
  38. package/dist/utils/format-code.d.ts.map +1 -1
  39. package/dist/utils/format-code.js +11 -2
  40. package/dist/utils/format-code.js.map +1 -1
  41. package/dist/utils/monaco-decorators.d.ts.map +1 -1
  42. package/dist/utils/monaco-decorators.js +2 -0
  43. package/dist/utils/monaco-decorators.js.map +1 -1
  44. package/dist/utils/monaco-json-schema.d.ts +24 -0
  45. package/dist/utils/monaco-json-schema.d.ts.map +1 -0
  46. package/dist/utils/monaco-json-schema.js +65 -0
  47. package/dist/utils/monaco-json-schema.js.map +1 -0
  48. package/package.json +1 -1
  49. package/dist/components/molecules/flow-deploy-panel.d.ts +0 -31
  50. package/dist/components/molecules/flow-deploy-panel.d.ts.map +0 -1
  51. package/dist/components/molecules/flow-deploy-panel.js +0 -72
  52. package/dist/components/molecules/flow-deploy-panel.js.map +0 -1
  53. package/dist/components/molecules/flow-deploy-panel.stories.d.ts +0 -40
  54. package/dist/components/molecules/flow-deploy-panel.stories.d.ts.map +0 -1
  55. package/dist/components/molecules/flow-deploy-panel.stories.js +0 -145
  56. package/dist/components/molecules/flow-deploy-panel.stories.js.map +0 -1
@@ -1,145 +0,0 @@
1
- import { FlowDeployPanel } from './flow-deploy-panel';
2
- /**
3
- * FlowDeployPanel - Deployment controls for a named flow
4
- *
5
- * Shows deployment status, endpoint info, and a SplitButton
6
- * with deploy/download/bundle actions.
7
- */
8
- const meta = {
9
- component: FlowDeployPanel,
10
- title: 'Molecules/FlowDeployPanel',
11
- tags: ['autodocs'],
12
- };
13
- export default meta;
14
- const noop = () => { };
15
- /**
16
- * Not yet deployed
17
- */
18
- export const NotDeployed = {
19
- args: {
20
- flowName: 'web',
21
- platform: 'web',
22
- deployment: null,
23
- onDeploy: noop,
24
- onDeleteDeployment: noop,
25
- onDownloadFlow: noop,
26
- onBundle: noop,
27
- },
28
- };
29
- /**
30
- * Published web deployment
31
- */
32
- export const PublishedWeb = {
33
- args: {
34
- flowName: 'web',
35
- platform: 'web',
36
- deployment: {
37
- id: 'dep_1',
38
- status: 'published',
39
- type: 'web',
40
- publicUrl: 'https://cdn.walkeros.com/p/abc/web.js',
41
- createdAt: new Date(Date.now() - 4 * 3600000).toISOString(),
42
- },
43
- onDeploy: noop,
44
- onDeleteDeployment: noop,
45
- onDownloadFlow: noop,
46
- onBundle: noop,
47
- },
48
- };
49
- /**
50
- * Active server deployment
51
- */
52
- export const ActiveServer = {
53
- args: {
54
- flowName: 'server',
55
- platform: 'server',
56
- deployment: {
57
- id: 'dep_2',
58
- status: 'active',
59
- type: 'server',
60
- containerUrl: 'https://srv-abc.scw.cloud',
61
- createdAt: new Date(Date.now() - 2 * 3600000).toISOString(),
62
- },
63
- onDeploy: noop,
64
- onDeleteDeployment: noop,
65
- onDownloadFlow: noop,
66
- onBundle: noop,
67
- },
68
- };
69
- /**
70
- * Currently deploying
71
- */
72
- export const Deploying = {
73
- args: {
74
- flowName: 'web',
75
- platform: 'web',
76
- deployment: {
77
- id: 'dep_3',
78
- status: 'bundling',
79
- type: 'web',
80
- createdAt: new Date(Date.now() - 12000).toISOString(),
81
- },
82
- deploying: true,
83
- onDeploy: noop,
84
- onDeleteDeployment: noop,
85
- onDownloadFlow: noop,
86
- onBundle: noop,
87
- },
88
- };
89
- /**
90
- * Failed deployment
91
- */
92
- export const Failed = {
93
- args: {
94
- flowName: 'web',
95
- platform: 'web',
96
- deployment: {
97
- id: 'dep_4',
98
- status: 'failed',
99
- type: 'web',
100
- errorMessage: 'Bundle compilation failed: missing package @walkeros/web-destination-gtag',
101
- createdAt: new Date(Date.now() - 300000).toISOString(),
102
- },
103
- onDeploy: noop,
104
- onDeleteDeployment: noop,
105
- onDownloadFlow: noop,
106
- onBundle: noop,
107
- },
108
- };
109
- /**
110
- * Stale deployment (config changed since last deploy)
111
- */
112
- export const Stale = {
113
- args: {
114
- flowName: 'web',
115
- platform: 'web',
116
- deployment: {
117
- id: 'dep_5',
118
- status: 'published',
119
- type: 'web',
120
- publicUrl: 'https://cdn.walkeros.com/p/abc/web.js',
121
- createdAt: new Date(Date.now() - 86400000).toISOString(),
122
- },
123
- hasUnsavedChanges: true,
124
- onDeploy: noop,
125
- onDeleteDeployment: noop,
126
- onDownloadFlow: noop,
127
- onBundle: noop,
128
- },
129
- };
130
- /**
131
- * Multiple flows — label includes flow name
132
- */
133
- export const MultipleFlows = {
134
- args: {
135
- flowName: 'web-tracking',
136
- platform: 'web',
137
- deployment: null,
138
- multipleFlows: true,
139
- onDeploy: noop,
140
- onDeleteDeployment: noop,
141
- onDownloadFlow: noop,
142
- onBundle: noop,
143
- },
144
- };
145
- //# sourceMappingURL=flow-deploy-panel.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow-deploy-panel.stories.js","sourceRoot":"","sources":["../../../src/components/molecules/flow-deploy-panel.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,IAAI,GAAiC;IACzC,SAAS,EAAE,eAAe;IAC1B,KAAK,EAAE,2BAA2B;IAClC,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,IAAI,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,IAAI,EAAE;QACJ,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;QACd,kBAAkB,EAAE,IAAI;QACxB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAU;IACjC,IAAI,EAAE;QACJ,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE;YACV,EAAE,EAAE,OAAO;YACX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