@teambit/compositions 0.0.881 → 0.0.883
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/composition.compare.section.js +0 -13
- package/dist/composition.compare.section.js.map +1 -1
- package/dist/composition.js +0 -10
- package/dist/composition.js.map +1 -1
- package/dist/composition.section.js +0 -13
- package/dist/composition.section.js.map +1 -1
- package/dist/compositions.aspect.js +0 -5
- package/dist/compositions.aspect.js.map +1 -1
- package/dist/compositions.composition.js +0 -6
- package/dist/compositions.composition.js.map +1 -1
- package/dist/compositions.graphql.js +0 -5
- package/dist/compositions.graphql.js.map +1 -1
- package/dist/compositions.js +9 -94
- package/dist/compositions.js.map +1 -1
- package/dist/compositions.main.runtime.js +8 -75
- package/dist/compositions.main.runtime.js.map +1 -1
- package/dist/compositions.preview-definition.js +0 -12
- package/dist/compositions.preview-definition.js.map +1 -1
- package/dist/compositions.preview.runtime.js +3 -33
- package/dist/compositions.preview.runtime.js.map +1 -1
- package/dist/compositions.ui.runtime.js +1 -35
- package/dist/compositions.ui.runtime.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -30
- package/dist/index.js.map +1 -1
- package/dist/ui/composition-preview.js +5 -22
- package/dist/ui/composition-preview.js.map +1 -1
- package/dist/ui/compositions-panel/compositions-panel.js +10 -31
- package/dist/ui/compositions-panel/compositions-panel.js.map +1 -1
- package/dist/ui/compositions-panel-node/compositions-panel-node.js +5 -19
- package/dist/ui/compositions-panel-node/compositions-panel-node.js.map +1 -1
- package/dist/ui/compositions-panel-node/index.js +0 -2
- package/dist/ui/compositions-panel-node/index.js.map +1 -1
- package/dist/ui/index.js +0 -3
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/use-compositions.js +3 -0
- package/dist/ui/use-compositions.js.map +1 -1
- package/package-tar/teambit-compositions-0.0.883.tgz +0 -0
- package/package.json +11 -13
- package/{preview-1666409808293.js → preview-1666582798766.js} +2 -2
- package/dist/ui/compositions-overview/compositions-overview.d.ts +0 -7
- package/dist/ui/compositions-overview/compositions-overview.js +0 -56
- package/dist/ui/compositions-overview/compositions-overview.js.map +0 -1
- package/dist/ui/compositions-overview/compositions-overview.module.scss +0 -17
- package/dist/ui/compositions-overview/index.d.ts +0 -1
- package/dist/ui/compositions-overview/index.js +0 -20
- package/dist/ui/compositions-overview/index.js.map +0 -1
- package/package-tar/teambit-compositions-0.0.881.tgz +0 -0
- package/ui/compositions-overview/compositions-overview.module.scss +0 -17
- package/ui/compositions-overview/compositions-overview.tsx +0 -21
- package/ui/compositions-overview/index.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["use-compositions.tsx"],"sourcesContent":["// import gql from 'graphql-tag';\n// import { ComponentModel } from '../../component';\n// import { Composition } from '../composition';\n// import { useDataQuery } from '../../ui';\n\n// const GET_COMPOSITIONS = gql`\n// compositions: {\n\n// }\n// `;\n\n// export function useCompositions(component: ComponentModel): Composition[] | [] {\n// useDataQuery();\n// }\n"],"mappings":"AAAA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"names":[],"sources":["use-compositions.tsx"],"sourcesContent":["// import gql from 'graphql-tag';\n// import { ComponentModel } from '../../component';\n// import { Composition } from '../composition';\n// import { useDataQuery } from '../../ui';\n\n// const GET_COMPOSITIONS = gql`\n// compositions: {\n\n// }\n// `;\n\n// export function useCompositions(component: ComponentModel): Composition[] | [] {\n// useDataQuery();\n// }\n"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AAAA"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compositions",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.883",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/compositions/compositions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.compositions",
|
|
8
8
|
"name": "compositions",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.883"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"@teambit/documenter.ui.heading": "4.1.1",
|
|
26
26
|
"@teambit/documenter.ui.property-table": "4.1.3",
|
|
27
27
|
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
28
|
-
"@teambit/component": "0.0.
|
|
28
|
+
"@teambit/component": "0.0.883",
|
|
29
29
|
"@teambit/compositions.ui.composition-compare": "0.0.105",
|
|
30
30
|
"@teambit/compositions.model.composition-id": "0.0.495",
|
|
31
|
-
"@teambit/graphql": "0.0.
|
|
31
|
+
"@teambit/graphql": "0.0.883",
|
|
32
32
|
"@teambit/cli": "0.0.591",
|
|
33
|
-
"@teambit/dev-files": "0.0.
|
|
34
|
-
"@teambit/envs": "0.0.
|
|
35
|
-
"@teambit/preview": "0.0.
|
|
36
|
-
"@teambit/schema": "0.0.
|
|
33
|
+
"@teambit/dev-files": "0.0.883",
|
|
34
|
+
"@teambit/envs": "0.0.883",
|
|
35
|
+
"@teambit/preview": "0.0.883",
|
|
36
|
+
"@teambit/schema": "0.0.883",
|
|
37
37
|
"@teambit/toolbox.path.match-patterns": "0.0.7",
|
|
38
|
-
"@teambit/workspace": "0.0.
|
|
38
|
+
"@teambit/workspace": "0.0.883",
|
|
39
39
|
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.494",
|
|
40
40
|
"@teambit/component-id": "0.0.418",
|
|
41
41
|
"@teambit/compositions.ui.compositions-menu-bar": "0.0.169",
|
|
@@ -49,10 +49,8 @@
|
|
|
49
49
|
"@teambit/preview.ui.component-preview": "0.0.505",
|
|
50
50
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.202",
|
|
51
51
|
"@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.185",
|
|
52
|
-
"@teambit/component-compare": "0.0.
|
|
53
|
-
"@teambit/ui": "0.0.
|
|
54
|
-
"@teambit/compositions.model.composition-type": "0.0.496",
|
|
55
|
-
"@teambit/compositions.ui.composition-card": "0.0.503"
|
|
52
|
+
"@teambit/component-compare": "0.0.131",
|
|
53
|
+
"@teambit/ui": "0.0.883"
|
|
56
54
|
},
|
|
57
55
|
"devDependencies": {
|
|
58
56
|
"@types/react": "^17.0.8",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@0.0.883/dist/compositions.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@0.0.883/dist/compositions.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CompositionsModule } from '@teambit/compositions.model.composition-type';
|
|
3
|
-
export declare type CompositionsOverviewProps = {
|
|
4
|
-
compositions?: CompositionsModule;
|
|
5
|
-
compositionCardClass?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function CompositionsOverview({ compositions, compositionCardClass }: CompositionsOverviewProps): JSX.Element;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.CompositionsOverview = CompositionsOverview;
|
|
11
|
-
|
|
12
|
-
function _react() {
|
|
13
|
-
const data = _interopRequireDefault(require("react"));
|
|
14
|
-
|
|
15
|
-
_react = function () {
|
|
16
|
-
return data;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
return data;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function _compositionsUi() {
|
|
23
|
-
const data = require("@teambit/compositions.ui.composition-card");
|
|
24
|
-
|
|
25
|
-
_compositionsUi = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function _compositionsOverviewModule() {
|
|
33
|
-
const data = _interopRequireDefault(require("./compositions-overview.module.scss"));
|
|
34
|
-
|
|
35
|
-
_compositionsOverviewModule = function () {
|
|
36
|
-
return data;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return data;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function CompositionsOverview({
|
|
43
|
-
compositions,
|
|
44
|
-
compositionCardClass
|
|
45
|
-
}) {
|
|
46
|
-
return /*#__PURE__*/_react().default.createElement("div", {
|
|
47
|
-
className: _compositionsOverviewModule().default.background
|
|
48
|
-
}, compositions && Object.entries(compositions).map(([key, composition]) => /*#__PURE__*/_react().default.createElement(_compositionsUi().CompositionCard, {
|
|
49
|
-
key: key,
|
|
50
|
-
Composition: composition,
|
|
51
|
-
name: key,
|
|
52
|
-
className: compositionCardClass
|
|
53
|
-
})));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
//# sourceMappingURL=compositions-overview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CompositionsOverview","compositions","compositionCardClass","styles","background","Object","entries","map","key","composition"],"sources":["compositions-overview.tsx"],"sourcesContent":["import React from 'react';\nimport { CompositionCard } from '@teambit/compositions.ui.composition-card';\nimport { CompositionsModule } from '@teambit/compositions.model.composition-type';\n\nimport styles from './compositions-overview.module.scss';\n\nexport type CompositionsOverviewProps = {\n compositions?: CompositionsModule;\n compositionCardClass?: string;\n};\n\nexport function CompositionsOverview({ compositions, compositionCardClass }: CompositionsOverviewProps) {\n return (\n <div className={styles.background}>\n {compositions &&\n Object.entries(compositions).map(([key, composition]) => (\n <CompositionCard key={key} Composition={composition} name={key} className={compositionCardClass} />\n ))}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAOO,SAASA,oBAAT,CAA8B;EAAEC,YAAF;EAAgBC;AAAhB,CAA9B,EAAiG;EACtG,oBACE;IAAK,SAAS,EAAEC,qCAAA,CAAOC;EAAvB,GACGH,YAAY,IACXI,MAAM,CAACC,OAAP,CAAeL,YAAf,EAA6BM,GAA7B,CAAiC,CAAC,CAACC,GAAD,EAAMC,WAAN,CAAD,kBAC/B,+BAAC,iCAAD;IAAiB,GAAG,EAAED,GAAtB;IAA2B,WAAW,EAAEC,WAAxC;IAAqD,IAAI,EAAED,GAA3D;IAAgE,SAAS,EAAEN;EAA3E,EADF,CAFJ,CADF;AAQD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.background {
|
|
2
|
-
background: var(--bit-bg-dent, #f6f6f6);
|
|
3
|
-
padding: 12px;
|
|
4
|
-
border-radius: 6px;
|
|
5
|
-
border: 1px solid var(--bit-border-color-lightest, #ededed);
|
|
6
|
-
display: flex;
|
|
7
|
-
overflow-x: auto;
|
|
8
|
-
max-height: 500px;
|
|
9
|
-
|
|
10
|
-
> * {
|
|
11
|
-
margin-right: 16px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
> :last-child {
|
|
15
|
-
margin: 0;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './compositions-overview';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _compositionsOverview = require("./compositions-overview");
|
|
8
|
-
|
|
9
|
-
Object.keys(_compositionsOverview).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (key in exports && exports[key] === _compositionsOverview[key]) return;
|
|
12
|
-
Object.defineProperty(exports, key, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _compositionsOverview[key];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './compositions-overview';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
Binary file
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.background {
|
|
2
|
-
background: var(--bit-bg-dent, #f6f6f6);
|
|
3
|
-
padding: 12px;
|
|
4
|
-
border-radius: 6px;
|
|
5
|
-
border: 1px solid var(--bit-border-color-lightest, #ededed);
|
|
6
|
-
display: flex;
|
|
7
|
-
overflow-x: auto;
|
|
8
|
-
max-height: 500px;
|
|
9
|
-
|
|
10
|
-
> * {
|
|
11
|
-
margin-right: 16px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
> :last-child {
|
|
15
|
-
margin: 0;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CompositionCard } from '@teambit/compositions.ui.composition-card';
|
|
3
|
-
import { CompositionsModule } from '@teambit/compositions.model.composition-type';
|
|
4
|
-
|
|
5
|
-
import styles from './compositions-overview.module.scss';
|
|
6
|
-
|
|
7
|
-
export type CompositionsOverviewProps = {
|
|
8
|
-
compositions?: CompositionsModule;
|
|
9
|
-
compositionCardClass?: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export function CompositionsOverview({ compositions, compositionCardClass }: CompositionsOverviewProps) {
|
|
13
|
-
return (
|
|
14
|
-
<div className={styles.background}>
|
|
15
|
-
{compositions &&
|
|
16
|
-
Object.entries(compositions).map(([key, composition]) => (
|
|
17
|
-
<CompositionCard key={key} Composition={composition} name={key} className={compositionCardClass} />
|
|
18
|
-
))}
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './compositions-overview';
|