Compare commits

..
5 changed files with 29 additions and 41 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ {
"monorepoCommit": "b8d750d6e476a5c02bae1ae4bc25fa697e7e3752", "monorepoCommit": "488f7e229afed8f03fc3bfa4abe707da0c613460",
"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": 1793277056, "lastModified": 1790852599,
"narHash": "sha256-w7TrYSjU8hbVrqbLdHgxDJAzMdN2NoWe+HkInJLWRlI=", "narHash": "sha256-MdNtZpcsoguLPSCpAy9Naz6fkVPrftbZQbz1Aj7Zm9A=",
"ref": "refs/tags/quixos-reachability/c2454054dac36fb7a6ff12004003170a65e4f288", "ref": "refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
"rev": "c2454054dac36fb7a6ff12004003170a65e4f288", "rev": "91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
"revCount": 85, "revCount": 54,
"type": "git", "type": "git",
"url": "https://repos.quixos.org/quixos-toolchain/quixos-nix-helpers.git" "url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git"
}, },
"original": { "original": {
"ref": "refs/tags/quixos-reachability/c2454054dac36fb7a6ff12004003170a65e4f288", "ref": "refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
"rev": "c2454054dac36fb7a6ff12004003170a65e4f288", "rev": "91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
"type": "git", "type": "git",
"url": "https://repos.quixos.org/quixos-toolchain/quixos-nix-helpers.git" "url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git"
} }
}, },
"nixpkgs": { "nixpkgs": {
@@ -58,19 +58,19 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1794368355, "lastModified": 1791261504,
"narHash": "sha256-MyJTpWUNnV+QozZdwiZUJKlpo6oJbAyVvyoPmQolkIs=", "narHash": "sha256-QSk9DWR7n5KL6cMHzmSKKXNIyaFA0s8Nu+wXjhhlENI=",
"ref": "refs/tags/quixos-reachability/8d9c94c7a85817415fa0a0511ed530f825686174", "ref": "refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87",
"rev": "8d9c94c7a85817415fa0a0511ed530f825686174", "rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87",
"revCount": 261, "revCount": 184,
"type": "git", "type": "git",
"url": "https://repos.quixos.org/quixos-toolchain/quixos-protocol.git" "url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git"
}, },
"original": { "original": {
"ref": "refs/tags/quixos-reachability/8d9c94c7a85817415fa0a0511ed530f825686174", "ref": "refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87",
"rev": "8d9c94c7a85817415fa0a0511ed530f825686174", "rev": "5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87",
"type": "git", "type": "git",
"url": "https://repos.quixos.org/quixos-toolchain/quixos-protocol.git" "url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git"
} }
}, },
"root": { "root": {
+2 -2
View File
@@ -1,9 +1,9 @@
{ {
inputs.protocol.url = "git+https://repos.quixos.org/quixos-toolchain/quixos-protocol.git?ref=refs/tags/quixos-reachability/8d9c94c7a85817415fa0a0511ed530f825686174&rev=8d9c94c7a85817415fa0a0511ed530f825686174"; inputs.protocol.url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git?ref=refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87&rev=5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87";
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://repos.quixos.org/quixos-toolchain/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/c2454054dac36fb7a6ff12004003170a65e4f288&rev=c2454054dac36fb7a6ff12004003170a65e4f288"; url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f&rev=91679e8cc82133093cb0b4f9e519cbb39a5bba4f";
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.internal.quixos.org/quixos/quixos.git"; commit "b8d750d6e476a5c02bae1ae4bc25fa697e7e3752"; } quixos source { repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git"; commit "488f7e229afed8f03fc3bfa4abe707da0c613460"; }
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "cd5faa6b23be433d868617ce245c13c1dd30d763"; } interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "c1893ec19fcbd035221215c3feff5d612975ee6e"; }
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "b1044fbf80f68896f625121ef35f318c2f9af08f"; } interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "4684be03e06f7bef5a82275387501352a741882e"; }
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "54b8920a50c6abad0d98036ebdba4420aad036e5"; } interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "fb382e3ca97dfd99b35ed6403198e23a8654c624"; }
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "12989983e45f48b80390c352a0879fb760e8004c"; } interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "11814ea4fb3d7a29dfae180eccd9392ff81143ff"; }
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "27d45a7489557478faa32c460e36d44989365db9"; } interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "15fe89143b0a6d568716119583166c17559154dd"; }
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "8c05d96f9a87cc664649d382c717dcb0b06f2f37"; } interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "a1018f0eac5cbf32ae12a5f96a69f088a6cc6572"; }
} }
+1 -13
View File
@@ -7,19 +7,7 @@ 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 ({ const canPresent = async ({ receiver, input, ports }: Contexts["canPresent"]) => {
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));
}; };