@byfungsi/lipat 0.2.0 → 0.3.0

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 (42) hide show
  1. package/README.md +4 -3
  2. package/dist/agent.d.ts +161 -25
  3. package/dist/agent.js +97 -10
  4. package/dist/agent.js.map +1 -1
  5. package/dist/{chunk-MWSM2KN5.js → chunk-3Y7RTBXB.js} +19 -7
  6. package/dist/chunk-3Y7RTBXB.js.map +1 -0
  7. package/dist/{chunk-YW4F6OKS.js → chunk-7UJI2K63.js} +3 -3
  8. package/dist/{chunk-YW4F6OKS.js.map → chunk-7UJI2K63.js.map} +1 -1
  9. package/dist/chunk-NQEGMU5Z.js +229 -0
  10. package/dist/chunk-NQEGMU5Z.js.map +1 -0
  11. package/dist/{chunk-VSEJNCEF.js → chunk-QLXFBGFX.js} +5 -4
  12. package/dist/chunk-QLXFBGFX.js.map +1 -0
  13. package/dist/chunk-XBYA2SDR.js +17 -0
  14. package/dist/chunk-XBYA2SDR.js.map +1 -0
  15. package/dist/{chunk-NBLRI3RU.js → chunk-ZWYBNOM7.js} +2 -2
  16. package/dist/chunk-ZWYBNOM7.js.map +1 -0
  17. package/dist/core.d.ts +2 -2
  18. package/dist/core.js +2 -2
  19. package/dist/{deck-runtime-30b2wHTB.d.ts → deck-runtime-CRLtiw52.d.ts} +2 -1
  20. package/dist/images.d.ts +53 -0
  21. package/dist/images.js +4 -0
  22. package/dist/images.js.map +1 -0
  23. package/dist/index.d.ts +4 -3
  24. package/dist/index.js +5 -4
  25. package/dist/lipat.wasm +0 -0
  26. package/dist/model.d.ts +18 -8
  27. package/dist/model.js +1 -1
  28. package/dist/motion.js +16 -15
  29. package/dist/motion.js.map +1 -1
  30. package/dist/pptx.d.ts +7 -1
  31. package/dist/pptx.js +3 -1
  32. package/dist/react.d.ts +1 -1
  33. package/dist/react.js +2 -2
  34. package/dist/render.js +1 -1
  35. package/dist/reveal.js +1 -1
  36. package/dist/wasm.js +2 -2
  37. package/package.json +5 -1
  38. package/dist/chunk-7WIKC5SV.js +0 -11
  39. package/dist/chunk-7WIKC5SV.js.map +0 -1
  40. package/dist/chunk-MWSM2KN5.js.map +0 -1
  41. package/dist/chunk-NBLRI3RU.js.map +0 -1
  42. package/dist/chunk-VSEJNCEF.js.map +0 -1
package/dist/agent.js CHANGED
@@ -1,5 +1,5 @@
1
- import { encodeAssetBytes } from './chunk-NBLRI3RU.js';
2
- import { renderDeckHtml, renderSlideSvg } from './chunk-VSEJNCEF.js';
1
+ import { renderDeckHtml, renderSlideSvg } from './chunk-QLXFBGFX.js';
2
+ import { encodeAssetBytes } from './chunk-ZWYBNOM7.js';
3
3
 
4
4
  // ../agent/src/schemas.json
5
5
  var schemas_default = {
@@ -198,14 +198,35 @@ var schemas_default = {
198
198
  type: "object"
199
199
  },
200
200
  {
201
+ description: "Exactly one embedded assetId or absolute HTTP(S) image URL",
202
+ oneOf: [
203
+ {
204
+ properties: {
205
+ assetId: {
206
+ type: "string"
207
+ }
208
+ },
209
+ required: ["assetId"],
210
+ type: "object"
211
+ },
212
+ {
213
+ properties: {
214
+ url: {
215
+ format: "uri",
216
+ maxLength: 8192,
217
+ pattern: "^[hH][tT][tT][pP][sS]?://",
218
+ type: "string"
219
+ }
220
+ },
221
+ required: ["url"],
222
+ type: "object"
223
+ }
224
+ ],
201
225
  properties: {
202
226
  alt: {
203
227
  default: "",
204
228
  type: "string"
205
229
  },
206
- assetId: {
207
- type: "string"
208
- },
209
230
  fit: {
210
231
  default: "contain",
211
232
  type: "string"
@@ -215,7 +236,7 @@ var schemas_default = {
215
236
  type: "string"
216
237
  }
217
238
  },
218
- required: ["assetId", "type"],
239
+ required: ["type"],
219
240
  type: "object"
220
241
  },
221
242
  {
@@ -390,6 +411,7 @@ var schemas_default = {
390
411
  },
391
412
  step: {
392
413
  format: "uint32",
414
+ maximum: 1e4,
393
415
  minimum: 0,
394
416
  type: ["integer", "null"]
395
417
  },
@@ -710,6 +732,32 @@ var schemas_default = {
710
732
  required: ["height", "width", "x", "y"],
711
733
  type: "object"
712
734
  },
735
+ ImageSource: {
736
+ description: "Exactly one embedded assetId or absolute HTTP(S) image URL",
737
+ oneOf: [
738
+ {
739
+ properties: {
740
+ assetId: {
741
+ type: "string"
742
+ }
743
+ },
744
+ required: ["assetId"],
745
+ type: "object"
746
+ },
747
+ {
748
+ properties: {
749
+ url: {
750
+ format: "uri",
751
+ maxLength: 8192,
752
+ pattern: "^[hH][tT][tT][pP][sS]?://",
753
+ type: "string"
754
+ }
755
+ },
756
+ required: ["url"],
757
+ type: "object"
758
+ }
759
+ ]
760
+ },
713
761
  Layout: {
714
762
  oneOf: [
715
763
  {
@@ -826,14 +874,35 @@ var schemas_default = {
826
874
  type: "object"
827
875
  },
828
876
  {
877
+ description: "Exactly one embedded assetId or absolute HTTP(S) image URL",
878
+ oneOf: [
879
+ {
880
+ properties: {
881
+ assetId: {
882
+ type: "string"
883
+ }
884
+ },
885
+ required: ["assetId"],
886
+ type: "object"
887
+ },
888
+ {
889
+ properties: {
890
+ url: {
891
+ format: "uri",
892
+ maxLength: 8192,
893
+ pattern: "^[hH][tT][tT][pP][sS]?://",
894
+ type: "string"
895
+ }
896
+ },
897
+ required: ["url"],
898
+ type: "object"
899
+ }
900
+ ],
829
901
  properties: {
830
902
  alt: {
831
903
  default: "",
832
904
  type: "string"
833
905
  },
834
- assetId: {
835
- type: "string"
836
- },
837
906
  fit: {
838
907
  default: "contain",
839
908
  type: "string"
@@ -843,7 +912,7 @@ var schemas_default = {
843
912
  type: "string"
844
913
  }
845
914
  },
846
- required: ["assetId", "type"],
915
+ required: ["type"],
847
916
  type: "object"
848
917
  },
849
918
  {
@@ -1018,6 +1087,7 @@ var schemas_default = {
1018
1087
  },
1019
1088
  step: {
1020
1089
  format: "uint32",
1090
+ maximum: 1e4,
1021
1091
  minimum: 0,
1022
1092
  type: ["integer", "null"]
1023
1093
  },
@@ -1246,6 +1316,22 @@ var schemas_default = {
1246
1316
  required: ["nodeId", "type"],
1247
1317
  type: "object"
1248
1318
  },
1319
+ {
1320
+ properties: {
1321
+ nodeId: {
1322
+ type: "string"
1323
+ },
1324
+ source: {
1325
+ $ref: "#/definitions/ImageSource"
1326
+ },
1327
+ type: {
1328
+ enum: ["setImageSource"],
1329
+ type: "string"
1330
+ }
1331
+ },
1332
+ required: ["nodeId", "source", "type"],
1333
+ type: "object"
1334
+ },
1249
1335
  {
1250
1336
  properties: {
1251
1337
  nodeId: {
@@ -1253,6 +1339,7 @@ var schemas_default = {
1253
1339
  },
1254
1340
  step: {
1255
1341
  format: "uint32",
1342
+ maximum: 1e4,
1256
1343
  minimum: 0,
1257
1344
  type: ["integer", "null"]
1258
1345
  },