@simfinity/constellation-client 1.0.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/dist/index.cjs ADDED
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Dummy: () => Dummy_default
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/Dummy.tsx
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ function Dummy({ label }) {
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: label });
31
+ }
32
+ var Dummy_default = Dummy;
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ Dummy
36
+ });
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ type DummyProps = {
4
+ label: string;
5
+ };
6
+ declare function Dummy({ label }: DummyProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { Dummy, type DummyProps };
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ type DummyProps = {
4
+ label: string;
5
+ };
6
+ declare function Dummy({ label }: DummyProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { Dummy, type DummyProps };
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ // src/Dummy.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ function Dummy({ label }) {
4
+ return /* @__PURE__ */ jsx("div", { children: label });
5
+ }
6
+ var Dummy_default = Dummy;
7
+ export {
8
+ Dummy_default as Dummy
9
+ };
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@simfinity/constellation-client",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "import": "./dist/index.mjs",
8
+ "require": "./dist/index.cjs"
9
+ }
10
+ },
11
+ "main": "./dist/index.cjs",
12
+ "module": "./dist/index.mjs",
13
+ "types": "./dist/index.d.ts",
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "build": "tsup src/index.ts --format cjs,esm --dts"
19
+ },
20
+ "peerDependencies": {
21
+ "react": "^18.0.0 || ^19.0.0",
22
+ "react-dom": "^18.0.0 || ^19.0.0"
23
+ },
24
+ "author": "Simfinity",
25
+ "license": "MIT",
26
+ "dependencies": {
27
+ },
28
+ "devDependencies": {
29
+ "@types/react": "^19.2.11",
30
+ "@types/react-dom": "^19.2.3",
31
+ "tsup": "^8.5.1",
32
+ "typescript": "^5.9.3"
33
+ }
34
+ }