@pragma-sh/plugin 0.1.0
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 +27 -0
- package/dist/catalog.cjs +77 -0
- package/dist/catalog.d.cts +363 -0
- package/dist/catalog.d.ts +363 -0
- package/dist/catalog.js +15 -0
- package/dist/icons.cjs +57 -0
- package/dist/icons.d.cts +13 -0
- package/dist/icons.d.ts +13 -0
- package/dist/icons.js +10 -0
- package/dist/index.cjs +217 -0
- package/dist/index.d.cts +533 -0
- package/dist/index.d.ts +533 -0
- package/dist/index.js +151 -0
- package/dist/jsx-runtime.cjs +61 -0
- package/dist/jsx-runtime.d.cts +5 -0
- package/dist/jsx-runtime.d.ts +5 -0
- package/dist/jsx-runtime.js +14 -0
- package/dist/react-dom.cjs +73 -0
- package/dist/react-dom.d.cts +12 -0
- package/dist/react-dom.d.ts +12 -0
- package/dist/react-dom.js +26 -0
- package/dist/react.cjs +127 -0
- package/dist/react.d.cts +39 -0
- package/dist/react.d.ts +39 -0
- package/dist/react.js +80 -0
- package/dist/shared/chunk-2jf7fbtp.js +10 -0
- package/dist/shared/chunk-qjw1esw6.js +4 -0
- package/dist/shared/chunk-yjtz35sp.js +33 -0
- package/dist/ui.cjs +61 -0
- package/dist/ui.d.cts +21 -0
- package/dist/ui.d.ts +21 -0
- package/dist/ui.js +14 -0
- package/dist/version.cjs +47 -0
- package/dist/version.d.cts +7 -0
- package/dist/version.d.ts +7 -0
- package/dist/version.js +6 -0
- package/package.json +96 -0
package/dist/ui.js
ADDED
package/dist/version.cjs
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
function __accessProp(key) {
|
|
6
|
+
return this[key];
|
|
7
|
+
}
|
|
8
|
+
var __toCommonJS = (from) => {
|
|
9
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
10
|
+
if (entry)
|
|
11
|
+
return entry;
|
|
12
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (var key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(entry, key))
|
|
16
|
+
__defProp(entry, key, {
|
|
17
|
+
get: __accessProp.bind(from, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
__moduleCache.set(from, entry);
|
|
22
|
+
return entry;
|
|
23
|
+
};
|
|
24
|
+
var __moduleCache;
|
|
25
|
+
var __returnValue = (v) => v;
|
|
26
|
+
function __exportSetter(name, newValue) {
|
|
27
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
28
|
+
}
|
|
29
|
+
var __export = (target, all) => {
|
|
30
|
+
for (var name in all)
|
|
31
|
+
__defProp(target, name, {
|
|
32
|
+
get: all[name],
|
|
33
|
+
enumerable: true,
|
|
34
|
+
configurable: true,
|
|
35
|
+
set: __exportSetter.bind(all, name)
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// src/version.ts
|
|
40
|
+
var exports_version = {};
|
|
41
|
+
__export(exports_version, {
|
|
42
|
+
PLUGIN_API_VERSION: () => PLUGIN_API_VERSION
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(exports_version);
|
|
45
|
+
|
|
46
|
+
// src/generated/version.ts
|
|
47
|
+
var PLUGIN_API_VERSION = "0.1.0";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `@pragma-sh/plugin` version a plugin was compiled against, stamped onto
|
|
3
|
+
* every plugin definition by `definePlugin`. Used by the Pragma host to check
|
|
4
|
+
* compatibility before loading a plugin bundle.
|
|
5
|
+
*/
|
|
6
|
+
declare const PLUGIN_API_VERSION = "0.1.0";
|
|
7
|
+
export { PLUGIN_API_VERSION };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `@pragma-sh/plugin` version a plugin was compiled against, stamped onto
|
|
3
|
+
* every plugin definition by `definePlugin`. Used by the Pragma host to check
|
|
4
|
+
* compatibility before loading a plugin bundle.
|
|
5
|
+
*/
|
|
6
|
+
declare const PLUGIN_API_VERSION = "0.1.0";
|
|
7
|
+
export { PLUGIN_API_VERSION };
|
package/dist/version.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pragma-sh/plugin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Public TypeScript API for building Pragma plugins.",
|
|
5
|
+
"homepage": "https://github.com/pragma-sh/pragma#readme",
|
|
6
|
+
"bugs": "https://github.com/pragma-sh/pragma/issues",
|
|
7
|
+
"license": "AGPL-3.0-only",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/pragma-sh/pragma.git",
|
|
11
|
+
"directory": "packages/plugin"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "./dist/index.cjs",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"import": "./dist/index.js",
|
|
24
|
+
"require": "./dist/index.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./react": {
|
|
27
|
+
"types": "./dist/react.d.ts",
|
|
28
|
+
"import": "./dist/react.js",
|
|
29
|
+
"require": "./dist/react.cjs"
|
|
30
|
+
},
|
|
31
|
+
"./react-dom": {
|
|
32
|
+
"types": "./dist/react-dom.d.ts",
|
|
33
|
+
"import": "./dist/react-dom.js",
|
|
34
|
+
"require": "./dist/react-dom.cjs"
|
|
35
|
+
},
|
|
36
|
+
"./jsx-runtime": {
|
|
37
|
+
"types": "./dist/jsx-runtime.d.ts",
|
|
38
|
+
"import": "./dist/jsx-runtime.js",
|
|
39
|
+
"require": "./dist/jsx-runtime.cjs"
|
|
40
|
+
},
|
|
41
|
+
"./ui": {
|
|
42
|
+
"types": "./dist/ui.d.ts",
|
|
43
|
+
"import": "./dist/ui.js",
|
|
44
|
+
"require": "./dist/ui.cjs"
|
|
45
|
+
},
|
|
46
|
+
"./icons": {
|
|
47
|
+
"types": "./dist/icons.d.ts",
|
|
48
|
+
"import": "./dist/icons.js",
|
|
49
|
+
"require": "./dist/icons.cjs"
|
|
50
|
+
},
|
|
51
|
+
"./version": {
|
|
52
|
+
"types": "./dist/version.d.ts",
|
|
53
|
+
"import": "./dist/version.js",
|
|
54
|
+
"require": "./dist/version.cjs"
|
|
55
|
+
},
|
|
56
|
+
"./catalog": {
|
|
57
|
+
"types": "./dist/catalog.d.ts",
|
|
58
|
+
"import": "./dist/catalog.js",
|
|
59
|
+
"require": "./dist/catalog.cjs"
|
|
60
|
+
},
|
|
61
|
+
"./package.json": "./package.json"
|
|
62
|
+
},
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"access": "public"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"generate": "bun scripts/generate-version.ts",
|
|
68
|
+
"prebuild": "bun run generate",
|
|
69
|
+
"build": "bunup src/index.ts src/react.ts src/react-dom.ts src/jsx-runtime.ts src/ui.ts src/icons.ts src/version.ts src/catalog.ts --format esm,cjs --target browser --dts",
|
|
70
|
+
"pretypecheck": "bun run generate",
|
|
71
|
+
"typecheck": "tsc -p tsconfig.typecheck.json --noEmit",
|
|
72
|
+
"pretest": "bun run generate",
|
|
73
|
+
"test": "bun --bun vitest run",
|
|
74
|
+
"lint": "oxlint ."
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@pragma-sh/constants": "^0.1.0",
|
|
78
|
+
"@pragma-sh/sdk": "^0.1.0",
|
|
79
|
+
"zod": "^4.4.3"
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@types/node": "^24.10.1",
|
|
83
|
+
"@types/react": "^19.2.14",
|
|
84
|
+
"@types/react-dom": "^19.2.3",
|
|
85
|
+
"bunup": "^0.16.32",
|
|
86
|
+
"react": "^19.2.6",
|
|
87
|
+
"react-dom": "^19.2.6",
|
|
88
|
+
"typescript": "^6.0.3",
|
|
89
|
+
"vitest": "^4.1.8",
|
|
90
|
+
"zod": "^4.4.3"
|
|
91
|
+
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"react": "^19.0.0",
|
|
94
|
+
"react-dom": "^19.0.0"
|
|
95
|
+
}
|
|
96
|
+
}
|