@teambit/code 1.0.187 → 1.0.189
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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_component_code-preview.js +1 -1
- package/artifacts/schema.json +67 -11
- package/code.ui.runtime.tsx +1 -1
- package/dist/code.aspect.js.map +1 -1
- package/dist/code.composition.js.map +1 -1
- package/dist/code.section.js.map +1 -1
- package/dist/code.ui.runtime.d.ts +1 -1
- package/dist/code.ui.runtime.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/preview-1710224484125.js +7 -0
- package/package.json +8 -8
- package/dist/preview-1709867881461.js +0 -7
|
@@ -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.
|
|
3
|
+
<testsuite name="teambit.component/code@1.0.189" 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={
|
|
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={56832:(e,t,o)=>{var n={id:"teambit.component/code@1.0.189",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(56832);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})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -223,7 +223,12 @@
|
|
|
223
223
|
"line": 47,
|
|
224
224
|
"character": 30
|
|
225
225
|
},
|
|
226
|
-
"name": "FileIconMatch"
|
|
226
|
+
"name": "FileIconMatch",
|
|
227
|
+
"componentId": {
|
|
228
|
+
"scope": "teambit.code",
|
|
229
|
+
"name": "ui/utils/get-file-icon",
|
|
230
|
+
"version": "0.0.495"
|
|
231
|
+
}
|
|
227
232
|
}
|
|
228
233
|
},
|
|
229
234
|
"isOptional": false,
|
|
@@ -337,7 +342,11 @@
|
|
|
337
342
|
"line": 59,
|
|
338
343
|
"character": 37
|
|
339
344
|
},
|
|
340
|
-
"name": "ComponentUI"
|
|
345
|
+
"name": "ComponentUI",
|
|
346
|
+
"componentId": {
|
|
347
|
+
"scope": "teambit.component",
|
|
348
|
+
"name": "component"
|
|
349
|
+
}
|
|
341
350
|
},
|
|
342
351
|
{
|
|
343
352
|
"__schema": "TypeRefSchema",
|
|
@@ -346,7 +355,11 @@
|
|
|
346
355
|
"line": 59,
|
|
347
356
|
"character": 50
|
|
348
357
|
},
|
|
349
|
-
"name": "ComponentCompareUI"
|
|
358
|
+
"name": "ComponentCompareUI",
|
|
359
|
+
"componentId": {
|
|
360
|
+
"scope": "teambit.component",
|
|
361
|
+
"name": "component-compare"
|
|
362
|
+
}
|
|
350
363
|
}
|
|
351
364
|
]
|
|
352
365
|
},
|
|
@@ -418,7 +431,12 @@
|
|
|
418
431
|
"line": 62,
|
|
419
432
|
"character": 14
|
|
420
433
|
},
|
|
421
|
-
"name": "Harmony"
|
|
434
|
+
"name": "Harmony",
|
|
435
|
+
"componentId": {
|
|
436
|
+
"scope": "teambit.harmony",
|
|
437
|
+
"name": "harmony",
|
|
438
|
+
"version": "0.4.6"
|
|
439
|
+
}
|
|
422
440
|
},
|
|
423
441
|
"isOptional": false,
|
|
424
442
|
"isSpread": false
|
|
@@ -459,6 +477,11 @@
|
|
|
459
477
|
"character": 28
|
|
460
478
|
},
|
|
461
479
|
"name": "SlotRegistry",
|
|
480
|
+
"componentId": {
|
|
481
|
+
"scope": "teambit.harmony",
|
|
482
|
+
"name": "harmony",
|
|
483
|
+
"version": "0.4.6"
|
|
484
|
+
},
|
|
462
485
|
"typeArgs": [
|
|
463
486
|
{
|
|
464
487
|
"__schema": "TypeArraySchema",
|
|
@@ -474,7 +497,12 @@
|
|
|
474
497
|
"line": 17,
|
|
475
498
|
"character": 41
|
|
476
499
|
},
|
|
477
|
-
"name": "FileIconMatch"
|
|
500
|
+
"name": "FileIconMatch",
|
|
501
|
+
"componentId": {
|
|
502
|
+
"scope": "teambit.code",
|
|
503
|
+
"name": "ui/utils/get-file-icon",
|
|
504
|
+
"version": "0.0.495"
|
|
505
|
+
}
|
|
478
506
|
}
|
|
479
507
|
}
|
|
480
508
|
]
|
|
@@ -545,6 +573,11 @@
|
|
|
545
573
|
"character": 28
|
|
546
574
|
},
|
|
547
575
|
"name": "SlotRegistry",
|
|
576
|
+
"componentId": {
|
|
577
|
+
"scope": "teambit.harmony",
|
|
578
|
+
"name": "harmony",
|
|
579
|
+
"version": "0.4.6"
|
|
580
|
+
},
|
|
548
581
|
"typeArgs": [
|
|
549
582
|
{
|
|
550
583
|
"__schema": "TypeArraySchema",
|
|
@@ -560,7 +593,12 @@
|
|
|
560
593
|
"line": 17,
|
|
561
594
|
"character": 41
|
|
562
595
|
},
|
|
563
|
-
"name": "FileIconMatch"
|
|
596
|
+
"name": "FileIconMatch",
|
|
597
|
+
"componentId": {
|
|
598
|
+
"scope": "teambit.code",
|
|
599
|
+
"name": "ui/utils/get-file-icon",
|
|
600
|
+
"version": "0.0.495"
|
|
601
|
+
}
|
|
564
602
|
}
|
|
565
603
|
}
|
|
566
604
|
]
|
|
@@ -776,7 +814,12 @@
|
|
|
776
814
|
"line": 47,
|
|
777
815
|
"character": 30
|
|
778
816
|
},
|
|
779
|
-
"name": "FileIconMatch"
|
|
817
|
+
"name": "FileIconMatch",
|
|
818
|
+
"componentId": {
|
|
819
|
+
"scope": "teambit.code",
|
|
820
|
+
"name": "ui/utils/get-file-icon",
|
|
821
|
+
"version": "0.0.495"
|
|
822
|
+
}
|
|
780
823
|
}
|
|
781
824
|
},
|
|
782
825
|
"isOptional": false,
|
|
@@ -890,7 +933,11 @@
|
|
|
890
933
|
"line": 59,
|
|
891
934
|
"character": 37
|
|
892
935
|
},
|
|
893
|
-
"name": "ComponentUI"
|
|
936
|
+
"name": "ComponentUI",
|
|
937
|
+
"componentId": {
|
|
938
|
+
"scope": "teambit.component",
|
|
939
|
+
"name": "component"
|
|
940
|
+
}
|
|
894
941
|
},
|
|
895
942
|
{
|
|
896
943
|
"__schema": "TypeRefSchema",
|
|
@@ -899,7 +946,11 @@
|
|
|
899
946
|
"line": 59,
|
|
900
947
|
"character": 50
|
|
901
948
|
},
|
|
902
|
-
"name": "ComponentCompareUI"
|
|
949
|
+
"name": "ComponentCompareUI",
|
|
950
|
+
"componentId": {
|
|
951
|
+
"scope": "teambit.component",
|
|
952
|
+
"name": "component-compare"
|
|
953
|
+
}
|
|
903
954
|
}
|
|
904
955
|
]
|
|
905
956
|
},
|
|
@@ -971,7 +1022,12 @@
|
|
|
971
1022
|
"line": 62,
|
|
972
1023
|
"character": 14
|
|
973
1024
|
},
|
|
974
|
-
"name": "Harmony"
|
|
1025
|
+
"name": "Harmony",
|
|
1026
|
+
"componentId": {
|
|
1027
|
+
"scope": "teambit.harmony",
|
|
1028
|
+
"name": "harmony",
|
|
1029
|
+
"version": "0.4.6"
|
|
1030
|
+
}
|
|
975
1031
|
},
|
|
976
1032
|
"isOptional": false,
|
|
977
1033
|
"isSpread": false
|
|
@@ -1092,7 +1148,7 @@
|
|
|
1092
1148
|
"componentId": {
|
|
1093
1149
|
"scope": "teambit.component",
|
|
1094
1150
|
"name": "code",
|
|
1095
|
-
"version": "1.0.
|
|
1151
|
+
"version": "1.0.189"
|
|
1096
1152
|
},
|
|
1097
1153
|
"taggedModuleExports": []
|
|
1098
1154
|
}
|
package/code.ui.runtime.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentAspect, ComponentUI } from '@teambit/component';
|
|
3
3
|
import { UIRuntime } from '@teambit/ui';
|
|
4
|
-
import { CodeCompare, CodeCompareEditorProvider, CodeCompareProps } from '@teambit/code.ui.code-compare';
|
|
4
|
+
import { CodeCompare, CodeCompareEditorProvider, type CodeCompareProps } from '@teambit/code.ui.code-compare';
|
|
5
5
|
import { Harmony, SlotRegistry, Slot } from '@teambit/harmony';
|
|
6
6
|
import type { FileIconMatch } from '@teambit/code.ui.utils.get-file-icon';
|
|
7
7
|
import { staticStorageUrl } from '@teambit/base-ui.constants.storage';
|
package/dist/code.aspect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_harmony","data","require","CodeAspect","exports","Aspect","create","id","dependencies","defaultConfig","_default","default"],"sources":["code.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const CodeAspect = Aspect.create({\n id: 'teambit.component/code',\n dependencies: [],\n defaultConfig: {},\n});\n\nexport default CodeAspect;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EACtCC,EAAE,EAAE,wBAAwB;EAC5BC,YAAY,EAAE,EAAE;EAChBC,aAAa,EAAE,CAAC;AAClB,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAN,OAAA,CAAAO,OAAA,GAEYR,UAAU"}
|
|
1
|
+
{"version":3,"names":["_harmony","data","require","CodeAspect","exports","Aspect","create","id","dependencies","defaultConfig","_default","default"],"sources":["code.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const CodeAspect = Aspect.create({\n id: 'teambit.component/code',\n dependencies: [],\n defaultConfig: {},\n});\n\nexport default CodeAspect;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EACtCC,EAAE,EAAE,wBAAwB;EAC5BC,YAAY,EAAE,EAAE;EAChBC,aAAa,EAAE,CAAC;AAClB,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAN,OAAA,CAAAO,OAAA,GAEYR,UAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["code.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/code.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAAkD,CAAE,CAChF,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA"}
|
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["code.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/code.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAAkD,CAAE,CAChF,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA","ignoreList":[]}
|
package/dist/code.section.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","_uiFoundationUi","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","CodeSection","constructor","codeUI","path","element","getCodePage","href","children","createElement","MenuWidgetIcon","icon","tooltipContent","displayName","exports"],"sources":["code.section.tsx"],"sourcesContent":["import { Section } from '@teambit/component';\nimport React from 'react';\nimport { MenuWidgetIcon } from '@teambit/ui-foundation.ui.menu-widget-icon';\nimport type { CodeUI } from './code.ui.runtime';\n\nexport class CodeSection implements Section {\n constructor(private codeUI: CodeUI) {}\n route = {\n path: '~code/*',\n element: this.codeUI.getCodePage(),\n };\n navigationLink = {\n href: '~code',\n children: <MenuWidgetIcon icon=\"Code\" tooltipContent=\"Code\" />,\n displayName: 'Code',\n };\n order = 30;\n}\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA4E,SAAAC,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAGrE,MAAMW,WAAW,CAAoB;EAC1CC,WAAWA,CAASC,MAAc,EAAE;IAAA,KAAhBA,MAAc,GAAdA,MAAc;IAAAtB,eAAA,gBAC1B;MACNuB,IAAI,EAAE,SAAS;MACfC,OAAO,EAAE,IAAI,CAACF,MAAM,CAACG,WAAW,CAAC;IACnC,CAAC;IAAAzB,eAAA,yBACgB;MACf0B,IAAI,EAAE,OAAO;MACbC,QAAQ,eAAEnC,MAAA,GAAAO,OAAA,CAAA6B,aAAA,CAAChC,eAAA,GAAAiC,cAAc;QAACC,IAAI,EAAC,MAAM;QAACC,cAAc,EAAC;MAAM,CAAE,CAAC;MAC9DC,WAAW,EAAE;IACf,CAAC;IAAAhC,eAAA,gBACO,EAAE;EAV2B;AAWvC;AAACiC,OAAA,CAAAb,WAAA,GAAAA,WAAA"}
|
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","_uiFoundationUi","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","CodeSection","constructor","codeUI","path","element","getCodePage","href","children","createElement","MenuWidgetIcon","icon","tooltipContent","displayName","exports"],"sources":["code.section.tsx"],"sourcesContent":["import { Section } from '@teambit/component';\nimport React from 'react';\nimport { MenuWidgetIcon } from '@teambit/ui-foundation.ui.menu-widget-icon';\nimport type { CodeUI } from './code.ui.runtime';\n\nexport class CodeSection implements Section {\n constructor(private codeUI: CodeUI) {}\n route = {\n path: '~code/*',\n element: this.codeUI.getCodePage(),\n };\n navigationLink = {\n href: '~code',\n children: <MenuWid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CAASC,MAAc,EAAE;IAAA,KAAhBA,MAAc,GAAdA,MAAc;IAAAtB,eAAA,gBAC1B;MACNuB,IAAI,EAAE,SAAS;MACfC,OAAO,EAAE,IAAI,CAACF,MAAM,CAACG,WAAW,CAAC;IACnC,CAAC;IAAAzB,eAAA,yBACgB;MACf0B,IAAI,EAAE,OAAO;MACbC,QAAQ,eAAEnC,MAAA,GAAAO,OAAA,CAAA6B,aAAA,CAAChC,eAAA,GAAAiC,cAAc;QAACC,IAAI,EAAC,MAAM;QAACC,cAAc,EAAC;MAAM,CAAE,CAAC;MAC9DC,WAAW,EAAE;IACf,CAAC;IAAAhC,eAAA,gBACO,EAAE;EAV2B;AAWvC;AAACiC,OAAA,CAAAb,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentUI } from '@teambit/component';
|
|
3
|
-
import { CodeCompareProps } from '@teambit/code.ui.code-compare';
|
|
3
|
+
import { type CodeCompareProps } from '@teambit/code.ui.code-compare';
|
|
4
4
|
import { Harmony, SlotRegistry } from '@teambit/harmony';
|
|
5
5
|
import type { FileIconMatch } from '@teambit/code.ui.utils.get-file-icon';
|
|
6
6
|
import { CodePageProps } from '@teambit/code.ui.code-tab-page';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","_component","_ui","_codeUi","_harmony","_baseUiConstants","_codeUi2","_componentCompare","_codeUi3","_codeUi4","_code","_code2","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_defineProperty","value","_toPropertyKey","defineProperty","enumerable","configurable","writable","t","_toPrimitive","String","r","e","Symbol","toPrimitive","TypeError","Number","isTsx","CodeUI","constructor","host","fileIconSlot","props","createElement","CodePage","CodeCompareEditorProvider","CodeCompare","CodeEditorProvider","registerEnvFileIcon","icons","register","provider","component","componentCompare","_","harmony","config","get","ui","section","CodeSection","fileName","test","staticStorageUrl","undefined","registerRoute","route","registerWidget","navigationLink","order","codeCompare","CodeCompareSection","registerNavigation","registerRoutes","exports","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","CodeAspect","addRuntime"],"sources":["code.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { UIRuntime } from '@teambit/ui';\nimport { CodeCompare, CodeCompareEditorProvider, CodeCompareProps } from '@teambit/code.ui.code-compare';\nimport { Harmony, SlotRegistry, Slot } from '@teambit/harmony';\nimport type { FileIconMatch } from '@teambit/code.ui.utils.get-file-icon';\nimport { staticStorageUrl } from '@teambit/base-ui.constants.storage';\nimport { CodePage, CodePageProps } from '@teambit/code.ui.code-tab-page';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { CodeEditorProvider } from '@teambit/code.ui.code-editor';\nimport { CodeCompareSection } from '@teambit/code.ui.code-compare-section';\nimport { CodeAspect } from './code.aspect';\nimport { CodeSection } from './code.section';\n\nconst isTsx = /\\.tsx$/;\n\nexport type FileIconSlot = SlotRegistry<FileIconMatch[]>;\n\n/**\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 */\nexport class CodeUI {\n constructor(\n /**\n * register an icon for a specific file type. pass icon and a match method/regexp\n */\n private host: string,\n private fileIconSlot?: FileIconSlot\n ) {}\n\n getCodePage = (props?: Partial<CodePageProps>) => {\n return <CodePage {...(props || {})} fileIconSlot={this.fileIconSlot} host={this.host} />;\n };\n\n getCodeCompare = (props?: Partial<CodeCompareProps>) => {\n return (\n <CodeCompareEditorProvider>\n <CodeCompare {...(props || {})} fileIconSlot={this.fileIconSlot} />\n </CodeCompareEditorProvider>\n );\n };\n\n getCodeEditorProvider = () => CodeEditorProvider;\n getCodeDiffEditorProvider = () => CodeCompareEditorProvider;\n\n registerEnvFileIcon(icons: FileIconMatch[]) {\n this.fileIconSlot?.register(icons);\n return this;\n }\n\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n\n static runtime = UIRuntime;\n\n static slots = [Slot.withType<string>()];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n _,\n [fileIconSlot]: [FileIconSlot],\n harmony: Harmony\n ) {\n const { config } = harmony;\n const host = String(config.get('teambit.harmony/bit'));\n const ui = new CodeUI(host, fileIconSlot);\n const section = new CodeSection(ui);\n\n // overrides the default tsx react icon with the typescript icon\n ui.registerEnvFileIcon([\n (fileName) => (isTsx.test(fileName) ? `${staticStorageUrl}/file-icons/file_type_typescript.svg` : undefined),\n ]);\n component.registerRoute([section.route]);\n component.registerWidget(section.navigationLink, section.order);\n const codeCompare = new CodeCompareSection(ui);\n componentCompare.registerNavigation(codeCompare);\n componentCompare.registerRoutes([codeCompare.route]);\n return ui;\n }\n}\n\nCodeAspect.addRuntime(CodeUI);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,IAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,GAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,SAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,QAAA,YAAAA,CAA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AAC,GAAI,GAAEE,mCAAiB,sCAAqC,GAAGC,SAAU,CAC7G,CAAC;IACFZ,SAAS,CAACa,aAAa,CAAC,CAACN,OAAO,CAACO,KAAK,CAAC,CAAC;IACxCd,SAAS,CAACe,cAAc,CAACR,OAAO,CAACS,cAAc,EAAET,OAAO,CAACU,KAAK,CAAC;IAC/D,MAAMC,WAAW,GAAG,KAAIC,6BAAkB,EAACb,EAAE,CAAC;IAC9CL,gBAAgB,CAACmB,kBAAkB,CAACF,WAAW,CAAC;IAChDjB,gBAAgB,CAACoB,cAAc,CAAC,CAACH,WAAW,CAACJ,KAAK,CAAC,CAAC;IACpD,OAAOR,EAAE;EACX;AACF;AAACgB,OAAA,CAAApC,MAAA,GAAAA,MAAA;AAAAjB,eAAA,CAzDYiB,MAAM,kBA6BK,CAACqC,4BAAe,EAAEC,0CAAsB,CAAC;AAAAvD,eAAA,CA7BpDiB,MAAM,aA+BAuC,eAAS;AAAAxD,eAAA,CA/BfiB,MAAM,WAiCF,CAACwC,eAAI,CAACC,QAAQ,CAAS,CAAC,CAAC;AA0B1CC,kBAAU,CAACC,UAAU,CAAC3C,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","_component","_ui","_codeUi","_harmony","_baseUiConstants","_codeUi2","_componentCompare","_codeUi3","_codeUi4","_code","_code2","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_defineProperty","value","_toPropertyKey","defineProperty","enumerable","configurable","writable","t","_toPrimitive","String","r","e","Symbol","toPrimitive","TypeError","Number","isTsx","CodeUI","constructor","host","fileIconSlot","props","createElement","CodePage","CodeCompareEditorProvider","CodeCompare","CodeEditorProvider","registerEnvFileIcon","icons","register","provider","component","componentCompare","_","harmony","config","get","ui","section","CodeSection","fileName","test","staticStorageUrl","undefined","registerRoute","route","registerWidget","navigationLink","order","codeCompare","CodeCompareSection","registerNavigation","registerRoutes","exports","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","CodeAspect","addRuntime"],"sources":["code.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { UIRuntime } from '@teambit/ui';\nimport { CodeCompare, CodeCompareEditorProvider, type CodeCompareProps } from '@teambit/code.ui.code-compare';\nimport { Harmony, SlotRegistry, Slot } from '@teambit/harmony';\nimport type { FileIconMatch } from '@teambit/code.ui.utils.get-file-icon';\nimport { staticStorageUrl } from '@teambit/base-ui.constants.storage';\nimport { CodePage, CodePageProps } from '@teambit/code.ui.code-tab-page';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { CodeEditorProvider } from '@teambit/code.ui.code-editor';\nimport { CodeCompareSection } from '@teambit/code.ui.code-compare-section';\nimport { CodeAspect } from './code.aspect';\nimport { CodeSection } from './code.section';\n\nconst isTsx = /\\.tsx$/;\n\nexport type FileIconSlot = SlotRegistry<FileIconMatch[]>;\n\n/**\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 */\nexport class CodeUI {\n constructor(\n /**\n * register an icon for a specific file type. pass icon and a match method/regexp\n */\n private host: string,\n private fileIconSlot?: FileIconSlot\n ) {}\n\n getCodePage = (props?: Partial<CodePageProps>) => {\n return <CodePage {...(props || {})} fileIconSlot={this.fileIconSlot} host={this.host} />;\n };\n\n getCodeCompare = (props?: Partial<CodeCompareProps>) => {\n return (\n <CodeCompareEditorProvider>\n <CodeCompare {...(props || {})} fileIconSlot={this.fileIconSlot} />\n </CodeCompareEditorProvider>\n );\n };\n\n getCodeEditorProvider = () => CodeEditorProvider;\n getCodeDiffEditorProvider = () => CodeCompareEditorProvider;\n\n registerEnvFileIcon(icons: FileIconMatch[]) {\n this.fileIconSlot?.register(icons);\n return this;\n }\n\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n\n static runtime = UIRuntime;\n\n static slots = [Slot.withType<string>()];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n _,\n [fileIconSlot]: [FileIconSlot],\n harmony: Harmony\n ) {\n const { config } = harmony;\n const host = String(config.get('teambit.harmony/bit'));\n const ui = new CodeUI(host, fileIconSlot);\n const section = new CodeSection(ui);\n\n // overrides the default tsx react icon with the typescript icon\n ui.registerEnvFileIcon([\n (fileName) => (isTsx.test(fileName) ? `${staticStorageUrl}/file-icons/file_type_typescript.svg` : undefined),\n ]);\n component.registerRoute([section.route]);\n component.registerWidget(section.navigationLink, section.order);\n const codeCompare = new CodeCompareSection(ui);\n componentCompare.registerNavigation(codeCompare);\n componentCompare.registerRoutes([codeCompare.route]);\n return ui;\n }\n}\n\nCodeAspect.addRuntime(CodeUI);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,IAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,GAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,SAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAO,iBAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;E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ACO,KAAK,CAAC,CAAC;IACxCd,SAAS,CAACe,cAAc,CAACR,OAAO,CAACS,cAAc,EAAET,OAAO,CAACU,KAAK,CAAC;IAC/D,MAAMC,WAAW,GAAG,KAAIC,6BAAkB,EAACb,EAAE,CAAC;IAC9CL,gBAAgB,CAACmB,kBAAkB,CAACF,WAAW,CAAC;IAChDjB,gBAAgB,CAACoB,cAAc,CAAC,CAACH,WAAW,CAACJ,KAAK,CAAC,CAAC;IACpD,OAAOR,EAAE;EACX;AACF;AAACgB,OAAA,CAAApC,MAAA,GAAAA,MAAA;AAAAjB,eAAA,CAzDYiB,MAAM,kBA6BK,CAACqC,4BAAe,EAAEC,0CAAsB,CAAC;AAAAvD,eAAA,CA7BpDiB,MAAM,aA+BAuC,eAAS;AAAAxD,eAAA,CA/BfiB,MAAM,WAiCF,CAACwC,eAAI,CAACC,QAAQ,CAAS,CAAC,CAAC;AA0B1CC,kBAAU,CAACC,UAAU,CAAC3C,MAAM,CAAC","ignoreList":[]}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_code","data","require","_default","exports","default","CodeAspect"],"sources":["index.ts"],"sourcesContent":["import { CodeAspect } from './code.aspect';\n\nexport type { CodeUI, FileIconSlot } from './code.ui.runtime';\nexport { CodeAspect };\nexport default CodeAspect;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA2C,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAI5BC,kBAAU"}
|
|
1
|
+
{"version":3,"names":["_code","data","require","_default","exports","default","CodeAspect"],"sources":["index.ts"],"sourcesContent":["import { CodeAspect } from './code.aspect';\n\nexport type { CodeUI, FileIconSlot } from './code.ui.runtime';\nexport { CodeAspect };\nexport default CodeAspect;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA2C,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAI5BC,kBAAU","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.component_code@1.0.189/dist/code.composition.js';
|
|
2
|
+
import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.component_code@1.0.189/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.
|
|
3
|
+
"version": "1.0.189",
|
|
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.
|
|
9
|
+
"version": "1.0.189"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.4.6",
|
|
@@ -15,16 +15,16 @@
|
|
|
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.
|
|
19
|
-
"@teambit/code.ui.code-compare": "0.0.
|
|
20
|
-
"@teambit/code.ui.code-tab-page": "0.0.
|
|
21
|
-
"@teambit/component-compare": "1.0.
|
|
22
|
-
"@teambit/ui": "1.0.
|
|
18
|
+
"@teambit/component": "1.0.189",
|
|
19
|
+
"@teambit/code.ui.code-compare": "0.0.292",
|
|
20
|
+
"@teambit/code.ui.code-tab-page": "0.0.640",
|
|
21
|
+
"@teambit/component-compare": "1.0.189",
|
|
22
|
+
"@teambit/ui": "1.0.189"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/mocha": "9.1.0",
|
|
26
26
|
"chai": "4.3.0",
|
|
27
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
27
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.27"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^17.0.0 || ^18.0.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_code@1.0.187/dist/code.composition.js';
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_code@1.0.187/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"}]};
|