@teambit/compositions 1.0.1212 → 1.0.1213
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.d.ts
CHANGED
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
filepath?: string;
|
|
4
|
-
displayName?: string;
|
|
5
|
-
};
|
|
6
|
-
export type CompositionBrowserMetadata = {
|
|
7
|
-
displayName?: string;
|
|
8
|
-
identifier: string;
|
|
9
|
-
};
|
|
10
|
-
export type CompositionBrowserMetadataObject = {
|
|
11
|
-
compositions: CompositionBrowserMetadata[];
|
|
12
|
-
};
|
|
13
|
-
export declare class Composition {
|
|
14
|
-
/**
|
|
15
|
-
* identifier of the composition
|
|
16
|
-
*/
|
|
17
|
-
readonly identifier: string;
|
|
18
|
-
/**
|
|
19
|
-
* file path in which the composition is contained.
|
|
20
|
-
*/
|
|
21
|
-
readonly filepath?: string | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* set explicit display name
|
|
24
|
-
*/
|
|
25
|
-
private _displayName?;
|
|
26
|
-
constructor(
|
|
27
|
-
/**
|
|
28
|
-
* identifier of the composition
|
|
29
|
-
*/
|
|
30
|
-
identifier: string,
|
|
31
|
-
/**
|
|
32
|
-
* file path in which the composition is contained.
|
|
33
|
-
*/
|
|
34
|
-
filepath?: string | undefined,
|
|
35
|
-
/**
|
|
36
|
-
* set explicit display name
|
|
37
|
-
*/
|
|
38
|
-
_displayName?: string | undefined);
|
|
39
|
-
get displayName(): string;
|
|
40
|
-
toObject(): {
|
|
41
|
-
identifier: string;
|
|
42
|
-
filepath: string | undefined;
|
|
43
|
-
displayName: string | undefined;
|
|
44
|
-
};
|
|
45
|
-
toBrowserMetaDataObject(): CompositionBrowserMetadata;
|
|
46
|
-
static fromArray(compositions: CompositionProps[]): Composition[];
|
|
47
|
-
}
|
|
1
|
+
export { Composition } from '@teambit/compositions.model.composition-type';
|
|
2
|
+
export type { CompositionProps, CompositionBrowserMetadata, CompositionBrowserMetadataObject, } from '@teambit/compositions.model.composition-type';
|
package/dist/composition.js
CHANGED
|
@@ -3,54 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
Object.defineProperty(exports, "Composition", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _compositionsModel().Composition;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
7
12
|
function _compositionsModel() {
|
|
8
|
-
const data = require("@teambit/compositions.model.composition-
|
|
13
|
+
const data = require("@teambit/compositions.model.composition-type");
|
|
9
14
|
_compositionsModel = function () {
|
|
10
15
|
return data;
|
|
11
16
|
};
|
|
12
17
|
return data;
|
|
13
18
|
}
|
|
14
|
-
class Composition {
|
|
15
|
-
constructor(
|
|
16
|
-
/**
|
|
17
|
-
* identifier of the composition
|
|
18
|
-
*/
|
|
19
|
-
identifier,
|
|
20
|
-
/**
|
|
21
|
-
* file path in which the composition is contained.
|
|
22
|
-
*/
|
|
23
|
-
filepath,
|
|
24
|
-
/**
|
|
25
|
-
* set explicit display name
|
|
26
|
-
*/
|
|
27
|
-
_displayName) {
|
|
28
|
-
this.identifier = identifier;
|
|
29
|
-
this.filepath = filepath;
|
|
30
|
-
this._displayName = _displayName;
|
|
31
|
-
}
|
|
32
|
-
get displayName() {
|
|
33
|
-
return this._displayName || (0, _compositionsModel().humanizeCompositionId)(this.identifier);
|
|
34
|
-
}
|
|
35
|
-
toObject() {
|
|
36
|
-
return {
|
|
37
|
-
identifier: this.identifier,
|
|
38
|
-
filepath: this.filepath,
|
|
39
|
-
displayName: this._displayName
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
toBrowserMetaDataObject() {
|
|
43
|
-
return {
|
|
44
|
-
identifier: this.identifier,
|
|
45
|
-
displayName: this._displayName
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
static fromArray(compositions) {
|
|
49
|
-
return compositions.map(composition => {
|
|
50
|
-
return new Composition(composition.identifier, composition.filepath, composition.displayName);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.Composition = Composition;
|
|
55
19
|
|
|
56
20
|
//# sourceMappingURL=composition.js.map
|
package/dist/composition.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_compositionsModel","data","require"
|
|
1
|
+
{"version":3,"names":["_compositionsModel","data","require"],"sources":["composition.ts"],"sourcesContent":["export { Composition } from '@teambit/compositions.model.composition-type';\nexport type {\n CompositionProps,\n CompositionBrowserMetadata,\n CompositionBrowserMetadataObject,\n} from '@teambit/compositions.model.composition-type';\n"],"mappings":";;;;;;;;;;;AAAA,SAAAA,mBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,kBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.1213/dist/compositions.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.1213/dist/compositions.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compositions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1213",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/compositions/compositions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.compositions",
|
|
8
8
|
"name": "compositions",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1213"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
"classnames": "^2.5.1",
|
|
16
16
|
"query-string": "7.0.0",
|
|
17
17
|
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.502",
|
|
18
|
-
"@teambit/compositions.model.composition-id": "0.0.512",
|
|
19
18
|
"@teambit/harmony": "0.4.12",
|
|
20
19
|
"@teambit/graphql": "1.0.1205",
|
|
20
|
+
"@teambit/component.sources": "0.0.233",
|
|
21
21
|
"@teambit/harmony.modules.runtimes": "0.0.4",
|
|
22
|
+
"@teambit/legacy.consumer-component": "0.0.182",
|
|
22
23
|
"@teambit/toolbox.path.match-patterns": "0.0.37",
|
|
23
24
|
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.504",
|
|
24
25
|
"@teambit/component-id": "1.2.5",
|
|
@@ -56,16 +57,15 @@
|
|
|
56
57
|
"@teambit/design.inputs.toggle-switch": "0.0.9",
|
|
57
58
|
"@teambit/design.ui.input.color-picker": "0.0.56",
|
|
58
59
|
"@teambit/base-ui.loaders.skeleton": "1.0.2",
|
|
59
|
-
"@teambit/component": "1.0.
|
|
60
|
-
"@teambit/
|
|
61
|
-
"@teambit/dev-files": "1.0.
|
|
62
|
-
"@teambit/envs": "1.0.
|
|
63
|
-
"@teambit/
|
|
64
|
-
"@teambit/
|
|
65
|
-
"@teambit/
|
|
66
|
-
"@teambit/
|
|
67
|
-
"@teambit/
|
|
68
|
-
"@teambit/component-compare": "1.0.1212"
|
|
60
|
+
"@teambit/component": "1.0.1213",
|
|
61
|
+
"@teambit/compositions.model.composition-type": "0.0.538",
|
|
62
|
+
"@teambit/dev-files": "1.0.1213",
|
|
63
|
+
"@teambit/envs": "1.0.1213",
|
|
64
|
+
"@teambit/preview": "1.0.1213",
|
|
65
|
+
"@teambit/schema": "1.0.1213",
|
|
66
|
+
"@teambit/scope": "1.0.1213",
|
|
67
|
+
"@teambit/workspace": "1.0.1213",
|
|
68
|
+
"@teambit/component-compare": "1.0.1213"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@types/lodash": "4.14.165",
|