@mdwrk/extension-catalog-hello 1.0.1
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/README.md +7 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/manifest.d.ts +4 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +95 -0
- package/dist/manifest.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +55 -0
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# mdwrk/extension-catalog-hello
|
|
2
|
+
|
|
3
|
+
Sample third-party extension package used to prove the external catalog distribution path.
|
|
4
|
+
|
|
5
|
+
This package is intentionally small and self-contained so the generated browser-installable artifact does not depend on any unbundled runtime imports.
|
|
6
|
+
|
|
7
|
+
It is not bundled into `apps/client`; it is published as a source package and transformed by the CI extension artifact pipeline into a signed external catalog artifact.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAGxE,eAAO,MAAM,qBAAqB,EAAE,0BAyBnC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from "./version.js";
|
|
2
|
+
import { extensionCatalogHelloManifest } from "./manifest.js";
|
|
3
|
+
export const extensionCatalogHello = {
|
|
4
|
+
manifest: extensionCatalogHelloManifest,
|
|
5
|
+
async activate(context) {
|
|
6
|
+
const greeting = await context.config.get("greeting") ?? "Hello from the external catalog!";
|
|
7
|
+
context.registerView({
|
|
8
|
+
id: "external.catalog-hello.view",
|
|
9
|
+
title: { defaultMessage: "Catalog Hello" },
|
|
10
|
+
description: { defaultMessage: "Sample external extension panel." },
|
|
11
|
+
location: "panel",
|
|
12
|
+
allowMultiple: false,
|
|
13
|
+
render: () => `External extension active: ${greeting}`,
|
|
14
|
+
});
|
|
15
|
+
context.registerActionRailItem({
|
|
16
|
+
id: "external.catalog-hello.rail",
|
|
17
|
+
title: { defaultMessage: "Catalog Hello" },
|
|
18
|
+
icon: { kind: "lucide", name: "Puzzle" },
|
|
19
|
+
target: { kind: "view", viewId: "external.catalog-hello.view" },
|
|
20
|
+
group: "extensions",
|
|
21
|
+
order: 160,
|
|
22
|
+
});
|
|
23
|
+
await context.host.notifications.info(`Installed external extension '${context.manifest.displayName.defaultMessage}'.`);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
export default extensionCatalogHello;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,CAAC,MAAM,qBAAqB,GAA+B;IAC/D,QAAQ,EAAE,6BAA6B;IACvC,KAAK,CAAC,QAAQ,CAAC,OAAO;QACpB,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,CAAS,UAAU,CAAC,IAAI,kCAAkC,CAAC;QAEpG,OAAO,CAAC,YAAY,CAAC;YACnB,EAAE,EAAE,6BAA6B;YACjC,KAAK,EAAE,EAAE,cAAc,EAAE,eAAe,EAAE;YAC1C,WAAW,EAAE,EAAE,cAAc,EAAE,kCAAkC,EAAE;YACnE,QAAQ,EAAE,OAAO;YACjB,aAAa,EAAE,KAAK;YACpB,MAAM,EAAE,GAAG,EAAE,CAAC,8BAA8B,QAAQ,EAAE;SACvD,CAAC,CAAC;QAEH,OAAO,CAAC,sBAAsB,CAAC;YAC7B,EAAE,EAAE,6BAA6B;YACjC,KAAK,EAAE,EAAE,cAAc,EAAE,eAAe,EAAE;YAC1C,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,6BAA6B,EAAE;YAC/D,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,GAAG;SACX,CAAC,CAAC;QAEH,MAAM,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,iCAAiC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,cAAc,IAAI,CAAC,CAAC;IAC1H,CAAC;CACF,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,eAAO,MAAM,6BAA6B,EAAE,iBA4F3C,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
package/dist/manifest.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export const extensionCatalogHelloManifest = {
|
|
2
|
+
manifestVersion: 1,
|
|
3
|
+
id: "external.catalog-hello",
|
|
4
|
+
packageName: "@mdwrk/extension-catalog-hello",
|
|
5
|
+
version: "1.0.1",
|
|
6
|
+
displayName: {
|
|
7
|
+
defaultMessage: "Catalog Hello",
|
|
8
|
+
key: "manifest.displayName",
|
|
9
|
+
description: "Display name for the sample external catalog extension.",
|
|
10
|
+
},
|
|
11
|
+
description: {
|
|
12
|
+
defaultMessage: "Sample third-party extension installed from a signed external catalog artifact.",
|
|
13
|
+
key: "manifest.description",
|
|
14
|
+
description: "Description for the sample external catalog extension.",
|
|
15
|
+
},
|
|
16
|
+
kind: "external",
|
|
17
|
+
publisher: "demo-catalog",
|
|
18
|
+
license: "Apache-2.0",
|
|
19
|
+
categories: ["sample", "external"],
|
|
20
|
+
keywords: ["hello", "catalog", "sample"],
|
|
21
|
+
icon: { kind: "svg", svg: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" xmlns="http://www.w3.org/2000/svg"><path d="M4 6h16v12H4z"/><path d="M9 10h6"/><path d="M9 14h6"/></svg>' },
|
|
22
|
+
enabledByDefault: true,
|
|
23
|
+
capabilities: ["view.register", "actionRail.register", "notification.publish", "settings.read"],
|
|
24
|
+
compatibility: {
|
|
25
|
+
manifestVersion: 1,
|
|
26
|
+
hostApi: "^1.0.0",
|
|
27
|
+
runtime: "^1.0.0",
|
|
28
|
+
app: ">=0.1.0",
|
|
29
|
+
themeContract: "^1.0.0"
|
|
30
|
+
},
|
|
31
|
+
entry: {
|
|
32
|
+
module: "./index.js",
|
|
33
|
+
export: "extensionCatalogHello",
|
|
34
|
+
},
|
|
35
|
+
contributions: {
|
|
36
|
+
commands: [],
|
|
37
|
+
views: [
|
|
38
|
+
{
|
|
39
|
+
id: "external.catalog-hello.view",
|
|
40
|
+
title: { defaultMessage: "Catalog Hello" },
|
|
41
|
+
description: { defaultMessage: "Sample external extension panel." },
|
|
42
|
+
location: "panel",
|
|
43
|
+
allowMultiple: false,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
components: [],
|
|
47
|
+
actionRail: [
|
|
48
|
+
{
|
|
49
|
+
id: "external.catalog-hello.rail",
|
|
50
|
+
title: { defaultMessage: "Catalog Hello" },
|
|
51
|
+
icon: { kind: "lucide", name: "Puzzle" },
|
|
52
|
+
order: 160,
|
|
53
|
+
group: "extensions",
|
|
54
|
+
target: { kind: "view", viewId: "external.catalog-hello.view" },
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
settingsSections: [],
|
|
58
|
+
},
|
|
59
|
+
i18n: {
|
|
60
|
+
defaultLocale: "en",
|
|
61
|
+
supportedLocales: ["en"],
|
|
62
|
+
},
|
|
63
|
+
settingsSchema: {
|
|
64
|
+
version: 1,
|
|
65
|
+
title: { defaultMessage: "Catalog Hello Settings" },
|
|
66
|
+
sections: [
|
|
67
|
+
{
|
|
68
|
+
id: "general",
|
|
69
|
+
title: { defaultMessage: "General" },
|
|
70
|
+
description: { defaultMessage: "General settings for the sample external extension." },
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
fields: [
|
|
74
|
+
{
|
|
75
|
+
key: "greeting",
|
|
76
|
+
kind: "string",
|
|
77
|
+
label: { defaultMessage: "Greeting" },
|
|
78
|
+
description: { defaultMessage: "Optional override for the greeting shown by the sample external extension." },
|
|
79
|
+
sectionId: "general",
|
|
80
|
+
defaultValue: "Hello from the external catalog!"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
distribution: {
|
|
85
|
+
channel: "catalog",
|
|
86
|
+
format: "esm"
|
|
87
|
+
},
|
|
88
|
+
support: {
|
|
89
|
+
status: "experimental",
|
|
90
|
+
level: "community",
|
|
91
|
+
owner: "demo-catalog"
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
export default extensionCatalogHelloManifest;
|
|
95
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,6BAA6B,GAAsB;IAC9D,eAAe,EAAE,CAAC;IAClB,EAAE,EAAE,wBAAwB;IAC5B,WAAW,EAAE,gCAAgC;IAC7C,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE;QACX,cAAc,EAAE,eAAe;QAC/B,GAAG,EAAE,sBAAsB;QAC3B,WAAW,EAAE,yDAAyD;KACvE;IACD,WAAW,EAAE;QACX,cAAc,EAAE,iFAAiF;QACjG,GAAG,EAAE,sBAAsB;QAC3B,WAAW,EAAE,wDAAwD;KACtE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AE,IAAI;QACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC;KACzB;IACD,cAAc,EAAE;QACd,OAAO,EAAE,CAAC;QACV,KAAK,EAAE,EAAE,cAAc,EAAE,wBAAwB,EAAE;QACnD,QAAQ,EAAE;YACR;gBACE,EAAE,EAAE,SAAS;gBACb,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE;gBACpC,WAAW,EAAE,EAAE,cAAc,EAAE,qDAAqD,EAAE;aACvF;SACF;QACD,MAAM,EAAE;YACN;gBACE,GAAG,EAAE,UAAU;gBACf,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE;gBACrC,WAAW,EAAE,EAAE,cAAc,EAAE,4EAA4E,EAAE;gBAC7G,SAAS,EAAE,SAAS;gBACpB,YAAY,EAAE,kCAAkC;aACjD;SACF;KACF;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,MAAM,EAAE,cAAc;QACtB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,cAAc;KACtB;CACF,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,UAAU,CAAC"}
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,+BAA+B,GAAG,OAAO,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mdwrk/extension-catalog-hello",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=20 <23"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"keywords": [
|
|
18
|
+
"markdown-workspace",
|
|
19
|
+
"extension",
|
|
20
|
+
"external",
|
|
21
|
+
"catalog",
|
|
22
|
+
"sample"
|
|
23
|
+
],
|
|
24
|
+
"description": "Sample third-party external extension used to validate catalog discovery, installation, trust, and runtime activation.",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@mdwrk/extension-host": "^1.0.1",
|
|
27
|
+
"@mdwrk/extension-manifest": "^1.0.0"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build:deps": "npm run build -w @mdwrk/extension-manifest && npm run build -w @mdwrk/extension-host",
|
|
31
|
+
"build": "npm run build:deps && tsc -p tsconfig.json",
|
|
32
|
+
"typecheck": "npm run build:deps && tsc --noEmit -p tsconfig.json",
|
|
33
|
+
"lint": "npm run typecheck",
|
|
34
|
+
"test": "npm run build && node ./tests/run-smoke.mjs",
|
|
35
|
+
"prepack": "npm run build"
|
|
36
|
+
},
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"import": "./dist/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./manifest": {
|
|
43
|
+
"types": "./dist/manifest.d.ts",
|
|
44
|
+
"import": "./dist/manifest.js"
|
|
45
|
+
},
|
|
46
|
+
"./version": {
|
|
47
|
+
"types": "./dist/version.d.ts",
|
|
48
|
+
"import": "./dist/version.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"main": "./dist/index.js",
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"author": "Jacob Stewart <jacob@swarmauri.com>",
|
|
54
|
+
"homepage": "https://mdwrk.com"
|
|
55
|
+
}
|