@teambit/deprecation 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.
@@ -1,36 +1,26 @@
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.DeprecateCmd = 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 _chalk() {
25
18
  const data = _interopRequireDefault(require("chalk"));
26
-
27
19
  _chalk = function () {
28
20
  return data;
29
21
  };
30
-
31
22
  return data;
32
23
  }
33
-
34
24
  class DeprecateCmd {
35
25
  constructor(deprecation, workspace) {
36
26
  this.deprecation = deprecation;
@@ -49,27 +39,21 @@ class DeprecateCmd {
49
39
  (0, _defineProperty2().default)(this, "migration", true);
50
40
  (0, _defineProperty2().default)(this, "remoteOp", true);
51
41
  }
52
-
53
42
  async report([id], {
54
43
  newId
55
44
  }) {
56
45
  const result = await this.deprecate(id, newId);
57
-
58
46
  if (result) {
59
47
  return _chalk().default.green(`the component "${id}" has been deprecated successfully`);
60
48
  }
61
-
62
49
  return _chalk().default.bold(`the component "${id}" is already deprecated. no changes have been made`);
63
50
  }
64
-
65
51
  async deprecate(id, newId) {
66
52
  const componentId = await this.workspace.resolveComponentId(id);
67
53
  const newComponentId = newId ? await this.workspace.resolveComponentId(newId) : undefined;
68
54
  return this.deprecation.deprecate(componentId, newComponentId);
69
55
  }
70
-
71
56
  }
72
-
73
57
  exports.DeprecateCmd = DeprecateCmd;
74
58
 
75
59
  //# sourceMappingURL=deprecate-cmd.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DeprecateCmd","constructor","deprecation","workspace","name","description","report","id","newId","result","deprecate","chalk","green","bold","componentId","resolveComponentId","newComponentId","undefined"],"sources":["deprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class DeprecateCmd implements Command {\n name = 'deprecate <component-name>';\n arguments = [{ name: 'component-name', description: 'component name or component id' }];\n description = 'deprecate a component';\n group = 'collaborate';\n skipWorkspace = true;\n alias = 'd';\n options = [['', 'new-id <string>', 'if replaced by another component, enter the new component id']] as CommandOptions;\n loader = true;\n migration = true;\n remoteOp = true;\n\n constructor(private deprecation: DeprecationMain, private workspace: Workspace) {}\n\n async report([id]: [string], { newId }: { newId?: string }): Promise<string> {\n const result = await this.deprecate(id, newId);\n if (result) {\n return chalk.green(`the component \"${id}\" has been deprecated successfully`);\n }\n return chalk.bold(`the component \"${id}\" is already deprecated. no changes have been made`);\n }\n\n private async deprecate(id: string, newId?: string): Promise<boolean> {\n const componentId = await this.workspace.resolveComponentId(id);\n const newComponentId = newId ? await this.workspace.resolveComponentId(newId) : undefined;\n return this.deprecation.deprecate(componentId, newComponentId);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAKO,MAAMA,YAAN,CAAsC;EAY3CC,WAAW,CAASC,WAAT,EAA+CC,SAA/C,EAAqE;IAAA,KAA5DD,WAA4D,GAA5DA,WAA4D;IAAA,KAAtBC,SAAsB,GAAtBA,SAAsB;IAAA,8CAXzE,4BAWyE;IAAA,mDAVpE,CAAC;MAAEC,IAAI,EAAE,gBAAR;MAA0BC,WAAW,EAAE;IAAvC,CAAD,CAUoE;IAAA,qDATlE,uBASkE;IAAA,+CARxE,aAQwE;IAAA,uDAPhE,IAOgE;IAAA,+CANxE,GAMwE;IAAA,iDALtE,CAAC,CAAC,EAAD,EAAK,iBAAL,EAAwB,8DAAxB,CAAD,CAKsE;IAAA,gDAJvE,IAIuE;IAAA,mDAHpE,IAGoE;IAAA,kDAFrE,IAEqE;EAAE;;EAEtE,MAANC,MAAM,CAAC,CAACC,EAAD,CAAD,EAAiB;IAAEC;EAAF,CAAjB,EAAiE;IAC3E,MAAMC,MAAM,GAAG,MAAM,KAAKC,SAAL,CAAeH,EAAf,EAAmBC,KAAnB,CAArB;;IACA,IAAIC,MAAJ,EAAY;MACV,OAAOE,gBAAA,CAAMC,KAAN,CAAa,kBAAiBL,EAAG,oCAAjC,CAAP;IACD;;IACD,OAAOI,gBAAA,CAAME,IAAN,CAAY,kBAAiBN,EAAG,oDAAhC,CAAP;EACD;;EAEsB,MAATG,SAAS,CAACH,EAAD,EAAaC,KAAb,EAA+C;IACpE,MAAMM,WAAW,GAAG,MAAM,KAAKX,SAAL,CAAeY,kBAAf,CAAkCR,EAAlC,CAA1B;IACA,MAAMS,cAAc,GAAGR,KAAK,GAAG,MAAM,KAAKL,SAAL,CAAeY,kBAAf,CAAkCP,KAAlC,CAAT,GAAoDS,SAAhF;IACA,OAAO,KAAKf,WAAL,CAAiBQ,SAAjB,CAA2BI,WAA3B,EAAwCE,cAAxC,CAAP;EACD;;AA1B0C"}
1
+ {"version":3,"names":["DeprecateCmd","constructor","deprecation","workspace","name","description","report","id","newId","result","deprecate","chalk","green","bold","componentId","resolveComponentId","newComponentId","undefined"],"sources":["deprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class DeprecateCmd implements Command {\n name = 'deprecate <component-name>';\n arguments = [{ name: 'component-name', description: 'component name or component id' }];\n description = 'deprecate a component';\n group = 'collaborate';\n skipWorkspace = true;\n alias = 'd';\n options = [['', 'new-id <string>', 'if replaced by another component, enter the new component id']] as CommandOptions;\n loader = true;\n migration = true;\n remoteOp = true;\n\n constructor(private deprecation: DeprecationMain, private workspace: Workspace) {}\n\n async report([id]: [string], { newId }: { newId?: string }): Promise<string> {\n const result = await this.deprecate(id, newId);\n if (result) {\n return chalk.green(`the component \"${id}\" has been deprecated successfully`);\n }\n return chalk.bold(`the component \"${id}\" is already deprecated. no changes have been made`);\n }\n\n private async deprecate(id: string, newId?: string): Promise<boolean> {\n const componentId = await this.workspace.resolveComponentId(id);\n const newComponentId = newId ? await this.workspace.resolveComponentId(newId) : undefined;\n return this.deprecation.deprecate(componentId, newComponentId);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAKO,MAAMA,YAAY,CAAoB;EAY3CC,WAAW,CAASC,WAA4B,EAAUC,SAAoB,EAAE;IAAA,KAA5DD,WAA4B,GAA5BA,WAA4B;IAAA,KAAUC,SAAoB,GAApBA,SAAoB;IAAA,8CAXvE,4BAA4B;IAAA,mDACvB,CAAC;MAAEC,IAAI,EAAE,gBAAgB;MAAEC,WAAW,EAAE;IAAiC,CAAC,CAAC;IAAA,qDACzE,uBAAuB;IAAA,+CAC7B,aAAa;IAAA,uDACL,IAAI;IAAA,+CACZ,GAAG;IAAA,iDACD,CAAC,CAAC,EAAE,EAAE,iBAAiB,EAAE,8DAA8D,CAAC,CAAC;IAAA,gDAC1F,IAAI;IAAA,mDACD,IAAI;IAAA,kDACL,IAAI;EAEkE;EAEjF,MAAMC,MAAM,CAAC,CAACC,EAAE,CAAW,EAAE;IAAEC;EAA0B,CAAC,EAAmB;IAC3E,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACC,SAAS,CAACH,EAAE,EAAEC,KAAK,CAAC;IAC9C,IAAIC,MAAM,EAAE;MACV,OAAOE,gBAAK,CAACC,KAAK,CAAE,kBAAiBL,EAAG,oCAAmC,CAAC;IAC9E;IACA,OAAOI,gBAAK,CAACE,IAAI,CAAE,kBAAiBN,EAAG,oDAAmD,CAAC;EAC7F;EAEA,MAAcG,SAAS,CAACH,EAAU,EAAEC,KAAc,EAAoB;IACpE,MAAMM,WAAW,GAAG,MAAM,IAAI,CAACX,SAAS,CAACY,kBAAkB,CAACR,EAAE,CAAC;IAC/D,MAAMS,cAAc,GAAGR,KAAK,GAAG,MAAM,IAAI,CAACL,SAAS,CAACY,kBAAkB,CAACP,KAAK,CAAC,GAAGS,SAAS;IACzF,OAAO,IAAI,CAACf,WAAW,CAACQ,SAAS,CAACI,WAAW,EAAEE,cAAc,CAAC;EAChE;AACF;AAAC"}
@@ -4,23 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DeprecationAspect = void 0;
7
-
8
7
  function _harmony() {
9
8
  const data = require("@teambit/harmony");
10
-
11
9
  _harmony = function () {
12
10
  return data;
13
11
  };
14
-
15
12
  return data;
16
13
  }
17
-
18
14
  const DeprecationAspect = _harmony().Aspect.create({
19
15
  id: 'teambit.component/deprecation',
20
16
  dependencies: [],
21
17
  defaultConfig: {}
22
18
  });
23
-
24
19
  exports.DeprecationAspect = DeprecationAspect;
25
20
 
26
21
  //# sourceMappingURL=deprecation.aspect.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DeprecationAspect","Aspect","create","id","dependencies","defaultConfig"],"sources":["deprecation.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const DeprecationAspect = Aspect.create({\n id: 'teambit.component/deprecation',\n dependencies: [],\n defaultConfig: {},\n});\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,iBAAiB,GAAGC,iBAAA,CAAOC,MAAP,CAAc;EAC7CC,EAAE,EAAE,+BADyC;EAE7CC,YAAY,EAAE,EAF+B;EAG7CC,aAAa,EAAE;AAH8B,CAAd,CAA1B"}
1
+ {"version":3,"names":["DeprecationAspect","Aspect","create","id","dependencies","defaultConfig"],"sources":["deprecation.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const DeprecationAspect = Aspect.create({\n id: 'teambit.component/deprecation',\n dependencies: [],\n defaultConfig: {},\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,iBAAiB,GAAGC,iBAAM,CAACC,MAAM,CAAC;EAC7CC,EAAE,EAAE,+BAA+B;EACnCC,YAAY,EAAE,EAAE;EAChBC,aAAa,EAAE,CAAC;AAClB,CAAC,CAAC;AAAC"}
@@ -1,22 +1,17 @@
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.Logo = void 0;
9
-
10
8
  function _react() {
11
9
  const data = _interopRequireDefault(require("react"));
12
-
13
10
  _react = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
21
16
  style: {
22
17
  height: '100%',
@@ -29,7 +24,6 @@ const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
29
24
  },
30
25
  src: "https://static.bit.dev/extensions-icons/deprecation.svg"
31
26
  }));
32
-
33
27
  exports.Logo = Logo;
34
28
 
35
29
  //# sourceMappingURL=deprecation.composition.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["deprecation.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/deprecation.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAV;IAAkBC,OAAO,EAAE,MAA3B;IAAmCC,cAAc,EAAE;EAAnD;AAAZ,gBACE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAT,CAAZ;EAA2B,GAAG,EAAC;AAA/B,EADF,CADK"}
1
+ {"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["deprecation.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/deprecation.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAG,CAAE;EAAC,GAAG,EAAC;AAAyD,EAAG,CAE9F;AAAC"}
@@ -1,31 +1,24 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.promise.js");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports.DeprecationFragment = void 0;
11
-
12
9
  function _defineProperty2() {
13
10
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
11
  _defineProperty2 = function () {
16
12
  return data;
17
13
  };
18
-
19
14
  return data;
20
15
  }
21
-
22
16
  class DeprecationFragment {
23
17
  constructor(deprecation) {
24
18
  this.deprecation = deprecation;
25
19
  (0, _defineProperty2().default)(this, "title", 'deprecated');
26
20
  (0, _defineProperty2().default)(this, "weight", 3);
27
21
  }
28
-
29
22
  async renderRow(component) {
30
23
  const deprecationInfo = await this.deprecation.getDeprecationInfo(component);
31
24
  const isDeprecate = deprecationInfo.isDeprecate.toString();
@@ -35,16 +28,13 @@ class DeprecationFragment {
35
28
  content: isDeprecate + newId
36
29
  };
37
30
  }
38
-
39
31
  async json(component) {
40
32
  return {
41
33
  title: this.title,
42
34
  json: await this.deprecation.getDeprecationInfo(component)
43
35
  };
44
36
  }
45
-
46
37
  }
47
-
48
38
  exports.DeprecationFragment = DeprecationFragment;
49
39
 
50
40
  //# sourceMappingURL=deprecation.fragment.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DeprecationFragment","constructor","deprecation","renderRow","component","deprecationInfo","getDeprecationInfo","isDeprecate","toString","newId","title","content","json"],"sources":["deprecation.fragment.ts"],"sourcesContent":["import { Component, ShowFragment } from '@teambit/component';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class DeprecationFragment implements ShowFragment {\n constructor(private deprecation: DeprecationMain) {}\n\n title = 'deprecated';\n\n async renderRow(component: Component) {\n const deprecationInfo = await this.deprecation.getDeprecationInfo(component);\n const isDeprecate = deprecationInfo.isDeprecate.toString();\n const newId = deprecationInfo.newId ? ` (new-id: ${deprecationInfo.newId})` : '';\n return {\n title: this.title,\n content: isDeprecate + newId,\n };\n }\n\n async json(component: Component) {\n return {\n title: this.title,\n json: await this.deprecation.getDeprecationInfo(component),\n };\n }\n\n weight = 3;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGO,MAAMA,mBAAN,CAAkD;EACvDC,WAAW,CAASC,WAAT,EAAuC;IAAA,KAA9BA,WAA8B,GAA9BA,WAA8B;IAAA,+CAE1C,YAF0C;IAAA,gDAqBzC,CArByC;EAAE;;EAIrC,MAATC,SAAS,CAACC,SAAD,EAAuB;IACpC,MAAMC,eAAe,GAAG,MAAM,KAAKH,WAAL,CAAiBI,kBAAjB,CAAoCF,SAApC,CAA9B;IACA,MAAMG,WAAW,GAAGF,eAAe,CAACE,WAAhB,CAA4BC,QAA5B,EAApB;IACA,MAAMC,KAAK,GAAGJ,eAAe,CAACI,KAAhB,GAAyB,aAAYJ,eAAe,CAACI,KAAM,GAA3D,GAAgE,EAA9E;IACA,OAAO;MACLC,KAAK,EAAE,KAAKA,KADP;MAELC,OAAO,EAAEJ,WAAW,GAAGE;IAFlB,CAAP;EAID;;EAES,MAAJG,IAAI,CAACR,SAAD,EAAuB;IAC/B,OAAO;MACLM,KAAK,EAAE,KAAKA,KADP;MAELE,IAAI,EAAE,MAAM,KAAKV,WAAL,CAAiBI,kBAAjB,CAAoCF,SAApC;IAFP,CAAP;EAID;;AApBsD"}
1
+ {"version":3,"names":["DeprecationFragment","constructor","deprecation","renderRow","component","deprecationInfo","getDeprecationInfo","isDeprecate","toString","newId","title","content","json"],"sources":["deprecation.fragment.ts"],"sourcesContent":["import { Component, ShowFragment } from '@teambit/component';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class DeprecationFragment implements ShowFragment {\n constructor(private deprecation: DeprecationMain) {}\n\n title = 'deprecated';\n\n async renderRow(component: Component) {\n const deprecationInfo = await this.deprecation.getDeprecationInfo(component);\n const isDeprecate = deprecationInfo.isDeprecate.toString();\n const newId = deprecationInfo.newId ? ` (new-id: ${deprecationInfo.newId})` : '';\n return {\n title: this.title,\n content: isDeprecate + newId,\n };\n }\n\n async json(component: Component) {\n return {\n title: this.title,\n json: await this.deprecation.getDeprecationInfo(component),\n };\n }\n\n weight = 3;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAGO,MAAMA,mBAAmB,CAAyB;EACvDC,WAAW,CAASC,WAA4B,EAAE;IAAA,KAA9BA,WAA4B,GAA5BA,WAA4B;IAAA,+CAExC,YAAY;IAAA,gDAmBX,CAAC;EArByC;EAInD,MAAMC,SAAS,CAACC,SAAoB,EAAE;IACpC,MAAMC,eAAe,GAAG,MAAM,IAAI,CAACH,WAAW,CAACI,kBAAkB,CAACF,SAAS,CAAC;IAC5E,MAAMG,WAAW,GAAGF,eAAe,CAACE,WAAW,CAACC,QAAQ,EAAE;IAC1D,MAAMC,KAAK,GAAGJ,eAAe,CAACI,KAAK,GAAI,aAAYJ,eAAe,CAACI,KAAM,GAAE,GAAG,EAAE;IAChF,OAAO;MACLC,KAAK,EAAE,IAAI,CAACA,KAAK;MACjBC,OAAO,EAAEJ,WAAW,GAAGE;IACzB,CAAC;EACH;EAEA,MAAMG,IAAI,CAACR,SAAoB,EAAE;IAC/B,OAAO;MACLM,KAAK,EAAE,IAAI,CAACA,KAAK;MACjBE,IAAI,EAAE,MAAM,IAAI,CAACV,WAAW,CAACI,kBAAkB,CAACF,SAAS;IAC3D,CAAC;EACH;AAGF;AAAC"}
@@ -1,22 +1,17 @@
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.deprecationSchema = deprecationSchema;
9
-
10
8
  function _graphqlTag() {
11
9
  const data = _interopRequireDefault(require("graphql-tag"));
12
-
13
10
  _graphqlTag = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  function deprecationSchema(deprecation) {
21
16
  return {
22
17
  typeDefs: (0, _graphqlTag().default)`
@@ -48,6 +43,7 @@ function deprecationSchema(deprecation) {
48
43
  // if (context.verb !== 'write') throw new Error('You are not authorized');
49
44
  // return deprecation.deprecate(bitIds);
50
45
  // },
46
+
51
47
  // undeprecate: (req: any, { bitIds }: { bitIds: string[] }, context: { verb: string }) => {
52
48
  // if (context.verb !== 'write') throw new Error('You are not authorized');
53
49
  // return deprecation.unDeprecate(bitIds);
@@ -1 +1 @@
1
- {"version":3,"names":["deprecationSchema","deprecation","typeDefs","gql","resolvers","Component","component","getDeprecationInfo"],"sources":["deprecation.graphql.ts"],"sourcesContent":["import { Component } from '@teambit/component';\nimport { Schema } from '@teambit/graphql';\nimport gql from 'graphql-tag';\n\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport function deprecationSchema(deprecation: DeprecationMain): Schema {\n return {\n typeDefs: gql`\n extend type Component {\n deprecation: DeprecationInfo\n }\n\n type DeprecationInfo {\n isDeprecate: Boolean\n newId: String\n }\n\n type DeprecationResult {\n bitIds: [String]\n missingComponents: [String]\n }\n\n type Mutation {\n # deprecate components\n deprecate(bitIds: [String!]!): DeprecationResult\n\n # undo deprecate to components\n undeprecate(bitIds: [String!]!): DeprecationResult\n }\n `,\n resolvers: {\n // Mutation: {\n // deprecate: (req: any, { bitIds }: { bitIds: string[] }, context: { verb: string }) => {\n // if (context.verb !== 'write') throw new Error('You are not authorized');\n // return deprecation.deprecate(bitIds);\n // },\n\n // undeprecate: (req: any, { bitIds }: { bitIds: string[] }, context: { verb: string }) => {\n // if (context.verb !== 'write') throw new Error('You are not authorized');\n // return deprecation.unDeprecate(bitIds);\n // },\n // },\n Component: {\n deprecation: (component: Component) => {\n return deprecation.getDeprecationInfo(component);\n },\n },\n },\n };\n}\n"],"mappings":";;;;;;;;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAIO,SAASA,iBAAT,CAA2BC,WAA3B,EAAiE;EACtE,OAAO;IACLC,QAAQ,EAAE,IAAAC,qBAAA,CAAI;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAvBS;IAwBLC,SAAS,EAAE;MACT;MACA;MACA;MACA;MACA;MAEA;MACA;MACA;MACA;MACA;MACAC,SAAS,EAAE;QACTJ,WAAW,EAAGK,SAAD,IAA0B;UACrC,OAAOL,WAAW,CAACM,kBAAZ,CAA+BD,SAA/B,CAAP;QACD;MAHQ;IAZF;EAxBN,CAAP;AA2CD"}
1
+ {"version":3,"names":["deprecationSchema","deprecation","typeDefs","gql","resolvers","Component","component","getDeprecationInfo"],"sources":["deprecation.graphql.ts"],"sourcesContent":["import { Component } from '@teambit/component';\nimport { Schema } from '@teambit/graphql';\nimport gql from 'graphql-tag';\n\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport function deprecationSchema(deprecation: DeprecationMain): Schema {\n return {\n typeDefs: gql`\n extend type Component {\n deprecation: DeprecationInfo\n }\n\n type DeprecationInfo {\n isDeprecate: Boolean\n newId: String\n }\n\n type DeprecationResult {\n bitIds: [String]\n missingComponents: [String]\n }\n\n type Mutation {\n # deprecate components\n deprecate(bitIds: [String!]!): DeprecationResult\n\n # undo deprecate to components\n undeprecate(bitIds: [String!]!): DeprecationResult\n }\n `,\n resolvers: {\n // Mutation: {\n // deprecate: (req: any, { bitIds }: { bitIds: string[] }, context: { verb: string }) => {\n // if (context.verb !== 'write') throw new Error('You are not authorized');\n // return deprecation.deprecate(bitIds);\n // },\n\n // undeprecate: (req: any, { bitIds }: { bitIds: string[] }, context: { verb: string }) => {\n // if (context.verb !== 'write') throw new Error('You are not authorized');\n // return deprecation.unDeprecate(bitIds);\n // },\n // },\n Component: {\n deprecation: (component: Component) => {\n return deprecation.getDeprecationInfo(component);\n },\n },\n },\n };\n}\n"],"mappings":";;;;;;;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIO,SAASA,iBAAiB,CAACC,WAA4B,EAAU;EACtE,OAAO;IACLC,QAAQ,EAAE,IAAAC,qBAAG,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;IACDC,SAAS,EAAE;MACT;MACA;MACA;MACA;MACA;;MAEA;MACA;MACA;MACA;MACA;MACAC,SAAS,EAAE;QACTJ,WAAW,EAAGK,SAAoB,IAAK;UACrC,OAAOL,WAAW,CAACM,kBAAkB,CAACD,SAAS,CAAC;QAClD;MACF;IACF;EACF,CAAC;AACH"}
@@ -1,135 +1,96 @@
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.DeprecationMain = 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 _cli() {
25
18
  const data = require("@teambit/cli");
26
-
27
19
  _cli = 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 _scope() {
45
32
  const data = require("@teambit/scope");
46
-
47
33
  _scope = function () {
48
34
  return data;
49
35
  };
50
-
51
36
  return data;
52
37
  }
53
-
54
38
  function _workspace() {
55
39
  const data = _interopRequireDefault(require("@teambit/workspace"));
56
-
57
40
  _workspace = function () {
58
41
  return data;
59
42
  };
60
-
61
43
  return data;
62
44
  }
63
-
64
45
  function _graphql() {
65
46
  const data = require("@teambit/graphql");
66
-
67
47
  _graphql = function () {
68
48
  return data;
69
49
  };
70
-
71
50
  return data;
72
51
  }
73
-
74
52
  function _deprecation() {
75
53
  const data = require("./deprecation.aspect");
76
-
77
54
  _deprecation = function () {
78
55
  return data;
79
56
  };
80
-
81
57
  return data;
82
58
  }
83
-
84
59
  function _deprecation2() {
85
60
  const data = require("./deprecation.graphql");
86
-
87
61
  _deprecation2 = function () {
88
62
  return data;
89
63
  };
90
-
91
64
  return data;
92
65
  }
93
-
94
66
  function _deprecation3() {
95
67
  const data = require("./deprecation.fragment");
96
-
97
68
  _deprecation3 = function () {
98
69
  return data;
99
70
  };
100
-
101
71
  return data;
102
72
  }
103
-
104
73
  function _deprecateCmd() {
105
74
  const data = require("./deprecate-cmd");
106
-
107
75
  _deprecateCmd = function () {
108
76
  return data;
109
77
  };
110
-
111
78
  return data;
112
79
  }
113
-
114
80
  function _undeprecateCmd() {
115
81
  const data = require("./undeprecate-cmd");
116
-
117
82
  _undeprecateCmd = function () {
118
83
  return data;
119
84
  };
120
-
121
85
  return data;
122
86
  }
123
-
124
87
  class DeprecationMain {
125
88
  constructor(scope, workspace) {
126
89
  this.scope = scope;
127
90
  this.workspace = workspace;
128
91
  }
129
-
130
92
  async getDeprecationInfo(component) {
131
93
  var _component$config$ext;
132
-
133
94
  const data = (_component$config$ext = component.config.extensions.findExtension(_deprecation().DeprecationAspect.id)) === null || _component$config$ext === void 0 ? void 0 : _component$config$ext.config;
134
95
  const deprecatedBackwardCompatibility = component.state._consumer.deprecated;
135
96
  const isDeprecate = Boolean((data === null || data === void 0 ? void 0 : data.deprecate) || deprecatedBackwardCompatibility);
@@ -139,6 +100,7 @@ class DeprecationMain {
139
100
  newId
140
101
  };
141
102
  }
103
+
142
104
  /**
143
105
  * mark a component as deprecated. after this change, the component will be modified.
144
106
  * tag and export the component to have it deprecated on the remote.
@@ -147,8 +109,6 @@ class DeprecationMain {
147
109
  * @param newId
148
110
  * @returns boolean whether or not the component has been deprecated
149
111
  */
150
-
151
-
152
112
  async deprecate(componentId, newId) {
153
113
  const results = this.workspace.bitMap.addComponentConfig(componentId, _deprecation().DeprecationAspect.id, {
154
114
  deprecate: true,
@@ -157,7 +117,6 @@ class DeprecationMain {
157
117
  await this.workspace.bitMap.write();
158
118
  return results;
159
119
  }
160
-
161
120
  async unDeprecate(componentId) {
162
121
  const results = this.workspace.bitMap.addComponentConfig(componentId, _deprecation().DeprecationAspect.id, {
163
122
  deprecate: false,
@@ -166,7 +125,6 @@ class DeprecationMain {
166
125
  await this.workspace.bitMap.write();
167
126
  return results;
168
127
  }
169
-
170
128
  static async provider([graphql, scope, componentAspect, workspace, cli]) {
171
129
  const deprecation = new DeprecationMain(scope, workspace);
172
130
  cli.register(new (_deprecateCmd().DeprecateCmd)(deprecation, workspace), new (_undeprecateCmd().UndeprecateCmd)(deprecation, workspace));
@@ -174,13 +132,10 @@ class DeprecationMain {
174
132
  graphql.register((0, _deprecation2().deprecationSchema)(deprecation));
175
133
  return deprecation;
176
134
  }
177
-
178
135
  }
179
-
180
136
  exports.DeprecationMain = DeprecationMain;
181
137
  (0, _defineProperty2().default)(DeprecationMain, "runtime", _cli().MainRuntime);
182
138
  (0, _defineProperty2().default)(DeprecationMain, "dependencies", [_graphql().GraphqlAspect, _scope().ScopeAspect, _component().ComponentAspect, _workspace().default, _cli().CLIAspect]);
183
-
184
139
  _deprecation().DeprecationAspect.addRuntime(DeprecationMain);
185
140
 
186
141
  //# sourceMappingURL=deprecation.main.runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DeprecationMain","constructor","scope","workspace","getDeprecationInfo","component","data","config","extensions","findExtension","DeprecationAspect","id","deprecatedBackwardCompatibility","state","_consumer","deprecated","isDeprecate","Boolean","deprecate","newId","ComponentID","fromObject","toString","undefined","componentId","results","bitMap","addComponentConfig","toObject","write","unDeprecate","provider","graphql","componentAspect","cli","deprecation","register","DeprecateCmd","UndeprecateCmd","registerShowFragments","DeprecationFragment","deprecationSchema","MainRuntime","GraphqlAspect","ScopeAspect","ComponentAspect","WorkspaceAspect","CLIAspect","addRuntime"],"sources":["deprecation.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentMain, ComponentAspect, Component, ComponentID } from '@teambit/component';\nimport { ScopeMain, ScopeAspect } from '@teambit/scope';\nimport WorkspaceAspect, { Workspace } from '@teambit/workspace';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { ComponentIdObj } from '@teambit/component-id';\nimport { DeprecationAspect } from './deprecation.aspect';\nimport { deprecationSchema } from './deprecation.graphql';\nimport { DeprecationFragment } from './deprecation.fragment';\nimport { DeprecateCmd } from './deprecate-cmd';\nimport { UndeprecateCmd } from './undeprecate-cmd';\n\nexport type DeprecationInfo = {\n isDeprecate: boolean;\n newId?: string;\n};\n\nexport type DeprecationMetadata = {\n deprecate?: boolean;\n newId?: ComponentIdObj;\n};\n\nexport class DeprecationMain {\n constructor(private scope: ScopeMain, private workspace: Workspace) {}\n static runtime = MainRuntime;\n static dependencies = [GraphqlAspect, ScopeAspect, ComponentAspect, WorkspaceAspect, CLIAspect];\n\n async getDeprecationInfo(component: Component): Promise<DeprecationInfo> {\n const data = component.config.extensions.findExtension(DeprecationAspect.id)?.config as\n | DeprecationMetadata\n | undefined;\n const deprecatedBackwardCompatibility = component.state._consumer.deprecated;\n const isDeprecate = Boolean(data?.deprecate || deprecatedBackwardCompatibility);\n const newId = data?.newId ? ComponentID.fromObject(data?.newId).toString() : undefined;\n return {\n isDeprecate,\n newId,\n };\n }\n\n /**\n * mark a component as deprecated. after this change, the component will be modified.\n * tag and export the component to have it deprecated on the remote.\n *\n * @param componentId\n * @param newId\n * @returns boolean whether or not the component has been deprecated\n */\n async deprecate(componentId: ComponentID, newId?: ComponentID): Promise<boolean> {\n const results = this.workspace.bitMap.addComponentConfig(componentId, DeprecationAspect.id, {\n deprecate: true,\n newId: newId?.toObject(),\n });\n await this.workspace.bitMap.write();\n\n return results;\n }\n\n async unDeprecate(componentId: ComponentID) {\n const results = this.workspace.bitMap.addComponentConfig(componentId, DeprecationAspect.id, {\n deprecate: false,\n newId: '',\n });\n await this.workspace.bitMap.write();\n\n return results;\n }\n\n static async provider([graphql, scope, componentAspect, workspace, cli]: [\n GraphqlMain,\n ScopeMain,\n ComponentMain,\n Workspace,\n CLIMain\n ]) {\n const deprecation = new DeprecationMain(scope, workspace);\n cli.register(new DeprecateCmd(deprecation, workspace), new UndeprecateCmd(deprecation, workspace));\n componentAspect.registerShowFragments([new DeprecationFragment(deprecation)]);\n graphql.register(deprecationSchema(deprecation));\n\n return deprecation;\n }\n}\n\nDeprecationAspect.addRuntime(DeprecationMain);\n"],"mappings":"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"}
1
+ {"version":3,"names":["DeprecationMain","constructor","scope","workspace","getDeprecationInfo","component","data","config","extensions","findExtension","DeprecationAspect","id","deprecatedBackwardCompatibility","state","_consumer","deprecated","isDeprecate","Boolean","deprecate","newId","ComponentID","fromObject","toString","undefined","componentId","results","bitMap","addComponentConfig","toObject","write","unDeprecate","provider","graphql","componentAspect","cli","deprecation","register","DeprecateCmd","UndeprecateCmd","registerShowFragments","DeprecationFragment","deprecationSchema","MainRuntime","GraphqlAspect","ScopeAspect","ComponentAspect","WorkspaceAspect","CLIAspect","addRuntime"],"sources":["deprecation.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentMain, ComponentAspect, Component, ComponentID } from '@teambit/component';\nimport { ScopeMain, ScopeAspect } from '@teambit/scope';\nimport WorkspaceAspect, { Workspace } from '@teambit/workspace';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { ComponentIdObj } from '@teambit/component-id';\nimport { DeprecationAspect } from './deprecation.aspect';\nimport { deprecationSchema } from './deprecation.graphql';\nimport { DeprecationFragment } from './deprecation.fragment';\nimport { DeprecateCmd } from './deprecate-cmd';\nimport { UndeprecateCmd } from './undeprecate-cmd';\n\nexport type DeprecationInfo = {\n isDeprecate: boolean;\n newId?: string;\n};\n\nexport type DeprecationMetadata = {\n deprecate?: boolean;\n newId?: ComponentIdObj;\n};\n\nexport class DeprecationMain {\n constructor(private scope: ScopeMain, private workspace: Workspace) {}\n static runtime = MainRuntime;\n static dependencies = [GraphqlAspect, ScopeAspect, ComponentAspect, WorkspaceAspect, CLIAspect];\n\n async getDeprecationInfo(component: Component): Promise<DeprecationInfo> {\n const data = component.config.extensions.findExtension(DeprecationAspect.id)?.config as\n | DeprecationMetadata\n | undefined;\n const deprecatedBackwardCompatibility = component.state._consumer.deprecated;\n const isDeprecate = Boolean(data?.deprecate || deprecatedBackwardCompatibility);\n const newId = data?.newId ? ComponentID.fromObject(data?.newId).toString() : undefined;\n return {\n isDeprecate,\n newId,\n };\n }\n\n /**\n * mark a component as deprecated. after this change, the component will be modified.\n * tag and export the component to have it deprecated on the remote.\n *\n * @param componentId\n * @param newId\n * @returns boolean whether or not the component has been deprecated\n */\n async deprecate(componentId: ComponentID, newId?: ComponentID): Promise<boolean> {\n const results = this.workspace.bitMap.addComponentConfig(componentId, DeprecationAspect.id, {\n deprecate: true,\n newId: newId?.toObject(),\n });\n await this.workspace.bitMap.write();\n\n return results;\n }\n\n async unDeprecate(componentId: ComponentID) {\n const results = this.workspace.bitMap.addComponentConfig(componentId, DeprecationAspect.id, {\n deprecate: false,\n newId: '',\n });\n await this.workspace.bitMap.write();\n\n return results;\n }\n\n static async provider([graphql, scope, componentAspect, workspace, cli]: [\n GraphqlMain,\n ScopeMain,\n ComponentMain,\n Workspace,\n CLIMain\n ]) {\n const deprecation = new DeprecationMain(scope, workspace);\n cli.register(new DeprecateCmd(deprecation, workspace), new UndeprecateCmd(deprecation, workspace));\n componentAspect.registerShowFragments([new DeprecationFragment(deprecation)]);\n graphql.register(deprecationSchema(deprecation));\n\n return deprecation;\n }\n}\n\nDeprecationAspect.addRuntime(DeprecationMain);\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;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAYO,MAAMA,eAAe,CAAC;EAC3BC,WAAW,CAASC,KAAgB,EAAUC,SAAoB,EAAE;IAAA,KAAhDD,KAAgB,GAAhBA,KAAgB;IAAA,KAAUC,SAAoB,GAApBA,SAAoB;EAAG;EAIrE,MAAMC,kBAAkB,CAACC,SAAoB,EAA4B;IAAA;IACvE,MAAMC,IAAI,4BAAGD,SAAS,CAACE,MAAM,CAACC,UAAU,CAACC,aAAa,CAACC,gCAAiB,CAACC,EAAE,CAAC,0DAA/D,sBAAiEJ,MAEjE;IACb,MAAMK,+BAA+B,GAAGP,SAAS,CAACQ,KAAK,CAACC,SAAS,CAACC,UAAU;IAC5E,MAAMC,WAAW,GAAGC,OAAO,CAAC,CAAAX,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEY,SAAS,KAAIN,+BAA+B,CAAC;IAC/E,MAAMO,KAAK,GAAGb,IAAI,aAAJA,IAAI,eAAJA,IAAI,CAAEa,KAAK,GAAGC,wBAAW,CAACC,UAAU,CAACf,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEa,KAAK,CAAC,CAACG,QAAQ,EAAE,GAAGC,SAAS;IACtF,OAAO;MACLP,WAAW;MACXG;IACF,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMD,SAAS,CAACM,WAAwB,EAAEL,KAAmB,EAAoB;IAC/E,MAAMM,OAAO,GAAG,IAAI,CAACtB,SAAS,CAACuB,MAAM,CAACC,kBAAkB,CAACH,WAAW,EAAEd,gCAAiB,CAACC,EAAE,EAAE;MAC1FO,SAAS,EAAE,IAAI;MACfC,KAAK,EAAEA,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAES,QAAQ;IACxB,CAAC,CAAC;IACF,MAAM,IAAI,CAACzB,SAAS,CAACuB,MAAM,CAACG,KAAK,EAAE;IAEnC,OAAOJ,OAAO;EAChB;EAEA,MAAMK,WAAW,CAACN,WAAwB,EAAE;IAC1C,MAAMC,OAAO,GAAG,IAAI,CAACtB,SAAS,CAACuB,MAAM,CAACC,kBAAkB,CAACH,WAAW,EAAEd,gCAAiB,CAACC,EAAE,EAAE;MAC1FO,SAAS,EAAE,KAAK;MAChBC,KAAK,EAAE;IACT,CAAC,CAAC;IACF,MAAM,IAAI,CAAChB,SAAS,CAACuB,MAAM,CAACG,KAAK,EAAE;IAEnC,OAAOJ,OAAO;EAChB;EAEA,aAAaM,QAAQ,CAAC,CAACC,OAAO,EAAE9B,KAAK,EAAE+B,eAAe,EAAE9B,SAAS,EAAE+B,GAAG,CAMrE,EAAE;IACD,MAAMC,WAAW,GAAG,IAAInC,eAAe,CAACE,KAAK,EAAEC,SAAS,CAAC;IACzD+B,GAAG,CAACE,QAAQ,CAAC,KAAIC,4BAAY,EAACF,WAAW,EAAEhC,SAAS,CAAC,EAAE,KAAImC,gCAAc,EAACH,WAAW,EAAEhC,SAAS,CAAC,CAAC;IAClG8B,eAAe,CAACM,qBAAqB,CAAC,CAAC,KAAIC,mCAAmB,EAACL,WAAW,CAAC,CAAC,CAAC;IAC7EH,OAAO,CAACI,QAAQ,CAAC,IAAAK,iCAAiB,EAACN,WAAW,CAAC,CAAC;IAEhD,OAAOA,WAAW;EACpB;AACF;AAAC;AAAA,gCA5DYnC,eAAe,aAET0C,kBAAW;AAAA,gCAFjB1C,eAAe,kBAGJ,CAAC2C,wBAAa,EAAEC,oBAAW,EAAEC,4BAAe,EAAEC,oBAAe,EAAEC,gBAAS,CAAC;AA2DjGrC,gCAAiB,CAACsC,UAAU,CAAChD,eAAe,CAAC"}
@@ -1,76 +1,54 @@
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.DeprecationUIRuntime = 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 _react() {
25
18
  const data = _interopRequireDefault(require("react"));
26
-
27
19
  _react = function () {
28
20
  return data;
29
21
  };
30
-
31
22
  return data;
32
23
  }
33
-
34
24
  function _ui() {
35
25
  const data = require("@teambit/ui");
36
-
37
26
  _ui = function () {
38
27
  return data;
39
28
  };
40
-
41
29
  return data;
42
30
  }
43
-
44
31
  function _docs() {
45
32
  const data = require("@teambit/docs");
46
-
47
33
  _docs = function () {
48
34
  return data;
49
35
  };
50
-
51
36
  return data;
52
37
  }
53
-
54
38
  function _componentUi() {
55
39
  const data = require("@teambit/component.ui.component-deprecated");
56
-
57
40
  _componentUi = function () {
58
41
  return data;
59
42
  };
60
-
61
43
  return data;
62
44
  }
63
-
64
45
  function _deprecation() {
65
46
  const data = require("./deprecation.aspect");
66
-
67
47
  _deprecation = function () {
68
48
  return data;
69
49
  };
70
-
71
50
  return data;
72
51
  }
73
-
74
52
  class DeprecationUIRuntime {
75
53
  static async provider([docsUI]) {
76
54
  docsUI.registerTitleBadge({
@@ -84,13 +62,10 @@ class DeprecationUIRuntime {
84
62
  weight: 40
85
63
  });
86
64
  }
87
-
88
65
  }
89
-
90
66
  exports.DeprecationUIRuntime = DeprecationUIRuntime;
91
67
  (0, _defineProperty2().default)(DeprecationUIRuntime, "dependencies", [_docs().DocsAspect]);
92
68
  (0, _defineProperty2().default)(DeprecationUIRuntime, "runtime", _ui().UIRuntime);
93
-
94
69
  _deprecation().DeprecationAspect.addRuntime(DeprecationUIRuntime);
95
70
 
96
71
  //# sourceMappingURL=deprecation.ui.runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DeprecationUIRuntime","provider","docsUI","registerTitleBadge","component","Badge","legacyComponentModel","deprecation","weight","DocsAspect","UIRuntime","DeprecationAspect","addRuntime"],"sources":["deprecation.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { ComponentModel } from '@teambit/component';\nimport { DocsAspect, DocsUI } from '@teambit/docs';\nimport { ComponentDeprecated } from '@teambit/component.ui.component-deprecated';\nimport { DeprecationAspect } from './deprecation.aspect';\n\nexport class DeprecationUIRuntime {\n static dependencies = [DocsAspect];\n\n static runtime = UIRuntime;\n\n static async provider([docsUI]: [DocsUI]) {\n docsUI.registerTitleBadge({\n component: function Badge({ legacyComponentModel }: { legacyComponentModel: ComponentModel }) {\n return <ComponentDeprecated deprecation={legacyComponentModel.deprecation} />;\n },\n weight: 40,\n });\n }\n}\n\nDeprecationAspect.addRuntime(DeprecationUIRuntime);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;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;;AAEO,MAAMA,oBAAN,CAA2B;EAKX,aAARC,QAAQ,CAAC,CAACC,MAAD,CAAD,EAAqB;IACxCA,MAAM,CAACC,kBAAP,CAA0B;MACxBC,SAAS,EAAE,SAASC,KAAT,CAAe;QAAEC;MAAF,CAAf,EAAmF;QAC5F,oBAAO,+BAAC,kCAAD;UAAqB,WAAW,EAAEA,oBAAoB,CAACC;QAAvD,EAAP;MACD,CAHuB;MAIxBC,MAAM,EAAE;IAJgB,CAA1B;EAMD;;AAZ+B;;;gCAArBR,oB,kBACW,CAACS,kBAAD,C;gCADXT,oB,aAGMU,e;;AAYnBC,gCAAA,CAAkBC,UAAlB,CAA6BZ,oBAA7B"}
1
+ {"version":3,"names":["DeprecationUIRuntime","provider","docsUI","registerTitleBadge","component","Badge","legacyComponentModel","deprecation","weight","DocsAspect","UIRuntime","DeprecationAspect","addRuntime"],"sources":["deprecation.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { ComponentModel } from '@teambit/component';\nimport { DocsAspect, DocsUI } from '@teambit/docs';\nimport { ComponentDeprecated } from '@teambit/component.ui.component-deprecated';\nimport { DeprecationAspect } from './deprecation.aspect';\n\nexport class DeprecationUIRuntime {\n static dependencies = [DocsAspect];\n\n static runtime = UIRuntime;\n\n static async provider([docsUI]: [DocsUI]) {\n docsUI.registerTitleBadge({\n component: function Badge({ legacyComponentModel }: { legacyComponentModel: ComponentModel }) {\n return <ComponentDeprecated deprecation={legacyComponentModel.deprecation} />;\n },\n weight: 40,\n });\n }\n}\n\nDeprecationAspect.addRuntime(DeprecationUIRuntime);\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;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;AAEO,MAAMA,oBAAoB,CAAC;EAKhC,aAAaC,QAAQ,CAAC,CAACC,MAAM,CAAW,EAAE;IACxCA,MAAM,CAACC,kBAAkB,CAAC;MACxBC,SAAS,EAAE,SAASC,KAAK,CAAC;QAAEC;MAA+D,CAAC,EAAE;QAC5F,oBAAO,+BAAC,kCAAmB;UAAC,WAAW,EAAEA,oBAAoB,CAACC;QAAY,EAAG;MAC/E,CAAC;MACDC,MAAM,EAAE;IACV,CAAC,CAAC;EACJ;AACF;AAAC;AAAA,gCAbYR,oBAAoB,kBACT,CAACS,kBAAU,CAAC;AAAA,gCADvBT,oBAAoB,aAGdU,eAAS;AAY5BC,gCAAiB,CAACC,UAAU,CAACZ,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -15,14 +15,11 @@ Object.defineProperty(exports, "default", {
15
15
  return _deprecation().DeprecationAspect;
16
16
  }
17
17
  });
18
-
19
18
  function _deprecation() {
20
19
  const data = require("./deprecation.aspect");
21
-
22
20
  _deprecation = function () {
23
21
  return data;
24
22
  };
25
-
26
23
  return data;
27
24
  }
28
25
 
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type { DeprecationMain, DeprecationInfo } from './deprecation.main.runtime';\nexport { DeprecationAspect, DeprecationAspect as default } from './deprecation.aspect';\n"],"mappings":";;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type { DeprecationMain, DeprecationInfo } from './deprecation.main.runtime';\nexport { DeprecationAspect, DeprecationAspect as default } from './deprecation.aspect';\n"],"mappings":";;;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
@@ -1,36 +1,26 @@
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.UndeprecateCmd = 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 _chalk() {
25
18
  const data = _interopRequireDefault(require("chalk"));
26
-
27
19
  _chalk = function () {
28
20
  return data;
29
21
  };
30
-
31
22
  return data;
32
23
  }
33
-
34
24
  class UndeprecateCmd {
35
25
  constructor(deprecation, workspace) {
36
26
  this.deprecation = deprecation;
@@ -45,24 +35,18 @@ class UndeprecateCmd {
45
35
  (0, _defineProperty2().default)(this, "skipWorkspace", true);
46
36
  (0, _defineProperty2().default)(this, "remoteOp", true);
47
37
  }
48
-
49
38
  async report([id]) {
50
39
  const result = await this.undeprecate(id);
51
-
52
40
  if (result) {
53
41
  return _chalk().default.green(`the component "${id}" has been undeprecated successfully`);
54
42
  }
55
-
56
43
  return _chalk().default.bold(`the component "${id}" is already undeprecated. no changes have been made`);
57
44
  }
58
-
59
45
  async undeprecate(id) {
60
46
  const componentId = await this.workspace.resolveComponentId(id);
61
47
  return this.deprecation.unDeprecate(componentId);
62
48
  }
63
-
64
49
  }
65
-
66
50
  exports.UndeprecateCmd = UndeprecateCmd;
67
51
 
68
52
  //# sourceMappingURL=undeprecate-cmd.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["UndeprecateCmd","constructor","deprecation","workspace","report","id","result","undeprecate","chalk","green","bold","componentId","resolveComponentId","unDeprecate"],"sources":["undeprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class UndeprecateCmd implements Command {\n name = 'undeprecate <id>';\n group = 'collaborate';\n description = 'undeprecate a deprecated component (local/remote)';\n alias = '';\n options = [] as CommandOptions;\n loader = true;\n migration = true;\n skipWorkspace = true;\n remoteOp = true;\n\n constructor(private deprecation: DeprecationMain, private workspace: Workspace) {}\n\n async report([id]: [string]): Promise<string> {\n const result = await this.undeprecate(id);\n if (result) {\n return chalk.green(`the component \"${id}\" has been undeprecated successfully`);\n }\n return chalk.bold(`the component \"${id}\" is already undeprecated. no changes have been made`);\n }\n\n private async undeprecate(id: string) {\n const componentId = await this.workspace.resolveComponentId(id);\n return this.deprecation.unDeprecate(componentId);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAKO,MAAMA,cAAN,CAAwC;EAW7CC,WAAW,CAASC,WAAT,EAA+CC,SAA/C,EAAqE;IAAA,KAA5DD,WAA4D,GAA5DA,WAA4D;IAAA,KAAtBC,SAAsB,GAAtBA,SAAsB;IAAA,8CAVzE,kBAUyE;IAAA,+CATxE,aASwE;IAAA,qDARlE,mDAQkE;IAAA,+CAPxE,EAOwE;IAAA,iDANtE,EAMsE;IAAA,gDALvE,IAKuE;IAAA,mDAJpE,IAIoE;IAAA,uDAHhE,IAGgE;IAAA,kDAFrE,IAEqE;EAAE;;EAEtE,MAANC,MAAM,CAAC,CAACC,EAAD,CAAD,EAAkC;IAC5C,MAAMC,MAAM,GAAG,MAAM,KAAKC,WAAL,CAAiBF,EAAjB,CAArB;;IACA,IAAIC,MAAJ,EAAY;MACV,OAAOE,gBAAA,CAAMC,KAAN,CAAa,kBAAiBJ,EAAG,sCAAjC,CAAP;IACD;;IACD,OAAOG,gBAAA,CAAME,IAAN,CAAY,kBAAiBL,EAAG,sDAAhC,CAAP;EACD;;EAEwB,MAAXE,WAAW,CAACF,EAAD,EAAa;IACpC,MAAMM,WAAW,GAAG,MAAM,KAAKR,SAAL,CAAeS,kBAAf,CAAkCP,EAAlC,CAA1B;IACA,OAAO,KAAKH,WAAL,CAAiBW,WAAjB,CAA6BF,WAA7B,CAAP;EACD;;AAxB4C"}
1
+ {"version":3,"names":["UndeprecateCmd","constructor","deprecation","workspace","report","id","result","undeprecate","chalk","green","bold","componentId","resolveComponentId","unDeprecate"],"sources":["undeprecate-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class UndeprecateCmd implements Command {\n name = 'undeprecate <id>';\n group = 'collaborate';\n description = 'undeprecate a deprecated component (local/remote)';\n alias = '';\n options = [] as CommandOptions;\n loader = true;\n migration = true;\n skipWorkspace = true;\n remoteOp = true;\n\n constructor(private deprecation: DeprecationMain, private workspace: Workspace) {}\n\n async report([id]: [string]): Promise<string> {\n const result = await this.undeprecate(id);\n if (result) {\n return chalk.green(`the component \"${id}\" has been undeprecated successfully`);\n }\n return chalk.bold(`the component \"${id}\" is already undeprecated. no changes have been made`);\n }\n\n private async undeprecate(id: string) {\n const componentId = await this.workspace.resolveComponentId(id);\n return this.deprecation.unDeprecate(componentId);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAKO,MAAMA,cAAc,CAAoB;EAW7CC,WAAW,CAASC,WAA4B,EAAUC,SAAoB,EAAE;IAAA,KAA5DD,WAA4B,GAA5BA,WAA4B;IAAA,KAAUC,SAAoB,GAApBA,SAAoB;IAAA,8CAVvE,kBAAkB;IAAA,+CACjB,aAAa;IAAA,qDACP,mDAAmD;IAAA,+CACzD,EAAE;IAAA,iDACA,EAAE;IAAA,gDACH,IAAI;IAAA,mDACD,IAAI;IAAA,uDACA,IAAI;IAAA,kDACT,IAAI;EAEkE;EAEjF,MAAMC,MAAM,CAAC,CAACC,EAAE,CAAW,EAAmB;IAC5C,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACC,WAAW,CAACF,EAAE,CAAC;IACzC,IAAIC,MAAM,EAAE;MACV,OAAOE,gBAAK,CAACC,KAAK,CAAE,kBAAiBJ,EAAG,sCAAqC,CAAC;IAChF;IACA,OAAOG,gBAAK,CAACE,IAAI,CAAE,kBAAiBL,EAAG,sDAAqD,CAAC;EAC/F;EAEA,MAAcE,WAAW,CAACF,EAAU,EAAE;IACpC,MAAMM,WAAW,GAAG,MAAM,IAAI,CAACR,SAAS,CAACS,kBAAkB,CAACP,EAAE,CAAC;IAC/D,OAAO,IAAI,CAACH,WAAW,CAACW,WAAW,CAACF,WAAW,CAAC;EAClD;AACF;AAAC"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/deprecation",
3
- "version": "0.0.881",
3
+ "version": "0.0.883",
4
4
  "homepage": "https://bit.dev/teambit/component/deprecation",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "deprecation",
9
- "version": "0.0.881"
9
+ "version": "0.0.883"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -15,14 +15,14 @@
15
15
  "core-js": "^3.0.0",
16
16
  "@teambit/harmony": "0.3.3",
17
17
  "@teambit/cli": "0.0.591",
18
- "@teambit/workspace": "0.0.881",
19
- "@teambit/component": "0.0.881",
20
- "@teambit/graphql": "0.0.881",
18
+ "@teambit/workspace": "0.0.883",
19
+ "@teambit/component": "0.0.883",
20
+ "@teambit/graphql": "0.0.883",
21
21
  "@teambit/component-id": "0.0.418",
22
- "@teambit/scope": "0.0.881",
22
+ "@teambit/scope": "0.0.883",
23
23
  "@teambit/component.ui.component-deprecated": "0.0.21",
24
- "@teambit/docs": "0.0.881",
25
- "@teambit/ui": "0.0.881"
24
+ "@teambit/docs": "0.0.883",
25
+ "@teambit/ui": "0.0.883"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/react": "^17.0.8",
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.881/dist/deprecation.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.881/dist/deprecation.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.883/dist/deprecation.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_deprecation@0.0.883/dist/deprecation.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];