Compare commits

..
5 changed files with 41 additions and 29 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ {
"monorepoCommit": "73d543c56368cfbc07248b285d31377bd6d57e3f", "monorepoCommit": "9f7b9bfd505a64e943d1fbe0f7bdc0882c30c522",
"sourcePath": "quixos-instance/packages/web-studio-canvas-runtime" "sourcePath": "quixos-instance/packages/web-studio-canvas-runtime"
} }
Generated
+18 -18
View File
@@ -21,19 +21,19 @@
"helpers": { "helpers": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1790852599, "lastModified": 1793277056,
"narHash": "sha256-MdNtZpcsoguLPSCpAy9Naz6fkVPrftbZQbz1Aj7Zm9A=", "narHash": "sha256-w7TrYSjU8hbVrqbLdHgxDJAzMdN2NoWe+HkInJLWRlI=",
"ref": "refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f", "ref": "refs/tags/quixos-reachability/c2454054dac36fb7a6ff12004003170a65e4f288",
"rev": "91679e8cc82133093cb0b4f9e519cbb39a5bba4f", "rev": "c2454054dac36fb7a6ff12004003170a65e4f288",
"revCount": 54, "revCount": 85,
"type": "git", "type": "git",
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git" "url": "https://repos.quixos.org/quixos-toolchain/quixos-nix-helpers.git"
}, },
"original": { "original": {
"ref": "refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f", "ref": "refs/tags/quixos-reachability/c2454054dac36fb7a6ff12004003170a65e4f288",
"rev": "91679e8cc82133093cb0b4f9e519cbb39a5bba4f", "rev": "c2454054dac36fb7a6ff12004003170a65e4f288",
"type": "git", "type": "git",
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git" "url": "https://repos.quixos.org/quixos-toolchain/quixos-nix-helpers.git"
} }
}, },
"nixpkgs": { "nixpkgs": {
@@ -58,19 +58,19 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1791261504, "lastModified": 1794357859,
"narHash": "sha256-QSk9DWR7n5KL6cMHzmSKKXNIyaFA0s8Nu+wXjhhlENI=", "narHash": "sha256-qHfUrTG1+oF3OptTjayu4h4789/WL7U17OdXy812Bn0=",
"ref": "refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "ref": "refs/tags/quixos-reachability/cd73a337b7f968d9859c690511fc14451b2e78a1",
"rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "rev": "cd73a337b7f968d9859c690511fc14451b2e78a1",
"revCount": 184, "revCount": 257,
"type": "git", "type": "git",
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git" "url": "https://repos.quixos.org/quixos-toolchain/quixos-protocol.git"
}, },
"original": { "original": {
"ref": "refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "ref": "refs/tags/quixos-reachability/cd73a337b7f968d9859c690511fc14451b2e78a1",
"rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "rev": "cd73a337b7f968d9859c690511fc14451b2e78a1",
"type": "git", "type": "git",
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git" "url": "https://repos.quixos.org/quixos-toolchain/quixos-protocol.git"
} }
}, },
"root": { "root": {
+2 -2
View File
@@ -1,9 +1,9 @@
{ {
inputs.protocol.url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git?ref=refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87&rev=5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87"; inputs.protocol.url = "git+https://repos.quixos.org/quixos-toolchain/quixos-protocol.git?ref=refs/tags/quixos-reachability/cd73a337b7f968d9859c690511fc14451b2e78a1&rev=cd73a337b7f968d9859c690511fc14451b2e78a1";
inputs.nixpkgs.follows = "protocol/nixpkgs"; inputs.nixpkgs.follows = "protocol/nixpkgs";
inputs.flake-utils.follows = "protocol/flake-utils"; inputs.flake-utils.follows = "protocol/flake-utils";
inputs.helpers = { inputs.helpers = {
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f&rev=91679e8cc82133093cb0b4f9e519cbb39a5bba4f"; url = "git+https://repos.quixos.org/quixos-toolchain/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/c2454054dac36fb7a6ff12004003170a65e4f288&rev=c2454054dac36fb7a6ff12004003170a65e4f288";
flake = false; flake = false;
}; };
outputs = outputs =
+7 -7
View File
@@ -1,9 +1,9 @@
quixos-lock version 1 { quixos-lock version 1 {
quixos source { repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git"; commit "73d543c56368cfbc07248b285d31377bd6d57e3f"; } quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "9f7b9bfd505a64e943d1fbe0f7bdc0882c30c522"; }
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "9bda60db67239f3f8317ca1952f1aeeefc22bed7"; } interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "f85a0f5bbbb640fbe3c464d366d0cec65dcefd51"; }
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "dbcc195128f23ffb02bf0a710dac8fedf249c65f"; } interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "21dc10ecebead17700b2d8d96080c863dadc6d8c"; }
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "77291ad3905814f84a8b553dc8ee8c759148fd1e"; } interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "af1dc6c00d020c2c893020913e6d8c229d877e2b"; }
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "e1414916b72c2677422c6d1ce35fa895603ef26b"; } interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "feadba2cdc74abd1656726159c8b3952d9499d09"; }
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "4ae2463adbde4bbb937a9ce08fd8850c68d34b2c"; } interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "eca85247470aeeb1ea0a740a301686f8e9bd103e"; }
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "bfec1e77cbcdec0486f86a4157963cf74183b62f"; } interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "27c338cb08af4e791519daa0746382663d75d0f6"; }
} }
+13 -1
View File
@@ -7,7 +7,19 @@ const size = (value: { readonly width: number; readonly height: number }) => {
if (!Number.isFinite(value.width) || !Number.isFinite(value.height) || value.width <= 0 || value.height <= 0) if (!Number.isFinite(value.width) || !Number.isFinite(value.height) || value.width <= 0 || value.height <= 0)
throw new QxReject("INVALID_SIZE"); throw new QxReject("INVALID_SIZE");
}; };
const canPresent = async ({ receiver, input, ports }: Contexts["canPresent"]) => { const canPresent = async ({
receiver,
input,
ports,
}: {
readonly receiver: ExactReference;
readonly input: string;
readonly ports: {
readonly catalog: {
presentations(): Promise<ReadonlyArray<{ readonly id: string; readonly atoms: readonly string[] }>>;
};
};
}) => {
const presentations = await ports.catalog.presentations(); const presentations = await ports.catalog.presentations();
return presentations.some((p) => p.id === input && p.atoms.includes(receiver.expectation.id)); return presentations.some((p) => p.id === input && p.atoms.includes(receiver.expectation.id));
}; };