pixiboardjs 0.1.0-alpha.6 → 0.1.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/VERSIONING.md +9 -7
  3. package/dist/agent-tools-schemas.d.ts +18 -0
  4. package/dist/agent-tools-schemas.js +4 -0
  5. package/dist/agent-tools-schemas.js.map +1 -0
  6. package/dist/agent-tools.d.ts +140 -0
  7. package/dist/agent-tools.js +124 -0
  8. package/dist/agent-tools.js.map +1 -0
  9. package/dist/browser.d.ts +12 -6
  10. package/dist/browser.js +57 -5176
  11. package/dist/browser.js.map +1 -1
  12. package/dist/capabilities.d.ts +14 -0
  13. package/dist/capabilities.js +5 -0
  14. package/dist/capabilities.js.map +1 -0
  15. package/dist/chunk-AYOOOEXM.js +27 -0
  16. package/dist/chunk-AYOOOEXM.js.map +1 -0
  17. package/dist/chunk-KQHR2G24.js +2257 -0
  18. package/dist/chunk-KQHR2G24.js.map +1 -0
  19. package/dist/chunk-NPEG2TBO.js +2353 -0
  20. package/dist/chunk-NPEG2TBO.js.map +1 -0
  21. package/dist/chunk-PZ5AY32C.js +9 -0
  22. package/dist/chunk-PZ5AY32C.js.map +1 -0
  23. package/dist/chunk-SNUXC33Q.js +560 -0
  24. package/dist/chunk-SNUXC33Q.js.map +1 -0
  25. package/dist/core-B_8DmBaT.d.ts +294 -0
  26. package/dist/core.d.ts +11 -0
  27. package/dist/core.js +4 -0
  28. package/dist/core.js.map +1 -0
  29. package/dist/errors-CEQ_RiJ_.d.ts +27 -0
  30. package/dist/index.d.ts +9 -93
  31. package/dist/index.js +4 -5127
  32. package/dist/index.js.map +1 -1
  33. package/dist/node.d.ts +8 -2
  34. package/dist/node.js +4 -5127
  35. package/dist/node.js.map +1 -1
  36. package/dist/plugin.d.ts +88 -0
  37. package/dist/plugin.js +37 -0
  38. package/dist/plugin.js.map +1 -0
  39. package/dist/preview-registry-BjdGxaWe.d.ts +115 -0
  40. package/dist/resize-BK1wOjTc.d.ts +120 -0
  41. package/dist/types-BEsq8g6W.d.ts +199 -0
  42. package/dist/types-BskqWTyl.d.ts +224 -0
  43. package/dist/types.d.ts +416 -1
  44. package/etc/pixiboardjs-agent-tools-schemas.api.md +29 -0
  45. package/etc/pixiboardjs-agent-tools.api.md +288 -0
  46. package/etc/pixiboardjs-browser.api.md +1913 -1855
  47. package/etc/pixiboardjs-capabilities.api.md +366 -0
  48. package/etc/pixiboardjs-core.api.md +725 -0
  49. package/etc/pixiboardjs-node.api.md +1020 -962
  50. package/etc/pixiboardjs-plugin.api.md +129 -0
  51. package/etc/pixiboardjs-types.api.md +836 -783
  52. package/etc/pixiboardjs.api.md +1020 -962
  53. package/package.json +32 -5
  54. package/dist/tsdoc-metadata.json +0 -11
  55. package/dist/types-Cl2ogJCs.d.ts +0 -905
@@ -0,0 +1,14 @@
1
+ import { B as BoardCore } from './core-B_8DmBaT.js';
2
+ import { P as PreviewService, C as CaptureService, A as AssetImportService, B as BoardCapabilities } from './types-BskqWTyl.js';
3
+ export { a as AssetImportRequest, b as AssetImportSource, c as CaptureResult, d as ChangeSet, e as CreateNodeInput, D as DocumentLoadOptions, I as ImportedAsset, f as PageInfo, g as PreviewResult, R as ReadAssetsResult, h as ReadNodesInput, i as ReadNodesResult, j as RequestOptions, U as UpdateNodeInput, W as WriteOptions, k as WriteResult } from './types-BskqWTyl.js';
4
+ export { A as AssetRecord, B as BoardChangeSet, a as BoardNode, J as JsonValue } from './types-BEsq8g6W.js';
5
+ export { A as AssetUnavailableError, B as BoardDestroyedError, C as CapabilityError, a as CapabilityErrorCode, b as CapabilityUnavailableError, P as PermissionDeniedError, c as aborted, i as isCapabilityError, m as mapCoreError } from './errors-CEQ_RiJ_.js';
6
+
7
+ type BoardCapabilityServices = {
8
+ preview?: PreviewService;
9
+ capture?: CaptureService;
10
+ import?: AssetImportService;
11
+ };
12
+ declare function createBoardCapabilities(core: BoardCore, services?: BoardCapabilityServices): BoardCapabilities;
13
+
14
+ export { AssetImportService, BoardCapabilities, type BoardCapabilityServices, CaptureService, PreviewService, createBoardCapabilities };
@@ -0,0 +1,5 @@
1
+ export { AssetUnavailableError, BoardDestroyedError, CapabilityError, CapabilityUnavailableError, PermissionDeniedError, aborted, createBoardCapabilities, isCapabilityError, mapCoreError } from './chunk-SNUXC33Q.js';
2
+ import './chunk-NPEG2TBO.js';
3
+ import './chunk-PZ5AY32C.js';
4
+ //# sourceMappingURL=capabilities.js.map
5
+ //# sourceMappingURL=capabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"capabilities.js"}
@@ -0,0 +1,27 @@
1
+ // ../agent-tools/src/schemas.ts
2
+ var obj = (properties, required = []) => ({ type: "object", additionalProperties: false, properties, required });
3
+ var jsonValue = {};
4
+ var source = { oneOf: [
5
+ obj({ type: { const: "content" }, content: { type: "string" }, fileName: { type: "string" }, mimeType: { type: "string" }, relativePath: { type: "string" }, rootPath: { type: "string" }, baseUrl: { type: "string" } }, ["type", "content"]),
6
+ obj({ type: { const: "file" }, path: { type: "string" }, fileName: { type: "string" }, mimeType: { type: "string" }, relativePath: { type: "string" }, rootPath: { type: "string" }, baseUrl: { type: "string" } }, ["type", "path"]),
7
+ obj({ type: { const: "url" }, url: { type: "string" }, fileName: { type: "string" }, mimeType: { type: "string" }, relativePath: { type: "string" }, baseUrl: { type: "string" } }, ["type", "url"])
8
+ ] };
9
+ var importFields = {
10
+ content: { type: "string" },
11
+ path: { type: "string" },
12
+ source,
13
+ fileName: { type: "string" },
14
+ mimeType: { type: "string" },
15
+ relativePath: { type: "string" },
16
+ rootPath: { type: "string" },
17
+ baseUrl: { type: "string" },
18
+ fit: { enum: ["contain", "cover", "stretch"] }
19
+ };
20
+ var nodeCreate = obj({ id: { type: "string" }, type: { type: "string" }, name: { type: "string" }, ...importFields, x: { type: "number" }, y: { type: "number" }, width: { type: "number" }, height: { type: "number" }, rotation: { type: "number" }, zIndex: { type: "number" }, locked: { type: "boolean" }, visible: { type: "boolean" }, props: jsonValue }, ["type"]);
21
+ var nodeUpdate = obj({ id: { type: "string" }, name: { type: "string" }, ...importFields, x: { type: "number" }, y: { type: "number" }, width: { type: "number" }, height: { type: "number" }, rotation: { type: "number" }, zIndex: { type: "number" }, locked: { type: "boolean" }, visible: { type: "boolean" }, props: jsonValue }, ["id"]);
22
+ var canvasReadSchema = { oneOf: [obj({ type: { const: "nodes" }, ids: { type: "array", items: { type: "string" } }, types: { type: "array", items: { type: "string" } }, fields: { type: "array", items: { type: "string" } }, limit: { type: "integer", minimum: 1, maximum: 200 }, cursor: { type: "string" } }, ["type"]), obj({ type: { const: "assets" }, ids: { type: "array", items: { type: "string" } }, kinds: { type: "array", items: { type: "string" } }, fields: { type: "array", items: { type: "string" } }, limit: { type: "integer", minimum: 1, maximum: 200 }, cursor: { type: "string" } }, ["type"]), obj({ type: { const: "preview" }, id: { type: "string" }, maxWidth: { type: "number" }, maxHeight: { type: "number" }, frameNumber: { type: "number" }, fps: { type: "number" } }, ["type", "id"])] };
23
+ var canvasWriteSchema = { oneOf: [obj({ type: { const: "create" }, nodes: { type: "array", minItems: 1, items: nodeCreate } }, ["type", "nodes"]), obj({ type: { const: "update" }, nodes: { type: "array", minItems: 1, items: nodeUpdate } }, ["type", "nodes"]), obj({ type: { const: "delete" }, nodeIds: { type: "array", minItems: 1, items: { type: "string" } } }, ["type", "nodeIds"])] };
24
+
25
+ export { canvasReadSchema, canvasWriteSchema };
26
+ //# sourceMappingURL=chunk-AYOOOEXM.js.map
27
+ //# sourceMappingURL=chunk-AYOOOEXM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../agent-tools/src/schemas.ts"],"names":[],"mappings":";AAAA,IAAM,GAAA,GAAM,CAAC,UAAA,EAAqC,QAAA,GAAqB,EAAC,MAAO,EAAE,IAAA,EAAM,QAAA,EAAU,oBAAA,EAAsB,KAAA,EAAO,UAAA,EAAY,QAAA,EA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KAAA,EAAO,EAAE,IAAA,EAAM,SAAA,EAAW,OAAA,EAAS,CAAA,EAAG,SAAS,GAAA,EAAI,EAAG,MAAA,EAAQ,EAAE,MAAM,QAAA,EAAS,EAAE,EAAG,CAAC,MAAM,CAAC,CAAA,EAAG,GAAA,CAAI,EAAE,MAAM,EAAE,KAAA,EAAO,SAAA,EAAU,EAAG,IAAI,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,UAAU,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,WAAW,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,aAAa,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,KAAK,EAAE,IAAA,EAAM,QAAA,EAAS,IAAK,CAAC,MAAA,EAAQ,IAAI,CAAC,CAAE,CAAA;AACjyB,IAAM,iBAAA,GAAoB,EAAE,KAAA,EAAO,CAAC,IAAI,EAAE,IAAA,EAAM,EAAE,KAAA,EAAO,UAAS,EAAG,KAAA,EAAO,EAAE,IAAA,EAAM,SAAS,QAAA,EAAU,CAAA,EAAG,KAAA,EAAO,UAAA,EAAW,EAAE,EAAG,CAAC,MAAA,EAAQ,OAAO,CAAC,CAAA,EAAG,GAAA,CAAI,EAAE,MAAM,EAAE,KAAA,EAAO,QAAA,EAAS,EAAG,OAAO,EAAE,IAAA,EAAM,OAAA,EAAS,QAAA,EAAU,CAAA,EAAG,KAAA,EAAO,UAAA,EAAW,IAAK,CAAC,MAAA,EAAQ,OAAO,CAAC,GAAG,GAAA,CAAI,EAAE,IAAA,EAAM,EAAE,OAAO,QAAA,EAAS,EAAG,OAAA,EAAS,EAAE,MAAM,OAAA,EAAS,QAAA,EAAU,CAAA,EAAG,KAAA,EAAO,EAAE,IAAA,EAAM,QAAA,EAAS,EAAE,IAAK,CAAC,MAAA,EAAQ,SAAS,CAAC,CAAE,CAAA","file":"chunk-AYOOOEXM.js","sourcesContent":["const obj = (properties: Record<string, unknown>, required: string[] = []) => ({ type: \"object\", additionalProperties: false, properties, required });\nconst geometry = obj({ x: { type: \"number\" }, y: { type: \"number\" }, width: { type: \"number\", exclusiveMinimum: 0 }, height: { type: \"number\", exclusiveMinimum: 0 }, rotation: { type: \"number\" }, zIndex: { type: \"number\" } });\nconst jsonValue = {};\nconst source = { oneOf: [\n obj({ type: { const: \"content\" }, content: { type: \"string\" }, fileName: { type: \"string\" }, mimeType: { type: \"string\" }, relativePath: { type: \"string\" }, rootPath: { type: \"string\" }, baseUrl: { type: \"string\" } }, [\"type\", \"content\"]),\n obj({ type: { const: \"file\" }, path: { type: \"string\" }, fileName: { type: \"string\" }, mimeType: { type: \"string\" }, relativePath: { type: \"string\" }, rootPath: { type: \"string\" }, baseUrl: { type: \"string\" } }, [\"type\", \"path\"]),\n obj({ type: { const: \"url\" }, url: { type: \"string\" }, fileName: { type: \"string\" }, mimeType: { type: \"string\" }, relativePath: { type: \"string\" }, baseUrl: { type: \"string\" } }, [\"type\", \"url\"]),\n] };\nconst importFields = {\n content: { type: \"string\" }, path: { type: \"string\" }, source,\n fileName: { type: \"string\" }, mimeType: { type: \"string\" }, relativePath: { type: \"string\" },\n rootPath: { type: \"string\" }, baseUrl: { type: \"string\" },\n fit: { enum: [\"contain\", \"cover\", \"stretch\"] },\n};\nconst nodeCreate = obj({ id: { type: \"string\" }, type: { type: \"string\" }, name: { type: \"string\" }, ...importFields, x: { type: \"number\" }, y: { type: \"number\" }, width: { type: \"number\" }, height: { type: \"number\" }, rotation: { type: \"number\" }, zIndex: { type: \"number\" }, locked: { type: \"boolean\" }, visible: { type: \"boolean\" }, props: jsonValue }, [\"type\"]);\nconst nodeUpdate = obj({ id: { type: \"string\" }, name: { type: \"string\" }, ...importFields, x: { type: \"number\" }, y: { type: \"number\" }, width: { type: \"number\" }, height: { type: \"number\" }, rotation: { type: \"number\" }, zIndex: { type: \"number\" }, locked: { type: \"boolean\" }, visible: { type: \"boolean\" }, props: jsonValue }, [\"id\"]);\nexport const canvasReadSchema = { oneOf: [obj({ type: { const: \"nodes\" }, ids: { type: \"array\", items: { type: \"string\" } }, types: { type: \"array\", items: { type: \"string\" } }, fields: { type: \"array\", items: { type: \"string\" } }, limit: { type: \"integer\", minimum: 1, maximum: 200 }, cursor: { type: \"string\" } }, [\"type\"]), obj({ type: { const: \"assets\" }, ids: { type: \"array\", items: { type: \"string\" } }, kinds: { type: \"array\", items: { type: \"string\" } }, fields: { type: \"array\", items: { type: \"string\" } }, limit: { type: \"integer\", minimum: 1, maximum: 200 }, cursor: { type: \"string\" } }, [\"type\"]), obj({ type: { const: \"preview\" }, id: { type: \"string\" }, maxWidth: { type: \"number\" }, maxHeight: { type: \"number\" }, frameNumber: { type: \"number\" }, fps: { type: \"number\" } }, [\"type\", \"id\"]) ] };\nexport const canvasWriteSchema = { oneOf: [obj({ type: { const: \"create\" }, nodes: { type: \"array\", minItems: 1, items: nodeCreate } }, [\"type\", \"nodes\"]), obj({ type: { const: \"update\" }, nodes: { type: \"array\", minItems: 1, items: nodeUpdate } }, [\"type\", \"nodes\"]), obj({ type: { const: \"delete\" }, nodeIds: { type: \"array\", minItems: 1, items: { type: \"string\" } } }, [\"type\", \"nodeIds\"]) ] };\n"]}