@molecule/app-author-bio-card-angular 0.0.0-stage → 0.0.1-stage
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/LICENSE +202 -0
- package/README.md +465 -2
- package/dist/author-bio-card.component.d.ts +173 -0
- package/dist/author-bio-card.component.d.ts.map +1 -0
- package/dist/author-bio-card.component.js +528 -0
- package/dist/author-bio-card.component.js.map +1 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +42 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/package.json +71 -4
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types of `@molecule/app-author-bio-card-angular` — the Angular counterpart of
|
|
3
|
+
* `@molecule/app-author-bio-card-react`, same props and DOM.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Social handles / profile links for an author. All keys are optional —
|
|
9
|
+
* pass only the platforms the author actually has. Each value may be a
|
|
10
|
+
* full URL or a bare handle (`"@alice"`); the card forwards values to
|
|
11
|
+
* `<a href>` verbatim, so callers control the linking strategy.
|
|
12
|
+
*/
|
|
13
|
+
export interface AuthorSocials {
|
|
14
|
+
/** Twitter / X profile URL or handle. */
|
|
15
|
+
twitter?: string;
|
|
16
|
+
/** GitHub profile URL or handle. */
|
|
17
|
+
github?: string;
|
|
18
|
+
/** LinkedIn profile URL. */
|
|
19
|
+
linkedin?: string;
|
|
20
|
+
/** Mastodon profile URL or `@user@instance` handle. */
|
|
21
|
+
mastodon?: string;
|
|
22
|
+
/** Personal website URL. */
|
|
23
|
+
website?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Author identity rendered by `div[mol-author-bio-card]`.
|
|
27
|
+
*/
|
|
28
|
+
export interface AuthorBioCardAuthor {
|
|
29
|
+
/** Stable identifier (used as a link key, `data-mol-id` suffix, etc.). */
|
|
30
|
+
id: string;
|
|
31
|
+
/** Display name — rendered as a clickable link if `href` is provided. */
|
|
32
|
+
name: string;
|
|
33
|
+
/** Optional avatar image URL. Falls back to initials if omitted. */
|
|
34
|
+
avatar?: string;
|
|
35
|
+
/** Optional bio paragraph. */
|
|
36
|
+
bio?: string;
|
|
37
|
+
/** Optional profile URL — when set, the name renders as a link. */
|
|
38
|
+
href?: string;
|
|
39
|
+
/** Optional dictionary of social handles / profile links. */
|
|
40
|
+
socials?: AuthorSocials;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,0EAA0E;IAC1E,EAAE,EAAE,MAAM,CAAA;IACV,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAA;IACZ,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6DAA6D;IAC7D,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-author-bio-card-angular",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1-stage",
|
|
4
|
+
"description": "Author bio card with avatar, name, bio, social links, and follow button",
|
|
5
|
+
"homepage": "https://www.molecule.dev/packages/app-author-bio-card-angular",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "ngc",
|
|
21
|
+
"dev": "ngc --watch",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"molecule",
|
|
27
|
+
"author",
|
|
28
|
+
"bio",
|
|
29
|
+
"card",
|
|
30
|
+
"angular"
|
|
31
|
+
],
|
|
32
|
+
"author": "Molecule Dev, Inc. (https://molecule.dev)",
|
|
33
|
+
"license": "Apache-2.0",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/molecule-dev/molecule.git",
|
|
37
|
+
"directory": "packages/app/features/author-bio-card-angular"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=20"
|
|
41
|
+
},
|
|
42
|
+
"bugs": "https://github.com/molecule-dev/molecule/issues",
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@angular/common": "^22.0.0",
|
|
48
|
+
"@angular/core": "^22.0.0",
|
|
49
|
+
"@angular/platform-browser": "^22.0.0",
|
|
50
|
+
"@molecule/app-angular": "^3.5.0",
|
|
51
|
+
"@molecule/app-ui": "^1.0.1",
|
|
52
|
+
"@molecule/app-ui-angular": "^1.1.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@angular/common": "22.2.3",
|
|
56
|
+
"@angular/compiler": "22.2.3",
|
|
57
|
+
"@angular/compiler-cli": "22.2.3",
|
|
58
|
+
"@angular/core": "22.2.3",
|
|
59
|
+
"@angular/platform-browser": "22.2.3",
|
|
60
|
+
"@molecule/app-angular": "3.7.1",
|
|
61
|
+
"@molecule/app-framework-conformance": "0.0.0",
|
|
62
|
+
"@molecule/app-i18n": "1.2.2",
|
|
63
|
+
"@molecule/app-icons": "1.0.4",
|
|
64
|
+
"@molecule/app-ui": "1.4.0",
|
|
65
|
+
"@molecule/app-ui-angular": "1.2.0",
|
|
66
|
+
"@types/node": "26.6.5",
|
|
67
|
+
"jsdom": "30.1.3",
|
|
68
|
+
"rxjs": "7.8.2",
|
|
69
|
+
"typescript": "6.0.3",
|
|
70
|
+
"vitest": "4.1.12",
|
|
71
|
+
"zone.js": "0.16.3"
|
|
72
|
+
}
|
|
73
|
+
}
|