Compare commits

..
5 changed files with 41 additions and 29 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ {
"monorepoCommit": "11bc3ae35b0034c113daca4c35d1b341aa31ef70", "monorepoCommit": "07c4165ea303b91b4922a4a8ad62bdbd49f57ec3",
"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": 1794368355,
"narHash": "sha256-QSk9DWR7n5KL6cMHzmSKKXNIyaFA0s8Nu+wXjhhlENI=", "narHash": "sha256-MyJTpWUNnV+QozZdwiZUJKlpo6oJbAyVvyoPmQolkIs=",
"ref": "refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "ref": "refs/tags/quixos-reachability/8d9c94c7a85817415fa0a0511ed530f825686174",
"rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "rev": "8d9c94c7a85817415fa0a0511ed530f825686174",
"revCount": 184, "revCount": 261,
"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/8d9c94c7a85817415fa0a0511ed530f825686174",
"rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87", "rev": "8d9c94c7a85817415fa0a0511ed530f825686174",
"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/8d9c94c7a85817415fa0a0511ed530f825686174&rev=8d9c94c7a85817415fa0a0511ed530f825686174";
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 "11bc3ae35b0034c113daca4c35d1b341aa31ef70"; } quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "07c4165ea303b91b4922a4a8ad62bdbd49f57ec3"; }
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "41785da69617d56666f283f62b6412793a02fa7f"; } interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "0b0f8101cf88b39e3e8d8c4c9ce3f411191a1e4c"; }
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "867512e7e6ec5805e6ffe95fd316f0c3aef2902c"; } interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "9b784dab31b41ef155f26ad921081f2e1b5c5a09"; }
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "105a9d9957c8c0d7e3f8a0896698f5cad6203efc"; } interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "193e41e03053de26ae300b791bdd54be0affbef3"; }
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "9eda2f467239c49cef43acf5cb99a3c98fa0e66c"; } interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "106f4229850fe581eadf7168f5c8f5d57be42c12"; }
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "ce51b6fd655895a878bd10079d65e01503167c42"; } interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "182961108d5ea9fd9d5c2300643d141f51cc79d7"; }
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "80b68d534a8e3d85b4561baf915f0660d4d510bf"; } interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "d31833099ee7f0d95ada1ca0f8a8615c92793858"; }
} }
+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));
}; };