@orangecatai/adgen-canvas 0.0.19 → 0.0.21

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 (36) hide show
  1. package/dist/dev/{chunk-SFB47GDQ.js → chunk-RD5LX7MN.js} +2 -2
  2. package/dist/dev/{chunk-JFIHKE5E.js → chunk-WFKR6OGI.js} +3 -15
  3. package/dist/dev/{chunk-JFIHKE5E.js.map → chunk-WFKR6OGI.js.map} +2 -2
  4. package/dist/dev/data/{image-OXVYDFFE.js → image-DSU2H6P5.js} +3 -3
  5. package/dist/dev/index.css +391 -12
  6. package/dist/dev/index.css.map +3 -3
  7. package/dist/dev/index.js +4910 -4527
  8. package/dist/dev/index.js.map +4 -4
  9. package/dist/dev/subset-shared.chunk.js +1 -1
  10. package/dist/dev/subset-worker.chunk.js +1 -1
  11. package/dist/prod/{chunk-7XQHY7WT.js → chunk-OWNL6YOR.js} +1 -1
  12. package/dist/prod/{chunk-5GYFLSBF.js → chunk-RXJEXEKA.js} +3 -3
  13. package/dist/prod/data/image-I7MZ4QNS.js +1 -0
  14. package/dist/prod/index.css +1 -1
  15. package/dist/prod/index.js +94 -68
  16. package/dist/prod/subset-shared.chunk.js +1 -1
  17. package/dist/prod/subset-worker.chunk.js +1 -1
  18. package/dist/types/excalidraw/components/AIChatPanel.d.ts +36 -8
  19. package/dist/types/excalidraw/components/ImageEditToolbar.d.ts +0 -1
  20. package/dist/types/excalidraw/components/ImageGeneratorPanel.d.ts +23 -10
  21. package/dist/types/excalidraw/components/StockImagePanel.d.ts +49 -0
  22. package/dist/types/excalidraw/components/ai-chat/agentLoop.d.ts +8 -2
  23. package/dist/types/excalidraw/components/ai-chat/audioUtils.d.ts +0 -5
  24. package/dist/types/excalidraw/components/ai-chat/canvasTools.d.ts +15 -2
  25. package/dist/types/excalidraw/components/ai-chat/reviewerAgent.d.ts +3 -2
  26. package/dist/types/excalidraw/components/auto-resize/AutoResizePanel.d.ts +2 -2
  27. package/dist/types/excalidraw/components/auto-resize/autoResizeEngine.d.ts +1 -2
  28. package/dist/types/excalidraw/index.d.ts +2 -0
  29. package/dist/types/excalidraw/types.d.ts +18 -28
  30. package/dist/types/excalidraw/utils/imageApi.d.ts +1 -0
  31. package/package.json +1 -1
  32. package/dist/prod/data/image-FRJAQJ62.js +0 -1
  33. package/dist/types/excalidraw/utils/geminiApiKey.d.ts +0 -1
  34. package/dist/types/excalidraw/utils/leonardoApiKey.d.ts +0 -1
  35. /package/dist/dev/{chunk-SFB47GDQ.js.map → chunk-RD5LX7MN.js.map} +0 -0
  36. /package/dist/dev/data/{image-OXVYDFFE.js.map → image-DSU2H6P5.js.map} +0 -0
@@ -2,12 +2,12 @@ import {
2
2
  decodePngMetadata,
3
3
  encodePngMetadata,
4
4
  getTEXtChunk
5
- } from "../chunk-JFIHKE5E.js";
6
- import "../chunk-SFB47GDQ.js";
5
+ } from "../chunk-WFKR6OGI.js";
6
+ import "../chunk-RD5LX7MN.js";
7
7
  import "../chunk-XDFCUUT6.js";
8
8
  export {
9
9
  decodePngMetadata,
10
10
  encodePngMetadata,
11
11
  getTEXtChunk
12
12
  };
13
- //# sourceMappingURL=image-OXVYDFFE.js.map
13
+ //# sourceMappingURL=image-DSU2H6P5.js.map
@@ -9532,9 +9532,6 @@ body.excalidraw-cursor-resize * {
9532
9532
  .bg-white {
9533
9533
  background-color: var(--color-white);
9534
9534
  }
9535
- .bg-zinc-50 {
9536
- background-color: var(--color-zinc-50);
9537
- }
9538
9535
  .bg-zinc-100 {
9539
9536
  background-color: var(--color-zinc-100);
9540
9537
  }
@@ -10010,11 +10007,6 @@ body.excalidraw-cursor-resize * {
10010
10007
  background-color: var(--color-zinc-800);
10011
10008
  }
10012
10009
  }
10013
- .dark\:bg-zinc-900 {
10014
- &:is(.dark *) {
10015
- background-color: var(--color-zinc-900);
10016
- }
10017
- }
10018
10010
  .dark\:bg-zinc-950 {
10019
10011
  &:is(.dark *) {
10020
10012
  background-color: var(--color-zinc-950);
@@ -10267,6 +10259,393 @@ body.excalidraw-cursor-resize * {
10267
10259
  }
10268
10260
  }
10269
10261
 
10262
+ /* components/StockImagePanel.scss */
10263
+ .excalidraw .sip {
10264
+ position: fixed;
10265
+ left: 0;
10266
+ top: 0;
10267
+ height: 100vh;
10268
+ width: 320px;
10269
+ z-index: var(--zIndex-modal);
10270
+ pointer-events: all;
10271
+ overflow: hidden;
10272
+ font-family:
10273
+ "Assistant",
10274
+ system-ui,
10275
+ -apple-system,
10276
+ sans-serif;
10277
+ font-size: 14px;
10278
+ color: #1a1a1a;
10279
+ }
10280
+ .excalidraw .sip input[type=search],
10281
+ .excalidraw .sip input[type=text] {
10282
+ all: unset;
10283
+ box-sizing: border-box;
10284
+ }
10285
+ .excalidraw .sip button {
10286
+ all: unset;
10287
+ box-sizing: border-box;
10288
+ cursor: pointer;
10289
+ }
10290
+ .excalidraw .sip a {
10291
+ color: #6350dc;
10292
+ text-decoration: none;
10293
+ }
10294
+ .excalidraw .sip a:hover {
10295
+ text-decoration: underline;
10296
+ }
10297
+ .excalidraw .sip img {
10298
+ display: block;
10299
+ width: 100%;
10300
+ object-fit: cover;
10301
+ }
10302
+ .excalidraw .sip .sip-panel {
10303
+ display: flex;
10304
+ flex-direction: column;
10305
+ height: 100%;
10306
+ width: 100%;
10307
+ overflow: hidden;
10308
+ background: #f6f6f9;
10309
+ border-right: 1px solid rgba(0, 0, 0, 0.06);
10310
+ box-shadow: 2px 0 24px rgba(0, 0, 0, 0.07);
10311
+ animation: sip-slide-in 0.18s ease;
10312
+ }
10313
+ @keyframes sip-slide-in {
10314
+ from {
10315
+ transform: translateX(-100%);
10316
+ opacity: 0;
10317
+ }
10318
+ to {
10319
+ transform: translateX(0);
10320
+ opacity: 1;
10321
+ }
10322
+ }
10323
+ .excalidraw .sip .sip-header {
10324
+ display: flex;
10325
+ align-items: center;
10326
+ justify-content: space-between;
10327
+ padding: 0 12px;
10328
+ height: 52px;
10329
+ flex-shrink: 0;
10330
+ }
10331
+ .excalidraw .sip .sip-title {
10332
+ font-size: 16px;
10333
+ font-weight: 700;
10334
+ color: #1a1a1a;
10335
+ letter-spacing: -0.01em;
10336
+ }
10337
+ .excalidraw .sip .sip-icon-btn {
10338
+ display: flex;
10339
+ align-items: center;
10340
+ justify-content: center;
10341
+ width: 30px;
10342
+ height: 30px;
10343
+ border-radius: 8px;
10344
+ color: #999;
10345
+ transition: background 0.12s, color 0.12s;
10346
+ }
10347
+ .excalidraw .sip .sip-icon-btn:hover {
10348
+ background: rgba(0, 0, 0, 0.06);
10349
+ color: #333;
10350
+ }
10351
+ .excalidraw .sip .sip-tabs {
10352
+ display: flex;
10353
+ gap: 4px;
10354
+ margin: 0 12px 12px;
10355
+ padding: 3px;
10356
+ background: #e9e9ef;
10357
+ border-radius: 11px;
10358
+ flex-shrink: 0;
10359
+ }
10360
+ .excalidraw .sip .sip-tab {
10361
+ flex: 1;
10362
+ display: flex;
10363
+ align-items: center;
10364
+ justify-content: center;
10365
+ gap: 6px;
10366
+ height: 32px;
10367
+ border-radius: 8px;
10368
+ font-family: inherit;
10369
+ font-size: 13px;
10370
+ font-weight: 600;
10371
+ color: #8a8a93;
10372
+ transition:
10373
+ background 0.14s,
10374
+ color 0.14s,
10375
+ box-shadow 0.14s;
10376
+ white-space: nowrap;
10377
+ }
10378
+ .excalidraw .sip .sip-tab svg {
10379
+ color: #a5a5ad;
10380
+ transition: color 0.14s;
10381
+ }
10382
+ .excalidraw .sip .sip-tab:hover:not(.sip-tab--active):not(.sip-tab--disabled) {
10383
+ color: #5a5a63;
10384
+ }
10385
+ .excalidraw .sip .sip-tab--active {
10386
+ background: #fff;
10387
+ color: #1a1a1a;
10388
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
10389
+ }
10390
+ .excalidraw .sip .sip-tab--active svg {
10391
+ color: #6350dc;
10392
+ }
10393
+ .excalidraw .sip .sip-tab--disabled {
10394
+ cursor: default;
10395
+ opacity: 0.55;
10396
+ }
10397
+ .excalidraw .sip .sip-tab--disabled.sip-tab--active {
10398
+ opacity: 1;
10399
+ }
10400
+ .excalidraw .sip .sip-search-row {
10401
+ position: relative;
10402
+ margin: 0 12px 12px;
10403
+ flex-shrink: 0;
10404
+ }
10405
+ .excalidraw .sip .sip-search-row .sip-search-input {
10406
+ display: block;
10407
+ width: 100%;
10408
+ height: 40px;
10409
+ padding: 0 34px 0 36px;
10410
+ border-radius: 10px;
10411
+ border: 1px solid #e4e4ea;
10412
+ background: #fff;
10413
+ font-family: inherit;
10414
+ font-size: 13.5px;
10415
+ color: #1a1a1a;
10416
+ transition: border-color 0.14s, box-shadow 0.14s;
10417
+ }
10418
+ .excalidraw .sip .sip-search-row .sip-search-input::placeholder {
10419
+ color: #aeaeb6;
10420
+ }
10421
+ .excalidraw .sip .sip-search-row .sip-search-input::-webkit-search-cancel-button {
10422
+ -webkit-appearance: none;
10423
+ appearance: none;
10424
+ }
10425
+ .excalidraw .sip .sip-search-row .sip-search-input:focus {
10426
+ border-color: #6350dc;
10427
+ box-shadow: 0 0 0 3px rgba(99, 80, 220, 0.12);
10428
+ }
10429
+ .excalidraw .sip .sip-search-row .sip-search-input:disabled {
10430
+ opacity: 0.5;
10431
+ }
10432
+ .excalidraw .sip .sip-search-row .sip-search-icon {
10433
+ position: absolute;
10434
+ left: 13px;
10435
+ top: 50%;
10436
+ transform: translateY(-50%);
10437
+ color: #aeaeb6;
10438
+ pointer-events: none;
10439
+ }
10440
+ .excalidraw .sip .sip-search-row .sip-search-clear {
10441
+ position: absolute;
10442
+ right: 11px;
10443
+ top: 50%;
10444
+ transform: translateY(-50%);
10445
+ display: flex;
10446
+ align-items: center;
10447
+ justify-content: center;
10448
+ width: 18px;
10449
+ height: 18px;
10450
+ border-radius: 50%;
10451
+ background: #cfcfd6;
10452
+ color: #fff;
10453
+ transition: background 0.12s;
10454
+ }
10455
+ .excalidraw .sip .sip-search-row .sip-search-clear:hover {
10456
+ background: #aeaeb6;
10457
+ }
10458
+ .excalidraw .sip .sip-categories {
10459
+ display: flex;
10460
+ gap: 7px;
10461
+ padding: 0 12px 12px;
10462
+ overflow-x: auto;
10463
+ flex-shrink: 0;
10464
+ scrollbar-width: none;
10465
+ }
10466
+ .excalidraw .sip .sip-categories::-webkit-scrollbar {
10467
+ display: none;
10468
+ }
10469
+ .excalidraw .sip .sip-chip {
10470
+ display: flex;
10471
+ align-items: center;
10472
+ padding: 6px 14px;
10473
+ border-radius: 18px;
10474
+ border: 1px solid #e7e7ed;
10475
+ font-family: inherit;
10476
+ font-size: 12.5px;
10477
+ font-weight: 500;
10478
+ color: #5a5a63;
10479
+ background: #fff;
10480
+ transition:
10481
+ background 0.12s,
10482
+ border-color 0.12s,
10483
+ color 0.12s;
10484
+ white-space: nowrap;
10485
+ }
10486
+ .excalidraw .sip .sip-chip:hover {
10487
+ background: rgba(99, 80, 220, 0.06);
10488
+ border-color: rgba(99, 80, 220, 0.3);
10489
+ color: #6350dc;
10490
+ }
10491
+ .excalidraw .sip .sip-chip--active {
10492
+ background: #6350dc;
10493
+ border-color: #6350dc;
10494
+ color: #fff;
10495
+ }
10496
+ .excalidraw .sip .sip-chip--active:hover {
10497
+ background: #5847c4;
10498
+ border-color: #5847c4;
10499
+ color: #fff;
10500
+ }
10501
+ .excalidraw .sip .sip-error-banner {
10502
+ margin: 0 12px 10px;
10503
+ padding: 8px 11px;
10504
+ background: #fff1f1;
10505
+ border: 1px solid #fbd0d0;
10506
+ border-radius: 9px;
10507
+ font-size: 12px;
10508
+ color: #c0392b;
10509
+ flex-shrink: 0;
10510
+ }
10511
+ .excalidraw .sip .sip-loading {
10512
+ display: flex;
10513
+ justify-content: center;
10514
+ padding: 48px 0;
10515
+ color: #ccc;
10516
+ }
10517
+ .excalidraw .sip .sip-spinner {
10518
+ animation: sip-spin 0.8s linear infinite;
10519
+ }
10520
+ @keyframes sip-spin {
10521
+ from {
10522
+ transform: rotate(0deg);
10523
+ }
10524
+ to {
10525
+ transform: rotate(360deg);
10526
+ }
10527
+ }
10528
+ .excalidraw .sip .sip-grid {
10529
+ display: grid;
10530
+ grid-template-columns: 1fr 1fr;
10531
+ grid-auto-rows: max-content;
10532
+ column-gap: 8px;
10533
+ row-gap: 8px;
10534
+ padding: 4px 12px;
10535
+ overflow-y: auto;
10536
+ flex: 1;
10537
+ align-items: start;
10538
+ }
10539
+ .excalidraw .sip .sip-grid::-webkit-scrollbar {
10540
+ width: 6px;
10541
+ }
10542
+ .excalidraw .sip .sip-grid::-webkit-scrollbar-thumb {
10543
+ background: rgba(0, 0, 0, 0.14);
10544
+ border-radius: 3px;
10545
+ }
10546
+ .excalidraw .sip .sip-card {
10547
+ position: relative;
10548
+ width: 100%;
10549
+ overflow: hidden;
10550
+ border-radius: 10px;
10551
+ background: #ededf1;
10552
+ transition: transform 0.14s ease, box-shadow 0.14s ease;
10553
+ display: block;
10554
+ }
10555
+ .excalidraw .sip .sip-card::before {
10556
+ content: "";
10557
+ display: block;
10558
+ padding-top: 75%;
10559
+ }
10560
+ .excalidraw .sip .sip-card img {
10561
+ position: absolute;
10562
+ inset: 0;
10563
+ width: 100%;
10564
+ height: 100%;
10565
+ object-fit: cover;
10566
+ transition: transform 0.2s ease;
10567
+ }
10568
+ .excalidraw .sip .sip-card:hover:not(:disabled) {
10569
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
10570
+ }
10571
+ .excalidraw .sip .sip-card:hover:not(:disabled) img {
10572
+ transform: scale(1.05);
10573
+ }
10574
+ .excalidraw .sip .sip-card:disabled {
10575
+ cursor: not-allowed;
10576
+ }
10577
+ .excalidraw .sip .sip-card--error {
10578
+ outline: 2px solid #e74c3c;
10579
+ outline-offset: -2px;
10580
+ }
10581
+ .excalidraw .sip .sip-card--inserting {
10582
+ opacity: 0.6;
10583
+ }
10584
+ .excalidraw .sip .sip-card-overlay {
10585
+ position: absolute;
10586
+ inset: 0;
10587
+ display: flex;
10588
+ align-items: center;
10589
+ justify-content: center;
10590
+ background: rgba(255, 255, 255, 0.6);
10591
+ color: #6350dc;
10592
+ }
10593
+ .excalidraw .sip .sip-card-error-label {
10594
+ position: absolute;
10595
+ bottom: 0;
10596
+ left: 0;
10597
+ right: 0;
10598
+ padding: 4px 6px;
10599
+ background: rgba(231, 76, 60, 0.9);
10600
+ color: #fff;
10601
+ font-size: 10px;
10602
+ text-align: center;
10603
+ }
10604
+ .excalidraw .sip .sip-empty {
10605
+ text-align: center;
10606
+ padding: 36px 16px;
10607
+ color: #aeaeb6;
10608
+ font-size: 13px;
10609
+ }
10610
+ .excalidraw .sip .sip-load-more-row {
10611
+ padding: 12px;
10612
+ flex-shrink: 0;
10613
+ }
10614
+ .excalidraw .sip .sip-load-more {
10615
+ display: block;
10616
+ width: 100%;
10617
+ padding: 9px 0;
10618
+ background: #fff;
10619
+ border: 1px solid #e4e4ea;
10620
+ border-radius: 10px;
10621
+ font-family: inherit;
10622
+ font-size: 13px;
10623
+ font-weight: 600;
10624
+ color: #5a5a63;
10625
+ text-align: center;
10626
+ transition: background 0.12s, border-color 0.12s;
10627
+ }
10628
+ .excalidraw .sip .sip-load-more:hover {
10629
+ background: #f1f1f5;
10630
+ border-color: #d8d8df;
10631
+ }
10632
+ .excalidraw .sip .sip-loading-more {
10633
+ display: flex;
10634
+ align-items: center;
10635
+ justify-content: center;
10636
+ padding: 9px 0;
10637
+ color: #ccc;
10638
+ }
10639
+ .excalidraw .sip .sip-attribution {
10640
+ padding: 10px 12px 14px;
10641
+ font-size: 11.5px;
10642
+ color: #9a9aa2;
10643
+ flex-shrink: 0;
10644
+ text-align: left;
10645
+ border-top: 1px solid rgba(0, 0, 0, 0.05);
10646
+ margin-top: 8px;
10647
+ }
10648
+
10270
10649
  /* components/AIChatPanel.scss */
10271
10650
  .excalidraw .acp {
10272
10651
  position: fixed;
@@ -11141,14 +11520,14 @@ body.excalidraw-cursor-resize * {
11141
11520
  gap: 4px;
11142
11521
  padding: 4px 10px;
11143
11522
  border-radius: 12px;
11144
- background: rgba(255, 255, 255, 0.12);
11145
- border: 1px solid rgba(255, 255, 255, 0.1);
11523
+ background: rgba(0, 0, 0, 0.06);
11524
+ border: 1px solid rgba(0, 0, 0, 0.1);
11146
11525
  font-size: 11.5px;
11147
- color: rgba(255, 255, 255, 0.85);
11526
+ color: #444;
11148
11527
  }
11149
11528
  .excalidraw .acp .acp-msg-att-pill svg {
11150
11529
  flex-shrink: 0;
11151
- color: rgba(255, 255, 255, 0.6);
11530
+ color: #777;
11152
11531
  }
11153
11532
  .excalidraw .acp .acp-ref-area {
11154
11533
  padding: 0 12px 4px;