@teambit/sidebar 1.0.1187 → 1.0.1189
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.ui-foundation_sidebar@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.ui-foundation_sidebar@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.ui-foundation_sidebar@1.0.1189/dist/sidebar.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.ui-foundation_sidebar@1.0.1189/dist/sidebar.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -11,9 +11,9 @@ function _harmony() {
|
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const data = require("@teambit/
|
|
16
|
-
|
|
14
|
+
function _harmonyModules() {
|
|
15
|
+
const data = require("@teambit/harmony.modules.runtimes");
|
|
16
|
+
_harmonyModules = function () {
|
|
17
17
|
return data;
|
|
18
18
|
};
|
|
19
19
|
return data;
|
|
@@ -32,9 +32,9 @@ function _sidebar() {
|
|
|
32
32
|
};
|
|
33
33
|
return data;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function _ui() {
|
|
36
36
|
const data = require("./ui");
|
|
37
|
-
|
|
37
|
+
_ui = function () {
|
|
38
38
|
return data;
|
|
39
39
|
};
|
|
40
40
|
return data;
|
|
@@ -51,7 +51,7 @@ class SidebarUI {
|
|
|
51
51
|
* render the sidebar.
|
|
52
52
|
*/
|
|
53
53
|
_defineProperty(this, "render", props => {
|
|
54
|
-
return /*#__PURE__*/_react().default.createElement(
|
|
54
|
+
return /*#__PURE__*/_react().default.createElement(_ui().SideBar, _extends({
|
|
55
55
|
drawerSlot: this.drawerSlot
|
|
56
56
|
}, props));
|
|
57
57
|
});
|
|
@@ -69,7 +69,7 @@ class SidebarUI {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
exports.SidebarUI = SidebarUI;
|
|
72
|
-
_defineProperty(SidebarUI, "runtime",
|
|
72
|
+
_defineProperty(SidebarUI, "runtime", _harmonyModules().UIRuntime);
|
|
73
73
|
_defineProperty(SidebarUI, "slots", [_harmony().Slot.withType()]);
|
|
74
74
|
_defineProperty(SidebarUI, "dependencies", []);
|
|
75
75
|
_sidebar().SidebarAspect.addRuntime(SidebarUI);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_harmony","data","require","
|
|
1
|
+
{"version":3,"names":["_harmony","data","require","_harmonyModules","_react","_interopRequireDefault","_sidebar","_ui","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_defineProperty","_toPropertyKey","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","SidebarUI","constructor","drawerSlot","props","createElement","SideBar","registerDrawer","drawer","register","provider","deps","config","exports","UIRuntime","Slot","withType","SidebarAspect","addRuntime"],"sources":["sidebar.ui.runtime.tsx"],"sourcesContent":["import type { ComponentModel } from '@teambit/component';\nimport type { SlotRegistry } from '@teambit/harmony';\nimport { Slot } from '@teambit/harmony';\nimport { UIRuntime } from '@teambit/harmony.modules.runtimes';\nimport type { ComponentType } from 'react';\nimport React from 'react';\n\nimport type { DrawerType } from '@teambit/ui-foundation.ui.tree.drawer';\nimport { SidebarAspect } from './sidebar.aspect';\nimport type { SideBarProps } from './ui';\nimport { SideBar } from './ui';\n\nexport type ComponentTypeProps = {\n component: ComponentModel;\n};\n\nexport type SidebarItem = {\n weight?: number;\n component?: ComponentType;\n};\n\nexport type SidebarItemSlot = SlotRegistry<SidebarItem[]>;\n\nexport type DrawerSlot = SlotRegistry<DrawerType[]>;\n\nexport class SidebarUI {\n constructor(private drawerSlot: DrawerSlot) {}\n\n /**\n * register a new drawer into the component sidebar.\n */\n registerDrawer(...drawer: DrawerType[]) {\n this.drawerSlot.register(drawer);\n return this;\n }\n\n /**\n * render the sidebar.\n */\n render = (props: Partial<SideBarProps>) => {\n return <SideBar drawerSlot={this.drawerSlot} {...props}></SideBar>;\n };\n\n static runtime = UIRuntime;\n\n static slots = [Slot.withType<DrawerType>()];\n\n static dependencies = [];\n\n static async provider(deps, config, [drawerSlot]: [DrawerSlot]) {\n return new SidebarUI(drawerSlot);\n }\n}\n\nSidebarAspect.addRuntime(SidebarUI);\n"],"mappings":";;;;;;AAEA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,gBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAK,SAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAM,IAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,GAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA+B,SAAAI,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA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KAA4B,IAAK;MACzC,oBAAOpC,MAAA,GAAAM,OAAA,CAAA+B,aAAA,CAAClC,GAAA,GAAAmC,OAAO,EAAA/B,QAAA;QAAC4B,UAAU,EAAE,IAAI,CAACA;MAAW,GAAKC,KAAK,CAAW,CAAC;IACpE,CAAC;EAf4C;;EAE7C;AACF;AACA;EACEG,cAAcA,CAAC,GAAGC,MAAoB,EAAE;IACtC,IAAI,CAACL,UAAU,CAACM,QAAQ,CAACD,MAAM,CAAC;IAChC,OAAO,IAAI;EACb;EAeA,aAAaE,QAAQA,CAACC,IAAI,EAAEC,MAAM,EAAE,CAACT,UAAU,CAAe,EAAE;IAC9D,OAAO,IAAIF,SAAS,CAACE,UAAU,CAAC;EAClC;AACF;AAACU,OAAA,CAAAZ,SAAA,GAAAA,SAAA;AAAAd,eAAA,CA3BYc,SAAS,aAkBHa,2BAAS;AAAA3B,eAAA,CAlBfc,SAAS,WAoBL,CAACc,eAAI,CAACC,QAAQ,CAAa,CAAC,CAAC;AAAA7B,eAAA,CApBjCc,SAAS,kBAsBE,EAAE;AAO1BgB,wBAAa,CAACC,UAAU,CAACjB,SAAS,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/sidebar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1189",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/ui-foundation/sidebar",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.ui-foundation",
|
|
8
8
|
"name": "sidebar",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1189"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"classnames": "^2.5.1",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"@teambit/harmony": "0.4.12",
|
|
15
|
+
"@teambit/harmony.modules.runtimes": "0.0.1",
|
|
15
16
|
"@teambit/ui-foundation.ui.tree.drawer": "1.0.0",
|
|
16
17
|
"@teambit/design.ui.surfaces.menu.section": "0.0.357",
|
|
17
|
-
"@teambit/component": "1.0.
|
|
18
|
-
"@teambit/ui": "1.0.1187"
|
|
18
|
+
"@teambit/component": "1.0.1189"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/classnames": "^2.3.4",
|
package/sidebar.ui.runtime.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentModel } from '@teambit/component';
|
|
2
2
|
import type { SlotRegistry } from '@teambit/harmony';
|
|
3
3
|
import { Slot } from '@teambit/harmony';
|
|
4
|
-
import { UIRuntime } from '@teambit/
|
|
4
|
+
import { UIRuntime } from '@teambit/harmony.modules.runtimes';
|
|
5
5
|
import type { ComponentType } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|