@teambit/code 1.0.225 → 1.0.227
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 +11 -67
- package/dist/{preview-1712546198033.js → preview-1712719054377.js} +2 -2
- package/package.json +6 -6
- package/tsconfig.json +13 -1
- package/dist/code.aspect.d.ts +0 -3
- package/dist/code.composition.d.ts +0 -1
- package/dist/code.section.d.ts +0 -16
- package/dist/code.ui.runtime.d.ts +0 -37
- package/dist/index.d.ts +0 -4
|
@@ -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.227" 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={55337:(e,t,o)=>{var n={id:"teambit.component/code@1.0.227",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(55337);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,12 +223,7 @@
|
|
|
223
223
|
"line": 47,
|
|
224
224
|
"character": 30
|
|
225
225
|
},
|
|
226
|
-
"name": "FileIconMatch"
|
|
227
|
-
"componentId": {
|
|
228
|
-
"scope": "teambit.code",
|
|
229
|
-
"name": "ui/utils/get-file-icon",
|
|
230
|
-
"version": "0.0.495"
|
|
231
|
-
}
|
|
226
|
+
"name": "FileIconMatch"
|
|
232
227
|
}
|
|
233
228
|
},
|
|
234
229
|
"isOptional": false,
|
|
@@ -342,11 +337,7 @@
|
|
|
342
337
|
"line": 59,
|
|
343
338
|
"character": 37
|
|
344
339
|
},
|
|
345
|
-
"name": "ComponentUI"
|
|
346
|
-
"componentId": {
|
|
347
|
-
"scope": "teambit.component",
|
|
348
|
-
"name": "component"
|
|
349
|
-
}
|
|
340
|
+
"name": "ComponentUI"
|
|
350
341
|
},
|
|
351
342
|
{
|
|
352
343
|
"__schema": "TypeRefSchema",
|
|
@@ -355,11 +346,7 @@
|
|
|
355
346
|
"line": 59,
|
|
356
347
|
"character": 50
|
|
357
348
|
},
|
|
358
|
-
"name": "ComponentCompareUI"
|
|
359
|
-
"componentId": {
|
|
360
|
-
"scope": "teambit.component",
|
|
361
|
-
"name": "component-compare"
|
|
362
|
-
}
|
|
349
|
+
"name": "ComponentCompareUI"
|
|
363
350
|
}
|
|
364
351
|
]
|
|
365
352
|
},
|
|
@@ -431,12 +418,7 @@
|
|
|
431
418
|
"line": 62,
|
|
432
419
|
"character": 14
|
|
433
420
|
},
|
|
434
|
-
"name": "Harmony"
|
|
435
|
-
"componentId": {
|
|
436
|
-
"scope": "teambit.harmony",
|
|
437
|
-
"name": "harmony",
|
|
438
|
-
"version": "0.4.6"
|
|
439
|
-
}
|
|
421
|
+
"name": "Harmony"
|
|
440
422
|
},
|
|
441
423
|
"isOptional": false,
|
|
442
424
|
"isSpread": false
|
|
@@ -477,11 +459,6 @@
|
|
|
477
459
|
"character": 28
|
|
478
460
|
},
|
|
479
461
|
"name": "SlotRegistry",
|
|
480
|
-
"componentId": {
|
|
481
|
-
"scope": "teambit.harmony",
|
|
482
|
-
"name": "harmony",
|
|
483
|
-
"version": "0.4.6"
|
|
484
|
-
},
|
|
485
462
|
"typeArgs": [
|
|
486
463
|
{
|
|
487
464
|
"__schema": "TypeArraySchema",
|
|
@@ -497,12 +474,7 @@
|
|
|
497
474
|
"line": 17,
|
|
498
475
|
"character": 41
|
|
499
476
|
},
|
|
500
|
-
"name": "FileIconMatch"
|
|
501
|
-
"componentId": {
|
|
502
|
-
"scope": "teambit.code",
|
|
503
|
-
"name": "ui/utils/get-file-icon",
|
|
504
|
-
"version": "0.0.495"
|
|
505
|
-
}
|
|
477
|
+
"name": "FileIconMatch"
|
|
506
478
|
}
|
|
507
479
|
}
|
|
508
480
|
]
|
|
@@ -573,11 +545,6 @@
|
|
|
573
545
|
"character": 28
|
|
574
546
|
},
|
|
575
547
|
"name": "SlotRegistry",
|
|
576
|
-
"componentId": {
|
|
577
|
-
"scope": "teambit.harmony",
|
|
578
|
-
"name": "harmony",
|
|
579
|
-
"version": "0.4.6"
|
|
580
|
-
},
|
|
581
548
|
"typeArgs": [
|
|
582
549
|
{
|
|
583
550
|
"__schema": "TypeArraySchema",
|
|
@@ -593,12 +560,7 @@
|
|
|
593
560
|
"line": 17,
|
|
594
561
|
"character": 41
|
|
595
562
|
},
|
|
596
|
-
"name": "FileIconMatch"
|
|
597
|
-
"componentId": {
|
|
598
|
-
"scope": "teambit.code",
|
|
599
|
-
"name": "ui/utils/get-file-icon",
|
|
600
|
-
"version": "0.0.495"
|
|
601
|
-
}
|
|
563
|
+
"name": "FileIconMatch"
|
|
602
564
|
}
|
|
603
565
|
}
|
|
604
566
|
]
|
|
@@ -814,12 +776,7 @@
|
|
|
814
776
|
"line": 47,
|
|
815
777
|
"character": 30
|
|
816
778
|
},
|
|
817
|
-
"name": "FileIconMatch"
|
|
818
|
-
"componentId": {
|
|
819
|
-
"scope": "teambit.code",
|
|
820
|
-
"name": "ui/utils/get-file-icon",
|
|
821
|
-
"version": "0.0.495"
|
|
822
|
-
}
|
|
779
|
+
"name": "FileIconMatch"
|
|
823
780
|
}
|
|
824
781
|
},
|
|
825
782
|
"isOptional": false,
|
|
@@ -933,11 +890,7 @@
|
|
|
933
890
|
"line": 59,
|
|
934
891
|
"character": 37
|
|
935
892
|
},
|
|
936
|
-
"name": "ComponentUI"
|
|
937
|
-
"componentId": {
|
|
938
|
-
"scope": "teambit.component",
|
|
939
|
-
"name": "component"
|
|
940
|
-
}
|
|
893
|
+
"name": "ComponentUI"
|
|
941
894
|
},
|
|
942
895
|
{
|
|
943
896
|
"__schema": "TypeRefSchema",
|
|
@@ -946,11 +899,7 @@
|
|
|
946
899
|
"line": 59,
|
|
947
900
|
"character": 50
|
|
948
901
|
},
|
|
949
|
-
"name": "ComponentCompareUI"
|
|
950
|
-
"componentId": {
|
|
951
|
-
"scope": "teambit.component",
|
|
952
|
-
"name": "component-compare"
|
|
953
|
-
}
|
|
902
|
+
"name": "ComponentCompareUI"
|
|
954
903
|
}
|
|
955
904
|
]
|
|
956
905
|
},
|
|
@@ -1022,12 +971,7 @@
|
|
|
1022
971
|
"line": 62,
|
|
1023
972
|
"character": 14
|
|
1024
973
|
},
|
|
1025
|
-
"name": "Harmony"
|
|
1026
|
-
"componentId": {
|
|
1027
|
-
"scope": "teambit.harmony",
|
|
1028
|
-
"name": "harmony",
|
|
1029
|
-
"version": "0.4.6"
|
|
1030
|
-
}
|
|
974
|
+
"name": "Harmony"
|
|
1031
975
|
},
|
|
1032
976
|
"isOptional": false,
|
|
1033
977
|
"isSpread": false
|
|
@@ -1148,7 +1092,7 @@
|
|
|
1148
1092
|
"componentId": {
|
|
1149
1093
|
"scope": "teambit.component",
|
|
1150
1094
|
"name": "code",
|
|
1151
|
-
"version": "1.0.
|
|
1095
|
+
"version": "1.0.227"
|
|
1152
1096
|
},
|
|
1153
1097
|
"taggedModuleExports": []
|
|
1154
1098
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_code@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_code@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_code@1.0.227/dist/code.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_code@1.0.227/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.
|
|
3
|
+
"version": "1.0.227",
|
|
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.227"
|
|
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.
|
|
18
|
+
"@teambit/component": "1.0.227",
|
|
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.
|
|
22
|
-
"@teambit/ui": "1.0.
|
|
21
|
+
"@teambit/component-compare": "1.0.227",
|
|
22
|
+
"@teambit/ui": "1.0.227"
|
|
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.30"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
23
|
+
"noImplicitAny": false,
|
|
24
|
+
"composite": true
|
|
24
25
|
},
|
|
25
26
|
"exclude": [
|
|
26
27
|
"artifacts",
|
|
@@ -35,5 +36,16 @@
|
|
|
35
36
|
"include": [
|
|
36
37
|
"**/*",
|
|
37
38
|
"**/*.json"
|
|
39
|
+
],
|
|
40
|
+
"references": [
|
|
41
|
+
{
|
|
42
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.227"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.227"
|
|
49
|
+
}
|
|
38
50
|
]
|
|
39
51
|
}
|
package/dist/code.aspect.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/code.section.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Section } from '@teambit/component';
|
|
2
|
-
import type { CodeUI } from './code.ui.runtime';
|
|
3
|
-
export declare class CodeSection implements Section {
|
|
4
|
-
private codeUI;
|
|
5
|
-
constructor(codeUI: CodeUI);
|
|
6
|
-
route: {
|
|
7
|
-
path: string;
|
|
8
|
-
element: import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
navigationLink: {
|
|
11
|
-
href: string;
|
|
12
|
-
children: import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
order: number;
|
|
16
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ComponentUI } from '@teambit/component';
|
|
3
|
-
import { type CodeCompareProps } from '@teambit/code.ui.code-compare';
|
|
4
|
-
import { Harmony, SlotRegistry } from '@teambit/harmony';
|
|
5
|
-
import type { FileIconMatch } from '@teambit/code.ui.utils.get-file-icon';
|
|
6
|
-
import { CodePageProps } from '@teambit/code.ui.code-tab-page';
|
|
7
|
-
import { ComponentCompareUI } from '@teambit/component-compare';
|
|
8
|
-
export type FileIconSlot = SlotRegistry<FileIconMatch[]>;
|
|
9
|
-
/**
|
|
10
|
-
* Component code tab aspect. Presents the code tab page and allows to control the code tab and register specific icons for each file type.
|
|
11
|
-
* @example CodeUI.registerEnvFileIcon([(fileName) => (/your-regexp/.test(fileName) ? 'your.icon.url' : undefined)])
|
|
12
|
-
*/
|
|
13
|
-
export declare class CodeUI {
|
|
14
|
-
/**
|
|
15
|
-
* register an icon for a specific file type. pass icon and a match method/regexp
|
|
16
|
-
*/
|
|
17
|
-
private host;
|
|
18
|
-
private fileIconSlot?;
|
|
19
|
-
constructor(
|
|
20
|
-
/**
|
|
21
|
-
* register an icon for a specific file type. pass icon and a match method/regexp
|
|
22
|
-
*/
|
|
23
|
-
host: string, fileIconSlot?: FileIconSlot | undefined);
|
|
24
|
-
getCodePage: (props?: Partial<CodePageProps>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
getCodeCompare: (props?: Partial<CodeCompareProps>) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
getCodeEditorProvider: () => React.FC<{
|
|
27
|
-
children: React.ReactNode;
|
|
28
|
-
}>;
|
|
29
|
-
getCodeDiffEditorProvider: () => React.FC<{
|
|
30
|
-
children: React.ReactNode;
|
|
31
|
-
}>;
|
|
32
|
-
registerEnvFileIcon(icons: FileIconMatch[]): this;
|
|
33
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
|
34
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
35
|
-
static slots: ((registerFn: () => string) => SlotRegistry<string>)[];
|
|
36
|
-
static provider([component, componentCompare]: [ComponentUI, ComponentCompareUI], _: any, [fileIconSlot]: [FileIconSlot], harmony: Harmony): Promise<CodeUI>;
|
|
37
|
-
}
|
package/dist/index.d.ts
DELETED