@puckeditor/plugin-ai 0.1.0-canary.9761de95 → 0.1.0-canary.9ab34cf9

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 +175 -55
  2. package/dist/index.js +2544 -2563
  3. package/dist/index.mjs +2539 -2558
  4. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -263,7 +263,7 @@ p {
263
263
  }
264
264
 
265
265
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Button/Button.module.css/#css-module-data */
266
- ._Button_1wyvm_1 {
266
+ ._Button_1fon5_1 {
267
267
  appearance: none;
268
268
  background: none;
269
269
  border: 1px solid transparent;
@@ -285,80 +285,80 @@ p {
285
285
  white-space: nowrap;
286
286
  margin: 0;
287
287
  }
288
- ._Button_1wyvm_1:hover,
289
- ._Button_1wyvm_1:active {
288
+ ._Button_1fon5_1:hover,
289
+ ._Button_1fon5_1:active {
290
290
  transition: none;
291
291
  }
292
- ._Button--medium_1wyvm_29 {
292
+ ._Button--medium_1fon5_29 {
293
293
  min-height: 34px;
294
294
  padding-bottom: 7px;
295
295
  padding-left: 19px;
296
296
  padding-right: 19px;
297
297
  padding-top: 7px;
298
298
  }
299
- ._Button--large_1wyvm_37 {
299
+ ._Button--large_1fon5_37 {
300
300
  padding-bottom: 11px;
301
301
  padding-left: 19px;
302
302
  padding-right: 19px;
303
303
  padding-top: 11px;
304
304
  }
305
- ._Button-icon_1wyvm_44 {
305
+ ._Button-icon_1fon5_44 {
306
306
  margin-top: 2px;
307
307
  }
308
- ._Button--primary_1wyvm_48 {
308
+ ._Button--primary_1fon5_48 {
309
309
  background: var(--puck-color-azure-04);
310
310
  }
311
- ._Button_1wyvm_1:focus-visible {
311
+ ._Button_1fon5_1:focus-visible {
312
312
  outline: 2px solid var(--puck-color-azure-05);
313
313
  outline-offset: 2px;
314
314
  }
315
315
  @media (hover: hover) and (pointer: fine) {
316
- ._Button--primary_1wyvm_48:hover {
316
+ ._Button--primary_1fon5_48:hover {
317
317
  background-color: var(--puck-color-azure-03);
318
318
  }
319
319
  }
320
- ._Button--primary_1wyvm_48:active {
320
+ ._Button--primary_1fon5_48:active {
321
321
  background-color: var(--puck-color-azure-02);
322
322
  }
323
- ._Button--secondary_1wyvm_67 {
323
+ ._Button--secondary_1fon5_67 {
324
324
  border: 1px solid currentColor;
325
325
  color: currentColor;
326
326
  }
327
327
  @media (hover: hover) and (pointer: fine) {
328
- ._Button--secondary_1wyvm_67:hover {
328
+ ._Button--secondary_1fon5_67:hover {
329
329
  background-color: var(--puck-color-azure-12);
330
330
  color: var(--puck-color-black);
331
331
  }
332
332
  }
333
- ._Button--secondary_1wyvm_67:active {
333
+ ._Button--secondary_1fon5_67:active {
334
334
  background-color: var(--puck-color-azure-11);
335
335
  color: var(--puck-color-black);
336
336
  }
337
- ._Button--danger_1wyvm_84 {
337
+ ._Button--danger_1fon5_84 {
338
338
  background: var(--puck-color-red-04);
339
339
  }
340
340
  @media (hover: hover) and (pointer: fine) {
341
- ._Button--danger_1wyvm_84:hover {
341
+ ._Button--danger_1fon5_84:hover {
342
342
  background-color: var(--puck-color-red-03);
343
343
  }
344
344
  }
345
- ._Button--danger_1wyvm_84:active {
345
+ ._Button--danger_1fon5_84:active {
346
346
  background-color: var(--puck-color-red-02);
347
347
  }
348
- ._Button--flush_1wyvm_98 {
348
+ ._Button--flush_1fon5_98 {
349
349
  border-radius: 0;
350
350
  }
351
- ._Button--disabled_1wyvm_102,
352
- ._Button--disabled_1wyvm_102:hover {
351
+ ._Button--disabled_1fon5_102,
352
+ ._Button--disabled_1fon5_102:hover {
353
353
  background-color: var(--puck-color-grey-09);
354
- color: var(--puck-color-grey-03);
354
+ color: var(--puck-color-grey-05);
355
355
  cursor: not-allowed;
356
356
  }
357
- ._Button--fullWidth_1wyvm_109 {
357
+ ._Button--fullWidth_1fon5_109 {
358
358
  justify-content: center;
359
359
  width: 100%;
360
360
  }
361
- ._Button-spinner_1wyvm_114 {
361
+ ._Button-spinner_1fon5_114 {
362
362
  padding-left: 8px;
363
363
  }
364
364
 
@@ -526,6 +526,126 @@ p {
526
526
  color: var(--puck-color-azure-04);
527
527
  }
528
528
 
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
+
529
649
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/IconButton/IconButton.module.css/#css-module-data */
530
650
  ._IconButton_thegm_1 {
531
651
  align-items: center;
@@ -644,13 +764,13 @@ p {
644
764
  }
645
765
 
646
766
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Page/Page.module.css/#css-module-data */
647
- ._Page_1ajs1_1 {
767
+ ._Page_nkzj9_1 {
648
768
  display: flex;
649
769
  flex-direction: column;
650
770
  height: 100%;
651
771
  overflow: hidden;
652
772
  }
653
- ._Page-masthead_1ajs1_8 {
773
+ ._Page-masthead_nkzj9_8 {
654
774
  align-items: center;
655
775
  display: flex;
656
776
  gap: 16px;
@@ -658,47 +778,46 @@ p {
658
778
  box-sizing: border-box;
659
779
  border-bottom: 1px solid var(--puck-color-grey-10);
660
780
  min-height: 64px;
661
- overflow-x: auto;
662
781
  }
663
- ._Page-crumbs_1ajs1_19 {
782
+ ._Page-crumbs_nkzj9_18 {
664
783
  display: flex;
665
784
  gap: 32px;
666
785
  }
667
- ._Page-crumb_1ajs1_19 {
786
+ ._Page-crumb_nkzj9_18 {
668
787
  color: var(--puck-color-grey-05);
669
788
  position: relative;
670
789
  white-space: nowrap;
671
790
  }
672
- ._Page-crumbLink_1ajs1_30 {
791
+ ._Page-crumbLink_nkzj9_29 {
673
792
  color: var(--puck-color-grey-05);
674
793
  text-decoration: none;
675
794
  }
676
- ._Page-crumbLink_1ajs1_30:hover {
795
+ ._Page-crumbLink_nkzj9_29:hover {
677
796
  color: var(--puck-color-azure-04);
678
797
  }
679
- ._Page-crumb_1ajs1_19:last-of-type {
798
+ ._Page-crumb_nkzj9_18:last-of-type {
680
799
  color: var(--puck-color-grey-01);
681
800
  font-weight: 600;
682
801
  }
683
- ._Page-crumb_1ajs1_19::before {
802
+ ._Page-crumb_nkzj9_18::before {
684
803
  position: absolute;
685
804
  content: "/";
686
805
  left: -19px;
687
806
  color: var(--puck-color-grey-09);
688
807
  font-weight: 400;
689
808
  }
690
- ._Page-crumb_1ajs1_19:first-of-type::before {
809
+ ._Page-crumb_nkzj9_18:first-of-type::before {
691
810
  display: none;
692
811
  }
693
- ._Page-crumb_1ajs1_19 {
812
+ ._Page-crumb_nkzj9_18 {
694
813
  color: var(--puck-color-grey-05);
695
814
  position: relative;
696
815
  text-decoration: none;
697
816
  }
698
- ._Page-actions_1ajs1_62 {
817
+ ._Page-actions_nkzj9_61 {
699
818
  margin-left: auto;
700
819
  }
701
- ._Page-footer_1ajs1_66 {
820
+ ._Page-footer_nkzj9_65 {
702
821
  border-top: 1px solid var(--puck-color-grey-10);
703
822
  padding: 16px 24px;
704
823
  }
@@ -813,26 +932,26 @@ p {
813
932
  }
814
933
 
815
934
  /* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Table/Table.module.css/#css-module-data */
816
- ._Table_1bbu5_1 {
935
+ ._Table_o345u_1 {
817
936
  color: black;
818
937
  display: flex;
819
938
  flex-direction: column;
820
939
  flex-grow: 1;
821
940
  overflow-y: auto;
822
941
  }
823
- ._Table-filters_1bbu5_9 {
942
+ ._Table-filters_o345u_9 {
824
943
  margin: 16px;
825
944
  }
826
- ._Table-inner_1bbu5_13 {
945
+ ._Table-inner_o345u_13 {
827
946
  text-align: left;
828
947
  }
829
- ._Table-table_1bbu5_17 {
948
+ ._Table-table_o345u_17 {
830
949
  color: var(--puck-color-grey-02);
831
950
  font-size: var(--puck-font-size-xxs);
832
951
  position: relative;
833
952
  width: 100%;
834
953
  }
835
- ._Table_1bbu5_1 thead {
954
+ ._Table_o345u_1 thead {
836
955
  background: white;
837
956
  font-size: var(--puck-font-size-xxs);
838
957
  position: sticky;
@@ -840,20 +959,20 @@ p {
840
959
  white-space: nowrap;
841
960
  z-index: 1;
842
961
  }
843
- ._Table_1bbu5_1 thead::after {
962
+ ._Table_o345u_1 thead::after {
844
963
  content: "";
845
964
  position: absolute;
846
965
  height: 1px;
847
966
  width: 100%;
848
967
  background-color: var(--puck-color-grey-10);
849
968
  }
850
- ._Table--hideHeader_1bbu5_41 thead {
969
+ ._Table--hideHeader_o345u_41 thead {
851
970
  display: none;
852
971
  }
853
- ._Table_1bbu5_1 tbody tr {
972
+ ._Table_o345u_1 tbody tr {
854
973
  z-index: 0;
855
974
  }
856
- ._Table_1bbu5_1 th {
975
+ ._Table_o345u_1 th {
857
976
  background: var(--puck-color-grey-12);
858
977
  font-weight: 400;
859
978
  padding-left: 24px;
@@ -862,12 +981,12 @@ p {
862
981
  padding-top: 12px;
863
982
  }
864
983
  @media (--standard-viewport) {
865
- ._Table_1bbu5_1 th {
984
+ ._Table_o345u_1 th {
866
985
  padding-left: 32px;
867
986
  padding-right: 32px;
868
987
  }
869
988
  }
870
- ._Table_1bbu5_1 td {
989
+ ._Table_o345u_1 td {
871
990
  border-bottom: 1px solid var(--puck-color-grey-10);
872
991
  padding-left: 24px;
873
992
  padding-right: 24px;
@@ -875,39 +994,40 @@ p {
875
994
  padding-top: 16px;
876
995
  white-space: nowrap;
877
996
  }
878
- ._Table_1bbu5_1 td:not(:first-of-type) {
997
+ ._Table_o345u_1 td:not(:first-of-type) {
879
998
  color: var(--puck-color-grey-05);
880
999
  }
881
- ._Table_1bbu5_1 tbody tr:last-of-type td {
1000
+ ._Table_o345u_1 tbody tr:last-of-type td {
882
1001
  border-bottom: none;
883
1002
  }
884
1003
  @media (--standard-viewport) {
885
- ._Table_1bbu5_1 td {
1004
+ ._Table_o345u_1 td {
886
1005
  padding-left: 32px;
887
1006
  padding-right: 32px;
888
1007
  }
889
1008
  }
890
- ._Table-footer_1bbu5_89 {
1009
+ ._Table-footer_o345u_89 {
891
1010
  border-top: 1px solid var(--puck-color-grey-09);
892
1011
  }
893
- ._Table--clickableRows_1bbu5_93 tbody tr:hover {
1012
+ ._Table--clickableRows_o345u_93 tbody tr:hover {
894
1013
  background: var(--puck-color-azure-12);
895
1014
  cursor: pointer;
896
1015
  }
897
- ._Table-placeholder_1bbu5_98 {
1016
+ ._Table-placeholder_o345u_98 {
898
1017
  align-items: center;
899
- color: var(--puck-color-grey-06);
1018
+ color: var(--puck-color-grey-04);
900
1019
  justify-content: center;
901
1020
  display: flex;
902
1021
  gap: 8px;
903
1022
  flex-direction: column;
904
1023
  width: 100%;
905
1024
  height: 100%;
1025
+ text-align: center;
906
1026
  }
907
- ._Table-loader_1bbu5_109 {
1027
+ ._Table-loader_o345u_110 {
908
1028
  padding: 16px 24px;
909
1029
  }
910
- ._TableRow--highlightRow_1bbu5_113 {
1030
+ ._TableRow--highlightRow_o345u_114 {
911
1031
  background-color: var(--puck-color-grey-12);
912
1032
  }
913
1033