@teambit/code 1.0.256 → 1.0.258

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.256" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/code@1.0.258" 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={60936:(e,t,o)=>{var n={id:"teambit.component/code@1.0.256",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(60936);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={153:(e,t,o)=>{var n={id:"teambit.component/code@1.0.258",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(153);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})()));
@@ -14,525 +14,524 @@
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"
231
235
  }
232
- }
236
+ },
237
+ "isOptional": false,
238
+ "isSpread": false
239
+ }
240
+ ],
241
+ "returnType": {
242
+ "__schema": "TypeRefSchema",
243
+ "location": {
244
+ "filePath": "code.ui.runtime.tsx",
245
+ "line": 47,
246
+ "character": 3
233
247
  },
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
248
+ "name": "CodeUI"
244
249
  },
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
250
+ "modifiers": []
255
251
  },
256
- "signature": "(property) CodeUI.dependencies: Aspect[]",
257
- "name": "dependencies",
258
- "type": {
259
- "__schema": "InferenceTypeSchema",
252
+ {
253
+ "__schema": "VariableLikeSchema",
260
254
  "location": {
261
255
  "filePath": "code.ui.runtime.tsx",
262
256
  "line": 52,
263
257
  "character": 3
264
258
  },
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
259
+ "signature": "(property) CodeUI.dependencies: Aspect[]",
260
+ "name": "dependencies",
261
+ "type": {
262
+ "__schema": "InferenceTypeSchema",
263
+ "location": {
264
+ "filePath": "code.ui.runtime.tsx",
265
+ "line": 52,
266
+ "character": 3
267
+ },
268
+ "type": "Aspect[]"
269
+ },
270
+ "isOptional": true,
271
+ "defaultValue": "[ComponentAspect, ComponentCompareAspect]"
276
272
  },
277
- "signature": "(property) CodeUI.runtime: RuntimeDefinition",
278
- "name": "runtime",
279
- "type": {
280
- "__schema": "InferenceTypeSchema",
273
+ {
274
+ "__schema": "VariableLikeSchema",
281
275
  "location": {
282
276
  "filePath": "code.ui.runtime.tsx",
283
277
  "line": 54,
284
278
  "character": 3
285
279
  },
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
280
+ "signature": "(property) CodeUI.runtime: RuntimeDefinition",
281
+ "name": "runtime",
282
+ "type": {
283
+ "__schema": "InferenceTypeSchema",
284
+ "location": {
285
+ "filePath": "code.ui.runtime.tsx",
286
+ "line": 54,
287
+ "character": 3
288
+ },
289
+ "type": "RuntimeDefinition"
290
+ },
291
+ "isOptional": true,
292
+ "defaultValue": "UIRuntime"
297
293
  },
298
- "signature": "(property) CodeUI.slots: ((registerFn: () => string) => SlotRegistry<string>)[]",
299
- "name": "slots",
300
- "type": {
301
- "__schema": "InferenceTypeSchema",
294
+ {
295
+ "__schema": "VariableLikeSchema",
302
296
  "location": {
303
297
  "filePath": "code.ui.runtime.tsx",
304
298
  "line": 56,
305
299
  "character": 3
306
300
  },
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
318
- },
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",
301
+ "signature": "(property) CodeUI.slots: ((registerFn: () => string) => SlotRegistry<string>)[]",
302
+ "name": "slots",
303
+ "type": {
304
+ "__schema": "InferenceTypeSchema",
324
305
  "location": {
325
306
  "filePath": "code.ui.runtime.tsx",
326
- "line": 59,
327
- "character": 5
307
+ "line": 56,
308
+ "character": 3
328
309
  },
329
- "name": "[ component, componentCompare ]",
330
- "type": {
331
- "__schema": "TupleTypeSchema",
310
+ "type": "((registerFn: () => string) => SlotRegistry<string>)[]"
311
+ },
312
+ "isOptional": true,
313
+ "defaultValue": "[Slot.withType<string>()]"
314
+ },
315
+ {
316
+ "__schema": "FunctionLikeSchema",
317
+ "location": {
318
+ "filePath": "code.ui.runtime.tsx",
319
+ "line": 58,
320
+ "character": 3
321
+ },
322
+ "signature": "(method) CodeUI.provider([component, componentCompare]: [ComponentUI, ComponentCompareUI], _: any, [fileIconSlot]: [FileIconSlot], harmony: Harmony): Promise<CodeUI>",
323
+ "name": "provider",
324
+ "params": [
325
+ {
326
+ "__schema": "ParameterSchema",
332
327
  "location": {
333
328
  "filePath": "code.ui.runtime.tsx",
334
329
  "line": 59,
335
- "character": 36
330
+ "character": 5
336
331
  },
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
- }
332
+ "name": "[ component, componentCompare ]",
333
+ "type": {
334
+ "__schema": "TupleTypeSchema",
335
+ "location": {
336
+ "filePath": "code.ui.runtime.tsx",
337
+ "line": 59,
338
+ "character": 36
350
339
  },
351
- {
352
- "__schema": "TypeRefSchema",
353
- "location": {
354
- "filePath": "code.ui.runtime.tsx",
355
- "line": 59,
356
- "character": 50
340
+ "elements": [
341
+ {
342
+ "__schema": "TypeRefSchema",
343
+ "location": {
344
+ "filePath": "code.ui.runtime.tsx",
345
+ "line": 59,
346
+ "character": 37
347
+ },
348
+ "name": "ComponentUI"
357
349
  },
358
- "name": "ComponentCompareUI",
359
- "componentId": {
360
- "scope": "teambit.component",
361
- "name": "component-compare"
350
+ {
351
+ "__schema": "TypeRefSchema",
352
+ "location": {
353
+ "filePath": "code.ui.runtime.tsx",
354
+ "line": 59,
355
+ "character": 50
356
+ },
357
+ "name": "ComponentCompareUI"
362
358
  }
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
359
+ ]
360
+ },
361
+ "isOptional": false,
362
+ "isSpread": false
375
363
  },
376
- "name": "_",
377
- "type": {
378
- "__schema": "InferenceTypeSchema",
364
+ {
365
+ "__schema": "ParameterSchema",
379
366
  "location": {
380
367
  "filePath": "code.ui.runtime.tsx",
381
368
  "line": 60,
382
369
  "character": 5
383
370
  },
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
371
+ "name": "_",
372
+ "type": {
373
+ "__schema": "InferenceTypeSchema",
374
+ "location": {
375
+ "filePath": "code.ui.runtime.tsx",
376
+ "line": 60,
377
+ "character": 5
378
+ },
379
+ "type": "any"
380
+ },
381
+ "isOptional": false,
382
+ "isSpread": false
395
383
  },
396
- "name": "[ fileIconSlot ]",
397
- "type": {
398
- "__schema": "TupleTypeSchema",
384
+ {
385
+ "__schema": "ParameterSchema",
399
386
  "location": {
400
387
  "filePath": "code.ui.runtime.tsx",
401
388
  "line": 61,
402
- "character": 21
389
+ "character": 5
403
390
  },
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
391
+ "name": "[ fileIconSlot ]",
392
+ "type": {
393
+ "__schema": "TupleTypeSchema",
394
+ "location": {
395
+ "filePath": "code.ui.runtime.tsx",
396
+ "line": 61,
397
+ "character": 21
398
+ },
399
+ "elements": [
400
+ {
401
+ "__schema": "TypeRefSchema",
402
+ "location": {
403
+ "filePath": "code.ui.runtime.tsx",
404
+ "line": 61,
405
+ "character": 22
406
+ },
407
+ "name": "FileIconSlot"
408
+ }
409
+ ]
410
+ },
411
+ "isOptional": false,
412
+ "isSpread": false
425
413
  },
426
- "name": "harmony",
427
- "type": {
428
- "__schema": "TypeRefSchema",
414
+ {
415
+ "__schema": "ParameterSchema",
429
416
  "location": {
430
417
  "filePath": "code.ui.runtime.tsx",
431
418
  "line": 62,
432
- "character": 14
419
+ "character": 5
420
+ },
421
+ "name": "harmony",
422
+ "type": {
423
+ "__schema": "TypeRefSchema",
424
+ "location": {
425
+ "filePath": "code.ui.runtime.tsx",
426
+ "line": 62,
427
+ "character": 14
428
+ },
429
+ "name": "Harmony"
433
430
  },
434
- "name": "Harmony",
435
- "componentId": {
436
- "scope": "teambit.harmony",
437
- "name": "harmony",
438
- "version": "0.4.6"
439
- }
431
+ "isOptional": false,
432
+ "isSpread": false
433
+ }
434
+ ],
435
+ "returnType": {
436
+ "__schema": "InferenceTypeSchema",
437
+ "location": {
438
+ "filePath": "code.ui.runtime.tsx",
439
+ "line": 58,
440
+ "character": 3
440
441
  },
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
442
+ "type": "Promise<CodeUI>"
451
443
  },
452
- "type": "Promise<CodeUI>"
453
- },
454
- "modifiers": [
455
- "static",
456
- "async"
457
- ]
458
- }
459
- ],
460
- "extendsNodes": [],
461
- "implementNodes": []
444
+ "modifiers": [
445
+ "static",
446
+ "async"
447
+ ]
448
+ }
449
+ ],
450
+ "extendsNodes": [],
451
+ "implementNodes": []
452
+ }
462
453
  },
463
454
  {
464
- "__schema": "TypeSchema",
455
+ "__schema": "ExportSchema",
465
456
  "location": {
466
- "filePath": "code.ui.runtime.tsx",
467
- "line": 17,
468
- "character": 1
457
+ "filePath": "index.ts",
458
+ "line": 3,
459
+ "character": 23
469
460
  },
470
- "signature": "type FileIconSlot = SlotRegistry<FileIconMatch[]>",
471
461
  "name": "FileIconSlot",
472
- "type": {
473
- "__schema": "TypeRefSchema",
462
+ "exportNode": {
463
+ "__schema": "TypeSchema",
474
464
  "location": {
475
465
  "filePath": "code.ui.runtime.tsx",
476
466
  "line": 17,
477
- "character": 28
478
- },
479
- "name": "SlotRegistry",
480
- "componentId": {
481
- "scope": "teambit.harmony",
482
- "name": "harmony",
483
- "version": "0.4.6"
467
+ "character": 1
484
468
  },
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",
469
+ "signature": "type FileIconSlot = SlotRegistry<FileIconMatch[]>",
470
+ "name": "FileIconSlot",
471
+ "type": {
472
+ "__schema": "TypeRefSchema",
473
+ "location": {
474
+ "filePath": "code.ui.runtime.tsx",
475
+ "line": 17,
476
+ "character": 28
477
+ },
478
+ "name": "SlotRegistry",
479
+ "typeArgs": [
480
+ {
481
+ "__schema": "TypeArraySchema",
495
482
  "location": {
496
483
  "filePath": "code.ui.runtime.tsx",
497
484
  "line": 17,
498
485
  "character": 41
499
486
  },
500
- "name": "FileIconMatch",
501
- "componentId": {
502
- "scope": "teambit.code",
503
- "name": "ui/utils/get-file-icon",
504
- "version": "0.0.495"
487
+ "type": {
488
+ "__schema": "TypeRefSchema",
489
+ "location": {
490
+ "filePath": "code.ui.runtime.tsx",
491
+ "line": 17,
492
+ "character": 41
493
+ },
494
+ "name": "FileIconMatch"
505
495
  }
506
496
  }
507
- }
508
- ]
497
+ ]
498
+ }
509
499
  }
510
500
  },
511
501
  {
512
- "__schema": "VariableLikeSchema",
502
+ "__schema": "ExportSchema",
513
503
  "location": {
514
- "filePath": "code.aspect.ts",
515
- "line": 3,
516
- "character": 14
504
+ "filePath": "index.ts",
505
+ "line": 4,
506
+ "character": 10
517
507
  },
518
- "signature": "const CodeAspect: Aspect",
519
508
  "name": "CodeAspect",
520
- "type": {
521
- "__schema": "TypeRefSchema",
509
+ "exportNode": {
510
+ "__schema": "VariableLikeSchema",
522
511
  "location": {
523
512
  "filePath": "code.aspect.ts",
524
513
  "line": 3,
525
514
  "character": 14
526
515
  },
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})"
516
+ "signature": "const CodeAspect: Aspect",
517
+ "name": "CodeAspect",
518
+ "type": {
519
+ "__schema": "TypeRefSchema",
520
+ "location": {
521
+ "filePath": "code.aspect.ts",
522
+ "line": 3,
523
+ "character": 14
524
+ },
525
+ "name": "Aspect",
526
+ "componentId": {
527
+ "scope": "teambit.harmony",
528
+ "name": "harmony",
529
+ "version": "0.4.6"
530
+ }
531
+ },
532
+ "isOptional": false,
533
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/code',\n dependencies: [],\n defaultConfig: {},\n})"
534
+ }
536
535
  },
537
536
  {
538
537
  "__schema": "UnImplementedSchema",
@@ -573,11 +572,6 @@
573
572
  "character": 28
574
573
  },
575
574
  "name": "SlotRegistry",
576
- "componentId": {
577
- "scope": "teambit.harmony",
578
- "name": "harmony",
579
- "version": "0.4.6"
580
- },
581
575
  "typeArgs": [
582
576
  {
583
577
  "__schema": "TypeArraySchema",
@@ -593,12 +587,7 @@
593
587
  "line": 17,
594
588
  "character": 41
595
589
  },
596
- "name": "FileIconMatch",
597
- "componentId": {
598
- "scope": "teambit.code",
599
- "name": "ui/utils/get-file-icon",
600
- "version": "0.0.495"
601
- }
590
+ "name": "FileIconMatch"
602
591
  }
603
592
  }
604
593
  ]
@@ -814,12 +803,7 @@
814
803
  "line": 47,
815
804
  "character": 30
816
805
  },
817
- "name": "FileIconMatch",
818
- "componentId": {
819
- "scope": "teambit.code",
820
- "name": "ui/utils/get-file-icon",
821
- "version": "0.0.495"
822
- }
806
+ "name": "FileIconMatch"
823
807
  }
824
808
  },
825
809
  "isOptional": false,
@@ -933,11 +917,7 @@
933
917
  "line": 59,
934
918
  "character": 37
935
919
  },
936
- "name": "ComponentUI",
937
- "componentId": {
938
- "scope": "teambit.component",
939
- "name": "component"
940
- }
920
+ "name": "ComponentUI"
941
921
  },
942
922
  {
943
923
  "__schema": "TypeRefSchema",
@@ -946,11 +926,7 @@
946
926
  "line": 59,
947
927
  "character": 50
948
928
  },
949
- "name": "ComponentCompareUI",
950
- "componentId": {
951
- "scope": "teambit.component",
952
- "name": "component-compare"
953
- }
929
+ "name": "ComponentCompareUI"
954
930
  }
955
931
  ]
956
932
  },
@@ -1022,12 +998,7 @@
1022
998
  "line": 62,
1023
999
  "character": 14
1024
1000
  },
1025
- "name": "Harmony",
1026
- "componentId": {
1027
- "scope": "teambit.harmony",
1028
- "name": "harmony",
1029
- "version": "0.4.6"
1030
- }
1001
+ "name": "Harmony"
1031
1002
  },
1032
1003
  "isOptional": false,
1033
1004
  "isSpread": false
@@ -1148,7 +1119,7 @@
1148
1119
  "componentId": {
1149
1120
  "scope": "teambit.component",
1150
1121
  "name": "code",
1151
- "version": "1.0.256"
1122
+ "version": "1.0.258"
1152
1123
  },
1153
1124
  "taggedModuleExports": []
1154
1125
  }
@@ -0,0 +1,7 @@
1
+ import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.component_code@1.0.258/dist/code.composition.js';
2
+ import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.component_code@1.0.258/dist/code.docs.mdx';
3
+
4
+ export const compositions = [compositions_0];
5
+ export const overview = [overview_0];
6
+
7
+ export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/code",
3
- "version": "1.0.256",
3
+ "version": "1.0.258",
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.256"
9
+ "version": "1.0.258"
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.256",
18
+ "@teambit/component": "1.0.258",
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.256",
22
- "@teambit/ui": "1.0.256"
21
+ "@teambit/component-compare": "1.0.258",
22
+ "@teambit/ui": "1.0.258"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/mocha": "9.1.0",
@@ -1,7 +0,0 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_code@1.0.256/dist/code.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_code@1.0.256/dist/code.docs.mdx';
3
-
4
- export const compositions = [compositions_0];
5
- export const overview = [overview_0];
6
-
7
- export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};