Compare commits

..
5 changed files with 41 additions and 29 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{
"monorepoCommit": "122c862dccc4a1825f19cc8d4eb1095e5661f1ea",
"monorepoCommit": "eb14fa0a75032e30df9970147887f644348699ee",
"sourcePath": "quixos-instance/packages/web-studio-canvas-runtime"
}
Generated
+18 -18
View File
@@ -21,19 +21,19 @@
"helpers": {
"flake": false,
"locked": {
"lastModified": 1790852599,
"narHash": "sha256-MdNtZpcsoguLPSCpAy9Naz6fkVPrftbZQbz1Aj7Zm9A=",
"ref": "refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
"rev": "91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
"revCount": 54,
"lastModified": 1794512432,
"narHash": "sha256-HaFy570PBYLNFJ081NIvK7a/AeHcSmxpTRVEA2mWvzs=",
"ref": "refs/tags/quixos-reachability/cf8f1ab37ea0c3bfd0f761d14a2b51f91eac367a",
"rev": "cf8f1ab37ea0c3bfd0f761d14a2b51f91eac367a",
"revCount": 93,
"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": {
"ref": "refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
"rev": "91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
"ref": "refs/tags/quixos-reachability/cf8f1ab37ea0c3bfd0f761d14a2b51f91eac367a",
"rev": "cf8f1ab37ea0c3bfd0f761d14a2b51f91eac367a",
"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": {
@@ -58,19 +58,19 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1791261504,
"narHash": "sha256-QSk9DWR7n5KL6cMHzmSKKXNIyaFA0s8Nu+wXjhhlENI=",
"ref": "refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87",
"rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87",
"revCount": 184,
"lastModified": 1794534604,
"narHash": "sha256-ufken2W692grx0Nu1zHmUpjqMcLSAj6A135N3WP4ksU=",
"ref": "refs/tags/quixos-reachability/2edcc4b227f8d7a31f2b6f6d039bf919815be173",
"rev": "2edcc4b227f8d7a31f2b6f6d039bf919815be173",
"revCount": 283,
"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": {
"ref": "refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87",
"rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87",
"ref": "refs/tags/quixos-reachability/2edcc4b227f8d7a31f2b6f6d039bf919815be173",
"rev": "2edcc4b227f8d7a31f2b6f6d039bf919815be173",
"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": {
+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/2edcc4b227f8d7a31f2b6f6d039bf919815be173&rev=2edcc4b227f8d7a31f2b6f6d039bf919815be173";
inputs.nixpkgs.follows = "protocol/nixpkgs";
inputs.flake-utils.follows = "protocol/flake-utils";
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/cf8f1ab37ea0c3bfd0f761d14a2b51f91eac367a&rev=cf8f1ab37ea0c3bfd0f761d14a2b51f91eac367a";
flake = false;
};
outputs =
+7 -7
View File
@@ -1,9 +1,9 @@
quixos-lock version 1 {
quixos source { repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git"; commit "122c862dccc4a1825f19cc8d4eb1095e5661f1ea"; }
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "8c3c4e86aa95a536bb7b3efcccf23e1553835d1f"; }
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "5dc50976ebab09f85bf9ac9e55fc64aa5f2c7ba4"; }
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "dfd185e1bbe65c506400c8c8093f39b5e8ded75f"; }
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "22e80f8d54c88d8969fef901febfe2011b6e0bb0"; }
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "12f3517fbe7df9eef58b876f78f49b5d4fb58f09"; }
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "6bc496794af4194a6603b5d9f9f0a65c81354f85"; }
quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "eb14fa0a75032e30df9970147887f644348699ee"; }
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "ca0d810a4ccc44e24d9fcbf6c43e740ed5399d3f"; }
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "109e73bd9c61f931636fe4ccaf11d9c92b0a810d"; }
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "efe1af5f3170e97602eb382a5c473f05d0bf31eb"; }
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "3ac4500dabff2381e00fe5d7044737834be415b1"; }
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "2958fa0a8b918fff7d10ce2959e988a8567515ae"; }
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "15b5312280180c542d2233c43c6924b4d107f4c1"; }
}
+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)
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();
return presentations.some((p) => p.id === input && p.atoms.includes(receiver.expectation.id));
};