@teambit/component 0.0.880 → 0.0.882
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/dist/aspect-entry.js +3 -16
- package/dist/aspect-entry.js.map +1 -1
- package/dist/aspect-list.js +6 -35
- package/dist/aspect-list.js.map +1 -1
- package/dist/aspect.section.js +0 -16
- package/dist/aspect.section.js.map +1 -1
- package/dist/component-fs.js +2 -25
- package/dist/component-fs.js.map +1 -1
- package/dist/component-map/component-map.js +10 -26
- package/dist/component-map/component-map.js.map +1 -1
- package/dist/component-map/index.js +0 -3
- package/dist/component-map/index.js.map +1 -1
- package/dist/component-meta.js +1 -14
- package/dist/component-meta.js.map +1 -1
- package/dist/component.aspect.js +0 -5
- package/dist/component.aspect.js.map +1 -1
- package/dist/component.composition.js +0 -6
- package/dist/component.composition.js.map +1 -1
- package/dist/component.graphql.js +2 -26
- package/dist/component.graphql.js.map +1 -1
- package/dist/component.js +19 -90
- package/dist/component.js.map +1 -1
- package/dist/component.main.runtime.js +6 -64
- package/dist/component.main.runtime.js.map +1 -1
- package/dist/component.route.js +2 -14
- package/dist/component.route.js.map +1 -1
- package/dist/component.ui.runtime.js +3 -83
- package/dist/component.ui.runtime.js.map +1 -1
- package/dist/config.js +0 -3
- package/dist/config.js.map +1 -1
- package/dist/dependencies/dependencies.js +7 -32
- package/dist/dependencies/dependencies.js.map +1 -1
- package/dist/dependencies/index.js +0 -3
- package/dist/dependencies/index.js.map +1 -1
- package/dist/exceptions/could-not-find-latest.js +0 -4
- package/dist/exceptions/could-not-find-latest.js.map +1 -1
- package/dist/exceptions/host-not-found.js +0 -4
- package/dist/exceptions/host-not-found.js.map +1 -1
- package/dist/exceptions/index.js +0 -13
- package/dist/exceptions/index.js.map +1 -1
- package/dist/exceptions/main-file-not-found.js +0 -4
- package/dist/exceptions/main-file-not-found.js.map +1 -1
- package/dist/exceptions/nothing-to-snap.js +0 -2
- package/dist/exceptions/nothing-to-snap.js.map +1 -1
- package/dist/history-graph.js +0 -2
- package/dist/history-graph.js.map +1 -1
- package/dist/host/component-host-model.js +0 -7
- package/dist/host/component-host-model.js.map +1 -1
- package/dist/host/index.js +0 -5
- package/dist/host/index.js.map +1 -1
- package/dist/host/use-component-host.js +0 -14
- package/dist/host/use-component-host.js.map +1 -1
- package/dist/index.js +0 -63
- package/dist/index.js.map +1 -1
- package/dist/section/index.js +0 -3
- package/dist/section/index.js.map +1 -1
- package/dist/show/extensions.fragment.js +0 -8
- package/dist/show/extensions.fragment.js.map +1 -1
- package/dist/show/files.fragment.js +0 -11
- package/dist/show/files.fragment.js.map +1 -1
- package/dist/show/id.fragment.js +0 -10
- package/dist/show/id.fragment.js.map +1 -1
- package/dist/show/index.js +0 -24
- package/dist/show/index.js.map +1 -1
- package/dist/show/main-file.fragment.js +0 -9
- package/dist/show/main-file.fragment.js.map +1 -1
- package/dist/show/name.fragment.js +0 -9
- package/dist/show/name.fragment.js.map +1 -1
- package/dist/show/scope.fragment.js +0 -10
- package/dist/show/scope.fragment.js.map +1 -1
- package/dist/show/show.cmd.js +1 -33
- package/dist/show/show.cmd.js.map +1 -1
- package/dist/snap/index.js +0 -6
- package/dist/snap/index.js.map +1 -1
- package/dist/snap/snap.js +0 -5
- package/dist/snap/snap.js.map +1 -1
- package/dist/state.js +6 -24
- package/dist/state.js.map +1 -1
- package/dist/store.js +0 -5
- package/dist/store.js.map +1 -1
- package/dist/tag/index.js +0 -3
- package/dist/tag/index.js.map +1 -1
- package/dist/tag/tag.js +1 -9
- package/dist/tag/tag.js.map +1 -1
- package/dist/tag-map.js +4 -28
- package/dist/tag-map.js.map +1 -1
- package/dist/ui/aspect-page/aspect-page.js +2 -35
- package/dist/ui/aspect-page/aspect-page.js.map +1 -1
- package/dist/ui/aspect-page/index.js +0 -3
- package/dist/ui/aspect-page/index.js.map +1 -1
- package/dist/ui/component-error/component-error.js +0 -14
- package/dist/ui/component-error/component-error.js.map +1 -1
- package/dist/ui/component-error/index.js +0 -3
- package/dist/ui/component-error/index.js.map +1 -1
- package/dist/ui/component-model/component-model.js +2 -21
- package/dist/ui/component-model/component-model.js.map +1 -1
- package/dist/ui/component-model/index.js +0 -3
- package/dist/ui/component-model/index.js.map +1 -1
- package/dist/ui/component-searcher/component-result.js +0 -20
- package/dist/ui/component-searcher/component-result.js.map +1 -1
- package/dist/ui/component-searcher/component-searcher.js +0 -22
- package/dist/ui/component-searcher/component-searcher.js.map +1 -1
- package/dist/ui/component-searcher/index.js +0 -3
- package/dist/ui/component-searcher/index.js.map +1 -1
- package/dist/ui/component.js +5 -40
- package/dist/ui/component.js.map +1 -1
- package/dist/ui/context/component-context.js +0 -9
- package/dist/ui/context/component-context.js.map +1 -1
- package/dist/ui/context/component-provider.js +0 -9
- package/dist/ui/context/component-provider.js.map +1 -1
- package/dist/ui/context/index.js +0 -6
- package/dist/ui/context/index.js.map +1 -1
- package/dist/ui/index.js +0 -21
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/menu/index.js +0 -3
- package/dist/ui/menu/index.js.map +1 -1
- package/dist/ui/menu/menu-nav.js +4 -23
- package/dist/ui/menu/menu-nav.js.map +1 -1
- package/dist/ui/menu/menu.js +0 -70
- package/dist/ui/menu/menu.js.map +1 -1
- package/dist/ui/menu/mobile-menu-nav.js +6 -49
- package/dist/ui/menu/mobile-menu-nav.js.map +1 -1
- package/dist/ui/top-bar-nav/index.js +0 -2
- package/dist/ui/top-bar-nav/index.js.map +1 -1
- package/dist/ui/top-bar-nav/top-bar-nav.js +8 -32
- package/dist/ui/top-bar-nav/top-bar-nav.js.map +1 -1
- package/dist/ui/use-component-from-location.js +0 -9
- package/dist/ui/use-component-from-location.js.map +1 -1
- package/dist/ui/use-component-query.js +12 -60
- package/dist/ui/use-component-query.js.map +1 -1
- package/dist/ui/use-component.js +0 -11
- package/dist/ui/use-component.js.map +1 -1
- package/package-tar/teambit-component-0.0.882.tgz +0 -0
- package/package.json +20 -20
- package/{preview-1666312873430.js → preview-1666496165706.js} +2 -2
- package/package-tar/teambit-component-0.0.880.tgz +0 -0
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HostNotFound = void 0;
|
|
7
|
-
|
|
8
7
|
class HostNotFound extends Error {
|
|
9
8
|
constructor(
|
|
10
9
|
/**
|
|
@@ -14,13 +13,10 @@ class HostNotFound extends Error {
|
|
|
14
13
|
super();
|
|
15
14
|
this.hostName = hostName;
|
|
16
15
|
}
|
|
17
|
-
|
|
18
16
|
toString() {
|
|
19
17
|
return `[component] error: host '${this.hostName}' was not found`;
|
|
20
18
|
}
|
|
21
|
-
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
exports.HostNotFound = HostNotFound;
|
|
25
21
|
|
|
26
22
|
//# sourceMappingURL=host-not-found.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HostNotFound","Error","constructor","hostName","toString"],"sources":["host-not-found.ts"],"sourcesContent":["export class HostNotFound extends Error {\n constructor(\n /**\n * name of the host.\n */\n private hostName: string\n ) {\n super();\n }\n\n toString() {\n return `[component] error: host '${this.hostName}' was not found`;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HostNotFound","Error","constructor","hostName","toString"],"sources":["host-not-found.ts"],"sourcesContent":["export class HostNotFound extends Error {\n constructor(\n /**\n * name of the host.\n */\n private hostName: string\n ) {\n super();\n }\n\n toString() {\n return `[component] error: host '${this.hostName}' was not found`;\n }\n}\n"],"mappings":";;;;;;AAAO,MAAMA,YAAY,SAASC,KAAK,CAAC;EACtCC,WAAW;EACT;AACJ;AACA;EACYC,QAAgB,EACxB;IACA,KAAK,EAAE;IAAC,KAFAA,QAAgB,GAAhBA,QAAgB;EAG1B;EAEAC,QAAQ,GAAG;IACT,OAAQ,4BAA2B,IAAI,CAACD,QAAS,iBAAgB;EACnE;AACF;AAAC"}
|
package/dist/exceptions/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -29,44 +28,32 @@ Object.defineProperty(exports, "NothingToSnap", {
|
|
|
29
28
|
return _nothingToSnap().default;
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
|
-
|
|
33
31
|
function _nothingToSnap() {
|
|
34
32
|
const data = _interopRequireDefault(require("./nothing-to-snap"));
|
|
35
|
-
|
|
36
33
|
_nothingToSnap = function () {
|
|
37
34
|
return data;
|
|
38
35
|
};
|
|
39
|
-
|
|
40
36
|
return data;
|
|
41
37
|
}
|
|
42
|
-
|
|
43
38
|
function _hostNotFound() {
|
|
44
39
|
const data = require("./host-not-found");
|
|
45
|
-
|
|
46
40
|
_hostNotFound = function () {
|
|
47
41
|
return data;
|
|
48
42
|
};
|
|
49
|
-
|
|
50
43
|
return data;
|
|
51
44
|
}
|
|
52
|
-
|
|
53
45
|
function _couldNotFindLatest() {
|
|
54
46
|
const data = require("./could-not-find-latest");
|
|
55
|
-
|
|
56
47
|
_couldNotFindLatest = function () {
|
|
57
48
|
return data;
|
|
58
49
|
};
|
|
59
|
-
|
|
60
50
|
return data;
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
function _mainFileNotFound() {
|
|
64
53
|
const data = require("./main-file-not-found");
|
|
65
|
-
|
|
66
54
|
_mainFileNotFound = function () {
|
|
67
55
|
return data;
|
|
68
56
|
};
|
|
69
|
-
|
|
70
57
|
return data;
|
|
71
58
|
}
|
|
72
59
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["// eslint-disable-next-line import/prefer-default-export\nexport { default as NothingToSnap } from './nothing-to-snap';\nexport { HostNotFound } from './host-not-found';\nexport { CouldNotFindLatest } from './could-not-find-latest';\nexport { MainFileNotFound } from './main-file-not-found';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["// eslint-disable-next-line import/prefer-default-export\nexport { default as NothingToSnap } from './nothing-to-snap';\nexport { HostNotFound } from './host-not-found';\nexport { CouldNotFindLatest } from './could-not-find-latest';\nexport { MainFileNotFound } from './main-file-not-found';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MainFileNotFound = void 0;
|
|
7
|
-
|
|
8
7
|
class MainFileNotFound extends Error {
|
|
9
8
|
constructor(
|
|
10
9
|
/**
|
|
@@ -15,13 +14,10 @@ class MainFileNotFound extends Error {
|
|
|
15
14
|
this.id = id;
|
|
16
15
|
this.mainFile = mainFile;
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
toString() {
|
|
20
18
|
return `[component] error: main file ${this.mainFile} for component ${this.id.toString()} was not found`;
|
|
21
19
|
}
|
|
22
|
-
|
|
23
20
|
}
|
|
24
|
-
|
|
25
21
|
exports.MainFileNotFound = MainFileNotFound;
|
|
26
22
|
|
|
27
23
|
//# sourceMappingURL=main-file-not-found.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MainFileNotFound","Error","constructor","id","mainFile","toString"],"sources":["main-file-not-found.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\n\nexport class MainFileNotFound extends Error {\n constructor(\n /**\n * name of the host.\n */\n readonly id: ComponentID,\n readonly mainFile: string\n ) {\n super();\n }\n\n toString() {\n return `[component] error: main file ${this.mainFile} for component ${this.id.toString()} was not found`;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["MainFileNotFound","Error","constructor","id","mainFile","toString"],"sources":["main-file-not-found.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\n\nexport class MainFileNotFound extends Error {\n constructor(\n /**\n * name of the host.\n */\n readonly id: ComponentID,\n readonly mainFile: string\n ) {\n super();\n }\n\n toString() {\n return `[component] error: main file ${this.mainFile} for component ${this.id.toString()} was not found`;\n }\n}\n"],"mappings":";;;;;;AAEO,MAAMA,gBAAgB,SAASC,KAAK,CAAC;EAC1CC,WAAW;EACT;AACJ;AACA;EACaC,EAAe,EACfC,QAAgB,EACzB;IACA,KAAK,EAAE;IAAC,KAHCD,EAAe,GAAfA,EAAe;IAAA,KACfC,QAAgB,GAAhBA,QAAgB;EAG3B;EAEAC,QAAQ,GAAG;IACT,OAAQ,gCAA+B,IAAI,CAACD,QAAS,kBAAiB,IAAI,CAACD,EAAE,CAACE,QAAQ,EAAG,gBAAe;EAC1G;AACF;AAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NothingToSnap","Error"],"sources":["nothing-to-snap.ts"],"sourcesContent":["export default class NothingToSnap extends Error {}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["NothingToSnap","Error"],"sources":["nothing-to-snap.ts"],"sourcesContent":["export default class NothingToSnap extends Error {}\n"],"mappings":";;;;;;AAAe,MAAMA,aAAa,SAASC,KAAK,CAAC;AAAE"}
|
package/dist/history-graph.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HistoryGraph"],"sources":["history-graph.ts"],"sourcesContent":["export default class HistoryGraph {}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HistoryGraph"],"sources":["history-graph.ts"],"sourcesContent":["export default class HistoryGraph {}\n"],"mappings":";;;;;;AAAe,MAAMA,YAAY,CAAC;AAAE"}
|
|
@@ -4,29 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ComponentHostModel = void 0;
|
|
7
|
-
|
|
8
7
|
function _ui() {
|
|
9
8
|
const data = require("../ui");
|
|
10
|
-
|
|
11
9
|
_ui = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
class ComponentHostModel {
|
|
19
15
|
constructor(name, components) {
|
|
20
16
|
this.name = name;
|
|
21
17
|
this.components = components;
|
|
22
18
|
}
|
|
23
|
-
|
|
24
19
|
static from(data) {
|
|
25
20
|
return new ComponentHostModel(data.getHost.name, _ui().ComponentModel.fromArray(data.getHost.list));
|
|
26
21
|
}
|
|
27
|
-
|
|
28
22
|
}
|
|
29
|
-
|
|
30
23
|
exports.ComponentHostModel = ComponentHostModel;
|
|
31
24
|
|
|
32
25
|
//# sourceMappingURL=component-host-model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ComponentHostModel","constructor","name","components","from","data","getHost","ComponentModel","fromArray","list"],"sources":["component-host-model.ts"],"sourcesContent":["import { ComponentModel } from '../ui';\n\nexport class ComponentHostModel {\n constructor(readonly name: string, readonly components: ComponentModel[]) {}\n\n static from(data: any) {\n return new ComponentHostModel(data.getHost.name, ComponentModel.fromArray(data.getHost.list));\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["ComponentHostModel","constructor","name","components","from","data","getHost","ComponentModel","fromArray","list"],"sources":["component-host-model.ts"],"sourcesContent":["import { ComponentModel } from '../ui';\n\nexport class ComponentHostModel {\n constructor(readonly name: string, readonly components: ComponentModel[]) {}\n\n static from(data: any) {\n return new ComponentHostModel(data.getHost.name, ComponentModel.fromArray(data.getHost.list));\n }\n}\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,kBAAkB,CAAC;EAC9BC,WAAW,CAAUC,IAAY,EAAWC,UAA4B,EAAE;IAAA,KAArDD,IAAY,GAAZA,IAAY;IAAA,KAAWC,UAA4B,GAA5BA,UAA4B;EAAG;EAE3E,OAAOC,IAAI,CAACC,IAAS,EAAE;IACrB,OAAO,IAAIL,kBAAkB,CAACK,IAAI,CAACC,OAAO,CAACJ,IAAI,EAAEK,oBAAc,CAACC,SAAS,CAACH,IAAI,CAACC,OAAO,CAACG,IAAI,CAAC,CAAC;EAC/F;AACF;AAAC"}
|
package/dist/host/index.js
CHANGED
|
@@ -12,19 +12,14 @@ Object.defineProperty(exports, "useComponentHost", {
|
|
|
12
12
|
return _useComponentHost().useComponentHost;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
|
|
16
15
|
function _useComponentHost() {
|
|
17
16
|
const data = require("./use-component-host");
|
|
18
|
-
|
|
19
17
|
_useComponentHost = function () {
|
|
20
18
|
return data;
|
|
21
19
|
};
|
|
22
|
-
|
|
23
20
|
return data;
|
|
24
21
|
}
|
|
25
|
-
|
|
26
22
|
var _componentHostModel = require("./component-host-model");
|
|
27
|
-
|
|
28
23
|
Object.keys(_componentHostModel).forEach(function (key) {
|
|
29
24
|
if (key === "default" || key === "__esModule") return;
|
|
30
25
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
package/dist/host/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { useComponentHost } from './use-component-host';\nexport * from './component-host-model';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { useComponentHost } from './use-component-host';\nexport * from './component-host-model';\n"],"mappings":";;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -4,37 +4,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useComponentHost = useComponentHost;
|
|
7
|
-
|
|
8
7
|
function _uiFoundationUiHooks() {
|
|
9
8
|
const data = require("@teambit/ui-foundation.ui.hooks.use-data-query");
|
|
10
|
-
|
|
11
9
|
_uiFoundationUiHooks = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _client() {
|
|
19
15
|
const data = require("@apollo/client");
|
|
20
|
-
|
|
21
16
|
_client = function () {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
function _componentHostModel() {
|
|
29
22
|
const data = require("./component-host-model");
|
|
30
|
-
|
|
31
23
|
_componentHostModel = function () {
|
|
32
24
|
return data;
|
|
33
25
|
};
|
|
34
|
-
|
|
35
26
|
return data;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
const COMPONENT_HOST = (0, _client().gql)`
|
|
39
29
|
{
|
|
40
30
|
getHost {
|
|
@@ -57,19 +47,15 @@ const COMPONENT_HOST = (0, _client().gql)`
|
|
|
57
47
|
}
|
|
58
48
|
}
|
|
59
49
|
`;
|
|
60
|
-
|
|
61
50
|
function useComponentHost() {
|
|
62
51
|
const {
|
|
63
52
|
data,
|
|
64
53
|
loading
|
|
65
54
|
} = (0, _uiFoundationUiHooks().useDataQuery)(COMPONENT_HOST);
|
|
66
|
-
|
|
67
55
|
if (!data || loading) {
|
|
68
56
|
return {};
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
const host = _componentHostModel().ComponentHostModel.from(data);
|
|
72
|
-
|
|
73
59
|
return {
|
|
74
60
|
host
|
|
75
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["COMPONENT_HOST","gql","useComponentHost","data","loading","useDataQuery","host","ComponentHostModel","from"],"sources":["use-component-host.ts"],"sourcesContent":["import { useDataQuery } from '@teambit/ui-foundation.ui.hooks.use-data-query';\nimport { gql } from '@apollo/client';\n\nimport { ComponentHostModel } from './component-host-model';\n\nconst COMPONENT_HOST = gql`\n {\n getHost {\n id # used for GQL caching\n name\n list {\n id {\n name\n version\n scope\n }\n deprecation {\n isDeprecate\n }\n env {\n id\n icon\n }\n }\n }\n }\n`;\n\nexport function useComponentHost() {\n const { data, loading } = useDataQuery(COMPONENT_HOST);\n\n if (!data || loading) {\n return {};\n }\n\n const host = ComponentHostModel.from(data);\n\n return { host };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["COMPONENT_HOST","gql","useComponentHost","data","loading","useDataQuery","host","ComponentHostModel","from"],"sources":["use-component-host.ts"],"sourcesContent":["import { useDataQuery } from '@teambit/ui-foundation.ui.hooks.use-data-query';\nimport { gql } from '@apollo/client';\n\nimport { ComponentHostModel } from './component-host-model';\n\nconst COMPONENT_HOST = gql`\n {\n getHost {\n id # used for GQL caching\n name\n list {\n id {\n name\n version\n scope\n }\n deprecation {\n isDeprecate\n }\n env {\n id\n icon\n }\n }\n }\n }\n`;\n\nexport function useComponentHost() {\n const { data, loading } = useDataQuery(COMPONENT_HOST);\n\n if (!data || loading) {\n return {};\n }\n\n const host = ComponentHostModel.from(data);\n\n return { host };\n}\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA,MAAMA,cAAc,GAAG,IAAAC,aAAG,CAAC;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAEM,SAASC,gBAAgB,GAAG;EACjC,MAAM;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAG,IAAAC,mCAAY,EAACL,cAAc,CAAC;EAEtD,IAAI,CAACG,IAAI,IAAIC,OAAO,EAAE;IACpB,OAAO,CAAC,CAAC;EACX;EAEA,MAAME,IAAI,GAAGC,wCAAkB,CAACC,IAAI,CAACL,IAAI,CAAC;EAE1C,OAAO;IAAEG;EAAK,CAAC;AACjB"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -210,207 +209,146 @@ Object.defineProperty(exports, "useIdFromLocation", {
|
|
|
210
209
|
return _ui().useIdFromLocation;
|
|
211
210
|
}
|
|
212
211
|
});
|
|
213
|
-
|
|
214
212
|
function _component() {
|
|
215
213
|
const data = require("./component.aspect");
|
|
216
|
-
|
|
217
214
|
_component = function () {
|
|
218
215
|
return data;
|
|
219
216
|
};
|
|
220
|
-
|
|
221
217
|
return data;
|
|
222
218
|
}
|
|
223
|
-
|
|
224
219
|
function _host() {
|
|
225
220
|
const data = require("./host");
|
|
226
|
-
|
|
227
221
|
_host = function () {
|
|
228
222
|
return data;
|
|
229
223
|
};
|
|
230
|
-
|
|
231
224
|
return data;
|
|
232
225
|
}
|
|
233
|
-
|
|
234
226
|
function _component2() {
|
|
235
227
|
const data = require("./component");
|
|
236
|
-
|
|
237
228
|
_component2 = function () {
|
|
238
229
|
return data;
|
|
239
230
|
};
|
|
240
|
-
|
|
241
231
|
return data;
|
|
242
232
|
}
|
|
243
|
-
|
|
244
233
|
function _componentId() {
|
|
245
234
|
const data = require("@teambit/component-id");
|
|
246
|
-
|
|
247
235
|
_componentId = function () {
|
|
248
236
|
return data;
|
|
249
237
|
};
|
|
250
|
-
|
|
251
238
|
return data;
|
|
252
239
|
}
|
|
253
|
-
|
|
254
240
|
function _componentFs() {
|
|
255
241
|
const data = _interopRequireDefault(require("./component-fs"));
|
|
256
|
-
|
|
257
242
|
_componentFs = function () {
|
|
258
243
|
return data;
|
|
259
244
|
};
|
|
260
|
-
|
|
261
245
|
return data;
|
|
262
246
|
}
|
|
263
|
-
|
|
264
247
|
function _aspectEntry() {
|
|
265
248
|
const data = require("./aspect-entry");
|
|
266
|
-
|
|
267
249
|
_aspectEntry = function () {
|
|
268
250
|
return data;
|
|
269
251
|
};
|
|
270
|
-
|
|
271
252
|
return data;
|
|
272
253
|
}
|
|
273
|
-
|
|
274
254
|
function _snap() {
|
|
275
255
|
const data = require("./snap/snap");
|
|
276
|
-
|
|
277
256
|
_snap = function () {
|
|
278
257
|
return data;
|
|
279
258
|
};
|
|
280
|
-
|
|
281
259
|
return data;
|
|
282
260
|
}
|
|
283
|
-
|
|
284
261
|
function _tag() {
|
|
285
262
|
const data = require("./tag/tag");
|
|
286
|
-
|
|
287
263
|
_tag = function () {
|
|
288
264
|
return data;
|
|
289
265
|
};
|
|
290
|
-
|
|
291
266
|
return data;
|
|
292
267
|
}
|
|
293
|
-
|
|
294
268
|
function _state() {
|
|
295
269
|
const data = require("./state");
|
|
296
|
-
|
|
297
270
|
_state = function () {
|
|
298
271
|
return data;
|
|
299
272
|
};
|
|
300
|
-
|
|
301
273
|
return data;
|
|
302
274
|
}
|
|
303
|
-
|
|
304
275
|
function _tagMap() {
|
|
305
276
|
const data = require("./tag-map");
|
|
306
|
-
|
|
307
277
|
_tagMap = function () {
|
|
308
278
|
return data;
|
|
309
279
|
};
|
|
310
|
-
|
|
311
280
|
return data;
|
|
312
281
|
}
|
|
313
|
-
|
|
314
282
|
function _componentMap() {
|
|
315
283
|
const data = require("./component-map");
|
|
316
|
-
|
|
317
284
|
_componentMap = function () {
|
|
318
285
|
return data;
|
|
319
286
|
};
|
|
320
|
-
|
|
321
287
|
return data;
|
|
322
288
|
}
|
|
323
|
-
|
|
324
289
|
function _section() {
|
|
325
290
|
const data = require("./section");
|
|
326
|
-
|
|
327
291
|
_section = function () {
|
|
328
292
|
return data;
|
|
329
293
|
};
|
|
330
|
-
|
|
331
294
|
return data;
|
|
332
295
|
}
|
|
333
|
-
|
|
334
296
|
function _componentContext() {
|
|
335
297
|
const data = require("./ui/context/component-context");
|
|
336
|
-
|
|
337
298
|
_componentContext = function () {
|
|
338
299
|
return data;
|
|
339
300
|
};
|
|
340
|
-
|
|
341
301
|
return data;
|
|
342
302
|
}
|
|
343
|
-
|
|
344
303
|
function _context() {
|
|
345
304
|
const data = require("./ui/context");
|
|
346
|
-
|
|
347
305
|
_context = function () {
|
|
348
306
|
return data;
|
|
349
307
|
};
|
|
350
|
-
|
|
351
308
|
return data;
|
|
352
309
|
}
|
|
353
|
-
|
|
354
310
|
function _ui() {
|
|
355
311
|
const data = require("./ui");
|
|
356
|
-
|
|
357
312
|
_ui = function () {
|
|
358
313
|
return data;
|
|
359
314
|
};
|
|
360
|
-
|
|
361
315
|
return data;
|
|
362
316
|
}
|
|
363
|
-
|
|
364
317
|
function _menu() {
|
|
365
318
|
const data = require("./ui/menu");
|
|
366
|
-
|
|
367
319
|
_menu = function () {
|
|
368
320
|
return data;
|
|
369
321
|
};
|
|
370
|
-
|
|
371
322
|
return data;
|
|
372
323
|
}
|
|
373
|
-
|
|
374
324
|
function _component3() {
|
|
375
325
|
const data = require("./component.route");
|
|
376
|
-
|
|
377
326
|
_component3 = function () {
|
|
378
327
|
return data;
|
|
379
328
|
};
|
|
380
|
-
|
|
381
329
|
return data;
|
|
382
330
|
}
|
|
383
|
-
|
|
384
331
|
function _componentModel() {
|
|
385
332
|
const data = require("./ui/component-model");
|
|
386
|
-
|
|
387
333
|
_componentModel = function () {
|
|
388
334
|
return data;
|
|
389
335
|
};
|
|
390
|
-
|
|
391
336
|
return data;
|
|
392
337
|
}
|
|
393
|
-
|
|
394
338
|
function _topBarNav() {
|
|
395
339
|
const data = require("./ui/top-bar-nav");
|
|
396
|
-
|
|
397
340
|
_topBarNav = function () {
|
|
398
341
|
return data;
|
|
399
342
|
};
|
|
400
|
-
|
|
401
343
|
return data;
|
|
402
344
|
}
|
|
403
|
-
|
|
404
345
|
function _config() {
|
|
405
346
|
const data = _interopRequireDefault(require("./config"));
|
|
406
|
-
|
|
407
347
|
_config = function () {
|
|
408
348
|
return data;
|
|
409
349
|
};
|
|
410
|
-
|
|
411
350
|
return data;
|
|
412
351
|
}
|
|
413
|
-
|
|
414
352
|
// TODO: check why it's not working when using the index in snap dir like this:
|
|
415
353
|
// export { Snap, Author } from './snap';
|
|
416
354
|
// TODO: check why it's not working when using the index in tag dir like this:
|
|
@@ -418,7 +356,6 @@ function _config() {
|
|
|
418
356
|
// export { AspectList } from './aspect-list';
|
|
419
357
|
// export { AspectEntry } from './aspect-entry';
|
|
420
358
|
var _default = _component().ComponentAspect;
|
|
421
|
-
|
|
422
359
|
exports.default = _default;
|
|
423
360
|
|
|
424
361
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ComponentAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentAspect } from './component.aspect';\n\nexport type { GetComponentsOptions } from './get-component-opts';\nexport type { UseComponentType } from './ui/use-component';\nexport { useComponentHost } from './host';\nexport { Component, InvalidComponent } from './component';\nexport { ComponentID } from '@teambit/component-id';\nexport { default as ComponentFS } from './component-fs';\nexport type { default as ComponentConfig } from './config';\nexport type { ComponentFactory, ResolveAspectsOptions } from './component-factory';\nexport type { AspectList } from './aspect-list';\nexport { AspectEntry, AspectData, ResolveComponentIdFunc } from './aspect-entry';\n// TODO: check why it's not working when using the index in snap dir like this:\n// export { Snap, Author } from './snap';\nexport { Snap, SnapProps } from './snap/snap';\nexport type { Author } from './snap/author';\n// TODO: check why it's not working when using the index in tag dir like this:\n// export { Tag } from './tag';\nexport { Tag, TagProps } from './tag/tag';\nexport type { IComponent } from './component-interface';\nexport { State } from './state';\nexport type { Hash } from './hash';\nexport { TagMap } from './tag-map';\nexport { ComponentMap } from './component-map';\nexport type { ComponentMain } from './component.main.runtime';\nexport type { ComponentUI } from './component.ui.runtime';\nexport { Section } from './section';\nexport { ComponentContext, ComponentDescriptorContext, useComponentDescriptor } from './ui/context/component-context';\nexport type { ComponentProviderProps, ComponentDescriptorProviderProps } from './ui/context';\nexport { ComponentProvider, ComponentDescriptorProvider } from './ui/context';\nexport { componentFields, componentIdFields, componentOverviewFields } from './ui';\nexport { ConsumePlugin } from './ui/menu';\nexport { RegisteredComponentRoute, ComponentUrlParams } from './component.route';\nexport { ComponentModel, ComponentModelProps } from './ui/component-model';\nexport { TopBarNav } from './ui/top-bar-nav';\nexport type { ShowFragment, ShowRow, ShowJSONRow } from './show';\nexport { default as Config } from './config';\nexport { useComponent, useIdFromLocation } from './ui';\n\n// export { AspectList } from './aspect-list';\n// export { AspectEntry } from './aspect-entry';\nexport { ComponentAspect };\nexport default ComponentAspect;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["ComponentAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentAspect } from './component.aspect';\n\nexport type { GetComponentsOptions } from './get-component-opts';\nexport type { UseComponentType } from './ui/use-component';\nexport { useComponentHost } from './host';\nexport { Component, InvalidComponent } from './component';\nexport { ComponentID } from '@teambit/component-id';\nexport { default as ComponentFS } from './component-fs';\nexport type { default as ComponentConfig } from './config';\nexport type { ComponentFactory, ResolveAspectsOptions } from './component-factory';\nexport type { AspectList } from './aspect-list';\nexport { AspectEntry, AspectData, ResolveComponentIdFunc } from './aspect-entry';\n// TODO: check why it's not working when using the index in snap dir like this:\n// export { Snap, Author } from './snap';\nexport { Snap, SnapProps } from './snap/snap';\nexport type { Author } from './snap/author';\n// TODO: check why it's not working when using the index in tag dir like this:\n// export { Tag } from './tag';\nexport { Tag, TagProps } from './tag/tag';\nexport type { IComponent } from './component-interface';\nexport { State } from './state';\nexport type { Hash } from './hash';\nexport { TagMap } from './tag-map';\nexport { ComponentMap } from './component-map';\nexport type { ComponentMain } from './component.main.runtime';\nexport type { ComponentUI } from './component.ui.runtime';\nexport { Section } from './section';\nexport { ComponentContext, ComponentDescriptorContext, useComponentDescriptor } from './ui/context/component-context';\nexport type { ComponentProviderProps, ComponentDescriptorProviderProps } from './ui/context';\nexport { ComponentProvider, ComponentDescriptorProvider } from './ui/context';\nexport { componentFields, componentIdFields, componentOverviewFields } from './ui';\nexport { ConsumePlugin } from './ui/menu';\nexport { RegisteredComponentRoute, ComponentUrlParams } from './component.route';\nexport { ComponentModel, ComponentModelProps } from './ui/component-model';\nexport { TopBarNav } from './ui/top-bar-nav';\nexport type { ShowFragment, ShowRow, ShowJSONRow } from './show';\nexport { default as Config } from './config';\nexport { useComponent, useIdFromLocation } from './ui';\n\n// export { AspectList } from './aspect-list';\n// export { AspectEntry } from './aspect-entry';\nexport { ComponentAspect };\nexport default ComponentAspect;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAxBA;AACA;AAGA;AACA;AAsBA;AACA;AAAA,eAEeA,4BAAe;AAAA"}
|
package/dist/section/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Section } from './section';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Section } from './section';\n"],"mappings":";;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
|
@@ -1,38 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
4
|
require("core-js/modules/es.array.sort.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.promise.js");
|
|
8
|
-
|
|
9
6
|
Object.defineProperty(exports, "__esModule", {
|
|
10
7
|
value: true
|
|
11
8
|
});
|
|
12
9
|
exports.ExtensionsFragment = void 0;
|
|
13
|
-
|
|
14
10
|
class ExtensionsFragment {
|
|
15
11
|
renderList(component) {
|
|
16
12
|
const aspects = component.state.aspects.entries.map(entry => entry.id.toString());
|
|
17
13
|
return aspects.sort().join('\n');
|
|
18
14
|
}
|
|
19
|
-
|
|
20
15
|
async renderRow(component) {
|
|
21
16
|
return {
|
|
22
17
|
title: 'aspects',
|
|
23
18
|
content: this.renderList(component)
|
|
24
19
|
};
|
|
25
20
|
}
|
|
26
|
-
|
|
27
21
|
async json(component) {
|
|
28
22
|
return {
|
|
29
23
|
title: 'configuration',
|
|
30
24
|
json: component.state.aspects.serialize()
|
|
31
25
|
};
|
|
32
26
|
}
|
|
33
|
-
|
|
34
27
|
}
|
|
35
|
-
|
|
36
28
|
exports.ExtensionsFragment = ExtensionsFragment;
|
|
37
29
|
|
|
38
30
|
//# sourceMappingURL=extensions.fragment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ExtensionsFragment","renderList","component","aspects","state","entries","map","entry","id","toString","sort","join","renderRow","title","content","json","serialize"],"sources":["extensions.fragment.ts"],"sourcesContent":["import { ShowFragment } from './show-fragment';\nimport { Component } from '../component';\n\nexport class ExtensionsFragment implements ShowFragment {\n private renderList(component: Component) {\n const aspects = component.state.aspects.entries.map((entry) => entry.id.toString());\n return aspects.sort().join('\\n');\n }\n\n async renderRow(component: Component) {\n return {\n title: 'aspects',\n content: this.renderList(component),\n };\n }\n\n async json(component: Component) {\n return {\n title: 'configuration',\n json: component.state.aspects.serialize() as any,\n };\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["ExtensionsFragment","renderList","component","aspects","state","entries","map","entry","id","toString","sort","join","renderRow","title","content","json","serialize"],"sources":["extensions.fragment.ts"],"sourcesContent":["import { ShowFragment } from './show-fragment';\nimport { Component } from '../component';\n\nexport class ExtensionsFragment implements ShowFragment {\n private renderList(component: Component) {\n const aspects = component.state.aspects.entries.map((entry) => entry.id.toString());\n return aspects.sort().join('\\n');\n }\n\n async renderRow(component: Component) {\n return {\n title: 'aspects',\n content: this.renderList(component),\n };\n }\n\n async json(component: Component) {\n return {\n title: 'configuration',\n json: component.state.aspects.serialize() as any,\n };\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,kBAAkB,CAAyB;EAC9CC,UAAU,CAACC,SAAoB,EAAE;IACvC,MAAMC,OAAO,GAAGD,SAAS,CAACE,KAAK,CAACD,OAAO,CAACE,OAAO,CAACC,GAAG,CAAEC,KAAK,IAAKA,KAAK,CAACC,EAAE,CAACC,QAAQ,EAAE,CAAC;IACnF,OAAON,OAAO,CAACO,IAAI,EAAE,CAACC,IAAI,CAAC,IAAI,CAAC;EAClC;EAEA,MAAMC,SAAS,CAACV,SAAoB,EAAE;IACpC,OAAO;MACLW,KAAK,EAAE,SAAS;MAChBC,OAAO,EAAE,IAAI,CAACb,UAAU,CAACC,SAAS;IACpC,CAAC;EACH;EAEA,MAAMa,IAAI,CAACb,SAAoB,EAAE;IAC/B,OAAO;MACLW,KAAK,EAAE,eAAe;MACtBE,IAAI,EAAEb,SAAS,CAACE,KAAK,CAACD,OAAO,CAACa,SAAS;IACzC,CAAC;EACH;AACF;AAAC"}
|
|
@@ -1,49 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
require("core-js/modules/es.promise.js");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.FilesFragment = void 0;
|
|
11
|
-
|
|
12
9
|
function _defineProperty2() {
|
|
13
10
|
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
-
|
|
15
11
|
_defineProperty2 = function () {
|
|
16
12
|
return data;
|
|
17
13
|
};
|
|
18
|
-
|
|
19
14
|
return data;
|
|
20
15
|
}
|
|
21
|
-
|
|
22
16
|
class FilesFragment {
|
|
23
17
|
constructor() {
|
|
24
18
|
(0, _defineProperty2().default)(this, "weight", 4);
|
|
25
19
|
}
|
|
26
|
-
|
|
27
20
|
async renderRow(component) {
|
|
28
21
|
return {
|
|
29
22
|
title: 'files',
|
|
30
23
|
content: this.getRelativePaths(component).join('\n')
|
|
31
24
|
};
|
|
32
25
|
}
|
|
33
|
-
|
|
34
26
|
async json(component) {
|
|
35
27
|
return {
|
|
36
28
|
title: 'files',
|
|
37
29
|
json: this.getRelativePaths(component)
|
|
38
30
|
};
|
|
39
31
|
}
|
|
40
|
-
|
|
41
32
|
getRelativePaths(component) {
|
|
42
33
|
return component.state.filesystem.files.map(file => file.relative);
|
|
43
34
|
}
|
|
44
|
-
|
|
45
35
|
}
|
|
46
|
-
|
|
47
36
|
exports.FilesFragment = FilesFragment;
|
|
48
37
|
|
|
49
38
|
//# sourceMappingURL=files.fragment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FilesFragment","renderRow","component","title","content","getRelativePaths","join","json","state","filesystem","files","map","file","relative"],"sources":["files.fragment.ts"],"sourcesContent":["import { ShowFragment } from './show-fragment';\nimport { Component } from '../component';\n\nexport class FilesFragment implements ShowFragment {\n async renderRow(component: Component) {\n return {\n title: 'files',\n content: this.getRelativePaths(component).join('\\n'),\n };\n }\n\n async json(component: Component) {\n return {\n title: 'files',\n json: this.getRelativePaths(component),\n };\n }\n\n private getRelativePaths(component: Component) {\n return component.state.filesystem.files.map((file) => file.relative);\n }\n\n weight = 4;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["FilesFragment","renderRow","component","title","content","getRelativePaths","join","json","state","filesystem","files","map","file","relative"],"sources":["files.fragment.ts"],"sourcesContent":["import { ShowFragment } from './show-fragment';\nimport { Component } from '../component';\n\nexport class FilesFragment implements ShowFragment {\n async renderRow(component: Component) {\n return {\n title: 'files',\n content: this.getRelativePaths(component).join('\\n'),\n };\n }\n\n async json(component: Component) {\n return {\n title: 'files',\n json: this.getRelativePaths(component),\n };\n }\n\n private getRelativePaths(component: Component) {\n return component.state.filesystem.files.map((file) => file.relative);\n }\n\n weight = 4;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAGO,MAAMA,aAAa,CAAyB;EAAA;IAAA,gDAmBxC,CAAC;EAAA;EAlBV,MAAMC,SAAS,CAACC,SAAoB,EAAE;IACpC,OAAO;MACLC,KAAK,EAAE,OAAO;MACdC,OAAO,EAAE,IAAI,CAACC,gBAAgB,CAACH,SAAS,CAAC,CAACI,IAAI,CAAC,IAAI;IACrD,CAAC;EACH;EAEA,MAAMC,IAAI,CAACL,SAAoB,EAAE;IAC/B,OAAO;MACLC,KAAK,EAAE,OAAO;MACdI,IAAI,EAAE,IAAI,CAACF,gBAAgB,CAACH,SAAS;IACvC,CAAC;EACH;EAEQG,gBAAgB,CAACH,SAAoB,EAAE;IAC7C,OAAOA,SAAS,CAACM,KAAK,CAACC,UAAU,CAACC,KAAK,CAACC,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACC,QAAQ,CAAC;EACtE;AAGF;AAAC"}
|