@puckeditor/plugin-ai 0.1.0-canary.f87c29b6 → 0.1.0-canary.ff322ae0

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 (4) hide show
  1. package/dist/index.css +56 -195
  2. package/dist/index.js +2574 -2564
  3. package/dist/index.mjs +2569 -2559
  4. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -234,7 +234,7 @@ p {
234
234
  }
235
235
 
236
236
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Modal/Modal.module.css/#css-module-data */
237
- ._Modal-background_1bedq_1 {
237
+ ._Modal-background_874yi_1 {
238
238
  align-items: center;
239
239
  display: flex;
240
240
  justify-content: center;
@@ -248,26 +248,24 @@ p {
248
248
  opacity: 0;
249
249
  pointer-events: none;
250
250
  }
251
- ._Modal--visible_1bedq_16 ._Modal-background_1bedq_1 {
251
+ ._Modal--visible_874yi_16 ._Modal-background_874yi_1 {
252
252
  opacity: 1;
253
253
  transition: opacity ease 100ms;
254
254
  pointer-events: auto;
255
255
  }
256
- ._Modal-modal_1bedq_22 {
256
+ ._Modal-modal_874yi_22 {
257
257
  background: white;
258
- border-radius: 16px;
258
+ border-radius: 8px;
259
259
  display: block;
260
- max-height: calc(100vh - 24px);
261
- margin-inline: 24px;
262
- overflow: auto;
260
+ overflow: hidden;
263
261
  }
264
262
 
265
263
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Button/Button.module.css/#css-module-data */
266
- ._Button_1fon5_1 {
264
+ ._Button_w2ngt_1 {
267
265
  appearance: none;
268
266
  background: none;
269
267
  border: 1px solid transparent;
270
- border-radius: 8px;
268
+ border-radius: 4px;
271
269
  color: var(--puck-color-white);
272
270
  display: inline-flex;
273
271
  align-items: center;
@@ -285,80 +283,69 @@ p {
285
283
  white-space: nowrap;
286
284
  margin: 0;
287
285
  }
288
- ._Button_1fon5_1:hover,
289
- ._Button_1fon5_1:active {
286
+ ._Button_w2ngt_1:hover,
287
+ ._Button_w2ngt_1:active {
290
288
  transition: none;
291
289
  }
292
- ._Button--medium_1fon5_29 {
290
+ ._Button--medium_w2ngt_29 {
293
291
  min-height: 34px;
294
292
  padding-bottom: 7px;
295
293
  padding-left: 19px;
296
294
  padding-right: 19px;
297
295
  padding-top: 7px;
298
296
  }
299
- ._Button--large_1fon5_37 {
297
+ ._Button--large_w2ngt_37 {
300
298
  padding-bottom: 11px;
301
299
  padding-left: 19px;
302
300
  padding-right: 19px;
303
301
  padding-top: 11px;
304
302
  }
305
- ._Button-icon_1fon5_44 {
303
+ ._Button-icon_w2ngt_44 {
306
304
  margin-top: 2px;
307
305
  }
308
- ._Button--primary_1fon5_48 {
306
+ ._Button--primary_w2ngt_48 {
309
307
  background: var(--puck-color-azure-04);
310
308
  }
311
- ._Button_1fon5_1:focus-visible {
309
+ ._Button_w2ngt_1:focus-visible {
312
310
  outline: 2px solid var(--puck-color-azure-05);
313
311
  outline-offset: 2px;
314
312
  }
315
313
  @media (hover: hover) and (pointer: fine) {
316
- ._Button--primary_1fon5_48:hover {
314
+ ._Button--primary_w2ngt_48:hover {
317
315
  background-color: var(--puck-color-azure-03);
318
316
  }
319
317
  }
320
- ._Button--primary_1fon5_48:active {
318
+ ._Button--primary_w2ngt_48:active {
321
319
  background-color: var(--puck-color-azure-02);
322
320
  }
323
- ._Button--secondary_1fon5_67 {
321
+ ._Button--secondary_w2ngt_67 {
324
322
  border: 1px solid currentColor;
325
323
  color: currentColor;
326
324
  }
327
325
  @media (hover: hover) and (pointer: fine) {
328
- ._Button--secondary_1fon5_67:hover {
326
+ ._Button--secondary_w2ngt_67:hover {
329
327
  background-color: var(--puck-color-azure-12);
330
328
  color: var(--puck-color-black);
331
329
  }
332
330
  }
333
- ._Button--secondary_1fon5_67:active {
331
+ ._Button--secondary_w2ngt_67:active {
334
332
  background-color: var(--puck-color-azure-11);
335
333
  color: var(--puck-color-black);
336
334
  }
337
- ._Button--danger_1fon5_84 {
338
- background: var(--puck-color-red-04);
339
- }
340
- @media (hover: hover) and (pointer: fine) {
341
- ._Button--danger_1fon5_84:hover {
342
- background-color: var(--puck-color-red-03);
343
- }
344
- }
345
- ._Button--danger_1fon5_84:active {
346
- background-color: var(--puck-color-red-02);
347
- }
348
- ._Button--flush_1fon5_98 {
335
+ ._Button--flush_w2ngt_84 {
349
336
  border-radius: 0;
350
337
  }
351
- ._Button--disabled_1fon5_102,
352
- ._Button--disabled_1fon5_102:hover {
338
+ ._Button--disabled_w2ngt_88,
339
+ ._Button--disabled_w2ngt_88:hover {
353
340
  background-color: var(--puck-color-grey-09);
354
- color: var(--puck-color-grey-05);
341
+ color: var(--puck-color-grey-03);
355
342
  cursor: not-allowed;
356
343
  }
357
- ._Button--fullWidth_1fon5_109 {
344
+ ._Button--fullWidth_w2ngt_95 {
358
345
  justify-content: center;
359
346
  width: 100%;
360
347
  }
361
- ._Button-spinner_1fon5_114 {
348
+ ._Button-spinner_w2ngt_100 {
362
349
  padding-left: 8px;
363
350
  }
364
351
 
@@ -526,126 +513,6 @@ p {
526
513
  color: var(--puck-color-azure-04);
527
514
  }
528
515
 
529
- /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Code/Code.module.css/#css-module-data */
530
- ._Code_d4378_1 {
531
- border-radius: 8px;
532
- position: relative;
533
- overflow: hidden;
534
- border: 1px solid var(--puck-color-grey-09);
535
- }
536
- ._Code-body_d4378_8 pre {
537
- margin: 0;
538
- }
539
- ._Code-body_d4378_8 code {
540
- display: block;
541
- font-size: var(--puck-font-size-xs);
542
- padding-block: 16px;
543
- overflow-y: auto;
544
- }
545
- ._Code--light_d4378_19 {
546
- background-color: white;
547
- }
548
- ._Code-body_d4378_8 code > span {
549
- padding-left: 16px;
550
- padding-right: 64px;
551
- }
552
- @media (min-width: 768px) {
553
- ._Code-body_d4378_8 code > span {
554
- padding-right: 16px;
555
- }
556
- }
557
- ._Code-header_d4378_34 {
558
- align-items: center;
559
- background-color: #24292e;
560
- border-bottom: 1px solid var(--puck-color-grey-03);
561
- color: white;
562
- display: flex;
563
- padding-left: 12px;
564
- padding-right: 12px;
565
- overflow-y: auto;
566
- }
567
- ._Code--light_d4378_19 ._Code-header_d4378_34 {
568
- background-color: white;
569
- border-bottom-color: var(--puck-color-grey-09);
570
- color: var(--puck-color-grey-03);
571
- }
572
- ._Code-corner_d4378_51 {
573
- background-color: #24292e80;
574
- border-bottom-left-radius: 4px;
575
- color: white;
576
- display: none;
577
- position: absolute;
578
- padding: 12px 16px;
579
- pointer-events: none;
580
- right: 0;
581
- }
582
- ._Code_d4378_1:hover ._Code-corner_d4378_51 {
583
- display: flex;
584
- }
585
- ._Code--light_d4378_19 ._Code-corner_d4378_51 {
586
- background-color: #ffffff80;
587
- color: var(--puck-color-grey-03);
588
- }
589
- ._Code-actions_d4378_71 {
590
- margin-left: auto;
591
- pointer-events: auto;
592
- }
593
- ._Code--lineNumbers_d4378_76 ._Code-body_d4378_8 code {
594
- counter-reset: step;
595
- counter-increment: step 0;
596
- }
597
- ._Code--lineNumbers_d4378_76 ._Code-body_d4378_8 code .line::before {
598
- content: counter(step);
599
- counter-increment: step;
600
- width: 1rem;
601
- margin-right: 1.5rem;
602
- display: inline-block;
603
- text-align: right;
604
- color: rgba(115, 138, 148, 0.4);
605
- }
606
- ._Code-tabs_d4378_91 {
607
- display: flex;
608
- list-style: none;
609
- padding: 0;
610
- margin: 0;
611
- padding-right: 8px;
612
- }
613
- ._Tab_d4378_99 {
614
- border-block: 3px solid transparent;
615
- padding: 4px 2px;
616
- }
617
- ._Tab--isActive_d4378_104 {
618
- border-bottom-color: white;
619
- }
620
- ._Tab--light_d4378_108._Tab--isActive_d4378_104 {
621
- border-bottom-color: var(--puck-color-grey-03);
622
- }
623
- ._Tab-button_d4378_112 {
624
- background-color: transparent;
625
- border: none;
626
- border-radius: 8px;
627
- color: var(--puck-color-grey-08);
628
- font-size: var(--puck-font-size-xxs);
629
- padding: 8px;
630
- cursor: pointer;
631
- white-space: nowrap;
632
- }
633
- ._Tab--light_d4378_108 ._Tab-button_d4378_112 {
634
- color: var(--puck-color-grey-06);
635
- }
636
- ._Tab--isActive_d4378_104 ._Tab-button_d4378_112 {
637
- color: white;
638
- }
639
- ._Tab--light_d4378_108._Tab--isActive_d4378_104 ._Tab-button_d4378_112 {
640
- color: var(--puck-color-grey-01);
641
- }
642
- ._Tab-button_d4378_112:hover {
643
- background: var(--puck-color-grey-03);
644
- }
645
- ._Tab--light_d4378_108 ._Tab-button_d4378_112:hover {
646
- background: var(--puck-color-grey-11);
647
- }
648
-
649
516
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/IconButton/IconButton.module.css/#css-module-data */
650
517
  ._IconButton_thegm_1 {
651
518
  align-items: center;
@@ -764,13 +631,13 @@ p {
764
631
  }
765
632
 
766
633
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Page/Page.module.css/#css-module-data */
767
- ._Page_nkzj9_1 {
634
+ ._Page_1ajs1_1 {
768
635
  display: flex;
769
636
  flex-direction: column;
770
637
  height: 100%;
771
638
  overflow: hidden;
772
639
  }
773
- ._Page-masthead_nkzj9_8 {
640
+ ._Page-masthead_1ajs1_8 {
774
641
  align-items: center;
775
642
  display: flex;
776
643
  gap: 16px;
@@ -778,46 +645,47 @@ p {
778
645
  box-sizing: border-box;
779
646
  border-bottom: 1px solid var(--puck-color-grey-10);
780
647
  min-height: 64px;
648
+ overflow-x: auto;
781
649
  }
782
- ._Page-crumbs_nkzj9_18 {
650
+ ._Page-crumbs_1ajs1_19 {
783
651
  display: flex;
784
652
  gap: 32px;
785
653
  }
786
- ._Page-crumb_nkzj9_18 {
654
+ ._Page-crumb_1ajs1_19 {
787
655
  color: var(--puck-color-grey-05);
788
656
  position: relative;
789
657
  white-space: nowrap;
790
658
  }
791
- ._Page-crumbLink_nkzj9_29 {
659
+ ._Page-crumbLink_1ajs1_30 {
792
660
  color: var(--puck-color-grey-05);
793
661
  text-decoration: none;
794
662
  }
795
- ._Page-crumbLink_nkzj9_29:hover {
663
+ ._Page-crumbLink_1ajs1_30:hover {
796
664
  color: var(--puck-color-azure-04);
797
665
  }
798
- ._Page-crumb_nkzj9_18:last-of-type {
666
+ ._Page-crumb_1ajs1_19:last-of-type {
799
667
  color: var(--puck-color-grey-01);
800
668
  font-weight: 600;
801
669
  }
802
- ._Page-crumb_nkzj9_18::before {
670
+ ._Page-crumb_1ajs1_19::before {
803
671
  position: absolute;
804
672
  content: "/";
805
673
  left: -19px;
806
674
  color: var(--puck-color-grey-09);
807
675
  font-weight: 400;
808
676
  }
809
- ._Page-crumb_nkzj9_18:first-of-type::before {
677
+ ._Page-crumb_1ajs1_19:first-of-type::before {
810
678
  display: none;
811
679
  }
812
- ._Page-crumb_nkzj9_18 {
680
+ ._Page-crumb_1ajs1_19 {
813
681
  color: var(--puck-color-grey-05);
814
682
  position: relative;
815
683
  text-decoration: none;
816
684
  }
817
- ._Page-actions_nkzj9_61 {
685
+ ._Page-actions_1ajs1_62 {
818
686
  margin-left: auto;
819
687
  }
820
- ._Page-footer_nkzj9_65 {
688
+ ._Page-footer_1ajs1_66 {
821
689
  border-top: 1px solid var(--puck-color-grey-10);
822
690
  padding: 16px 24px;
823
691
  }
@@ -932,26 +800,26 @@ p {
932
800
  }
933
801
 
934
802
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Table/Table.module.css/#css-module-data */
935
- ._Table_o345u_1 {
803
+ ._Table_1w0os_1 {
936
804
  color: black;
937
805
  display: flex;
938
806
  flex-direction: column;
939
807
  flex-grow: 1;
940
808
  overflow-y: auto;
941
809
  }
942
- ._Table-filters_o345u_9 {
810
+ ._Table-filters_1w0os_9 {
943
811
  margin: 16px;
944
812
  }
945
- ._Table-inner_o345u_13 {
813
+ ._Table-inner_1w0os_13 {
946
814
  text-align: left;
947
815
  }
948
- ._Table-table_o345u_17 {
816
+ ._Table-table_1w0os_17 {
949
817
  color: var(--puck-color-grey-02);
950
818
  font-size: var(--puck-font-size-xxs);
951
819
  position: relative;
952
820
  width: 100%;
953
821
  }
954
- ._Table_o345u_1 thead {
822
+ ._Table_1w0os_1 thead {
955
823
  background: white;
956
824
  font-size: var(--puck-font-size-xxs);
957
825
  position: sticky;
@@ -959,20 +827,17 @@ p {
959
827
  white-space: nowrap;
960
828
  z-index: 1;
961
829
  }
962
- ._Table_o345u_1 thead::after {
830
+ ._Table_1w0os_1 thead::after {
963
831
  content: "";
964
832
  position: absolute;
965
833
  height: 1px;
966
834
  width: 100%;
967
835
  background-color: var(--puck-color-grey-10);
968
836
  }
969
- ._Table--hideHeader_o345u_41 thead {
970
- display: none;
971
- }
972
- ._Table_o345u_1 tbody tr {
837
+ ._Table_1w0os_1 tbody tr {
973
838
  z-index: 0;
974
839
  }
975
- ._Table_o345u_1 th {
840
+ ._Table_1w0os_1 th {
976
841
  background: var(--puck-color-grey-12);
977
842
  font-weight: 400;
978
843
  padding-left: 24px;
@@ -981,12 +846,12 @@ p {
981
846
  padding-top: 12px;
982
847
  }
983
848
  @media (--standard-viewport) {
984
- ._Table_o345u_1 th {
849
+ ._Table_1w0os_1 th {
985
850
  padding-left: 32px;
986
851
  padding-right: 32px;
987
852
  }
988
853
  }
989
- ._Table_o345u_1 td {
854
+ ._Table_1w0os_1 td {
990
855
  border-bottom: 1px solid var(--puck-color-grey-10);
991
856
  padding-left: 24px;
992
857
  padding-right: 24px;
@@ -994,42 +859,38 @@ p {
994
859
  padding-top: 16px;
995
860
  white-space: nowrap;
996
861
  }
997
- ._Table_o345u_1 td:not(:first-of-type) {
862
+ ._Table_1w0os_1 td:not(:first-of-type) {
998
863
  color: var(--puck-color-grey-05);
999
864
  }
1000
- ._Table_o345u_1 tbody tr:last-of-type td {
865
+ ._Table_1w0os_1 tbody tr:last-of-type td {
1001
866
  border-bottom: none;
1002
867
  }
1003
868
  @media (--standard-viewport) {
1004
- ._Table_o345u_1 td {
869
+ ._Table_1w0os_1 td {
1005
870
  padding-left: 32px;
1006
871
  padding-right: 32px;
1007
872
  }
1008
873
  }
1009
- ._Table-footer_o345u_89 {
874
+ ._Table-footer_1w0os_85 {
1010
875
  border-top: 1px solid var(--puck-color-grey-09);
1011
876
  }
1012
- ._Table--clickableRows_o345u_93 tbody tr:hover {
877
+ ._Table--clickableRows_1w0os_89 tbody tr:hover {
1013
878
  background: var(--puck-color-azure-12);
1014
879
  cursor: pointer;
1015
880
  }
1016
- ._Table-placeholder_o345u_98 {
881
+ ._Table-placeholder_1w0os_94 {
1017
882
  align-items: center;
1018
- color: var(--puck-color-grey-04);
883
+ color: var(--puck-color-grey-06);
1019
884
  justify-content: center;
1020
885
  display: flex;
1021
886
  gap: 8px;
1022
887
  flex-direction: column;
1023
888
  width: 100%;
1024
889
  height: 100%;
1025
- text-align: center;
1026
890
  }
1027
- ._Table-loader_o345u_110 {
891
+ ._Table-loader_1w0os_105 {
1028
892
  padding: 16px 24px;
1029
893
  }
1030
- ._TableRow--highlightRow_o345u_114 {
1031
- background-color: var(--puck-color-grey-12);
1032
- }
1033
894
 
1034
895
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css/#css-module-data */
1035
896
  ._VerticalSpace_1tjaw_1 {