@teambit/docs 0.0.881 → 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/default-doc-reader.js +2 -21
- package/dist/default-doc-reader.js.map +1 -1
- package/dist/doc-module.js +1 -6
- package/dist/doc-module.js.map +1 -1
- package/dist/docs-store.js +1 -9
- package/dist/docs-store.js.map +1 -1
- package/dist/docs.aspect.js +0 -5
- package/dist/docs.aspect.js.map +1 -1
- package/dist/docs.compare.section.js +0 -13
- package/dist/docs.compare.section.js.map +1 -1
- package/dist/docs.composition.js +0 -6
- package/dist/docs.composition.js.map +1 -1
- package/dist/docs.data.js.map +1 -1
- package/dist/docs.graphql.js +0 -5
- package/dist/docs.graphql.js.map +1 -1
- package/dist/docs.js.map +1 -1
- package/dist/docs.main.runtime.js +3 -85
- package/dist/docs.main.runtime.js.map +1 -1
- package/dist/docs.preview-definition.js +2 -13
- package/dist/docs.preview-definition.js.map +1 -1
- package/dist/docs.preview.runtime.js +3 -25
- package/dist/docs.preview.runtime.js.map +1 -1
- package/dist/docs.service.js +0 -9
- package/dist/docs.service.js.map +1 -1
- package/dist/docs.ui.runtime.js +2 -39
- package/dist/docs.ui.runtime.js.map +1 -1
- package/dist/events/click-inside-an-iframe.js +1 -12
- package/dist/events/click-inside-an-iframe.js.map +1 -1
- package/dist/events/index.js +0 -2
- package/dist/events/index.js.map +1 -1
- package/dist/exceptions/doc-read-error.js +0 -3
- package/dist/exceptions/doc-read-error.js.map +1 -1
- package/dist/exceptions/file-extension-not-supported.js +0 -3
- package/dist/exceptions/file-extension-not-supported.js.map +1 -1
- package/dist/exceptions/index.js +0 -6
- package/dist/exceptions/index.js.map +1 -1
- package/dist/index.js +0 -14
- package/dist/index.js.map +1 -1
- package/dist/overview/index.js +0 -3
- package/dist/overview/index.js.map +1 -1
- package/dist/overview/overview.js +0 -33
- package/dist/overview/overview.js.map +1 -1
- package/dist/overview.section.js +0 -13
- package/dist/overview.section.js.map +1 -1
- package/package-tar/teambit-docs-0.0.882.tgz +0 -0
- package/package.json +13 -13
- package/{preview-1666409808293.js → preview-1666496165706.js} +2 -2
- package/package-tar/teambit-docs-0.0.881.tgz +0 -0
package/dist/docs.ui.runtime.js
CHANGED
|
@@ -1,129 +1,95 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
require("core-js/modules/es.array.iterator.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.default = exports.DocsUI = void 0;
|
|
13
|
-
|
|
14
10
|
function _defineProperty2() {
|
|
15
11
|
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
-
|
|
17
12
|
_defineProperty2 = function () {
|
|
18
13
|
return data;
|
|
19
14
|
};
|
|
20
|
-
|
|
21
15
|
return data;
|
|
22
16
|
}
|
|
23
|
-
|
|
24
17
|
function _lodash() {
|
|
25
18
|
const data = require("lodash");
|
|
26
|
-
|
|
27
19
|
_lodash = function () {
|
|
28
20
|
return data;
|
|
29
21
|
};
|
|
30
|
-
|
|
31
22
|
return data;
|
|
32
23
|
}
|
|
33
|
-
|
|
34
24
|
function _component() {
|
|
35
25
|
const data = require("@teambit/component");
|
|
36
|
-
|
|
37
26
|
_component = function () {
|
|
38
27
|
return data;
|
|
39
28
|
};
|
|
40
|
-
|
|
41
29
|
return data;
|
|
42
30
|
}
|
|
43
|
-
|
|
44
31
|
function _harmony() {
|
|
45
32
|
const data = require("@teambit/harmony");
|
|
46
|
-
|
|
47
33
|
_harmony = function () {
|
|
48
34
|
return data;
|
|
49
35
|
};
|
|
50
|
-
|
|
51
36
|
return data;
|
|
52
37
|
}
|
|
53
|
-
|
|
54
38
|
function _ui() {
|
|
55
39
|
const data = require("@teambit/ui");
|
|
56
|
-
|
|
57
40
|
_ui = function () {
|
|
58
41
|
return data;
|
|
59
42
|
};
|
|
60
|
-
|
|
61
43
|
return data;
|
|
62
44
|
}
|
|
63
|
-
|
|
64
45
|
function _componentCompare() {
|
|
65
46
|
const data = _interopRequireDefault(require("@teambit/component-compare"));
|
|
66
|
-
|
|
67
47
|
_componentCompare = function () {
|
|
68
48
|
return data;
|
|
69
49
|
};
|
|
70
|
-
|
|
71
50
|
return data;
|
|
72
51
|
}
|
|
73
|
-
|
|
74
52
|
function _docs() {
|
|
75
53
|
const data = require("./docs.aspect");
|
|
76
|
-
|
|
77
54
|
_docs = function () {
|
|
78
55
|
return data;
|
|
79
56
|
};
|
|
80
|
-
|
|
81
57
|
return data;
|
|
82
58
|
}
|
|
83
|
-
|
|
84
59
|
function _overview() {
|
|
85
60
|
const data = require("./overview.section");
|
|
86
|
-
|
|
87
61
|
_overview = function () {
|
|
88
62
|
return data;
|
|
89
63
|
};
|
|
90
|
-
|
|
91
64
|
return data;
|
|
92
65
|
}
|
|
93
|
-
|
|
94
66
|
function _docsCompare() {
|
|
95
67
|
const data = require("./docs.compare.section");
|
|
96
|
-
|
|
97
68
|
_docsCompare = function () {
|
|
98
69
|
return data;
|
|
99
70
|
};
|
|
100
|
-
|
|
101
71
|
return data;
|
|
102
72
|
}
|
|
103
|
-
|
|
104
73
|
class DocsUI {
|
|
105
74
|
constructor(titleBadgeSlot) {
|
|
106
75
|
this.titleBadgeSlot = titleBadgeSlot;
|
|
107
76
|
}
|
|
77
|
+
|
|
108
78
|
/**
|
|
109
79
|
* register a new title badge into the overview section of a component.
|
|
110
80
|
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
81
|
registerTitleBadge(titleBadges) {
|
|
114
82
|
const badges = Array.isArray(titleBadges) ? titleBadges : [titleBadges];
|
|
115
83
|
this.titleBadgeSlot.register(badges);
|
|
116
84
|
return this;
|
|
117
85
|
}
|
|
86
|
+
|
|
118
87
|
/**
|
|
119
88
|
* list all title badges registered.
|
|
120
89
|
*/
|
|
121
|
-
|
|
122
|
-
|
|
123
90
|
listTitleBadges() {
|
|
124
91
|
return (0, _lodash().flatten)(this.titleBadgeSlot.values());
|
|
125
92
|
}
|
|
126
|
-
|
|
127
93
|
static async provider([component, componentCompare], config, [titleBadgeSlot]) {
|
|
128
94
|
const docs = new DocsUI(titleBadgeSlot);
|
|
129
95
|
const section = new (_overview().OverviewSection)(titleBadgeSlot);
|
|
@@ -137,16 +103,13 @@ class DocsUI {
|
|
|
137
103
|
componentCompare.registerRoutes([compareSection.route]);
|
|
138
104
|
return docs;
|
|
139
105
|
}
|
|
140
|
-
|
|
141
106
|
}
|
|
142
|
-
|
|
143
107
|
exports.DocsUI = DocsUI;
|
|
144
108
|
(0, _defineProperty2().default)(DocsUI, "dependencies", [_component().ComponentAspect, _componentCompare().default]);
|
|
145
109
|
(0, _defineProperty2().default)(DocsUI, "runtime", _ui().UIRuntime);
|
|
146
110
|
(0, _defineProperty2().default)(DocsUI, "slots", [_harmony().Slot.withType()]);
|
|
147
111
|
var _default = DocsUI;
|
|
148
112
|
exports.default = _default;
|
|
149
|
-
|
|
150
113
|
_docs().DocsAspect.addRuntime(DocsUI);
|
|
151
114
|
|
|
152
115
|
//# sourceMappingURL=docs.ui.runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DocsUI","constructor","titleBadgeSlot","registerTitleBadge","titleBadges","badges","Array","isArray","register","listTitleBadges","flatten","values","provider","component","componentCompare","config","docs","section","OverviewSection","compareSection","OverviewCompareSection","registerRoute","route","registerNavigation","navigationLink","order","props","registerRoutes","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","DocsAspect","addRuntime"],"sources":["docs.ui.runtime.tsx"],"sourcesContent":["import { flatten } from 'lodash';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { Slot } from '@teambit/harmony';\nimport { UIRuntime } from '@teambit/ui';\nimport ComponentCompareAspect, { ComponentCompareUI } from '@teambit/component-compare';\n\nimport { DocsAspect } from './docs.aspect';\nimport { OverviewSection } from './overview.section';\nimport type { TitleBadgeSlot, TitleBadge } from './overview';\nimport { OverviewCompareSection } from './docs.compare.section';\n\nexport class DocsUI {\n constructor(readonly titleBadgeSlot: TitleBadgeSlot) {}\n\n /**\n * register a new title badge into the overview section of a component.\n */\n registerTitleBadge(titleBadges: TitleBadge | TitleBadge[]) {\n const badges = Array.isArray(titleBadges) ? titleBadges : [titleBadges];\n this.titleBadgeSlot.register(badges);\n return this;\n }\n\n /**\n * list all title badges registered.\n */\n listTitleBadges() {\n return flatten(this.titleBadgeSlot.values());\n }\n\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n\n static runtime = UIRuntime;\n\n static slots = [Slot.withType<TitleBadge>()];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n config,\n [titleBadgeSlot]: [TitleBadgeSlot]\n ) {\n const docs = new DocsUI(titleBadgeSlot);\n const section = new OverviewSection(titleBadgeSlot);\n const compareSection = new OverviewCompareSection(titleBadgeSlot);\n\n component.registerRoute(section.route);\n component.registerNavigation(section.navigationLink, section.order);\n componentCompare.registerNavigation({\n props: compareSection.navigationLink,\n order: compareSection.navigationLink.order,\n });\n componentCompare.registerRoutes([compareSection.route]);\n return docs;\n }\n}\n\nexport default DocsUI;\n\nDocsAspect.addRuntime(DocsUI);\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["DocsUI","constructor","titleBadgeSlot","registerTitleBadge","titleBadges","badges","Array","isArray","register","listTitleBadges","flatten","values","provider","component","componentCompare","config","docs","section","OverviewSection","compareSection","OverviewCompareSection","registerRoute","route","registerNavigation","navigationLink","order","props","registerRoutes","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","DocsAspect","addRuntime"],"sources":["docs.ui.runtime.tsx"],"sourcesContent":["import { flatten } from 'lodash';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { Slot } from '@teambit/harmony';\nimport { UIRuntime } from '@teambit/ui';\nimport ComponentCompareAspect, { ComponentCompareUI } from '@teambit/component-compare';\n\nimport { DocsAspect } from './docs.aspect';\nimport { OverviewSection } from './overview.section';\nimport type { TitleBadgeSlot, TitleBadge } from './overview';\nimport { OverviewCompareSection } from './docs.compare.section';\n\nexport class DocsUI {\n constructor(readonly titleBadgeSlot: TitleBadgeSlot) {}\n\n /**\n * register a new title badge into the overview section of a component.\n */\n registerTitleBadge(titleBadges: TitleBadge | TitleBadge[]) {\n const badges = Array.isArray(titleBadges) ? titleBadges : [titleBadges];\n this.titleBadgeSlot.register(badges);\n return this;\n }\n\n /**\n * list all title badges registered.\n */\n listTitleBadges() {\n return flatten(this.titleBadgeSlot.values());\n }\n\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n\n static runtime = UIRuntime;\n\n static slots = [Slot.withType<TitleBadge>()];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n config,\n [titleBadgeSlot]: [TitleBadgeSlot]\n ) {\n const docs = new DocsUI(titleBadgeSlot);\n const section = new OverviewSection(titleBadgeSlot);\n const compareSection = new OverviewCompareSection(titleBadgeSlot);\n\n component.registerRoute(section.route);\n component.registerNavigation(section.navigationLink, section.order);\n componentCompare.registerNavigation({\n props: compareSection.navigationLink,\n order: compareSection.navigationLink.order,\n });\n componentCompare.registerRoutes([compareSection.route]);\n return docs;\n }\n}\n\nexport default DocsUI;\n\nDocsAspect.addRuntime(DocsUI);\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;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;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,MAAM,CAAC;EAClBC,WAAW,CAAUC,cAA8B,EAAE;IAAA,KAAhCA,cAA8B,GAA9BA,cAA8B;EAAG;;EAEtD;AACF;AACA;EACEC,kBAAkB,CAACC,WAAsC,EAAE;IACzD,MAAMC,MAAM,GAAGC,KAAK,CAACC,OAAO,CAACH,WAAW,CAAC,GAAGA,WAAW,GAAG,CAACA,WAAW,CAAC;IACvE,IAAI,CAACF,cAAc,CAACM,QAAQ,CAACH,MAAM,CAAC;IACpC,OAAO,IAAI;EACb;;EAEA;AACF;AACA;EACEI,eAAe,GAAG;IAChB,OAAO,IAAAC,iBAAO,EAAC,IAAI,CAACR,cAAc,CAACS,MAAM,EAAE,CAAC;EAC9C;EAQA,aAAaC,QAAQ,CACnB,CAACC,SAAS,EAAEC,gBAAgB,CAAoC,EAChEC,MAAM,EACN,CAACb,cAAc,CAAmB,EAClC;IACA,MAAMc,IAAI,GAAG,IAAIhB,MAAM,CAACE,cAAc,CAAC;IACvC,MAAMe,OAAO,GAAG,KAAIC,2BAAe,EAAChB,cAAc,CAAC;IACnD,MAAMiB,cAAc,GAAG,KAAIC,qCAAsB,EAAClB,cAAc,CAAC;IAEjEW,SAAS,CAACQ,aAAa,CAACJ,OAAO,CAACK,KAAK,CAAC;IACtCT,SAAS,CAACU,kBAAkB,CAACN,OAAO,CAACO,cAAc,EAAEP,OAAO,CAACQ,KAAK,CAAC;IACnEX,gBAAgB,CAACS,kBAAkB,CAAC;MAClCG,KAAK,EAAEP,cAAc,CAACK,cAAc;MACpCC,KAAK,EAAEN,cAAc,CAACK,cAAc,CAACC;IACvC,CAAC,CAAC;IACFX,gBAAgB,CAACa,cAAc,CAAC,CAACR,cAAc,CAACG,KAAK,CAAC,CAAC;IACvD,OAAON,IAAI;EACb;AACF;AAAC;AAAA,gCA3CYhB,MAAM,kBAmBK,CAAC4B,4BAAe,EAAEC,2BAAsB,CAAC;AAAA,gCAnBpD7B,MAAM,aAqBA8B,eAAS;AAAA,gCArBf9B,MAAM,WAuBF,CAAC+B,eAAI,CAACC,QAAQ,EAAc,CAAC;AAAA,eAsB/BhC,MAAM;AAAA;AAErBiC,kBAAU,CAACC,UAAU,CAAClC,MAAM,CAAC"}
|
|
@@ -1,49 +1,38 @@
|
|
|
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
|
});
|
|
8
7
|
exports.ClickInsideAnIframeEvent = void 0;
|
|
9
|
-
|
|
10
8
|
function _defineProperty2() {
|
|
11
9
|
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
-
|
|
13
10
|
_defineProperty2 = function () {
|
|
14
11
|
return data;
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
return data;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
15
|
function _pubsub() {
|
|
21
16
|
const data = require("@teambit/pubsub");
|
|
22
|
-
|
|
23
17
|
_pubsub = function () {
|
|
24
18
|
return data;
|
|
25
19
|
};
|
|
26
|
-
|
|
27
20
|
return data;
|
|
28
21
|
}
|
|
29
|
-
|
|
30
22
|
/* eslint-disable max-classes-per-file */
|
|
23
|
+
|
|
31
24
|
class ClickInsideAnIframeEventData {
|
|
32
25
|
constructor(clickEvent) {
|
|
33
26
|
this.clickEvent = clickEvent;
|
|
34
27
|
}
|
|
35
|
-
|
|
36
28
|
}
|
|
37
|
-
|
|
38
29
|
class ClickInsideAnIframeEvent extends _pubsub().BitBaseEvent {
|
|
39
30
|
constructor(timestamp = Date.now(), clickEvent) {
|
|
40
31
|
super(ClickInsideAnIframeEvent.TYPE, '0.0.1', timestamp, new ClickInsideAnIframeEventData(clickEvent));
|
|
41
32
|
this.timestamp = timestamp;
|
|
42
33
|
this.clickEvent = clickEvent;
|
|
43
34
|
}
|
|
44
|
-
|
|
45
35
|
}
|
|
46
|
-
|
|
47
36
|
exports.ClickInsideAnIframeEvent = ClickInsideAnIframeEvent;
|
|
48
37
|
(0, _defineProperty2().default)(ClickInsideAnIframeEvent, "TYPE", 'click-inside-an-iframe');
|
|
49
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ClickInsideAnIframeEventData","constructor","clickEvent","ClickInsideAnIframeEvent","BitBaseEvent","timestamp","Date","now","TYPE"],"sources":["click-inside-an-iframe.ts"],"sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { BitBaseEvent } from '@teambit/pubsub';\n\nclass ClickInsideAnIframeEventData {\n constructor(private clickEvent: any) {}\n}\n\nexport class ClickInsideAnIframeEvent extends BitBaseEvent<ClickInsideAnIframeEventData> {\n static readonly TYPE = 'click-inside-an-iframe';\n\n constructor(readonly timestamp = Date.now(), readonly clickEvent) {\n super(ClickInsideAnIframeEvent.TYPE, '0.0.1', timestamp, new ClickInsideAnIframeEventData(clickEvent));\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["ClickInsideAnIframeEventData","constructor","clickEvent","ClickInsideAnIframeEvent","BitBaseEvent","timestamp","Date","now","TYPE"],"sources":["click-inside-an-iframe.ts"],"sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { BitBaseEvent } from '@teambit/pubsub';\n\nclass ClickInsideAnIframeEventData {\n constructor(private clickEvent: any) {}\n}\n\nexport class ClickInsideAnIframeEvent extends BitBaseEvent<ClickInsideAnIframeEventData> {\n static readonly TYPE = 'click-inside-an-iframe';\n\n constructor(readonly timestamp = Date.now(), readonly clickEvent) {\n super(ClickInsideAnIframeEvent.TYPE, '0.0.1', timestamp, new ClickInsideAnIframeEventData(clickEvent));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AADA;;AAGA,MAAMA,4BAA4B,CAAC;EACjCC,WAAW,CAASC,UAAe,EAAE;IAAA,KAAjBA,UAAe,GAAfA,UAAe;EAAG;AACxC;AAEO,MAAMC,wBAAwB,SAASC,sBAAY,CAA+B;EAGvFH,WAAW,CAAUI,SAAS,GAAGC,IAAI,CAACC,GAAG,EAAE,EAAWL,UAAU,EAAE;IAChE,KAAK,CAACC,wBAAwB,CAACK,IAAI,EAAE,OAAO,EAAEH,SAAS,EAAE,IAAIL,4BAA4B,CAACE,UAAU,CAAC,CAAC;IAAC,KADpFG,SAAS,GAATA,SAAS;IAAA,KAAwBH,UAAU,GAAVA,UAAU;EAEhE;AACF;AAAC;AAAA,gCANYC,wBAAwB,UACZ,wBAAwB"}
|
package/dist/events/index.js
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
var _clickInsideAnIframe = require("./click-inside-an-iframe");
|
|
8
|
-
|
|
9
7
|
Object.keys(_clickInsideAnIframe).forEach(function (key) {
|
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
|
11
9
|
if (key in exports && exports[key] === _clickInsideAnIframe[key]) return;
|
package/dist/events/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './click-inside-an-iframe';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './click-inside-an-iframe';\n"],"mappings":";;;;;AAAA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -4,14 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DocReadError = void 0;
|
|
7
|
-
|
|
8
7
|
class DocReadError extends Error {
|
|
9
8
|
constructor(filePath, error) {
|
|
10
9
|
super(`failed reading doc in file path: ${filePath} with error: ${error}`);
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
}
|
|
14
|
-
|
|
15
12
|
exports.DocReadError = DocReadError;
|
|
16
13
|
|
|
17
14
|
//# sourceMappingURL=doc-read-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DocReadError","Error","constructor","filePath","error"],"sources":["doc-read-error.ts"],"sourcesContent":["export class DocReadError extends Error {\n constructor(filePath: string, error: Error) {\n super(`failed reading doc in file path: ${filePath} with error: ${error}`);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["DocReadError","Error","constructor","filePath","error"],"sources":["doc-read-error.ts"],"sourcesContent":["export class DocReadError extends Error {\n constructor(filePath: string, error: Error) {\n super(`failed reading doc in file path: ${filePath} with error: ${error}`);\n }\n}\n"],"mappings":";;;;;;AAAO,MAAMA,YAAY,SAASC,KAAK,CAAC;EACtCC,WAAW,CAACC,QAAgB,EAAEC,KAAY,EAAE;IAC1C,KAAK,CAAE,oCAAmCD,QAAS,gBAAeC,KAAM,EAAC,CAAC;EAC5E;AACF;AAAC"}
|
|
@@ -4,15 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.FileExtensionNotSupported = void 0;
|
|
7
|
-
|
|
8
7
|
class FileExtensionNotSupported extends Error {
|
|
9
8
|
constructor(filePath, extension) {
|
|
10
9
|
super(`failed reading doc file: ${filePath} as file extension ${extension} is not supported
|
|
11
10
|
by any of registered component doc readers. To register a doc reader please use the 'registerDocReader' API of the teambit.docs/docs.`);
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
exports.FileExtensionNotSupported = FileExtensionNotSupported;
|
|
17
14
|
|
|
18
15
|
//# sourceMappingURL=file-extension-not-supported.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FileExtensionNotSupported","Error","constructor","filePath","extension"],"sources":["file-extension-not-supported.ts"],"sourcesContent":["export class FileExtensionNotSupported extends Error {\n constructor(filePath: string, extension: string) {\n super(`failed reading doc file: ${filePath} as file extension ${extension} is not supported\nby any of registered component doc readers. To register a doc reader please use the 'registerDocReader' API of the teambit.docs/docs.`);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["FileExtensionNotSupported","Error","constructor","filePath","extension"],"sources":["file-extension-not-supported.ts"],"sourcesContent":["export class FileExtensionNotSupported extends Error {\n constructor(filePath: string, extension: string) {\n super(`failed reading doc file: ${filePath} as file extension ${extension} is not supported\nby any of registered component doc readers. To register a doc reader please use the 'registerDocReader' API of the teambit.docs/docs.`);\n }\n}\n"],"mappings":";;;;;;AAAO,MAAMA,yBAAyB,SAASC,KAAK,CAAC;EACnDC,WAAW,CAACC,QAAgB,EAAEC,SAAiB,EAAE;IAC/C,KAAK,CAAE,4BAA2BD,QAAS,sBAAqBC,SAAU;AAC9E,sIAAsI,CAAC;EACrI;AACF;AAAC"}
|
package/dist/exceptions/index.js
CHANGED
|
@@ -15,24 +15,18 @@ Object.defineProperty(exports, "FileExtensionNotSupported", {
|
|
|
15
15
|
return _fileExtensionNotSupported().FileExtensionNotSupported;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
|
|
19
18
|
function _fileExtensionNotSupported() {
|
|
20
19
|
const data = require("./file-extension-not-supported");
|
|
21
|
-
|
|
22
20
|
_fileExtensionNotSupported = function () {
|
|
23
21
|
return data;
|
|
24
22
|
};
|
|
25
|
-
|
|
26
23
|
return data;
|
|
27
24
|
}
|
|
28
|
-
|
|
29
25
|
function _docReadError() {
|
|
30
26
|
const data = require("./doc-read-error");
|
|
31
|
-
|
|
32
27
|
_docReadError = function () {
|
|
33
28
|
return data;
|
|
34
29
|
};
|
|
35
|
-
|
|
36
30
|
return data;
|
|
37
31
|
}
|
|
38
32
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { FileExtensionNotSupported } from './file-extension-not-supported';\nexport { DocReadError } from './doc-read-error';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { FileExtensionNotSupported } from './file-extension-not-supported';\nexport { DocReadError } from './doc-read-error';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
package/dist/index.js
CHANGED
|
@@ -46,53 +46,39 @@ Object.defineProperty(exports, "defaultDocs", {
|
|
|
46
46
|
return _docs2().defaultDocs;
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
|
|
50
49
|
function _docs() {
|
|
51
50
|
const data = require("./docs.aspect");
|
|
52
|
-
|
|
53
51
|
_docs = function () {
|
|
54
52
|
return data;
|
|
55
53
|
};
|
|
56
|
-
|
|
57
54
|
return data;
|
|
58
55
|
}
|
|
59
|
-
|
|
60
56
|
function _docsEntities() {
|
|
61
57
|
const data = require("@teambit/docs.entities.doc");
|
|
62
|
-
|
|
63
58
|
_docsEntities = function () {
|
|
64
59
|
return data;
|
|
65
60
|
};
|
|
66
|
-
|
|
67
61
|
return data;
|
|
68
62
|
}
|
|
69
|
-
|
|
70
63
|
function _docs2() {
|
|
71
64
|
const data = require("./docs");
|
|
72
|
-
|
|
73
65
|
_docs2 = function () {
|
|
74
66
|
return data;
|
|
75
67
|
};
|
|
76
|
-
|
|
77
68
|
return data;
|
|
78
69
|
}
|
|
79
|
-
|
|
80
70
|
function _overview() {
|
|
81
71
|
const data = require("./overview");
|
|
82
|
-
|
|
83
72
|
_overview = function () {
|
|
84
73
|
return data;
|
|
85
74
|
};
|
|
86
|
-
|
|
87
75
|
return data;
|
|
88
76
|
}
|
|
89
|
-
|
|
90
77
|
/**
|
|
91
78
|
* Doc entity.
|
|
92
79
|
* @deprecated - please dont use this. use directly from @teambit/docs.entities.doc.
|
|
93
80
|
*/
|
|
94
81
|
var _default = _docs().DocsAspect;
|
|
95
|
-
|
|
96
82
|
exports.default = _default;
|
|
97
83
|
|
|
98
84
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DocsAspect"],"sources":["index.ts"],"sourcesContent":["import { DocsAspect } from './docs.aspect';\n\n/**\n * Doc entity.\n * @deprecated - please dont use this. use directly from @teambit/docs.entities.doc.\n */\nexport { Doc, DocProp, DocPropList } from '@teambit/docs.entities.doc';\n\nexport type { DocsMain } from './docs.main.runtime';\nexport type { DocsUI } from './docs.ui.runtime';\nexport type { DocsPreview, DocsRootProps } from './docs.preview.runtime';\nexport type { DocReader } from './doc-reader';\nexport type { Docs, Example } from './docs';\nexport { defaultDocs } from './docs';\n\nexport type { TitleBadgeSlot, TitleBadge } from './overview';\nexport { Overview, BadgePosition } from './overview';\n\nexport { DocsAspect };\nexport default DocsAspect;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["DocsAspect"],"sources":["index.ts"],"sourcesContent":["import { DocsAspect } from './docs.aspect';\n\n/**\n * Doc entity.\n * @deprecated - please dont use this. use directly from @teambit/docs.entities.doc.\n */\nexport { Doc, DocProp, DocPropList } from '@teambit/docs.entities.doc';\n\nexport type { DocsMain } from './docs.main.runtime';\nexport type { DocsUI } from './docs.ui.runtime';\nexport type { DocsPreview, DocsRootProps } from './docs.preview.runtime';\nexport type { DocReader } from './doc-reader';\nexport type { Docs, Example } from './docs';\nexport { defaultDocs } from './docs';\n\nexport type { TitleBadgeSlot, TitleBadge } from './overview';\nexport { Overview, BadgePosition } from './overview';\n\nexport { DocsAspect };\nexport default DocsAspect;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAMA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAOA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAdA;AACA;AACA;AACA;AAHA,eAiBeA,kBAAU;AAAA"}
|
package/dist/overview/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Overview, BadgePosition } from './overview';\nexport type { TitleBadgeSlot, TitleBadge } from './overview';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Overview, BadgePosition } from './overview';\nexport type { TitleBadgeSlot, TitleBadge } from './overview';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
|
@@ -1,104 +1,73 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
require("core-js/modules/es.symbol.description.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.array.iterator.js");
|
|
8
|
-
|
|
9
6
|
Object.defineProperty(exports, "__esModule", {
|
|
10
7
|
value: true
|
|
11
8
|
});
|
|
12
9
|
exports.BadgePosition = void 0;
|
|
13
10
|
exports.Overview = Overview;
|
|
14
|
-
|
|
15
11
|
function _react() {
|
|
16
12
|
const data = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
13
|
_react = function () {
|
|
19
14
|
return data;
|
|
20
15
|
};
|
|
21
|
-
|
|
22
16
|
return data;
|
|
23
17
|
}
|
|
24
|
-
|
|
25
18
|
function _classnames() {
|
|
26
19
|
const data = _interopRequireDefault(require("classnames"));
|
|
27
|
-
|
|
28
20
|
_classnames = function () {
|
|
29
21
|
return data;
|
|
30
22
|
};
|
|
31
|
-
|
|
32
23
|
return data;
|
|
33
24
|
}
|
|
34
|
-
|
|
35
25
|
function _lodash() {
|
|
36
26
|
const data = require("lodash");
|
|
37
|
-
|
|
38
27
|
_lodash = function () {
|
|
39
28
|
return data;
|
|
40
29
|
};
|
|
41
|
-
|
|
42
30
|
return data;
|
|
43
31
|
}
|
|
44
|
-
|
|
45
32
|
function _component() {
|
|
46
33
|
const data = require("@teambit/component");
|
|
47
|
-
|
|
48
34
|
_component = function () {
|
|
49
35
|
return data;
|
|
50
36
|
};
|
|
51
|
-
|
|
52
37
|
return data;
|
|
53
38
|
}
|
|
54
|
-
|
|
55
39
|
function _previewUi() {
|
|
56
40
|
const data = require("@teambit/preview.ui.component-preview");
|
|
57
|
-
|
|
58
41
|
_previewUi = function () {
|
|
59
42
|
return data;
|
|
60
43
|
};
|
|
61
|
-
|
|
62
44
|
return data;
|
|
63
45
|
}
|
|
64
|
-
|
|
65
46
|
function _designUiSurfaces() {
|
|
66
47
|
const data = require("@teambit/design.ui.surfaces.status-message-card");
|
|
67
|
-
|
|
68
48
|
_designUiSurfaces = function () {
|
|
69
49
|
return data;
|
|
70
50
|
};
|
|
71
|
-
|
|
72
51
|
return data;
|
|
73
52
|
}
|
|
74
|
-
|
|
75
53
|
function _componentUi() {
|
|
76
54
|
const data = require("@teambit/component.ui.component-meta");
|
|
77
|
-
|
|
78
55
|
_componentUi = function () {
|
|
79
56
|
return data;
|
|
80
57
|
};
|
|
81
|
-
|
|
82
58
|
return data;
|
|
83
59
|
}
|
|
84
|
-
|
|
85
60
|
function _overviewModule() {
|
|
86
61
|
const data = _interopRequireDefault(require("./overview.module.scss"));
|
|
87
|
-
|
|
88
62
|
_overviewModule = function () {
|
|
89
63
|
return data;
|
|
90
64
|
};
|
|
91
|
-
|
|
92
65
|
return data;
|
|
93
66
|
}
|
|
94
|
-
|
|
95
67
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
96
|
-
|
|
97
68
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
98
|
-
|
|
99
69
|
let BadgePosition;
|
|
100
70
|
exports.BadgePosition = BadgePosition;
|
|
101
|
-
|
|
102
71
|
(function (BadgePosition) {
|
|
103
72
|
BadgePosition[BadgePosition["Title"] = 0] = "Title";
|
|
104
73
|
BadgePosition[BadgePosition["SubTitle"] = 1] = "SubTitle";
|
|
@@ -106,12 +75,10 @@ exports.BadgePosition = BadgePosition;
|
|
|
106
75
|
BadgePosition[BadgePosition["Package"] = 3] = "Package";
|
|
107
76
|
BadgePosition[BadgePosition["ElementsPackage"] = 4] = "ElementsPackage";
|
|
108
77
|
})(BadgePosition || (exports.BadgePosition = BadgePosition = {}));
|
|
109
|
-
|
|
110
78
|
function Overview({
|
|
111
79
|
titleBadges
|
|
112
80
|
}) {
|
|
113
81
|
var _component$preview, _component$preview2;
|
|
114
|
-
|
|
115
82
|
const component = (0, _react().useContext)(_component().ComponentContext);
|
|
116
83
|
const componentDescriptor = (0, _component().useComponentDescriptor)();
|
|
117
84
|
const showHeader = !((_component$preview = component.preview) !== null && _component$preview !== void 0 && _component$preview.legacyHeader);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BadgePosition","Overview","titleBadges","component","useContext","ComponentContext","componentDescriptor","useComponentDescriptor","showHeader","preview","legacyHeader","buildStatus","host","margin","isScaling","styles","overviewWrapper","classNames","componentOverviewBlock","legacyPreview","displayName","version","description","labels","packageName","flatten","values","width","height"],"sources":["overview.tsx"],"sourcesContent":["import React, { useContext, ComponentType } from 'react';\nimport classNames from 'classnames';\nimport { flatten } from 'lodash';\nimport { ComponentContext, useComponentDescriptor } from '@teambit/component';\nimport type { SlotRegistry } from '@teambit/harmony';\nimport { ComponentPreview } from '@teambit/preview.ui.component-preview';\nimport { StatusMessageCard } from '@teambit/design.ui.surfaces.status-message-card';\nimport { ComponentOverview } from '@teambit/component.ui.component-meta';\n\nimport styles from './overview.module.scss';\n\nexport enum BadgePosition {\n Title,\n SubTitle,\n Labels,\n Package,\n ElementsPackage,\n}\n\nexport type TitleBadge = {\n component: ComponentType<any>;\n weight?: number;\n position?: BadgePosition;\n};\n\nexport type TitleBadgeSlot = SlotRegistry<TitleBadge[]>;\n\nexport type OverviewProps = {\n titleBadges: TitleBadgeSlot;\n};\n\nexport function Overview({ titleBadges }: OverviewProps) {\n const component = useContext(ComponentContext);\n const componentDescriptor = useComponentDescriptor();\n\n const showHeader = !component.preview?.legacyHeader;\n\n if (component?.buildStatus === 'pending' && component?.host === 'teambit.scope/scope')\n return (\n <StatusMessageCard style={{ margin: 'auto' }} status=\"PROCESSING\" title=\"component preview pending\">\n this might take some time\n </StatusMessageCard>\n );\n\n if (component?.buildStatus === 'failed' && component?.host === 'teambit.scope/scope')\n return <StatusMessageCard style={{ margin: 'auto' }} status=\"FAILURE\" title=\"failed to get component preview \" />;\n\n const isScaling = component.preview?.isScaling;\n\n return (\n <div className={styles.overviewWrapper}>\n {showHeader && (\n <ComponentOverview\n className={classNames(styles.componentOverviewBlock, !isScaling && styles.legacyPreview)}\n displayName={component.displayName}\n version={component.version}\n abstract={component.description}\n labels={component.labels}\n packageName={component.packageName}\n titleBadges={flatten(titleBadges.values())}\n componentDescriptor={componentDescriptor}\n component={component}\n />\n )}\n <ComponentPreview\n component={component}\n style={{ width: '100%', height: '100%' }}\n previewName=\"overview\"\n pubsub={true}\n viewport={null}\n fullContentHeight\n scrolling=\"no\"\n />\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["BadgePosition","Overview","titleBadges","component","useContext","ComponentContext","componentDescriptor","useComponentDescriptor","showHeader","preview","legacyHeader","buildStatus","host","margin","isScaling","styles","overviewWrapper","classNames","componentOverviewBlock","legacyPreview","displayName","version","description","labels","packageName","flatten","values","width","height"],"sources":["overview.tsx"],"sourcesContent":["import React, { useContext, ComponentType } from 'react';\nimport classNames from 'classnames';\nimport { flatten } from 'lodash';\nimport { ComponentContext, useComponentDescriptor } from '@teambit/component';\nimport type { SlotRegistry } from '@teambit/harmony';\nimport { ComponentPreview } from '@teambit/preview.ui.component-preview';\nimport { StatusMessageCard } from '@teambit/design.ui.surfaces.status-message-card';\nimport { ComponentOverview } from '@teambit/component.ui.component-meta';\n\nimport styles from './overview.module.scss';\n\nexport enum BadgePosition {\n Title,\n SubTitle,\n Labels,\n Package,\n ElementsPackage,\n}\n\nexport type TitleBadge = {\n component: ComponentType<any>;\n weight?: number;\n position?: BadgePosition;\n};\n\nexport type TitleBadgeSlot = SlotRegistry<TitleBadge[]>;\n\nexport type OverviewProps = {\n titleBadges: TitleBadgeSlot;\n};\n\nexport function Overview({ titleBadges }: OverviewProps) {\n const component = useContext(ComponentContext);\n const componentDescriptor = useComponentDescriptor();\n\n const showHeader = !component.preview?.legacyHeader;\n\n if (component?.buildStatus === 'pending' && component?.host === 'teambit.scope/scope')\n return (\n <StatusMessageCard style={{ margin: 'auto' }} status=\"PROCESSING\" title=\"component preview pending\">\n this might take some time\n </StatusMessageCard>\n );\n\n if (component?.buildStatus === 'failed' && component?.host === 'teambit.scope/scope')\n return <StatusMessageCard style={{ margin: 'auto' }} status=\"FAILURE\" title=\"failed to get component preview \" />;\n\n const isScaling = component.preview?.isScaling;\n\n return (\n <div className={styles.overviewWrapper}>\n {showHeader && (\n <ComponentOverview\n className={classNames(styles.componentOverviewBlock, !isScaling && styles.legacyPreview)}\n displayName={component.displayName}\n version={component.version}\n abstract={component.description}\n labels={component.labels}\n packageName={component.packageName}\n titleBadges={flatten(titleBadges.values())}\n componentDescriptor={componentDescriptor}\n component={component}\n />\n )}\n <ComponentPreview\n component={component}\n style={{ width: '100%', height: '100%' }}\n previewName=\"overview\"\n pubsub={true}\n viewport={null}\n fullContentHeight\n scrolling=\"no\"\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AAAA;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;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA4C;AAAA;AAAA,IAEhCA,aAAa;AAAA;AAAA,WAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;AAAA,GAAbA,aAAa,6BAAbA,aAAa;AAoBlB,SAASC,QAAQ,CAAC;EAAEC;AAA2B,CAAC,EAAE;EAAA;EACvD,MAAMC,SAAS,GAAG,IAAAC,mBAAU,EAACC,6BAAgB,CAAC;EAC9C,MAAMC,mBAAmB,GAAG,IAAAC,mCAAsB,GAAE;EAEpD,MAAMC,UAAU,GAAG,wBAACL,SAAS,CAACM,OAAO,+CAAjB,mBAAmBC,YAAY;EAEnD,IAAI,CAAAP,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEQ,WAAW,MAAK,SAAS,IAAI,CAAAR,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAES,IAAI,MAAK,qBAAqB,EACnF,oBACE,+BAAC,qCAAiB;IAAC,KAAK,EAAE;MAAEC,MAAM,EAAE;IAAO,CAAE;IAAC,MAAM,EAAC,YAAY;IAAC,KAAK,EAAC;EAA2B,+BAE/E;EAGxB,IAAI,CAAAV,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEQ,WAAW,MAAK,QAAQ,IAAI,CAAAR,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAES,IAAI,MAAK,qBAAqB,EAClF,oBAAO,+BAAC,qCAAiB;IAAC,KAAK,EAAE;MAAEC,MAAM,EAAE;IAAO,CAAE;IAAC,MAAM,EAAC,SAAS;IAAC,KAAK,EAAC;EAAkC,EAAG;EAEnH,MAAMC,SAAS,0BAAGX,SAAS,CAACM,OAAO,wDAAjB,oBAAmBK,SAAS;EAE9C,oBACE;IAAK,SAAS,EAAEC,yBAAM,CAACC;EAAgB,GACpCR,UAAU,iBACT,+BAAC,gCAAiB;IAChB,SAAS,EAAE,IAAAS,qBAAU,EAACF,yBAAM,CAACG,sBAAsB,EAAE,CAACJ,SAAS,IAAIC,yBAAM,CAACI,aAAa,CAAE;IACzF,WAAW,EAAEhB,SAAS,CAACiB,WAAY;IACnC,OAAO,EAAEjB,SAAS,CAACkB,OAAQ;IAC3B,QAAQ,EAAElB,SAAS,CAACmB,WAAY;IAChC,MAAM,EAAEnB,SAAS,CAACoB,MAAO;IACzB,WAAW,EAAEpB,SAAS,CAACqB,WAAY;IACnC,WAAW,EAAE,IAAAC,iBAAO,EAACvB,WAAW,CAACwB,MAAM,EAAE,CAAE;IAC3C,mBAAmB,EAAEpB,mBAAoB;IACzC,SAAS,EAAEH;EAAU,EAExB,eACD,+BAAC,6BAAgB;IACf,SAAS,EAAEA,SAAU;IACrB,KAAK,EAAE;MAAEwB,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;IAAO,CAAE;IACzC,WAAW,EAAC,UAAU;IACtB,MAAM,EAAE,IAAK;IACb,QAAQ,EAAE,IAAK;IACf,iBAAiB;IACjB,SAAS,EAAC;EAAI,EACd,CACE;AAEV"}
|
package/dist/overview.section.js
CHANGED
|
@@ -1,42 +1,31 @@
|
|
|
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
|
});
|
|
8
7
|
exports.OverviewSection = void 0;
|
|
9
|
-
|
|
10
8
|
function _defineProperty2() {
|
|
11
9
|
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
-
|
|
13
10
|
_defineProperty2 = function () {
|
|
14
11
|
return data;
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
return data;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
15
|
function _react() {
|
|
21
16
|
const data = _interopRequireDefault(require("react"));
|
|
22
|
-
|
|
23
17
|
_react = function () {
|
|
24
18
|
return data;
|
|
25
19
|
};
|
|
26
|
-
|
|
27
20
|
return data;
|
|
28
21
|
}
|
|
29
|
-
|
|
30
22
|
function _overview() {
|
|
31
23
|
const data = require("./overview");
|
|
32
|
-
|
|
33
24
|
_overview = function () {
|
|
34
25
|
return data;
|
|
35
26
|
};
|
|
36
|
-
|
|
37
27
|
return data;
|
|
38
28
|
}
|
|
39
|
-
|
|
40
29
|
class OverviewSection {
|
|
41
30
|
constructor(
|
|
42
31
|
/**
|
|
@@ -57,9 +46,7 @@ class OverviewSection {
|
|
|
57
46
|
});
|
|
58
47
|
(0, _defineProperty2().default)(this, "order", 10);
|
|
59
48
|
}
|
|
60
|
-
|
|
61
49
|
}
|
|
62
|
-
|
|
63
50
|
exports.OverviewSection = OverviewSection;
|
|
64
51
|
|
|
65
52
|
//# sourceMappingURL=overview.section.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["OverviewSection","constructor","titleBadgeSlot","href","exact","children","index","element"],"sources":["overview.section.tsx"],"sourcesContent":["import React from 'react';\nimport { Section } from '@teambit/component';\nimport { Overview, TitleBadgeSlot } from './overview';\n\nexport class OverviewSection implements Section {\n constructor(\n /**\n * title badge slot.\n */\n private titleBadgeSlot: TitleBadgeSlot\n ) {}\n\n navigationLink = {\n href: '.',\n exact: true,\n children: 'Overview',\n };\n\n route = {\n index: true,\n element: <Overview titleBadges={this.titleBadgeSlot} />,\n };\n\n order = 10;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["OverviewSection","constructor","titleBadgeSlot","href","exact","children","index","element"],"sources":["overview.section.tsx"],"sourcesContent":["import React from 'react';\nimport { Section } from '@teambit/component';\nimport { Overview, TitleBadgeSlot } from './overview';\n\nexport class OverviewSection implements Section {\n constructor(\n /**\n * title badge slot.\n */\n private titleBadgeSlot: TitleBadgeSlot\n ) {}\n\n navigationLink = {\n href: '.',\n exact: true,\n children: 'Overview',\n };\n\n route = {\n index: true,\n element: <Overview titleBadges={this.titleBadgeSlot} />,\n };\n\n order = 10;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,eAAe,CAAoB;EAC9CC,WAAW;EACT;AACJ;AACA;EACYC,cAA8B,EACtC;IAAA,KADQA,cAA8B,GAA9BA,cAA8B;IAAA,wDAGvB;MACfC,IAAI,EAAE,GAAG;MACTC,KAAK,EAAE,IAAI;MACXC,QAAQ,EAAE;IACZ,CAAC;IAAA,+CAEO;MACNC,KAAK,EAAE,IAAI;MACXC,OAAO,eAAE,+BAAC,oBAAQ;QAAC,WAAW,EAAE,IAAI,CAACL;MAAe;IACtD,CAAC;IAAA,+CAEO,EAAE;EAbP;AAcL;AAAC"}
|
|
Binary file
|