@teambit/code 1.0.257 → 1.0.259

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.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/code@1.0.257" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/code@1.0.259" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/code-preview"]=t():e["teambit.component/code-preview"]=t()}(self,(()=>(()=>{"use strict";var e={28383:(e,t,o)=>{var n={id:"teambit.component/code@1.0.257",homepage:"https://bit.cloud/teambit/component/code",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const c=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/code.svg"}));c.__bit_component=n,t.Logo=c},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>u,compositions_metadata:()=>l,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(28383);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var c=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(this,arguments)}var a={},s="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,r.mdx)(s,p({},a,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const u=[t],f=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/code-preview"]=t():e["teambit.component/code-preview"]=t()}(self,(()=>(()=>{"use strict";var e={49141:(e,t,o)=>{var n={id:"teambit.component/code@1.0.259",homepage:"https://bit.cloud/teambit/component/code",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const c=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/code.svg"}));c.__bit_component=n,t.Logo=c},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>u,compositions_metadata:()=>l,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(49141);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var c=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(this,arguments)}var a={},s="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,r.mdx)(s,p({},a,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const u=[t],f=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -14,525 +14,552 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "ClassSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "code.ui.runtime.tsx",
20
- "line": 23,
21
- "character": 1
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 15
22
22
  },
23
- "doc": {
24
- "__schema": "DocSchema",
23
+ "name": "CodeUI",
24
+ "exportNode": {
25
+ "__schema": "ClassSchema",
25
26
  "location": {
26
27
  "filePath": "code.ui.runtime.tsx",
27
- "line": 19,
28
+ "line": 23,
28
29
  "character": 1
29
30
  },
30
- "raw": "/**\n * Component code tab aspect. Presents the code tab page and allows to control the code tab and register specific icons for each file type.\n * @example CodeUI.registerEnvFileIcon([(fileName) => (/your-regexp/.test(fileName) ? 'your.icon.url' : undefined)])\n */",
31
- "comment": "Component code tab aspect. Presents the code tab page and allows to control the code tab and register specific icons for each file type.",
32
- "tags": [
33
- {
34
- "__schema": "TagSchema",
35
- "location": {
36
- "filePath": "code.ui.runtime.tsx",
37
- "line": 21,
38
- "character": 5
39
- },
40
- "tagName": "example",
41
- "comment": "CodeUI.registerEnvFileIcon([\n (fileName) => (/your-regexp/.test(fileName) ? 'your.icon.url' : undefined),\n]);\n"
42
- }
43
- ]
44
- },
45
- "signature": "class CodeUI",
46
- "name": "CodeUI",
47
- "members": [
48
- {
49
- "__schema": "ConstructorSchema",
31
+ "doc": {
32
+ "__schema": "DocSchema",
50
33
  "location": {
51
34
  "filePath": "code.ui.runtime.tsx",
52
- "line": 24,
53
- "character": 3
35
+ "line": 19,
36
+ "character": 1
54
37
  },
55
- "signature": "constructor CodeUI(host: string, fileIconSlot?: FileIconSlot): CodeUI",
56
- "name": "constructor",
57
- "params": [
38
+ "raw": "/**\n * Component code tab aspect. Presents the code tab page and allows to control the code tab and register specific icons for each file type.\n * @example CodeUI.registerEnvFileIcon([(fileName) => (/your-regexp/.test(fileName) ? 'your.icon.url' : undefined)])\n */",
39
+ "comment": "Component code tab aspect. Presents the code tab page and allows to control the code tab and register specific icons for each file type.",
40
+ "tags": [
58
41
  {
59
- "__schema": "ParameterSchema",
42
+ "__schema": "TagSchema",
60
43
  "location": {
61
44
  "filePath": "code.ui.runtime.tsx",
62
- "line": 28,
45
+ "line": 21,
63
46
  "character": 5
64
47
  },
65
- "name": "host",
66
- "type": {
67
- "__schema": "KeywordTypeSchema",
48
+ "tagName": "example",
49
+ "comment": "CodeUI.registerEnvFileIcon([\n (fileName) => (/your-regexp/.test(fileName) ? 'your.icon.url' : undefined),\n]);\n"
50
+ }
51
+ ]
52
+ },
53
+ "signature": "class CodeUI",
54
+ "name": "CodeUI",
55
+ "members": [
56
+ {
57
+ "__schema": "ConstructorSchema",
58
+ "location": {
59
+ "filePath": "code.ui.runtime.tsx",
60
+ "line": 24,
61
+ "character": 3
62
+ },
63
+ "signature": "constructor CodeUI(host: string, fileIconSlot?: FileIconSlot): CodeUI",
64
+ "name": "constructor",
65
+ "params": [
66
+ {
67
+ "__schema": "ParameterSchema",
68
68
  "location": {
69
69
  "filePath": "code.ui.runtime.tsx",
70
70
  "line": 28,
71
- "character": 19
71
+ "character": 5
72
72
  },
73
- "name": "string"
74
- },
75
- "isOptional": false,
76
- "isSpread": false
77
- },
78
- {
79
- "__schema": "ParameterSchema",
80
- "location": {
81
- "filePath": "code.ui.runtime.tsx",
82
- "line": 29,
83
- "character": 5
73
+ "name": "host",
74
+ "type": {
75
+ "__schema": "KeywordTypeSchema",
76
+ "location": {
77
+ "filePath": "code.ui.runtime.tsx",
78
+ "line": 28,
79
+ "character": 19
80
+ },
81
+ "name": "string"
82
+ },
83
+ "isOptional": false,
84
+ "isSpread": false
84
85
  },
85
- "name": "fileIconSlot",
86
- "type": {
87
- "__schema": "TypeRefSchema",
86
+ {
87
+ "__schema": "ParameterSchema",
88
88
  "location": {
89
89
  "filePath": "code.ui.runtime.tsx",
90
90
  "line": 29,
91
- "character": 28
91
+ "character": 5
92
+ },
93
+ "name": "fileIconSlot",
94
+ "type": {
95
+ "__schema": "TypeRefSchema",
96
+ "location": {
97
+ "filePath": "code.ui.runtime.tsx",
98
+ "line": 29,
99
+ "character": 28
100
+ },
101
+ "name": "FileIconSlot"
92
102
  },
93
- "name": "FileIconSlot"
103
+ "isOptional": true,
104
+ "isSpread": false
105
+ }
106
+ ],
107
+ "returnType": {
108
+ "__schema": "ThisTypeSchema",
109
+ "location": {
110
+ "filePath": "code.ui.runtime.tsx",
111
+ "line": 23,
112
+ "character": 1
94
113
  },
95
- "isOptional": true,
96
- "isSpread": false
97
- }
98
- ],
99
- "returnType": {
100
- "__schema": "ThisTypeSchema",
101
- "location": {
102
- "filePath": "code.ui.runtime.tsx",
103
- "line": 23,
104
- "character": 1
114
+ "name": "CodeUI"
105
115
  },
106
- "name": "CodeUI"
107
- },
108
- "modifiers": []
109
- },
110
- {
111
- "__schema": "VariableLikeSchema",
112
- "location": {
113
- "filePath": "code.ui.runtime.tsx",
114
- "line": 32,
115
- "character": 3
116
+ "modifiers": []
116
117
  },
117
- "signature": "(property) CodeUI.getCodePage: (props?: Partial<CodePageProps>) => React.JSX.Element",
118
- "name": "getCodePage",
119
- "type": {
120
- "__schema": "InferenceTypeSchema",
118
+ {
119
+ "__schema": "VariableLikeSchema",
121
120
  "location": {
122
121
  "filePath": "code.ui.runtime.tsx",
123
122
  "line": 32,
124
123
  "character": 3
125
124
  },
126
- "type": "(props?: Partial<CodePageProps>) => React.JSX.Element"
127
- },
128
- "isOptional": true,
129
- "defaultValue": "(props?: Partial<CodePageProps>) => {\n return <CodePage {...(props || {})} fileIconSlot={this.fileIconSlot} host={this.host} />;\n }"
130
- },
131
- {
132
- "__schema": "VariableLikeSchema",
133
- "location": {
134
- "filePath": "code.ui.runtime.tsx",
135
- "line": 36,
136
- "character": 3
125
+ "signature": "(property) CodeUI.getCodePage: (props?: Partial<CodePageProps>) => React.JSX.Element",
126
+ "name": "getCodePage",
127
+ "type": {
128
+ "__schema": "InferenceTypeSchema",
129
+ "location": {
130
+ "filePath": "code.ui.runtime.tsx",
131
+ "line": 32,
132
+ "character": 3
133
+ },
134
+ "type": "(props?: Partial<CodePageProps>) => React.JSX.Element"
135
+ },
136
+ "isOptional": true,
137
+ "defaultValue": "(props?: Partial<CodePageProps>) => {\n return <CodePage {...(props || {})} fileIconSlot={this.fileIconSlot} host={this.host} />;\n }"
137
138
  },
138
- "signature": "(property) CodeUI.getCodeCompare: (props?: Partial<CodeCompareProps>) => React.JSX.Element",
139
- "name": "getCodeCompare",
140
- "type": {
141
- "__schema": "InferenceTypeSchema",
139
+ {
140
+ "__schema": "VariableLikeSchema",
142
141
  "location": {
143
142
  "filePath": "code.ui.runtime.tsx",
144
143
  "line": 36,
145
144
  "character": 3
146
145
  },
147
- "type": "(props?: Partial<CodeCompareProps>) => React.JSX.Element"
148
- },
149
- "isOptional": true,
150
- "defaultValue": "(props?: Partial<CodeCompareProps>) => {\n return (\n <CodeCompareEditorProvider>\n <CodeCompare {...(props || {})} fileIconSlot={this.fileIconSlot} />\n </CodeCompareEditorProvider>\n );\n }"
151
- },
152
- {
153
- "__schema": "VariableLikeSchema",
154
- "location": {
155
- "filePath": "code.ui.runtime.tsx",
156
- "line": 44,
157
- "character": 3
146
+ "signature": "(property) CodeUI.getCodeCompare: (props?: Partial<CodeCompareProps>) => React.JSX.Element",
147
+ "name": "getCodeCompare",
148
+ "type": {
149
+ "__schema": "InferenceTypeSchema",
150
+ "location": {
151
+ "filePath": "code.ui.runtime.tsx",
152
+ "line": 36,
153
+ "character": 3
154
+ },
155
+ "type": "(props?: Partial<CodeCompareProps>) => React.JSX.Element"
156
+ },
157
+ "isOptional": true,
158
+ "defaultValue": "(props?: Partial<CodeCompareProps>) => {\n return (\n <CodeCompareEditorProvider>\n <CodeCompare {...(props || {})} fileIconSlot={this.fileIconSlot} />\n </CodeCompareEditorProvider>\n );\n }"
158
159
  },
159
- "signature": "(property) CodeUI.getCodeEditorProvider: () => React.FC<CodeEditorProviderProps>",
160
- "name": "getCodeEditorProvider",
161
- "type": {
162
- "__schema": "InferenceTypeSchema",
160
+ {
161
+ "__schema": "VariableLikeSchema",
163
162
  "location": {
164
163
  "filePath": "code.ui.runtime.tsx",
165
164
  "line": 44,
166
165
  "character": 3
167
166
  },
168
- "type": "() => React.FC<CodeEditorProviderProps>"
169
- },
170
- "isOptional": true,
171
- "defaultValue": "() => CodeEditorProvider"
172
- },
173
- {
174
- "__schema": "VariableLikeSchema",
175
- "location": {
176
- "filePath": "code.ui.runtime.tsx",
177
- "line": 45,
178
- "character": 3
167
+ "signature": "(property) CodeUI.getCodeEditorProvider: () => React.FC<CodeEditorProviderProps>",
168
+ "name": "getCodeEditorProvider",
169
+ "type": {
170
+ "__schema": "InferenceTypeSchema",
171
+ "location": {
172
+ "filePath": "code.ui.runtime.tsx",
173
+ "line": 44,
174
+ "character": 3
175
+ },
176
+ "type": "() => React.FC<CodeEditorProviderProps>"
177
+ },
178
+ "isOptional": true,
179
+ "defaultValue": "() => CodeEditorProvider"
179
180
  },
180
- "signature": "(property) CodeUI.getCodeDiffEditorProvider: () => React.FC<CodeCompareEditorProviderProps>",
181
- "name": "getCodeDiffEditorProvider",
182
- "type": {
183
- "__schema": "InferenceTypeSchema",
181
+ {
182
+ "__schema": "VariableLikeSchema",
184
183
  "location": {
185
184
  "filePath": "code.ui.runtime.tsx",
186
185
  "line": 45,
187
186
  "character": 3
188
187
  },
189
- "type": "() => React.FC<CodeCompareEditorProviderProps>"
190
- },
191
- "isOptional": true,
192
- "defaultValue": "() => CodeCompareEditorProvider"
193
- },
194
- {
195
- "__schema": "FunctionLikeSchema",
196
- "location": {
197
- "filePath": "code.ui.runtime.tsx",
198
- "line": 47,
199
- "character": 3
200
- },
201
- "signature": "(method) CodeUI.registerEnvFileIcon(icons: FileIconMatch[]): this",
202
- "name": "registerEnvFileIcon",
203
- "params": [
204
- {
205
- "__schema": "ParameterSchema",
188
+ "signature": "(property) CodeUI.getCodeDiffEditorProvider: () => React.FC<CodeCompareEditorProviderProps>",
189
+ "name": "getCodeDiffEditorProvider",
190
+ "type": {
191
+ "__schema": "InferenceTypeSchema",
206
192
  "location": {
207
193
  "filePath": "code.ui.runtime.tsx",
208
- "line": 47,
209
- "character": 23
194
+ "line": 45,
195
+ "character": 3
210
196
  },
211
- "name": "icons",
212
- "type": {
213
- "__schema": "TypeArraySchema",
197
+ "type": "() => React.FC<CodeCompareEditorProviderProps>"
198
+ },
199
+ "isOptional": true,
200
+ "defaultValue": "() => CodeCompareEditorProvider"
201
+ },
202
+ {
203
+ "__schema": "FunctionLikeSchema",
204
+ "location": {
205
+ "filePath": "code.ui.runtime.tsx",
206
+ "line": 47,
207
+ "character": 3
208
+ },
209
+ "signature": "(method) CodeUI.registerEnvFileIcon(icons: FileIconMatch[]): this",
210
+ "name": "registerEnvFileIcon",
211
+ "params": [
212
+ {
213
+ "__schema": "ParameterSchema",
214
214
  "location": {
215
215
  "filePath": "code.ui.runtime.tsx",
216
216
  "line": 47,
217
- "character": 30
217
+ "character": 23
218
218
  },
219
+ "name": "icons",
219
220
  "type": {
220
- "__schema": "TypeRefSchema",
221
+ "__schema": "TypeArraySchema",
221
222
  "location": {
222
223
  "filePath": "code.ui.runtime.tsx",
223
224
  "line": 47,
224
225
  "character": 30
225
226
  },
226
- "name": "FileIconMatch",
227
- "componentId": {
228
- "scope": "teambit.code",
229
- "name": "ui/utils/get-file-icon",
230
- "version": "0.0.495"
227
+ "type": {
228
+ "__schema": "TypeRefSchema",
229
+ "location": {
230
+ "filePath": "code.ui.runtime.tsx",
231
+ "line": 47,
232
+ "character": 30
233
+ },
234
+ "name": "FileIconMatch",
235
+ "componentId": {
236
+ "scope": "teambit.code",
237
+ "name": "ui/utils/get-file-icon",
238
+ "version": "0.0.495"
239
+ }
231
240
  }
232
- }
241
+ },
242
+ "isOptional": false,
243
+ "isSpread": false
244
+ }
245
+ ],
246
+ "returnType": {
247
+ "__schema": "TypeRefSchema",
248
+ "location": {
249
+ "filePath": "code.ui.runtime.tsx",
250
+ "line": 47,
251
+ "character": 3
233
252
  },
234
- "isOptional": false,
235
- "isSpread": false
236
- }
237
- ],
238
- "returnType": {
239
- "__schema": "TypeRefSchema",
240
- "location": {
241
- "filePath": "code.ui.runtime.tsx",
242
- "line": 47,
243
- "character": 3
253
+ "name": "CodeUI"
244
254
  },
245
- "name": "CodeUI"
246
- },
247
- "modifiers": []
248
- },
249
- {
250
- "__schema": "VariableLikeSchema",
251
- "location": {
252
- "filePath": "code.ui.runtime.tsx",
253
- "line": 52,
254
- "character": 3
255
+ "modifiers": []
255
256
  },
256
- "signature": "(property) CodeUI.dependencies: Aspect[]",
257
- "name": "dependencies",
258
- "type": {
259
- "__schema": "InferenceTypeSchema",
257
+ {
258
+ "__schema": "VariableLikeSchema",
260
259
  "location": {
261
260
  "filePath": "code.ui.runtime.tsx",
262
261
  "line": 52,
263
262
  "character": 3
264
263
  },
265
- "type": "Aspect[]"
266
- },
267
- "isOptional": true,
268
- "defaultValue": "[ComponentAspect, ComponentCompareAspect]"
269
- },
270
- {
271
- "__schema": "VariableLikeSchema",
272
- "location": {
273
- "filePath": "code.ui.runtime.tsx",
274
- "line": 54,
275
- "character": 3
264
+ "signature": "(property) CodeUI.dependencies: Aspect[]",
265
+ "name": "dependencies",
266
+ "type": {
267
+ "__schema": "InferenceTypeSchema",
268
+ "location": {
269
+ "filePath": "code.ui.runtime.tsx",
270
+ "line": 52,
271
+ "character": 3
272
+ },
273
+ "type": "Aspect[]"
274
+ },
275
+ "isOptional": true,
276
+ "defaultValue": "[ComponentAspect, ComponentCompareAspect]"
276
277
  },
277
- "signature": "(property) CodeUI.runtime: RuntimeDefinition",
278
- "name": "runtime",
279
- "type": {
280
- "__schema": "InferenceTypeSchema",
278
+ {
279
+ "__schema": "VariableLikeSchema",
281
280
  "location": {
282
281
  "filePath": "code.ui.runtime.tsx",
283
282
  "line": 54,
284
283
  "character": 3
285
284
  },
286
- "type": "RuntimeDefinition"
287
- },
288
- "isOptional": true,
289
- "defaultValue": "UIRuntime"
290
- },
291
- {
292
- "__schema": "VariableLikeSchema",
293
- "location": {
294
- "filePath": "code.ui.runtime.tsx",
295
- "line": 56,
296
- "character": 3
297
- },
298
- "signature": "(property) CodeUI.slots: ((registerFn: () => string) => SlotRegistry<string>)[]",
299
- "name": "slots",
300
- "type": {
301
- "__schema": "InferenceTypeSchema",
302
- "location": {
303
- "filePath": "code.ui.runtime.tsx",
304
- "line": 56,
305
- "character": 3
285
+ "signature": "(property) CodeUI.runtime: RuntimeDefinition",
286
+ "name": "runtime",
287
+ "type": {
288
+ "__schema": "InferenceTypeSchema",
289
+ "location": {
290
+ "filePath": "code.ui.runtime.tsx",
291
+ "line": 54,
292
+ "character": 3
293
+ },
294
+ "type": "RuntimeDefinition"
306
295
  },
307
- "type": "((registerFn: () => string) => SlotRegistry<string>)[]"
308
- },
309
- "isOptional": true,
310
- "defaultValue": "[Slot.withType<string>()]"
311
- },
312
- {
313
- "__schema": "FunctionLikeSchema",
314
- "location": {
315
- "filePath": "code.ui.runtime.tsx",
316
- "line": 58,
317
- "character": 3
296
+ "isOptional": true,
297
+ "defaultValue": "UIRuntime"
318
298
  },
319
- "signature": "(method) CodeUI.provider([component, componentCompare]: [ComponentUI, ComponentCompareUI], _: any, [fileIconSlot]: [FileIconSlot], harmony: Harmony): Promise<CodeUI>",
320
- "name": "provider",
321
- "params": [
322
- {
323
- "__schema": "ParameterSchema",
299
+ {
300
+ "__schema": "VariableLikeSchema",
301
+ "location": {
302
+ "filePath": "code.ui.runtime.tsx",
303
+ "line": 56,
304
+ "character": 3
305
+ },
306
+ "signature": "(property) CodeUI.slots: ((registerFn: () => string) => SlotRegistry<string>)[]",
307
+ "name": "slots",
308
+ "type": {
309
+ "__schema": "InferenceTypeSchema",
324
310
  "location": {
325
311
  "filePath": "code.ui.runtime.tsx",
326
- "line": 59,
327
- "character": 5
312
+ "line": 56,
313
+ "character": 3
328
314
  },
329
- "name": "[ component, componentCompare ]",
330
- "type": {
331
- "__schema": "TupleTypeSchema",
315
+ "type": "((registerFn: () => string) => SlotRegistry<string>)[]"
316
+ },
317
+ "isOptional": true,
318
+ "defaultValue": "[Slot.withType<string>()]"
319
+ },
320
+ {
321
+ "__schema": "FunctionLikeSchema",
322
+ "location": {
323
+ "filePath": "code.ui.runtime.tsx",
324
+ "line": 58,
325
+ "character": 3
326
+ },
327
+ "signature": "(method) CodeUI.provider([component, componentCompare]: [ComponentUI, ComponentCompareUI], _: any, [fileIconSlot]: [FileIconSlot], harmony: Harmony): Promise<CodeUI>",
328
+ "name": "provider",
329
+ "params": [
330
+ {
331
+ "__schema": "ParameterSchema",
332
332
  "location": {
333
333
  "filePath": "code.ui.runtime.tsx",
334
334
  "line": 59,
335
- "character": 36
335
+ "character": 5
336
336
  },
337
- "elements": [
338
- {
339
- "__schema": "TypeRefSchema",
340
- "location": {
341
- "filePath": "code.ui.runtime.tsx",
342
- "line": 59,
343
- "character": 37
344
- },
345
- "name": "ComponentUI",
346
- "componentId": {
347
- "scope": "teambit.component",
348
- "name": "component"
349
- }
337
+ "name": "[ component, componentCompare ]",
338
+ "type": {
339
+ "__schema": "TupleTypeSchema",
340
+ "location": {
341
+ "filePath": "code.ui.runtime.tsx",
342
+ "line": 59,
343
+ "character": 36
350
344
  },
351
- {
352
- "__schema": "TypeRefSchema",
353
- "location": {
354
- "filePath": "code.ui.runtime.tsx",
355
- "line": 59,
356
- "character": 50
345
+ "elements": [
346
+ {
347
+ "__schema": "TypeRefSchema",
348
+ "location": {
349
+ "filePath": "code.ui.runtime.tsx",
350
+ "line": 59,
351
+ "character": 37
352
+ },
353
+ "name": "ComponentUI",
354
+ "componentId": {
355
+ "scope": "teambit.component",
356
+ "name": "component"
357
+ }
357
358
  },
358
- "name": "ComponentCompareUI",
359
- "componentId": {
360
- "scope": "teambit.component",
361
- "name": "component-compare"
359
+ {
360
+ "__schema": "TypeRefSchema",
361
+ "location": {
362
+ "filePath": "code.ui.runtime.tsx",
363
+ "line": 59,
364
+ "character": 50
365
+ },
366
+ "name": "ComponentCompareUI",
367
+ "componentId": {
368
+ "scope": "teambit.component",
369
+ "name": "component-compare"
370
+ }
362
371
  }
363
- }
364
- ]
365
- },
366
- "isOptional": false,
367
- "isSpread": false
368
- },
369
- {
370
- "__schema": "ParameterSchema",
371
- "location": {
372
- "filePath": "code.ui.runtime.tsx",
373
- "line": 60,
374
- "character": 5
372
+ ]
373
+ },
374
+ "isOptional": false,
375
+ "isSpread": false
375
376
  },
376
- "name": "_",
377
- "type": {
378
- "__schema": "InferenceTypeSchema",
377
+ {
378
+ "__schema": "ParameterSchema",
379
379
  "location": {
380
380
  "filePath": "code.ui.runtime.tsx",
381
381
  "line": 60,
382
382
  "character": 5
383
383
  },
384
- "type": "any"
385
- },
386
- "isOptional": false,
387
- "isSpread": false
388
- },
389
- {
390
- "__schema": "ParameterSchema",
391
- "location": {
392
- "filePath": "code.ui.runtime.tsx",
393
- "line": 61,
394
- "character": 5
384
+ "name": "_",
385
+ "type": {
386
+ "__schema": "InferenceTypeSchema",
387
+ "location": {
388
+ "filePath": "code.ui.runtime.tsx",
389
+ "line": 60,
390
+ "character": 5
391
+ },
392
+ "type": "any"
393
+ },
394
+ "isOptional": false,
395
+ "isSpread": false
395
396
  },
396
- "name": "[ fileIconSlot ]",
397
- "type": {
398
- "__schema": "TupleTypeSchema",
397
+ {
398
+ "__schema": "ParameterSchema",
399
399
  "location": {
400
400
  "filePath": "code.ui.runtime.tsx",
401
401
  "line": 61,
402
- "character": 21
402
+ "character": 5
403
403
  },
404
- "elements": [
405
- {
406
- "__schema": "TypeRefSchema",
407
- "location": {
408
- "filePath": "code.ui.runtime.tsx",
409
- "line": 61,
410
- "character": 22
411
- },
412
- "name": "FileIconSlot"
413
- }
414
- ]
415
- },
416
- "isOptional": false,
417
- "isSpread": false
418
- },
419
- {
420
- "__schema": "ParameterSchema",
421
- "location": {
422
- "filePath": "code.ui.runtime.tsx",
423
- "line": 62,
424
- "character": 5
404
+ "name": "[ fileIconSlot ]",
405
+ "type": {
406
+ "__schema": "TupleTypeSchema",
407
+ "location": {
408
+ "filePath": "code.ui.runtime.tsx",
409
+ "line": 61,
410
+ "character": 21
411
+ },
412
+ "elements": [
413
+ {
414
+ "__schema": "TypeRefSchema",
415
+ "location": {
416
+ "filePath": "code.ui.runtime.tsx",
417
+ "line": 61,
418
+ "character": 22
419
+ },
420
+ "name": "FileIconSlot"
421
+ }
422
+ ]
423
+ },
424
+ "isOptional": false,
425
+ "isSpread": false
425
426
  },
426
- "name": "harmony",
427
- "type": {
428
- "__schema": "TypeRefSchema",
427
+ {
428
+ "__schema": "ParameterSchema",
429
429
  "location": {
430
430
  "filePath": "code.ui.runtime.tsx",
431
431
  "line": 62,
432
- "character": 14
432
+ "character": 5
433
433
  },
434
- "name": "Harmony",
435
- "componentId": {
436
- "scope": "teambit.harmony",
437
- "name": "harmony",
438
- "version": "0.4.6"
439
- }
434
+ "name": "harmony",
435
+ "type": {
436
+ "__schema": "TypeRefSchema",
437
+ "location": {
438
+ "filePath": "code.ui.runtime.tsx",
439
+ "line": 62,
440
+ "character": 14
441
+ },
442
+ "name": "Harmony",
443
+ "componentId": {
444
+ "scope": "teambit.harmony",
445
+ "name": "harmony",
446
+ "version": "0.4.6"
447
+ }
448
+ },
449
+ "isOptional": false,
450
+ "isSpread": false
451
+ }
452
+ ],
453
+ "returnType": {
454
+ "__schema": "InferenceTypeSchema",
455
+ "location": {
456
+ "filePath": "code.ui.runtime.tsx",
457
+ "line": 58,
458
+ "character": 3
440
459
  },
441
- "isOptional": false,
442
- "isSpread": false
443
- }
444
- ],
445
- "returnType": {
446
- "__schema": "InferenceTypeSchema",
447
- "location": {
448
- "filePath": "code.ui.runtime.tsx",
449
- "line": 58,
450
- "character": 3
460
+ "type": "Promise<CodeUI>"
451
461
  },
452
- "type": "Promise<CodeUI>"
453
- },
454
- "modifiers": [
455
- "static",
456
- "async"
457
- ]
458
- }
459
- ],
460
- "extendsNodes": [],
461
- "implementNodes": []
462
+ "modifiers": [
463
+ "static",
464
+ "async"
465
+ ]
466
+ }
467
+ ],
468
+ "extendsNodes": [],
469
+ "implementNodes": []
470
+ }
462
471
  },
463
472
  {
464
- "__schema": "TypeSchema",
473
+ "__schema": "ExportSchema",
465
474
  "location": {
466
- "filePath": "code.ui.runtime.tsx",
467
- "line": 17,
468
- "character": 1
475
+ "filePath": "index.ts",
476
+ "line": 3,
477
+ "character": 23
469
478
  },
470
- "signature": "type FileIconSlot = SlotRegistry<FileIconMatch[]>",
471
479
  "name": "FileIconSlot",
472
- "type": {
473
- "__schema": "TypeRefSchema",
480
+ "exportNode": {
481
+ "__schema": "TypeSchema",
474
482
  "location": {
475
483
  "filePath": "code.ui.runtime.tsx",
476
484
  "line": 17,
477
- "character": 28
478
- },
479
- "name": "SlotRegistry",
480
- "componentId": {
481
- "scope": "teambit.harmony",
482
- "name": "harmony",
483
- "version": "0.4.6"
485
+ "character": 1
484
486
  },
485
- "typeArgs": [
486
- {
487
- "__schema": "TypeArraySchema",
488
- "location": {
489
- "filePath": "code.ui.runtime.tsx",
490
- "line": 17,
491
- "character": 41
492
- },
493
- "type": {
494
- "__schema": "TypeRefSchema",
487
+ "signature": "type FileIconSlot = SlotRegistry<FileIconMatch[]>",
488
+ "name": "FileIconSlot",
489
+ "type": {
490
+ "__schema": "TypeRefSchema",
491
+ "location": {
492
+ "filePath": "code.ui.runtime.tsx",
493
+ "line": 17,
494
+ "character": 28
495
+ },
496
+ "name": "SlotRegistry",
497
+ "componentId": {
498
+ "scope": "teambit.harmony",
499
+ "name": "harmony",
500
+ "version": "0.4.6"
501
+ },
502
+ "typeArgs": [
503
+ {
504
+ "__schema": "TypeArraySchema",
495
505
  "location": {
496
506
  "filePath": "code.ui.runtime.tsx",
497
507
  "line": 17,
498
508
  "character": 41
499
509
  },
500
- "name": "FileIconMatch",
501
- "componentId": {
502
- "scope": "teambit.code",
503
- "name": "ui/utils/get-file-icon",
504
- "version": "0.0.495"
510
+ "type": {
511
+ "__schema": "TypeRefSchema",
512
+ "location": {
513
+ "filePath": "code.ui.runtime.tsx",
514
+ "line": 17,
515
+ "character": 41
516
+ },
517
+ "name": "FileIconMatch",
518
+ "componentId": {
519
+ "scope": "teambit.code",
520
+ "name": "ui/utils/get-file-icon",
521
+ "version": "0.0.495"
522
+ }
505
523
  }
506
524
  }
507
- }
508
- ]
525
+ ]
526
+ }
509
527
  }
510
528
  },
511
529
  {
512
- "__schema": "VariableLikeSchema",
530
+ "__schema": "ExportSchema",
513
531
  "location": {
514
- "filePath": "code.aspect.ts",
515
- "line": 3,
516
- "character": 14
532
+ "filePath": "index.ts",
533
+ "line": 4,
534
+ "character": 10
517
535
  },
518
- "signature": "const CodeAspect: Aspect",
519
536
  "name": "CodeAspect",
520
- "type": {
521
- "__schema": "TypeRefSchema",
537
+ "exportNode": {
538
+ "__schema": "VariableLikeSchema",
522
539
  "location": {
523
540
  "filePath": "code.aspect.ts",
524
541
  "line": 3,
525
542
  "character": 14
526
543
  },
527
- "name": "Aspect",
528
- "componentId": {
529
- "scope": "teambit.harmony",
530
- "name": "harmony",
531
- "version": "0.4.6"
532
- }
533
- },
534
- "isOptional": false,
535
- "defaultValue": "Aspect.create({\n id: 'teambit.component/code',\n dependencies: [],\n defaultConfig: {},\n})"
544
+ "signature": "const CodeAspect: Aspect",
545
+ "name": "CodeAspect",
546
+ "type": {
547
+ "__schema": "TypeRefSchema",
548
+ "location": {
549
+ "filePath": "code.aspect.ts",
550
+ "line": 3,
551
+ "character": 14
552
+ },
553
+ "name": "Aspect",
554
+ "componentId": {
555
+ "scope": "teambit.harmony",
556
+ "name": "harmony",
557
+ "version": "0.4.6"
558
+ }
559
+ },
560
+ "isOptional": false,
561
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/code',\n dependencies: [],\n defaultConfig: {},\n})"
562
+ }
536
563
  },
537
564
  {
538
565
  "__schema": "UnImplementedSchema",
@@ -1148,7 +1175,7 @@
1148
1175
  "componentId": {
1149
1176
  "scope": "teambit.component",
1150
1177
  "name": "code",
1151
- "version": "1.0.257"
1178
+ "version": "1.0.259"
1152
1179
  },
1153
1180
  "taggedModuleExports": []
1154
1181
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_code@1.0.257/dist/code.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_code@1.0.257/dist/code.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_code@1.0.259/dist/code.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_code@1.0.259/dist/code.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/code",
3
- "version": "1.0.257",
3
+ "version": "1.0.259",
4
4
  "homepage": "https://bit.cloud/teambit/component/code",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "code",
9
- "version": "1.0.257"
9
+ "version": "1.0.259"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.4.6",
@@ -15,11 +15,11 @@
15
15
  "@teambit/code.ui.code-compare-section": "0.0.5",
16
16
  "@teambit/code.ui.code-editor": "0.0.8",
17
17
  "@teambit/code.ui.utils.get-file-icon": "0.0.495",
18
- "@teambit/component": "1.0.257",
18
+ "@teambit/component": "1.0.259",
19
19
  "@teambit/code.ui.code-compare": "0.0.298",
20
20
  "@teambit/code.ui.code-tab-page": "0.0.641",
21
- "@teambit/component-compare": "1.0.257",
22
- "@teambit/ui": "1.0.257"
21
+ "@teambit/component-compare": "1.0.259",
22
+ "@teambit/ui": "1.0.259"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/mocha": "9.1.0",