Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97314842eb | ||
|
|
e52474b96b |
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"monorepoCommit": "810617559b0ee9c662c4b566e16cb3629b44fbce",
|
||||
"monorepoCommit": "099bb9f5d64bce50b20b6cb51d5333f009b8d418",
|
||||
"sourcePath": "quixos-instance/packages/project-react-runtime"
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"messages": {
|
||||
"org.quixos.web-studio.ReactProps": {
|
||||
"module": "@quixos/camino-package-runtime",
|
||||
"export": "opaqueReactPropsBinding"
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+7
-7
@@ -37,17 +37,17 @@
|
||||
"quixosNixHelpers": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1789364768,
|
||||
"narHash": "sha256-6tINqOSLd3TTACk/HAfhXqo07H69yjX3Q/DrrAPWzus=",
|
||||
"ref": "refs/tags/quixos-reachability/cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
||||
"rev": "cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
||||
"revCount": 22,
|
||||
"lastModified": 1789444178,
|
||||
"narHash": "sha256-/a560j65vYLy/gcwa662cJLo09C14Kj6YjvItC+Ugfo=",
|
||||
"ref": "refs/tags/quixos-reachability/6657af7ca0501454f27032141c57dd09e7ecd79c",
|
||||
"rev": "6657af7ca0501454f27032141c57dd09e7ecd79c",
|
||||
"revCount": 27,
|
||||
"type": "git",
|
||||
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git"
|
||||
},
|
||||
"original": {
|
||||
"ref": "refs/tags/quixos-reachability/cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
||||
"rev": "cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
||||
"ref": "refs/tags/quixos-reachability/6657af7ca0501454f27032141c57dd09e7ecd79c",
|
||||
"rev": "6657af7ca0501454f27032141c57dd09e7ecd79c",
|
||||
"type": "git",
|
||||
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
quixosNixHelpers = {
|
||||
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/cf7945abb6ee2533a34dff4a7d4a956e70efe007&rev=cf7945abb6ee2533a34dff4a7d4a956e70efe007";
|
||||
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/6657af7ca0501454f27032141c57dd09e7ecd79c&rev=6657af7ca0501454f27032141c57dd09e7ecd79c";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
@@ -19,20 +19,14 @@
|
||||
inherit inputs nixpkgs flake-utils;
|
||||
packageRoot = ./.;
|
||||
migrationEntrypoint = "dist/migrate.js";
|
||||
bindingOptions = builtins.fromJSON (builtins.readFile ./bindings.json);
|
||||
promptName = "project-react-runtime";
|
||||
bundle = {
|
||||
entry = "dist/server.js";
|
||||
entry = "src/server.ts";
|
||||
browserSources = true;
|
||||
};
|
||||
installServer = {
|
||||
libexecName = "project-react-runtime";
|
||||
descriptorPath = "descriptor.quixos-package.txtpb";
|
||||
extraFiles = [
|
||||
{
|
||||
source = "dist/project-component.mjs";
|
||||
target = "project-component.mjs";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
+2
-2
@@ -8,11 +8,11 @@
|
||||
"server": "dist/server.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/build-component.mjs",
|
||||
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@quixos/camino-package-runtime": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0",
|
||||
"@quixos/camino-package-runtime": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2",
|
||||
"react": "^18.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
+3
-3
@@ -1,14 +1,14 @@
|
||||
quixos-lock version 1 {
|
||||
quixos source {
|
||||
repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git";
|
||||
commit "810617559b0ee9c662c4b566e16cb3629b44fbce";
|
||||
commit "099bb9f5d64bce50b20b6cb51d5333f009b8d418";
|
||||
}
|
||||
interface Named source {
|
||||
repository "https://repos.quixos.org/quixos-templates/interface-named.git";
|
||||
commit "23632b4d803f16dfa14771fb7d91d19ed9d39602";
|
||||
commit "59debb4a72353ea1740fe15252a52cd1086882bd";
|
||||
}
|
||||
interface ProjectTasks source {
|
||||
repository "https://repos.quixos.org/quixos-templates/interface-project-tasks.git";
|
||||
commit "e47073ebb4655800809fe624670c61cff0852eb7";
|
||||
commit "73f0b11bf0f2b5f808b68a803b6fdd3ce4aaac91";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"generatedBy": "qx-scaffold-v1",
|
||||
"resources": [
|
||||
{
|
||||
"kind": "interface",
|
||||
"repository": "https://repos.quixos.org/quixos-todo/interface-named.git",
|
||||
"commit": "0000000000000000000000000000000000000010"
|
||||
},
|
||||
{
|
||||
"kind": "interface",
|
||||
"repository": "https://repos.quixos.org/quixos-todo/interface-project-tasks.git",
|
||||
"commit": "0000000000000000000000000000000000000012"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
{
|
||||
"generatedBy": "qx-scaffold-v1",
|
||||
"name": "ProjectReactRuntime",
|
||||
"id": "package:project-react-runtime",
|
||||
"revision": "package:project-react-runtime@1",
|
||||
"exports": [
|
||||
{
|
||||
"name": "createComponent",
|
||||
"id": "export:project-react-runtime:create-component",
|
||||
"file": "src/impl/createComponent.ts"
|
||||
},
|
||||
{
|
||||
"name": "sourceGet",
|
||||
"id": "export:project-react-runtime:source-get",
|
||||
"file": "src/impl/sourceGet.ts"
|
||||
},
|
||||
{
|
||||
"name": "propsGet",
|
||||
"id": "export:project-react-runtime:props-get",
|
||||
"file": "src/impl/propsGet.ts"
|
||||
},
|
||||
{
|
||||
"name": "propsWatch",
|
||||
"id": "export:project-react-runtime:props-watch",
|
||||
"file": "src/impl/propsWatch.ts"
|
||||
},
|
||||
{
|
||||
"name": "propsWatchStop",
|
||||
"id": "export:project-react-runtime:props-watch-stop",
|
||||
"file": "src/impl/propsWatchStop.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
import { build } from "esbuild";
|
||||
|
||||
const platformModules = new Map([
|
||||
[
|
||||
"@quixos/web-studio-react-runtime",
|
||||
"/__quixos/platform/web-studio-react-runtime/v1.mjs",
|
||||
],
|
||||
["react", "/__quixos/platform/react/v18.mjs"],
|
||||
["react/jsx-runtime", "/__quixos/platform/react-jsx-runtime/v18.mjs"],
|
||||
["react/jsx-dev-runtime", "/__quixos/platform/react-jsx-dev-runtime/v18.mjs"],
|
||||
]);
|
||||
|
||||
await build({
|
||||
entryPoints: ["dist/project-component.js"],
|
||||
outfile: "dist/project-component.mjs",
|
||||
bundle: true,
|
||||
format: "esm",
|
||||
platform: "browser",
|
||||
target: "es2022",
|
||||
sourcemap: true,
|
||||
plugins: [
|
||||
{
|
||||
name: "quixos-platform-modules",
|
||||
setup(buildApi) {
|
||||
buildApi.onResolve({ filter: /.*/ }, (args) => {
|
||||
const platformPath = platformModules.get(args.path);
|
||||
return platformPath
|
||||
? { path: platformPath, external: true }
|
||||
: undefined;
|
||||
});
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
declare module "*?browser-source" { const source: string; export default source; }
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
declare module "@quixos/web-studio-react-runtime" {
|
||||
export function useComponentOverlayContainer(): HTMLElement;
|
||||
export function useComponentStyleRoot(): ShadowRoot;
|
||||
export type ObjectRef<AtomId extends string> = string & {
|
||||
readonly $quixosAtom: AtomId;
|
||||
};
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import componentSource from "./project-component.js?browser-source";
|
||||
import type { Contexts } from "./gen/qx.js";
|
||||
|
||||
const componentSourcePath = path.join(path.dirname(fileURLToPath(import.meta.url)), "project-component.mjs");
|
||||
export const source = () => fs.readFile(componentSourcePath, "utf8");
|
||||
export const source = () => componentSource;
|
||||
export const createComponent = ({ objectId }: Contexts["createComponent"]) => objectId;
|
||||
export const props = { kind: "derived" as const, get: async ({ objectId, ports }: Contexts["propsGet"]): Promise<Record<string, unknown>> => ({
|
||||
project_id: ports.named.objectId,
|
||||
|
||||
+1
-1
@@ -161,7 +161,7 @@ cacheEntries = {
|
||||
"@connectrpc/connect@npm:2.1.2" = { filename = "@connectrpc-connect-npm-2.1.2-ab34825de3-4e15000890.zip"; hash = "sha512-ThUACJAjt1Lv1E+pQKWuHh+gDhvrxLoM7ScruTWSDYw7hbd0UOZErUQruMqaJ1sMFxNviWuo7/A2F4Ex2wHWFQ=="; };
|
||||
"@esbuild/linux-arm64@npm:0.25.12" = { filename = "@esbuild-linux-arm64-npm-0.25.12-a5aaa0e70e-10c0.zip"; hash = "sha512-tm9zhnNR4GZv4A+Sgbt9jdCJ0iGlzvYxGCaxaScbhFH14mX7QWJRYaCvFCZB1dseApmaq6mNwbilL0wJnbB8tw=="; };
|
||||
"@esbuild/linux-x64@npm:0.25.12" = { filename = "@esbuild-linux-x64-npm-0.25.12-07c7c22cce-10c0.zip"; hash = "sha512-U2QGT8ZIZN8q2WPSFDC32+sZGKgp49gvnHzIf/vKVR4xIzjcgBbjAIKI+FqfGBmGBWu8eCpS7lR9JDXdUHOFkw=="; };
|
||||
"@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0" = { filename = "@quixos-camino-package-runtime-https-5a5a438f14-75b1ffcea9.zip"; hash = "sha512-dbH/zqm6gwFck1pSrJAEXNUl6wfHpOL+jj4IwdHCyf5VOMKInCLr73Yx9NYUvqn3zw3AOfdm/8bUeTz2Htxo/A=="; };
|
||||
"@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2" = { filename = "@quixos-camino-package-runtime-https-08b8790f1a-5bde059ead.zip"; hash = "sha512-W94Fnq0rn4MyBqRUUhH0ZcTzVv9MfF59dHtwpFLhg+/jK4QG5wi/uNgRR3xEVszpN8yrBWO6uiJGlkGmNnrczA=="; };
|
||||
"@types/node@npm:24.13.3" = { filename = "@types-node-npm-24.13.3-b512a0bbeb-a5bc08f49b.zip"; hash = "sha512-pbwI9JuVgdzcqQ4CzXcZejx5mECAdmSULlzVFhpVPU0q6AZPfjKUQQ10jX0Ji1wYSL5/pQwG8pxBk6sWvk5Z6w=="; };
|
||||
"@types/prop-types@npm:15.7.15" = { filename = "@types-prop-types-npm-15.7.15-cefe16a1fa-b59aad1ad1.zip"; hash = "sha512-tZqtGtGb8XM89ST9TmGBlsbHaQ9I7nCjJ+tFCkKquOigY/vlnKClcBrr4tktWCKSwPuEXqV0dPahX2mUsOJgsg=="; };
|
||||
"@types/react@npm:18.3.31" = { filename = "@types-react-npm-18.3.31-d376eb19a5-44180549dd.zip"; hash = "sha512-RBgFSd0EX1Nuzs0545qs34KOdq3BxKkLEy9FPiPMNwxGSNkQKuQBFy69j9ixl3qQGjniFOU+x3FxsnUUtYjBeQ=="; };
|
||||
|
||||
@@ -213,14 +213,14 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0":
|
||||
"@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2":
|
||||
version: 0.1.0
|
||||
resolution: "@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0"
|
||||
resolution: "@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2"
|
||||
dependencies:
|
||||
"@bufbuild/protobuf": "npm:^2.12.1"
|
||||
"@connectrpc/connect": "npm:^2.1.2"
|
||||
"@connectrpc/connect-node": "npm:^2.1.2"
|
||||
checksum: 10c0/75b1ffcea9ba83015c935a52ac90045cd525eb07c7a4e2fe8e3e08c1d1c2c9fe5538c2889c22ebef7631f4d614bea9f7cf0dc039f766ffc6d4793cf61edc68fc
|
||||
checksum: 10c0/5bde059ead2b9f833206a4545211f465c4f356ff4c7c5e7d747b70a452e183efe32b8406e708bfb8d811477c4456cce937ccab0563baba22469641a6367adccc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -228,7 +228,7 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@quixos/project-react-runtime@workspace:."
|
||||
dependencies:
|
||||
"@quixos/camino-package-runtime": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0"
|
||||
"@quixos/camino-package-runtime": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2"
|
||||
"@types/node": "npm:^24"
|
||||
"@types/react": "npm:^18.3.12"
|
||||
esbuild: "npm:^0.25.12"
|
||||
|
||||
Reference in New Issue
Block a user