@teambit/aspect 1.0.167 → 1.0.168
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/env-template/public/{310.8bc248ea5a236251c663.js → 310.7487f2693a98ef510bca.js} +24 -24
- package/artifacts/env-template/public/{915.1ab3d141018aa7ddad26.js → 874.0c249bb957d75cb79ca1.js} +2 -2
- package/artifacts/env-template/public/{700.84f8d989e2f956247dd2.js → 95.0cfc5b121ab60a6fbc59.js} +10 -10
- package/artifacts/env-template/public/assets-manifest.json +16 -16
- package/artifacts/env-template/public/{compositions.a24619b09909f76438aa.js → compositions.2b3b29050e865fb34171.js} +3 -3
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.2e9fb2f8040e0899fe63.js → overview.7b3d5465b124742ab55b.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{peers.e39576f5483063db778b.js → peers.4ca9839145f77566639c.js} +1 -1
- package/artifacts/env-template/public/{preview-root.cd4eab993e7a25504ad8.js → preview-root.e5a0a61a3f4326cad229.js} +1 -1
- package/artifacts/env-template/public/static/css/{310.26779f1b.css → 310.b1f2b2a8.css} +1 -1
- package/artifacts/preview/teambit_harmony_aspect-preview.js +1 -1
- package/artifacts/schema.json +7 -7
- package/{compositions-1707967207539.js → compositions-1708259356169.js} +1 -1
- package/dist/preview-1708259356169.js +7 -0
- package/{overview-1707967207539.js → overview-1708259356169.js} +1 -1
- package/package.json +25 -25
- package/dist/preview-1707967207539.js +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/aspect-preview"]=t():e["teambit.harmony/aspect-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/aspect-preview"]=t():e["teambit.harmony/aspect-preview"]=t()}(self,(()=>(()=>{"use strict";var e={19636:(e,t,o)=>{var n={id:"teambit.harmony/aspect@1.0.168",homepage:"https://bit.cloud/teambit/harmony/aspect",exported:!0};function r(){const e=a(o(6376));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,a.__bit_component=n;const s=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/aspect.svg"}));s.__bit_component=n,t.Logo=s},6376:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>m,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>l});var t=o(19636);o(6376);const r=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var s=["components"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},i.apply(this,arguments)}var p={},c="wrapper";function l(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,s);return(0,r.mdx)(c,i({},p,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("h2",null,"Overview"),(0,r.mdx)("p",null,"Aspects can be configured on a component is various ways, some more general and some more specific. Once a component is loaded, Bit calculates all the sources and comes up with the final list of aspects. Each aspect has its config and data.\nConfig is what the user entered, Data is a result of the aspect process."),(0,r.mdx)("h2",null,"Debugging aspects"),(0,r.mdx)("p",null,"To help understanding why a component has these specific aspects, ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit aspect get --debug")," shows each one of the sources, from the more specific one to the general one. At the end, it shows the merged result of all sources.\nThe various sources are as follows:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"'BitmapFile'\n'Model'\n'WorkspaceVariants'\n'ComponentJsonFile'\n")),(0,r.mdx)("p",null,"Since the list of all the config+data can be very long and hard to follow, the flag ",(0,r.mdx)("inlineCode",{parentName:"p"},"--json")," is very helpful.\nThis with help of ",(0,r.mdx)("a",{parentName:"p",href:"https://github.com/antonmedv/fx"},"fx"),", it's easy to extract the data needed."),(0,r.mdx)("p",null,"If for example, we're interested in one source only, we can run the following:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"bit aspect get ui/text --debug --json | fx .BitmapFile\n")),(0,r.mdx)("p",null,"It's possible to run any arbitrary javascript code with fx, so for example, if you want to debug just one specific aspect, and see its config/data per each one of the source, you can do something like this:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"bit aspect get ui/text --debug --json | fx 'Object.keys(this).map(origin => ({ origin, value: this[origin].extensions[\"teambit.pkg/pkg\"] }))'\n")),(0,r.mdx)("p",null,"Another data shown with the ",(0,r.mdx)("inlineCode",{parentName:"p"},"--debug")," flag is the rules in the workspace.jsonc#variants applied to this component. It shows the list of these rules sorted with the data about the specifity.")))}l.isMDXComponent=!0;const d=[t],u=[e],m={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -1829,7 +1829,7 @@
|
|
|
1829
1829
|
"_legacy": {
|
|
1830
1830
|
"scope": "teambit.harmony",
|
|
1831
1831
|
"name": "aspect",
|
|
1832
|
-
"version": "1.0.
|
|
1832
|
+
"version": "1.0.168"
|
|
1833
1833
|
},
|
|
1834
1834
|
"_scope": "teambit.harmony"
|
|
1835
1835
|
}
|
|
@@ -1856,7 +1856,7 @@
|
|
|
1856
1856
|
"_legacy": {
|
|
1857
1857
|
"scope": "teambit.harmony",
|
|
1858
1858
|
"name": "aspect",
|
|
1859
|
-
"version": "1.0.
|
|
1859
|
+
"version": "1.0.168"
|
|
1860
1860
|
},
|
|
1861
1861
|
"_scope": "teambit.harmony"
|
|
1862
1862
|
}
|
|
@@ -1883,7 +1883,7 @@
|
|
|
1883
1883
|
"_legacy": {
|
|
1884
1884
|
"scope": "teambit.harmony",
|
|
1885
1885
|
"name": "aspect",
|
|
1886
|
-
"version": "1.0.
|
|
1886
|
+
"version": "1.0.168"
|
|
1887
1887
|
},
|
|
1888
1888
|
"_scope": "teambit.harmony"
|
|
1889
1889
|
}
|
|
@@ -3869,7 +3869,7 @@
|
|
|
3869
3869
|
"_legacy": {
|
|
3870
3870
|
"scope": "teambit.harmony",
|
|
3871
3871
|
"name": "aspect",
|
|
3872
|
-
"version": "1.0.
|
|
3872
|
+
"version": "1.0.168"
|
|
3873
3873
|
},
|
|
3874
3874
|
"_scope": "teambit.harmony"
|
|
3875
3875
|
}
|
|
@@ -3896,7 +3896,7 @@
|
|
|
3896
3896
|
"_legacy": {
|
|
3897
3897
|
"scope": "teambit.harmony",
|
|
3898
3898
|
"name": "aspect",
|
|
3899
|
-
"version": "1.0.
|
|
3899
|
+
"version": "1.0.168"
|
|
3900
3900
|
},
|
|
3901
3901
|
"_scope": "teambit.harmony"
|
|
3902
3902
|
}
|
|
@@ -3923,7 +3923,7 @@
|
|
|
3923
3923
|
"_legacy": {
|
|
3924
3924
|
"scope": "teambit.harmony",
|
|
3925
3925
|
"name": "aspect",
|
|
3926
|
-
"version": "1.0.
|
|
3926
|
+
"version": "1.0.168"
|
|
3927
3927
|
},
|
|
3928
3928
|
"_scope": "teambit.harmony"
|
|
3929
3929
|
}
|
|
@@ -3971,7 +3971,7 @@
|
|
|
3971
3971
|
"componentId": {
|
|
3972
3972
|
"scope": "teambit.harmony",
|
|
3973
3973
|
"name": "aspect",
|
|
3974
|
-
"version": "1.0.
|
|
3974
|
+
"version": "1.0.168"
|
|
3975
3975
|
},
|
|
3976
3976
|
"taggedModuleExports": []
|
|
3977
3977
|
}
|
|
@@ -3,7 +3,7 @@ import { linkModules } from '@teambit/preview/dist/preview.preview.runtime.js';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
import * as defaultMainModule from "/
|
|
6
|
+
import * as defaultMainModule from "/Users/giladshoham/dev/bit/bit3/node_modules/@teambit/react.ui.compositions-app/dist/index.js";
|
|
7
7
|
|
|
8
8
|
linkModules('compositions', {
|
|
9
9
|
modulesMap: {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/95c2f3515392701f327019ce43202e7563a02128/teambit.harmony_aspect@1.0.168/dist/aspect.composition.js';
|
|
2
|
+
import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/95c2f3515392701f327019ce43202e7563a02128/teambit.harmony_aspect@1.0.168/dist/aspect.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"}]};
|
|
@@ -3,7 +3,7 @@ import { linkModules } from '@teambit/preview/dist/preview.preview.runtime.js';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
import * as defaultMainModule from "/
|
|
6
|
+
import * as defaultMainModule from "/Users/giladshoham/dev/bit/bit3/node_modules/@teambit/react.ui.docs-app/dist/index.js";
|
|
7
7
|
|
|
8
8
|
linkModules('overview', {
|
|
9
9
|
modulesMap: {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/aspect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.168",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/aspect",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "aspect",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.168"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -29,33 +29,33 @@
|
|
|
29
29
|
"@teambit/typescript.typescript-compiler": "2.0.1",
|
|
30
30
|
"@teambit/bit-error": "0.0.404",
|
|
31
31
|
"@teambit/component-id": "1.2.0",
|
|
32
|
-
"@bitdev/harmony.generators.harmony-templates": "0.0.
|
|
32
|
+
"@bitdev/harmony.generators.harmony-templates": "0.0.29",
|
|
33
33
|
"@teambit/design.ui.empty-box": "0.0.363",
|
|
34
34
|
"@teambit/cli-table": "0.0.48",
|
|
35
35
|
"@teambit/cli": "0.0.851",
|
|
36
|
-
"@teambit/aspect-loader": "1.0.
|
|
37
|
-
"@teambit/builder": "1.0.
|
|
38
|
-
"@teambit/bundler": "1.0.
|
|
39
|
-
"@teambit/compiler": "1.0.
|
|
40
|
-
"@teambit/envs": "1.0.
|
|
36
|
+
"@teambit/aspect-loader": "1.0.168",
|
|
37
|
+
"@teambit/builder": "1.0.168",
|
|
38
|
+
"@teambit/bundler": "1.0.168",
|
|
39
|
+
"@teambit/compiler": "1.0.168",
|
|
40
|
+
"@teambit/envs": "1.0.168",
|
|
41
41
|
"@teambit/logger": "0.0.944",
|
|
42
|
-
"@teambit/pkg": "1.0.
|
|
43
|
-
"@teambit/preview": "1.0.
|
|
44
|
-
"@teambit/react": "1.0.
|
|
45
|
-
"@teambit/tester": "1.0.
|
|
46
|
-
"@teambit/ui": "1.0.
|
|
47
|
-
"@teambit/webpack": "1.0.
|
|
48
|
-
"@teambit/workspace-config-files": "1.0.
|
|
49
|
-
"@teambit/babel": "1.0.
|
|
50
|
-
"@teambit/component": "1.0.
|
|
51
|
-
"@teambit/dependency-resolver": "1.0.
|
|
52
|
-
"@teambit/generator": "1.0.
|
|
42
|
+
"@teambit/pkg": "1.0.168",
|
|
43
|
+
"@teambit/preview": "1.0.168",
|
|
44
|
+
"@teambit/react": "1.0.168",
|
|
45
|
+
"@teambit/tester": "1.0.168",
|
|
46
|
+
"@teambit/ui": "1.0.168",
|
|
47
|
+
"@teambit/webpack": "1.0.168",
|
|
48
|
+
"@teambit/workspace-config-files": "1.0.168",
|
|
49
|
+
"@teambit/babel": "1.0.168",
|
|
50
|
+
"@teambit/component": "1.0.168",
|
|
51
|
+
"@teambit/dependency-resolver": "1.0.168",
|
|
52
|
+
"@teambit/generator": "1.0.169",
|
|
53
53
|
"@teambit/worker": "0.0.1155",
|
|
54
|
-
"@teambit/workspace": "1.0.
|
|
55
|
-
"@teambit/compositions": "1.0.
|
|
56
|
-
"@teambit/isolator": "1.0.
|
|
57
|
-
"@teambit/
|
|
58
|
-
"@teambit/
|
|
54
|
+
"@teambit/workspace": "1.0.168",
|
|
55
|
+
"@teambit/compositions": "1.0.168",
|
|
56
|
+
"@teambit/isolator": "1.0.168",
|
|
57
|
+
"@teambit/react.eslint-config-bit-react": "1.0.113",
|
|
58
|
+
"@teambit/node": "1.0.168"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/lodash": "4.14.165",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@teambit/harmony.envs.core-aspect-env": "0.0.25"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@teambit/legacy": "1.0.
|
|
68
|
+
"@teambit/legacy": "1.0.651",
|
|
69
69
|
"@types/react": "^17.0.73"
|
|
70
70
|
},
|
|
71
71
|
"license": "Apache-2.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@1.0.167/dist/aspect.composition.js';
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@1.0.167/dist/aspect.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"}]};
|