Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
834c6a1633 | ||
|
|
e005206288 |
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"monorepoCommit": "7fb6b0307ff26355d7ddbce5aceef8d71c87efa0",
|
||||
"monorepoCommit": "e6ef880bcf5ef29cd7f0d7c9307f85e5bd3dac3f",
|
||||
"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": 1794465636,
|
||||
"narHash": "sha256-GQLZmZS3W/rMm+BJW9juk5WVB61u5qMZKdmqlYJNgyE=",
|
||||
"ref": "refs/tags/quixos-reachability/cbdbef5a4ee0d7f8340ffc96774b0f7311d5c0c8",
|
||||
"rev": "cbdbef5a4ee0d7f8340ffc96774b0f7311d5c0c8",
|
||||
"revCount": 267,
|
||||
"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/cbdbef5a4ee0d7f8340ffc96774b0f7311d5c0c8",
|
||||
"rev": "cbdbef5a4ee0d7f8340ffc96774b0f7311d5c0c8",
|
||||
"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/cbdbef5a4ee0d7f8340ffc96774b0f7311d5c0c8&rev=cbdbef5a4ee0d7f8340ffc96774b0f7311d5c0c8";
|
||||
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 "7fb6b0307ff26355d7ddbce5aceef8d71c87efa0"; }
|
||||
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "0481154547f27e628a3e6ee829d254d8568741a3"; }
|
||||
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "1374d3554ccd1d65f29b1852c9e8635ac139282d"; }
|
||||
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "b375239d06727ff238b386dbdc3c878cc0122948"; }
|
||||
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "88c915f6f116bf2cb437e54e7f61e0c28f13fc2d"; }
|
||||
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "67140e72b7c05541af2b0da57937dcb74aa6b210"; }
|
||||
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "e7addef0880747326165456d95141dd27a5df35d"; }
|
||||
quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "e6ef880bcf5ef29cd7f0d7c9307f85e5bd3dac3f"; }
|
||||
interface WebStudioFactory source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-factory.git"; commit "f76793ec21e237b08102f7ba545604296661f86f"; }
|
||||
interface WebStudioSearchable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-searchable.git"; commit "7e9de7d7a9dfb9b577549e4c4e98d7d592dfccf7"; }
|
||||
interface StandaloneView source { repository "https://repos.quixos.org/quixos-templates/interface-react-standalone-view.git"; commit "c7cda6d84cb1ce639ed37b15048df555fc001d7b"; }
|
||||
interface WebStudioCanvas source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas.git"; commit "df50567343dbf62c2d3bad568ed49fb34e48f50a"; }
|
||||
interface WebStudioCanvasPlacement source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-canvas-placement.git"; commit "b5e96f0fcb6ea31b371a22e585dae4d4f8003c26"; }
|
||||
interface WebStudioPlaceable source { repository "https://repos.quixos.org/quixos-templates/interface-web-studio-placeable.git"; commit "2bf5eddac30053ec713ac55c5b04cee204330206"; }
|
||||
}
|
||||
|
||||
+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