Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e669005ccb | ||
|
|
3926800e4a |
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"monorepoCommit": "afbde2c79f32209066ac011bd7065ec6aada61a3",
|
||||
"monorepoCommit": "024c58666feb4013e95927a7c6b1a4db8d0f56ea",
|
||||
"sourcePath": "quixos-instance/packages/web-studio-canvas-runtime"
|
||||
}
|
||||
|
||||
Generated
+18
-18
@@ -21,19 +21,19 @@
|
||||
"helpers": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1790852599,
|
||||
"narHash": "sha256-MdNtZpcsoguLPSCpAy9Naz6fkVPrftbZQbz1Aj7Zm9A=",
|
||||
"ref": "refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
|
||||
"rev": "91679e8cc82133093cb0b4f9e519cbb39a5bba4f",
|
||||
"revCount": 54,
|
||||
"lastModified": 1794464476,
|
||||
"narHash": "sha256-kHjq5txPHm6PC+Y177BmEqcqFsQo4K/WCLfKBEWq/U4=",
|
||||
"ref": "refs/tags/quixos-reachability/386bdb9a96f5bc02e4fdeab836c2b146850f90fc",
|
||||
"rev": "386bdb9a96f5bc02e4fdeab836c2b146850f90fc",
|
||||
"revCount": 89,
|
||||
"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/386bdb9a96f5bc02e4fdeab836c2b146850f90fc",
|
||||
"rev": "386bdb9a96f5bc02e4fdeab836c2b146850f90fc",
|
||||
"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": 1794474088,
|
||||
"narHash": "sha256-8Ug1KQjRQN5yJ9GcuBjmTzKWWmjFpPA4xi1rl3F7Ctc=",
|
||||
"ref": "refs/tags/quixos-reachability/023d73fae6a1ea4d4132ceac4d928ad219e9d6d9",
|
||||
"rev": "023d73fae6a1ea4d4132ceac4d928ad219e9d6d9",
|
||||
"revCount": 271,
|
||||
"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/023d73fae6a1ea4d4132ceac4d928ad219e9d6d9",
|
||||
"rev": "023d73fae6a1ea4d4132ceac4d928ad219e9d6d9",
|
||||
"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": {
|
||||
|
||||
@@ -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/023d73fae6a1ea4d4132ceac4d928ad219e9d6d9&rev=023d73fae6a1ea4d4132ceac4d928ad219e9d6d9";
|
||||
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/386bdb9a96f5bc02e4fdeab836c2b146850f90fc&rev=386bdb9a96f5bc02e4fdeab836c2b146850f90fc";
|
||||
flake = false;
|
||||
};
|
||||
outputs =
|
||||
|
||||
+7
-7
@@ -1,9 +1,9 @@
|
||||
quixos-lock version 1 {
|
||||
quixos source { repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git"; commit "afbde2c79f32209066ac011bd7065ec6aada61a3"; }
|
||||
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "8087758a277e4b46feb1a64178eed63d3054736c"; }
|
||||
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "8e07c7042001734a3a32bf5cdd2590f90db5a36d"; }
|
||||
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "b4b028db55ea17eb14f9615ab0f782926101e598"; }
|
||||
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "ef3305c072cf0930c8101ef5ff3d3fa05dba14c6"; }
|
||||
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "8f165913e2c7ebee1c77eb9d5db8ec5e68858f67"; }
|
||||
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "f80fa5992afa4ee8e13125a4afdd8f208b52d84b"; }
|
||||
quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "024c58666feb4013e95927a7c6b1a4db8d0f56ea"; }
|
||||
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "d027f344ae53feb2ba59a7fc82cc9521b4ec64cd"; }
|
||||
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "69d527ba79be176b1e258ba90284c7f079a7fb44"; }
|
||||
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "6dbbe09db1127393e5be57ee10bb4fa6881b966e"; }
|
||||
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "27f2a1dd4b449db7b29fc17e93e67dca69c66dd1"; }
|
||||
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "d66b1741042232c97968f7b506f1eaed97c4fccd"; }
|
||||
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "5016206ed9fafb5d97ad61157255bcc53cbaf8f4"; }
|
||||
}
|
||||
|
||||
+13
-1
@@ -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));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user