Compare commits

..
5 changed files with 41 additions and 29 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ {
"monorepoCommit": "be30143a326d5d7d7b0cbabea5bc5ac0301ef5b9", "monorepoCommit": "0a8efa1f7679a31b6d517c104a32adf69801f5ac",
"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": 1791886789,
"narHash": "sha256-MdNtZpcsoguLPSCpAy9Naz6fkVPrftbZQbz1Aj7Zm9A=", "narHash": "sha256-7YF98v0AcxD1qkAdS+nL/aDtmTvcRzld9CB9AxY0qaA=",
"ref": "refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f", "ref": "refs/tags/quixos-reachability/5657043450c46fc84e1a6d38c2f8919ba1e9d10c",
"rev": "91679e8cc82133093cb0b4f9e519cbb39a5bba4f", "rev": "5657043450c46fc84e1a6d38c2f8919ba1e9d10c",
"revCount": 54, "revCount": 78,
"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/5657043450c46fc84e1a6d38c2f8919ba1e9d10c",
"rev": "91679e8cc82133093cb0b4f9e519cbb39a5bba4f", "rev": "5657043450c46fc84e1a6d38c2f8919ba1e9d10c",
"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": 1792963716,
"narHash": "sha256-QSk9DWR7n5KL6cMHzmSKKXNIyaFA0s8Nu+wXjhhlENI=", "narHash": "sha256-MESSLO46ZHYtxVhlNpQfpiHi/A6WJEYDnczr+I3Wfb8=",
"ref": "refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "ref": "refs/tags/quixos-reachability/d829d584af91326aacb8997459014c49def2f66e",
"rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "rev": "d829d584af91326aacb8997459014c49def2f66e",
"revCount": 184, "revCount": 233,
"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/d829d584af91326aacb8997459014c49def2f66e",
"rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "rev": "d829d584af91326aacb8997459014c49def2f66e",
"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/d829d584af91326aacb8997459014c49def2f66e&rev=d829d584af91326aacb8997459014c49def2f66e";
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/5657043450c46fc84e1a6d38c2f8919ba1e9d10c&rev=5657043450c46fc84e1a6d38c2f8919ba1e9d10c";
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 "be30143a326d5d7d7b0cbabea5bc5ac0301ef5b9"; } quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "0a8efa1f7679a31b6d517c104a32adf69801f5ac"; }
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "b39116dd8aecd901940e9eee0686b2c228d26d8d"; } interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "17566d329d91c6d3c9d4073b390b682e6dd06f49"; }
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "f979824643973d945066f79addbc22cbea365d4e"; } interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "655a777fc813cc2878d32fec656f04b2db140e93"; }
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "29a974e9db15387c9efc0f0fe64fec348db10344"; } interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "e3cbdc374740567e2b627c93413509ca1dfb097d"; }
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "98a61b746983960e152f5ae3a29f95bdb7483d9a"; } interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "1e66231af851f541fee392a8d50c6456d61a2433"; }
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "6c40bcab64cecb7349f688800cea3db447a9dd85"; } interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "5f8608e704dd2de67a06de15295936c9a8240344"; }
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "0a095eaaed67f47185a86816be86471285c031a9"; } interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "e6a8b6fb824bfec9ecf6f18a8ae052dd52f5a67f"; }
} }
+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));
}; };