@teambit/aspect-loader 1.0.108 → 1.0.110
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 +6 -0
- package/artifacts/preview/teambit_harmony_aspect_loader-preview.js +1 -0
- package/dist/{preview-1703647408454.js → preview-1703733956734.js} +2 -2
- package/package.json +17 -13
- package/aspect-definition.ts +0 -51
- package/aspect-loader.aspect.ts +0 -8
- package/aspect-loader.main.runtime.ts +0 -860
- package/constants.ts +0 -16
- package/core-aspects.spec.ts +0 -10
- package/core-aspects.ts +0 -153
- package/index.ts +0 -23
- package/is-esm-module.ts +0 -14
- package/plugin-definition.ts +0 -24
- package/plugin.ts +0 -27
- package/plugins.ts +0 -150
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<testsuites>
|
|
3
|
+
<testsuite name="teambit.harmony/aspect-loader@1.0.110" timestamp="2023-12-28T03:49:10.905Z" tests="1" failures="0" errors="0" skipped="0">
|
|
4
|
+
<testcase classname="core-aspects.spec.js" name="should include the namespace in the aspect name" time="0.397"/>
|
|
5
|
+
</testsuite>
|
|
6
|
+
</testsuites>
|
|
@@ -0,0 +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-loader-preview"]=t():e["teambit.harmony/aspect-loader-preview"]=t()}(self,(()=>(()=>{"use strict";var e={65208:(e,t,o)=>{var r={id:"teambit.harmony/aspect-loader@1.0.110",homepage:"https://bit.cloud/teambit/harmony/aspect-loader",exported:!0};function n(){const e=i(o(87363));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/aspect-loader.svg"}));a.__bit_component=r,t.Logo=a},87363:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};return(()=>{o.r(r),o.d(r,{compositions:()=>l,compositions_metadata:()=>f,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(65208);o(87363);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},p.apply(this,arguments)}var c={},s="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,a);return(0,n.mdx)(s,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const l=[t],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.110/dist/aspect-loader.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.110/dist/aspect-loader.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/aspect-loader",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.110",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/aspect-loader",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "aspect-loader",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.110"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"@teambit/node.utils.esm-loader": "0.0.6",
|
|
22
22
|
"@teambit/bvm.config": "0.2.3",
|
|
23
23
|
"@teambit/bvm.path": "0.1.2",
|
|
24
|
-
"@teambit/component": "1.0.
|
|
25
|
-
"@teambit/bit": "1.6.
|
|
26
|
-
"@teambit/cli": "0.0.
|
|
24
|
+
"@teambit/component": "1.0.110",
|
|
25
|
+
"@teambit/bit": "1.6.3",
|
|
26
|
+
"@teambit/cli": "0.0.842",
|
|
27
27
|
"@teambit/compilation.modules.babel-compiler": "0.0.137",
|
|
28
|
-
"@teambit/envs": "1.0.
|
|
28
|
+
"@teambit/envs": "1.0.110",
|
|
29
29
|
"@teambit/harmony.modules.requireable-component": "0.0.495",
|
|
30
|
-
"@teambit/logger": "0.0.
|
|
31
|
-
"@teambit/scope": "1.0.
|
|
30
|
+
"@teambit/logger": "0.0.935",
|
|
31
|
+
"@teambit/scope": "1.0.110",
|
|
32
32
|
"@teambit/toolbox.performance.v8-cache": "0.0.31"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/mocha": "9.1.0",
|
|
39
39
|
"@types/jest": "^29.2.2",
|
|
40
40
|
"@types/testing-library__jest-dom": "^5.9.5",
|
|
41
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
41
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.15"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "^17.0.0 || ^18.0.0",
|
|
@@ -49,11 +49,15 @@
|
|
|
49
49
|
"optionalDependencies": {},
|
|
50
50
|
"peerDependenciesMeta": {},
|
|
51
51
|
"exports": {
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
52
|
+
".": {
|
|
53
|
+
"node": {
|
|
54
|
+
"require": "./dist/index.js",
|
|
55
|
+
"import": "./dist/esm.mjs"
|
|
56
|
+
},
|
|
57
|
+
"default": "./dist/index.js"
|
|
55
58
|
},
|
|
56
|
-
"
|
|
59
|
+
"./dist/*": "./dist/*",
|
|
60
|
+
"./artifacts/*": "./artifacts/*"
|
|
57
61
|
},
|
|
58
62
|
"private": false,
|
|
59
63
|
"engines": {
|
package/aspect-definition.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Component } from '@teambit/component';
|
|
2
|
-
|
|
3
|
-
export type AspectDefinitionProps = {
|
|
4
|
-
id?: string;
|
|
5
|
-
component?: Component;
|
|
6
|
-
aspectPath: string;
|
|
7
|
-
runtimePath: string | null;
|
|
8
|
-
aspectFilePath: string | null;
|
|
9
|
-
local?: boolean;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export class AspectDefinition {
|
|
13
|
-
constructor(
|
|
14
|
-
/**
|
|
15
|
-
* path to the root directory of the aspect module.
|
|
16
|
-
*/
|
|
17
|
-
readonly aspectPath: string,
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* path to the aspect file (.aspect).
|
|
21
|
-
*/
|
|
22
|
-
readonly aspectFilePath: string | null,
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* path to the runtime entry
|
|
26
|
-
*/
|
|
27
|
-
readonly runtimePath: string | null,
|
|
28
|
-
/**
|
|
29
|
-
* aspect component
|
|
30
|
-
*/
|
|
31
|
-
readonly component?: Component,
|
|
32
|
-
/**
|
|
33
|
-
* id of the component (used instead of component in the case of core aspect)
|
|
34
|
-
*/
|
|
35
|
-
readonly id?: string,
|
|
36
|
-
/**
|
|
37
|
-
* aspect defined using 'file://' protocol
|
|
38
|
-
*/
|
|
39
|
-
readonly local?: boolean
|
|
40
|
-
) {}
|
|
41
|
-
|
|
42
|
-
get getId() {
|
|
43
|
-
if (this.component) return this.component.id.toString();
|
|
44
|
-
if (this.id) return this.id;
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
static from({ component, aspectPath, aspectFilePath, runtimePath, id, local }: AspectDefinitionProps) {
|
|
49
|
-
return new AspectDefinition(aspectPath, aspectFilePath, runtimePath, component, id, local);
|
|
50
|
-
}
|
|
51
|
-
}
|