@teambit/code 1.0.3 → 1.0.4
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/code.ui.runtime.tsx
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentAspect, ComponentUI } from '@teambit/component';
|
|
3
3
|
import { UIRuntime } from '@teambit/ui';
|
|
4
|
-
import { CodeCompare, CodeCompareProps } from '@teambit/code.ui.code-compare';
|
|
4
|
+
import { CodeCompare, CodeCompareEditorProvider, 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';
|
|
8
8
|
import { CodePage, CodePageProps } from '@teambit/code.ui.code-tab-page';
|
|
9
9
|
import { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';
|
|
10
|
+
import { CodeEditorProvider } from '@teambit/code.ui.code-editor';
|
|
10
11
|
import { CodeCompareSection } from '@teambit/code.ui.code-compare-section';
|
|
11
12
|
import { CodeAspect } from './code.aspect';
|
|
12
13
|
import { CodeSection } from './code.section';
|
|
@@ -33,9 +34,16 @@ export class CodeUI {
|
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
getCodeCompare = (props?: Partial<CodeCompareProps>) => {
|
|
36
|
-
return
|
|
37
|
+
return (
|
|
38
|
+
<CodeCompareEditorProvider>
|
|
39
|
+
<CodeCompare {...(props || {})} fileIconSlot={this.fileIconSlot} />
|
|
40
|
+
</CodeCompareEditorProvider>
|
|
41
|
+
);
|
|
37
42
|
};
|
|
38
43
|
|
|
44
|
+
getCodeEditorProvider = () => CodeEditorProvider;
|
|
45
|
+
getCodeDiffEditorProvider = () => CodeCompareEditorProvider;
|
|
46
|
+
|
|
39
47
|
registerEnvFileIcon(icons: FileIconMatch[]) {
|
|
40
48
|
this.fileIconSlot?.register(icons);
|
|
41
49
|
return this;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ComponentUI } from '@teambit/component';
|
|
3
3
|
import { CodeCompareProps } from '@teambit/code.ui.code-compare';
|
|
4
4
|
import { Harmony, SlotRegistry } from '@teambit/harmony';
|
|
@@ -23,6 +23,12 @@ export declare class CodeUI {
|
|
|
23
23
|
host: string, fileIconSlot?: FileIconSlot | undefined);
|
|
24
24
|
getCodePage: (props?: Partial<CodePageProps>) => JSX.Element;
|
|
25
25
|
getCodeCompare: (props?: Partial<CodeCompareProps>) => JSX.Element;
|
|
26
|
+
getCodeEditorProvider: () => React.FC<{
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
}>;
|
|
29
|
+
getCodeDiffEditorProvider: () => React.FC<{
|
|
30
|
+
children: React.ReactNode;
|
|
31
|
+
}>;
|
|
26
32
|
registerEnvFileIcon(icons: FileIconMatch[]): this;
|
|
27
33
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
28
34
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
package/dist/code.ui.runtime.js
CHANGED
|
@@ -61,12 +61,19 @@ function _componentCompare() {
|
|
|
61
61
|
return data;
|
|
62
62
|
}
|
|
63
63
|
function _codeUi3() {
|
|
64
|
-
const data = require("@teambit/code.ui.code-
|
|
64
|
+
const data = require("@teambit/code.ui.code-editor");
|
|
65
65
|
_codeUi3 = function () {
|
|
66
66
|
return data;
|
|
67
67
|
};
|
|
68
68
|
return data;
|
|
69
69
|
}
|
|
70
|
+
function _codeUi4() {
|
|
71
|
+
const data = require("@teambit/code.ui.code-compare-section");
|
|
72
|
+
_codeUi4 = function () {
|
|
73
|
+
return data;
|
|
74
|
+
};
|
|
75
|
+
return data;
|
|
76
|
+
}
|
|
70
77
|
function _code() {
|
|
71
78
|
const data = require("./code.aspect");
|
|
72
79
|
_code = function () {
|
|
@@ -106,10 +113,12 @@ class CodeUI {
|
|
|
106
113
|
}));
|
|
107
114
|
});
|
|
108
115
|
_defineProperty(this, "getCodeCompare", props => {
|
|
109
|
-
return /*#__PURE__*/_react().default.createElement(_codeUi().CodeCompare, _extends({}, props || {}, {
|
|
116
|
+
return /*#__PURE__*/_react().default.createElement(_codeUi().CodeCompareEditorProvider, null, /*#__PURE__*/_react().default.createElement(_codeUi().CodeCompare, _extends({}, props || {}, {
|
|
110
117
|
fileIconSlot: this.fileIconSlot
|
|
111
|
-
}));
|
|
118
|
+
})));
|
|
112
119
|
});
|
|
120
|
+
_defineProperty(this, "getCodeEditorProvider", () => _codeUi3().CodeEditorProvider);
|
|
121
|
+
_defineProperty(this, "getCodeDiffEditorProvider", () => _codeUi().CodeCompareEditorProvider);
|
|
113
122
|
}
|
|
114
123
|
registerEnvFileIcon(icons) {
|
|
115
124
|
var _this$fileIconSlot;
|
|
@@ -128,7 +137,7 @@ class CodeUI {
|
|
|
128
137
|
ui.registerEnvFileIcon([fileName => isTsx.test(fileName) ? `${_baseUiConstants().staticStorageUrl}/file-icons/file_type_typescript.svg` : undefined]);
|
|
129
138
|
component.registerRoute([section.route]);
|
|
130
139
|
component.registerWidget(section.navigationLink, section.order);
|
|
131
|
-
const codeCompare = new (
|
|
140
|
+
const codeCompare = new (_codeUi4().CodeCompareSection)(ui);
|
|
132
141
|
componentCompare.registerNavigation(codeCompare);
|
|
133
142
|
componentCompare.registerRoutes([codeCompare.route]);
|
|
134
143
|
return ui;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","_component","_ui","_codeUi","_harmony","_baseUiConstants","_codeUi2","_componentCompare","_codeUi3","_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","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","isTsx","CodeUI","constructor","host","fileIconSlot","props","createElement","CodePage","CodeCompare","registerEnvFileIcon","icons","_this$fileIconSlot","register","provider","component","componentCompare","_","harmony","config","get","ui","section","CodeSection","fileName","test","staticStorageUrl","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, 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 { 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 <CodeCompare {...(props || {})} fileIconSlot={this.fileIconSlot}
|
|
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","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","isTsx","CodeUI","constructor","host","fileIconSlot","props","createElement","CodePage","CodeCompareEditorProvider","CodeCompare","CodeEditorProvider","registerEnvFileIcon","icons","_this$fileIconSlot","register","provider","component","componentCompare","_","harmony","config","get","ui","section","CodeSection","fileName","test","staticStorageUrl","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,OAAA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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.4/dist/code.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_code@1.0.4/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.4",
|
|
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.4"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"core-js": "^3.0.0",
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
"@teambit/base-ui.constants.storage": "1.0.0",
|
|
16
16
|
"@teambit/code.ui.code-compare-section": "0.0.5",
|
|
17
17
|
"@teambit/code.ui.utils.get-file-icon": "0.0.495",
|
|
18
|
-
"@teambit/component": "1.0.
|
|
18
|
+
"@teambit/component": "1.0.4",
|
|
19
19
|
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.502",
|
|
20
|
-
"@teambit/code.ui.code-compare": "0.0.
|
|
21
|
-
"@teambit/code.ui.code-
|
|
22
|
-
"@teambit/
|
|
23
|
-
"@teambit/
|
|
20
|
+
"@teambit/code.ui.code-compare": "0.0.275",
|
|
21
|
+
"@teambit/code.ui.code-editor": "0.0.6",
|
|
22
|
+
"@teambit/code.ui.code-tab-page": "0.0.627",
|
|
23
|
+
"@teambit/component-compare": "1.0.4",
|
|
24
|
+
"@teambit/ui": "1.0.4"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@types/react": "^17.0.8",
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
|
-
"@teambit/legacy": "1.0.
|
|
35
|
+
"@teambit/legacy": "1.0.568",
|
|
35
36
|
"react": "^16.8.0 || ^17.0.0",
|
|
36
37
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
37
38
|
},
|