@teambit/graph 0.0.787 → 0.0.788

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 +1 @@
1
- {"version":3,"names":["GraphUI","getDependenciesGraph","DependenciesGraph","registerComponentWidget","value","componentWidgetSlot","register","constructor","provider","componentUI","componentCompare","config","graphUI","section","GraphSection","graphSection","GraphCompareSection","componentTab","registerNavigation","navigationLink","order","registerRoute","route","props","registerRoutes","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","GraphAspect","addRuntime"],"sources":["graph.ui.runtime.tsx"],"sourcesContent":["import { ComponentType } from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { ComponentAspect, ComponentUI, ComponentModel } from '@teambit/component';\nimport { GraphAspect } from './graph.aspect';\nimport { GraphSection } from './ui/graph.section';\nimport { GraphCompareSection } from './graph.compare.section';\nimport { DependenciesGraph } from './ui/dependencies-graph';\n\nexport interface ComponentWidgetProps extends React.HTMLAttributes<HTMLDivElement> {\n component: ComponentModel;\n}\nexport type ComponentWidget = ComponentType<ComponentWidgetProps>;\nexport type ComponentWidgetSlot = SlotRegistry<ComponentWidget>;\n\nexport type GraphUIConfig = {\n componentTab: boolean;\n};\n\n/**\n * Presents dependencies graph in the component page\n */\nexport class GraphUI {\n getDependenciesGraph() {\n return DependenciesGraph;\n }\n\n /**\n * adds plugins to component nodes\n * @param value\n */\n registerComponentWidget(value: ComponentWidget) {\n this.componentWidgetSlot.register(value);\n }\n\n constructor(private componentWidgetSlot: ComponentWidgetSlot) {}\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n static runtime = UIRuntime;\n static slots = [Slot.withType<ComponentWidget>()];\n static defaultConfig = {\n componentTab: true\n };\n\n static async provider(\n [componentUI, componentCompare]: [ComponentUI, ComponentCompareUI],\n config: GraphUIConfig,\n [componentWidgetSlot]: [ComponentWidgetSlot]\n ) {\n const graphUI = new GraphUI(componentWidgetSlot);\n const section = new GraphSection(componentWidgetSlot);\n const graphSection = new GraphCompareSection();\n if (config.componentTab) componentUI.registerNavigation(section.navigationLink, section.order);\n componentUI.registerRoute(section.route);\n componentCompare.registerNavigation({\n props: graphSection.navigationLink,\n order: graphSection.navigationLink.order,\n });\n componentCompare.registerRoutes([graphSection.route]);\n return graphUI;\n }\n}\n\nGraphAspect.addRuntime(GraphUI);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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;;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;;AAYA;AACA;AACA;AACO,MAAMA,OAAN,CAAc;EACnBC,oBAAoB,GAAG;IACrB,OAAOC,sCAAP;EACD;EAED;AACF;AACA;AACA;;;EACEC,uBAAuB,CAACC,KAAD,EAAyB;IAC9C,KAAKC,mBAAL,CAAyBC,QAAzB,CAAkCF,KAAlC;EACD;;EAEDG,WAAW,CAASF,mBAAT,EAAmD;IAAA,KAA1CA,mBAA0C,GAA1CA,mBAA0C;EAAE;;EAQ3C,aAARG,QAAQ,CACnB,CAACC,WAAD,EAAcC,gBAAd,CADmB,EAEnBC,MAFmB,EAGnB,CAACN,mBAAD,CAHmB,EAInB;IACA,MAAMO,OAAO,GAAG,IAAIZ,OAAJ,CAAYK,mBAAZ,CAAhB;IACA,MAAMQ,OAAO,GAAG,KAAIC,sBAAJ,EAAiBT,mBAAjB,CAAhB;IACA,MAAMU,YAAY,GAAG,KAAIC,mCAAJ,GAArB;IACA,IAAIL,MAAM,CAACM,YAAX,EAAyBR,WAAW,CAACS,kBAAZ,CAA+BL,OAAO,CAACM,cAAvC,EAAuDN,OAAO,CAACO,KAA/D;IACzBX,WAAW,CAACY,aAAZ,CAA0BR,OAAO,CAACS,KAAlC;IACAZ,gBAAgB,CAACQ,kBAAjB,CAAoC;MAClCK,KAAK,EAAER,YAAY,CAACI,cADc;MAElCC,KAAK,EAAEL,YAAY,CAACI,cAAb,CAA4BC;IAFD,CAApC;IAIAV,gBAAgB,CAACc,cAAjB,CAAgC,CAACT,YAAY,CAACO,KAAd,CAAhC;IACA,OAAOV,OAAP;EACD;;AArCkB;;;gCAARZ,O,kBAcW,CAACyB,4BAAD,EAAkBC,0CAAlB,C;gCAdX1B,O,aAeM2B,e;gCAfN3B,O,WAgBI,CAAC4B,eAAA,CAAKC,QAAL,EAAD,C;gCAhBJ7B,O,mBAiBY;EACrBiB,YAAY,EAAE;AADO,C;;AAuBzBa,oBAAA,CAAYC,UAAZ,CAAuB/B,OAAvB"}
1
+ {"version":3,"names":["GraphUI","getDependenciesGraph","DependenciesGraph","registerComponentWidget","value","componentWidgetSlot","register","constructor","provider","componentUI","componentCompare","config","graphUI","section","GraphSection","graphSection","GraphCompareSection","componentTab","registerNavigation","navigationLink","order","registerRoute","route","props","registerRoutes","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","GraphAspect","addRuntime"],"sources":["graph.ui.runtime.tsx"],"sourcesContent":["import { ComponentType } from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { ComponentAspect, ComponentUI, ComponentModel } from '@teambit/component';\nimport { GraphAspect } from './graph.aspect';\nimport { GraphSection } from './ui/graph.section';\nimport { GraphCompareSection } from './graph.compare.section';\nimport { DependenciesGraph } from './ui/dependencies-graph';\n\nexport interface ComponentWidgetProps extends React.HTMLAttributes<HTMLDivElement> {\n component: ComponentModel;\n}\nexport type ComponentWidget = ComponentType<ComponentWidgetProps>;\nexport type ComponentWidgetSlot = SlotRegistry<ComponentWidget>;\n\nexport type GraphUIConfig = {\n componentTab: boolean;\n};\n\n/**\n * Presents dependencies graph in the component page\n */\nexport class GraphUI {\n getDependenciesGraph() {\n return DependenciesGraph;\n }\n\n /**\n * adds plugins to component nodes\n * @param value\n */\n registerComponentWidget(value: ComponentWidget) {\n this.componentWidgetSlot.register(value);\n }\n\n constructor(private componentWidgetSlot: ComponentWidgetSlot) {}\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n static runtime = UIRuntime;\n static slots = [Slot.withType<ComponentWidget>()];\n static defaultConfig = {\n componentTab: true,\n };\n\n static async provider(\n [componentUI, componentCompare]: [ComponentUI, ComponentCompareUI],\n config: GraphUIConfig,\n [componentWidgetSlot]: [ComponentWidgetSlot]\n ) {\n const graphUI = new GraphUI(componentWidgetSlot);\n const section = new GraphSection(componentWidgetSlot);\n const graphSection = new GraphCompareSection();\n if (config.componentTab) componentUI.registerNavigation(section.navigationLink, section.order);\n componentUI.registerRoute(section.route);\n componentCompare.registerNavigation({\n props: graphSection.navigationLink,\n order: graphSection.navigationLink.order,\n });\n componentCompare.registerRoutes([graphSection.route]);\n return graphUI;\n }\n}\n\nGraphAspect.addRuntime(GraphUI);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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;;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;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UI {
39
39
  static runtime = UIRuntime;
40
40
  static slots = [Slot.withType<ComponentWidget>()];
41
41
  static defaultConfig = {
42
- componentTab: true
42
+ componentTab: true,
43
43
  };
44
44
 
45
45
  static async provider(
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@teambit/graph",
3
- "version": "0.0.787",
3
+ "version": "0.0.788",
4
4
  "homepage": "https://bit.dev/teambit/component/graph",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "graph",
9
- "version": "0.0.787"
9
+ "version": "0.0.788"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
13
13
  "lodash": "4.17.21",
14
14
  "classnames": "2.2.6",
15
15
  "react-flow-renderer": "8.3.7",
16
- "dagre": "0.8.5",
17
16
  "semver": "7.3.4",
17
+ "dagre": "0.8.5",
18
18
  "@babel/runtime": "7.12.18",
19
19
  "core-js": "^3.0.0",
20
20
  "@teambit/graph.cleargraph": "0.0.1",
@@ -24,17 +24,17 @@
24
24
  "@teambit/base-ui.text.muted-text": "1.0.1",
25
25
  "@teambit/evangelist.input.checkbox.label": "1.0.3",
26
26
  "@teambit/documenter.ui.heading": "4.1.1",
27
- "@teambit/component": "0.0.787",
28
- "@teambit/graphql": "0.0.787",
29
- "@teambit/cli": "0.0.520",
30
- "@teambit/component-compare": "0.0.35",
31
- "@teambit/ui": "0.0.787",
27
+ "@teambit/component": "0.0.788",
28
+ "@teambit/graphql": "0.0.788",
29
+ "@teambit/cli": "0.0.521",
30
+ "@teambit/component-compare": "0.0.36",
31
+ "@teambit/ui": "0.0.788",
32
32
  "@teambit/legacy-bit-id": "0.0.399",
33
33
  "@teambit/component.modules.component-url": "0.0.125",
34
34
  "@teambit/component.ui.deprecation-icon": "0.0.494",
35
35
  "@teambit/design.ui.styles.ellipsis": "0.0.347",
36
36
  "@teambit/envs.ui.env-icon": "0.0.486",
37
- "@teambit/component.ui.compare": "0.0.27",
37
+ "@teambit/component.ui.compare": "0.0.28",
38
38
  "@teambit/design.ui.round-loader": "0.0.346",
39
39
  "@teambit/design.ui.pages.not-found": "0.0.356",
40
40
  "@teambit/design.ui.pages.server-error": "0.0.356",
@@ -46,8 +46,8 @@
46
46
  "@types/react": "^17.0.8",
47
47
  "@types/lodash": "4.14.165",
48
48
  "@types/classnames": "2.2.11",
49
- "@types/dagre": "0.7.44",
50
49
  "@types/semver": "7.3.4",
50
+ "@types/dagre": "0.7.44",
51
51
  "@types/mocha": "9.1.0",
52
52
  "@types/testing-library__jest-dom": "5.9.5",
53
53
  "@types/jest": "^26.0.0",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@apollo/client": "^3.0.0",
59
- "@teambit/legacy": "1.0.301",
59
+ "@teambit/legacy": "1.0.303",
60
60
  "react-dom": "^16.8.0 || ^17.0.0",
61
61
  "react": "^16.8.0 || ^17.0.0"
62
62
  },
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@0.0.787/dist/graph.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@0.0.787/dist/graph.docs.md';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@0.0.788/dist/graph.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@0.0.788/dist/graph.docs.md';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];