@teambit/scope 1.0.256 → 1.0.258
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/static/css/teambit.scope/{scope-preview.b6736c2c.css → scope-preview.b20fb44d.css} +2 -2
- package/artifacts/preview/teambit_scope_scope-preview.js +1 -1
- package/artifacts/schema.json +8093 -9261
- package/dist/preview-1714472366682.js +7 -0
- package/dist/scope.graphql.d.ts +4 -0
- package/dist/scope.graphql.js +21 -0
- package/dist/scope.graphql.js.map +1 -1
- package/dist/scope.main.runtime.d.ts +1 -0
- package/dist/scope.main.runtime.js +5 -0
- package/dist/scope.main.runtime.js.map +1 -1
- package/package.json +17 -17
- package/dist/preview-1714274461313.js +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.scope_scope@1.0.258/dist/scope.composition.js';
|
|
2
|
+
import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.scope_scope@1.0.258/dist/scope.docs.mdx';
|
|
3
|
+
|
|
4
|
+
export const compositions = [compositions_0];
|
|
5
|
+
export const overview = [overview_0];
|
|
6
|
+
|
|
7
|
+
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|
package/dist/scope.graphql.d.ts
CHANGED
|
@@ -29,6 +29,10 @@ export declare function scopeSchema(scopeMain: ScopeMain): {
|
|
|
29
29
|
getMany: (scope: ScopeMain, { ids }: {
|
|
30
30
|
ids: string[];
|
|
31
31
|
}) => Promise<import("@teambit/component").Component[]>;
|
|
32
|
+
hasObjects: (scope: ScopeMain, { hashes }: {
|
|
33
|
+
hashes: string[];
|
|
34
|
+
}) => Promise<string[]>;
|
|
35
|
+
getBitVersion: () => any;
|
|
32
36
|
};
|
|
33
37
|
Query: {
|
|
34
38
|
scope: () => ScopeMain;
|
package/dist/scope.graphql.js
CHANGED
|
@@ -25,6 +25,13 @@ function _scope() {
|
|
|
25
25
|
};
|
|
26
26
|
return data;
|
|
27
27
|
}
|
|
28
|
+
function _bootstrap() {
|
|
29
|
+
const data = require("@teambit/legacy/dist/bootstrap");
|
|
30
|
+
_bootstrap = function () {
|
|
31
|
+
return data;
|
|
32
|
+
};
|
|
33
|
+
return data;
|
|
34
|
+
}
|
|
28
35
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
36
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
37
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -64,6 +71,12 @@ function scopeSchema(scopeMain) {
|
|
|
64
71
|
# get many components by ID.
|
|
65
72
|
getMany(ids: [String]!): [Component]
|
|
66
73
|
|
|
74
|
+
# filter existing objects in the scope.
|
|
75
|
+
hasObjects(hashes: [String]!): [String]
|
|
76
|
+
|
|
77
|
+
# get bit version
|
|
78
|
+
getBitVersion: String
|
|
79
|
+
|
|
67
80
|
# get serialized legacy component ids with versions. deprecated. PLEASE DO NOT USE THIS API.
|
|
68
81
|
_legacyLatestVersions(ids: [String]!): [String]
|
|
69
82
|
}
|
|
@@ -131,6 +144,14 @@ function scopeSchema(scopeMain) {
|
|
|
131
144
|
ids
|
|
132
145
|
}) => {
|
|
133
146
|
return scope.getMany(ids.map(str => _component().ComponentID.fromString(str)));
|
|
147
|
+
},
|
|
148
|
+
hasObjects: async (scope, {
|
|
149
|
+
hashes
|
|
150
|
+
}) => {
|
|
151
|
+
return scope.hasObjects(hashes);
|
|
152
|
+
},
|
|
153
|
+
getBitVersion: () => {
|
|
154
|
+
return (0, _bootstrap().getHarmonyVersion)(true);
|
|
134
155
|
}
|
|
135
156
|
// delete: async (scope: ScopeMain, props: { }) => {
|
|
136
157
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_component","data","require","_graphqlTag","_scope","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","key","value","_toPropertyKey","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","scopeSchema","scopeMain","typeDefs","gql","resolvers","Scope","name","scope","description","icon","backgroundIconColor","components","props","list","includeCache","get","id","ComponentID","fromString","_getLegacy","resolvedId","resolveId","component","state","_consumer","toString","_legacyLatestVersions","ids","latestVersions","path","getLogs","getMany","map","str","Query"],"sources":["scope.graphql.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component';\nimport { gql } from 'graphql-tag';\nimport { latestVersions } from '@teambit/legacy/dist/api/scope';\nimport { LegacyComponentLog as ComponentLog } from '@teambit/legacy-component-log';\nimport { ScopeMain } from './scope.main.runtime';\n\nexport function scopeSchema(scopeMain: ScopeMain) {\n return {\n typeDefs: gql`\n type Scope {\n # name of the scope.\n name: String\n\n # description of the scope.\n description: String\n\n # icon of the scope.\n icon: String\n\n # background color of the icon.\n backgroundIconColor: String\n\n # path of the scope.\n path: String\n\n # list of components contained in the scope.\n components(offset: Int, limit: Int, includeCache: Boolean, namespaces: [String!]): [Component]\n\n # get a specific component.\n get(id: String!): Component\n\n # get serialized legacy component. deprecated. PLEASE DO NOT USE THIS API.\n _getLegacy(id: String!): String\n\n # get logs.\n getLogs(id: String!): [Log]\n\n # get many components by ID.\n getMany(ids: [String]!): [Component]\n\n # get serialized legacy component ids with versions. deprecated. PLEASE DO NOT USE THIS API.\n _legacyLatestVersions(ids: [String]!): [String]\n }\n\n type Log {\n message: String\n username: String\n email: String\n date: String\n hash: String!\n tag: String\n }\n\n type LegacyMeta {\n id: String\n deprecated: Boolean\n }\n\n type Query {\n scope: Scope\n }\n `,\n resolvers: {\n Scope: {\n name: (scope: ScopeMain) => {\n return scope.name;\n },\n description: (scope: ScopeMain) => {\n return scope.description;\n },\n icon: (scope: ScopeMain) => {\n return scope.icon;\n },\n backgroundIconColor: (scope: ScopeMain) => {\n return scope.backgroundIconColor;\n },\n components: (\n scope: ScopeMain,\n props?: { offset: number; limit: number; includeCache?: boolean; namespaces?: string[] }\n ) => {\n if (!props) return scope.list();\n return scope.list({ ...props }, props.includeCache);\n },\n\n get: async (scope: ScopeMain, { id }: { id: string }) => {\n return scope.get(ComponentID.fromString(id));\n },\n\n _getLegacy: async (scope: ScopeMain, { id }: { id: string }) => {\n const resolvedId = await scope.resolveId(id);\n const component = await scope.get(resolvedId);\n if (!component) return null;\n return component.state._consumer.toString();\n },\n\n _legacyLatestVersions: async (scope: ScopeMain, { ids }: { ids: string[] }) => {\n return latestVersions(scope.path, ids);\n },\n\n getLogs: async (scope: ScopeMain, { id }: { id: string }): Promise<ComponentLog[]> => {\n return scope.getLogs(ComponentID.fromString(id));\n },\n\n getMany: async (scope: ScopeMain, { ids }: { ids: string[] }) => {\n return scope.getMany(ids.map((str) => ComponentID.fromString(str)));\n },\n // delete: async (scope: ScopeMain, props: { }) => {\n\n // }\n },\n Query: {\n scope: () => scopeMain,\n },\n },\n };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;
|
|
1
|
+
{"version":3,"names":["_component","data","require","_graphqlTag","_scope","_bootstrap","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","key","value","_toPropertyKey","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","scopeSchema","scopeMain","typeDefs","gql","resolvers","Scope","name","scope","description","icon","backgroundIconColor","components","props","list","includeCache","get","id","ComponentID","fromString","_getLegacy","resolvedId","resolveId","component","state","_consumer","toString","_legacyLatestVersions","ids","latestVersions","path","getLogs","getMany","map","str","hasObjects","hashes","getBitVersion","getHarmonyVersion","Query"],"sources":["scope.graphql.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component';\nimport { gql } from 'graphql-tag';\nimport { latestVersions } from '@teambit/legacy/dist/api/scope';\nimport { LegacyComponentLog as ComponentLog } from '@teambit/legacy-component-log';\nimport { getHarmonyVersion } from '@teambit/legacy/dist/bootstrap';\nimport { ScopeMain } from './scope.main.runtime';\n\nexport function scopeSchema(scopeMain: ScopeMain) {\n return {\n typeDefs: gql`\n type Scope {\n # name of the scope.\n name: String\n\n # description of the scope.\n description: String\n\n # icon of the scope.\n icon: String\n\n # background color of the icon.\n backgroundIconColor: String\n\n # path of the scope.\n path: String\n\n # list of components contained in the scope.\n components(offset: Int, limit: Int, includeCache: Boolean, namespaces: [String!]): [Component]\n\n # get a specific component.\n get(id: String!): Component\n\n # get serialized legacy component. deprecated. PLEASE DO NOT USE THIS API.\n _getLegacy(id: String!): String\n\n # get logs.\n getLogs(id: String!): [Log]\n\n # get many components by ID.\n getMany(ids: [String]!): [Component]\n\n # filter existing objects in the scope.\n hasObjects(hashes: [String]!): [String]\n\n # get bit version\n getBitVersion: String\n\n # get serialized legacy component ids with versions. deprecated. PLEASE DO NOT USE THIS API.\n _legacyLatestVersions(ids: [String]!): [String]\n }\n\n type Log {\n message: String\n username: String\n email: String\n date: String\n hash: String!\n tag: String\n }\n\n type LegacyMeta {\n id: String\n deprecated: Boolean\n }\n\n type Query {\n scope: Scope\n }\n `,\n resolvers: {\n Scope: {\n name: (scope: ScopeMain) => {\n return scope.name;\n },\n description: (scope: ScopeMain) => {\n return scope.description;\n },\n icon: (scope: ScopeMain) => {\n return scope.icon;\n },\n backgroundIconColor: (scope: ScopeMain) => {\n return scope.backgroundIconColor;\n },\n components: (\n scope: ScopeMain,\n props?: { offset: number; limit: number; includeCache?: boolean; namespaces?: string[] }\n ) => {\n if (!props) return scope.list();\n return scope.list({ ...props }, props.includeCache);\n },\n\n get: async (scope: ScopeMain, { id }: { id: string }) => {\n return scope.get(ComponentID.fromString(id));\n },\n\n _getLegacy: async (scope: ScopeMain, { id }: { id: string }) => {\n const resolvedId = await scope.resolveId(id);\n const component = await scope.get(resolvedId);\n if (!component) return null;\n return component.state._consumer.toString();\n },\n\n _legacyLatestVersions: async (scope: ScopeMain, { ids }: { ids: string[] }) => {\n return latestVersions(scope.path, ids);\n },\n\n getLogs: async (scope: ScopeMain, { id }: { id: string }): Promise<ComponentLog[]> => {\n return scope.getLogs(ComponentID.fromString(id));\n },\n\n getMany: async (scope: ScopeMain, { ids }: { ids: string[] }) => {\n return scope.getMany(ids.map((str) => ComponentID.fromString(str)));\n },\n\n hasObjects: async (scope: ScopeMain, { hashes }: { hashes: string[] }) => {\n return scope.hasObjects(hashes);\n },\n\n getBitVersion: () => {\n return getHarmonyVersion(true);\n },\n // delete: async (scope: ScopeMain, props: { }) => {\n\n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,OAAOA,SAAS,CAACC,KAAK,CAACC,SAAS,CAACC,QAAQ,CAAC,CAAC;QAC7C,CAAC;QAEDC,qBAAqB,EAAE,MAAAA,CAAOnB,KAAgB,EAAE;UAAEoB;QAAuB,CAAC,KAAK;UAC7E,OAAO,IAAAC,uBAAc,EAACrB,KAAK,CAACsB,IAAI,EAAEF,GAAG,CAAC;QACxC,CAAC;QAEDG,OAAO,EAAE,MAAAA,CAAOvB,KAAgB,EAAE;UAAES;QAAmB,CAAC,KAA8B;UACpF,OAAOT,KAAK,CAACuB,OAAO,CAACb,wBAAW,CAACC,UAAU,CAACF,EAAE,CAAC,CAAC;QAClD,CAAC;QAEDe,OAAO,EAAE,MAAAA,CAAOxB,KAAgB,EAAE;UAAEoB;QAAuB,CAAC,KAAK;UAC/D,OAAOpB,KAAK,CAACwB,OAAO,CAACJ,GAAG,CAACK,GAAG,CAAEC,GAAG,IAAKhB,wBAAW,CAACC,UAAU,CAACe,GAAG,CAAC,CAAC,CAAC;QACrE,CAAC;QAEDC,UAAU,EAAE,MAAAA,CAAO3B,KAAgB,EAAE;UAAE4B;QAA6B,CAAC,KAAK;UACxE,OAAO5B,KAAK,CAAC2B,UAAU,CAACC,MAAM,CAAC;QACjC,CAAC;QAEDC,aAAa,EAAEA,CAAA,KAAM;UACnB,OAAO,IAAAC,8BAAiB,EAAC,IAAI,CAAC;QAChC;QACA;;QAEA;MACF,CAAC;MACDC,KAAK,EAAE;QACL/B,KAAK,EAAEA,CAAA,KAAMN;MACf;IACF;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -379,6 +379,7 @@ export declare class ScopeMain implements ComponentFactory {
|
|
|
379
379
|
getLastMergedPath(): string;
|
|
380
380
|
isModified(): Promise<boolean>;
|
|
381
381
|
write(): Promise<void>;
|
|
382
|
+
hasObjects(hashes: string[]): Promise<string[]>;
|
|
382
383
|
/**
|
|
383
384
|
* declare the slots of scope extension.
|
|
384
385
|
*/
|
|
@@ -1221,6 +1221,11 @@ class ScopeMain {
|
|
|
1221
1221
|
async write() {
|
|
1222
1222
|
// no-op (it's relevant for the workspace only)
|
|
1223
1223
|
}
|
|
1224
|
+
async hasObjects(hashes) {
|
|
1225
|
+
const refs = hashes.map(h => _objects().Ref.from(h));
|
|
1226
|
+
const results = await this.legacyScope.objects.hasMultiple(refs);
|
|
1227
|
+
return results.map(r => r.hash);
|
|
1228
|
+
}
|
|
1224
1229
|
|
|
1225
1230
|
/**
|
|
1226
1231
|
* declare the slots of scope extension.
|