@soppiya/app-bridge 1.0.8 → 1.1.1
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.
- package/dist/components/articles-picker/api/query.d.ts +8 -0
- package/dist/components/articles-picker/api/query.js +22 -0
- package/dist/components/articles-picker/index.d.ts +1 -0
- package/dist/components/articles-picker/index.js +2 -0
- package/dist/components/articles-picker/model/useArticles.d.ts +30 -0
- package/dist/components/articles-picker/model/useArticles.js +46 -0
- package/dist/components/articles-picker/ui/ArticlesPicker.d.ts +9 -0
- package/dist/components/articles-picker/ui/ArticlesPicker.js +107 -0
- package/dist/components/articles-picker/ui/ProductPicker.stories.d.ts +17 -0
- package/dist/components/articles-picker/ui/ProductPicker.stories.js +13 -0
- package/dist/components/blogs-picker/api/query.d.ts +8 -0
- package/dist/components/blogs-picker/api/query.js +22 -0
- package/dist/components/blogs-picker/index.d.ts +1 -0
- package/dist/components/blogs-picker/index.js +2 -0
- package/dist/components/blogs-picker/model/useBlogs.d.ts +30 -0
- package/dist/components/blogs-picker/model/useBlogs.js +46 -0
- package/dist/components/blogs-picker/ui/BlogsPicker.d.ts +9 -0
- package/dist/components/blogs-picker/ui/BlogsPicker.js +107 -0
- package/dist/components/blogs-picker/ui/BlogsPicker.stories.d.ts +17 -0
- package/dist/components/blogs-picker/ui/BlogsPicker.stories.js +13 -0
- package/dist/components/collections-pciker/api/query.d.ts +5 -0
- package/dist/components/collections-pciker/api/query.js +22 -0
- package/dist/components/collections-pciker/index.d.ts +1 -0
- package/dist/components/collections-pciker/index.js +2 -0
- package/dist/components/collections-pciker/model/useCollections.d.ts +29 -0
- package/dist/components/collections-pciker/model/useCollections.js +32 -0
- package/dist/components/collections-pciker/ui/CollectionPicker.d.ts +9 -0
- package/dist/components/collections-pciker/ui/CollectionPicker.js +105 -0
- package/dist/components/collections-pciker/ui/CollectionPicker.stories.d.ts +17 -0
- package/dist/components/collections-pciker/ui/CollectionPicker.stories.js +13 -0
- package/dist/components/index.d.ts +9 -3
- package/dist/components/index.js +9 -4
- package/dist/components/meta-data/api/query.d.ts +4 -0
- package/dist/components/meta-data/api/query.js +14 -0
- package/dist/components/meta-data/index.d.ts +1 -0
- package/dist/components/meta-data/index.js +2 -0
- package/dist/components/meta-data/model/meta.types.d.ts +7 -0
- package/dist/components/meta-data/model/meta.types.js +33 -0
- package/dist/components/meta-data/model/schema.d.ts +0 -0
- package/dist/components/meta-data/model/schema.js +0 -0
- package/dist/components/meta-data/model/useGetMetaFields.d.ts +12 -0
- package/dist/components/meta-data/model/useGetMetaFields.js +18 -0
- package/dist/components/meta-data/ui/ArticleRefMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/ArticleRefMetaField.js +37 -0
- package/dist/components/meta-data/ui/BlogRefMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/BlogRefMetaField.js +37 -0
- package/dist/components/meta-data/ui/BooleanMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/BooleanMetaField.js +27 -0
- package/dist/components/meta-data/ui/CollectionRefMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/CollectionRefMetaField.js +36 -0
- package/dist/components/meta-data/ui/ColorMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/ColorMetaField.js +17 -0
- package/dist/components/meta-data/ui/DateAndTimeMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/DateAndTimeMetaField.js +34 -0
- package/dist/components/meta-data/ui/DateMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/DateMetaField.js +33 -0
- package/dist/components/meta-data/ui/FloatMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/FloatMetaField.js +23 -0
- package/dist/components/meta-data/ui/MetaData.d.ts +13 -0
- package/dist/components/meta-data/ui/MetaData.js +66 -0
- package/dist/components/meta-data/ui/MetaData.stories.d.ts +10 -0
- package/dist/components/meta-data/ui/MetaData.stories.js +136 -0
- package/dist/components/meta-data/ui/MetaDataItem.d.ts +16 -0
- package/dist/components/meta-data/ui/MetaDataItem.js +256 -0
- package/dist/components/meta-data/ui/MetaDataTypePopup.d.ts +11 -0
- package/dist/components/meta-data/ui/MetaDataTypePopup.js +70 -0
- package/dist/components/meta-data/ui/MultilineTextMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/MultilineTextMetaField.js +15 -0
- package/dist/components/meta-data/ui/NumberMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/NumberMetaField.js +19 -0
- package/dist/components/meta-data/ui/PageRefMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/PageRefMetaField.js +37 -0
- package/dist/components/meta-data/ui/ProductRefMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/ProductRefMetaField.js +37 -0
- package/dist/components/meta-data/ui/SingleLineTextMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/SingleLineTextMetaField.js +18 -0
- package/dist/components/meta-data/ui/VariantRefMetaField.d.ts +3 -0
- package/dist/components/meta-data/ui/VariantRefMetaField.js +45 -0
- package/dist/components/pages-picker/api/query.d.ts +8 -0
- package/dist/components/pages-picker/api/query.js +22 -0
- package/dist/components/pages-picker/index.d.ts +1 -0
- package/dist/components/pages-picker/index.js +2 -0
- package/dist/components/pages-picker/model/usePages.d.ts +30 -0
- package/dist/components/pages-picker/model/usePages.js +46 -0
- package/dist/components/pages-picker/ui/PagesPicker.d.ts +9 -0
- package/dist/components/pages-picker/ui/PagesPicker.js +104 -0
- package/dist/components/pages-picker/ui/PagesPicker.stories.d.ts +17 -0
- package/dist/components/pages-picker/ui/PagesPicker.stories.js +13 -0
- package/dist/components/products-picker/api/query.d.ts +8 -0
- package/dist/components/products-picker/api/query.js +24 -0
- package/dist/components/products-picker/index.d.ts +1 -0
- package/dist/components/products-picker/index.js +2 -0
- package/dist/components/products-picker/model/useProducts.d.ts +30 -0
- package/dist/components/products-picker/model/useProducts.js +46 -0
- package/dist/components/products-picker/ui/ProductPicker.d.ts +9 -0
- package/dist/components/products-picker/ui/ProductPicker.js +107 -0
- package/dist/components/products-picker/ui/ProductsPicker.stories.d.ts +17 -0
- package/dist/components/products-picker/ui/ProductsPicker.stories.js +13 -0
- package/dist/components/variants-picker/api/query.d.ts +1 -0
- package/dist/components/variants-picker/api/query.js +2 -2
- package/dist/components/variants-picker/model/useVariants.d.ts +3 -0
- package/dist/components/variants-picker/model/useVariants.js +6 -3
- package/dist/components/variants-picker/ui/VariantsPicker.d.ts +2 -1
- package/dist/components/variants-picker/ui/VariantsPicker.js +3 -2
- package/dist/components/variants-picker/ui/VariantsPicker.stories.d.ts +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/shared/graphql/gql.d.ts +32 -2
- package/dist/shared/graphql/gql.js +8 -2
- package/dist/shared/graphql/graphql.d.ts +2296 -100
- package/dist/shared/graphql/graphql.js +2382 -297
- package/dist/shared/loading/Loading.d.ts +2 -0
- package/dist/shared/loading/Loading.js +11 -0
- package/dist/shared/loading/index.d.ts +1 -0
- package/dist/shared/loading/index.js +2 -0
- package/dist/styles.css +118 -0
- package/package.json +4 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { BlockStack, Spinner } from "@soppiya/elementus";
|
|
3
|
+
const Loading = ()=>/*#__PURE__*/ jsx(BlockStack, {
|
|
4
|
+
justifyContent: "center",
|
|
5
|
+
alignItems: "center",
|
|
6
|
+
children: /*#__PURE__*/ jsx(Spinner, {
|
|
7
|
+
size: "md"
|
|
8
|
+
})
|
|
9
|
+
});
|
|
10
|
+
const loading_Loading = Loading;
|
|
11
|
+
export { loading_Loading as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Loading } from "./Loading";
|
package/dist/styles.css
CHANGED
|
@@ -295,6 +295,10 @@
|
|
|
295
295
|
@layer components;
|
|
296
296
|
|
|
297
297
|
@layer utilities {
|
|
298
|
+
.invisible {
|
|
299
|
+
visibility: hidden;
|
|
300
|
+
}
|
|
301
|
+
|
|
298
302
|
.visible {
|
|
299
303
|
visibility: visible;
|
|
300
304
|
}
|
|
@@ -315,6 +319,10 @@
|
|
|
315
319
|
position: relative;
|
|
316
320
|
}
|
|
317
321
|
|
|
322
|
+
.top-0\.5 {
|
|
323
|
+
top: calc(var(--spacing) * .5);
|
|
324
|
+
}
|
|
325
|
+
|
|
318
326
|
.top-1 {
|
|
319
327
|
top: calc(var(--spacing) * 1);
|
|
320
328
|
}
|
|
@@ -355,6 +363,10 @@
|
|
|
355
363
|
z-index: 1;
|
|
356
364
|
}
|
|
357
365
|
|
|
366
|
+
.z-20 {
|
|
367
|
+
z-index: 20;
|
|
368
|
+
}
|
|
369
|
+
|
|
358
370
|
.z-30 {
|
|
359
371
|
z-index: 30;
|
|
360
372
|
}
|
|
@@ -363,6 +375,10 @@
|
|
|
363
375
|
margin-inline: auto;
|
|
364
376
|
}
|
|
365
377
|
|
|
378
|
+
.mt-4 {
|
|
379
|
+
margin-top: calc(var(--spacing) * 4);
|
|
380
|
+
}
|
|
381
|
+
|
|
366
382
|
.mt-\[10px\] {
|
|
367
383
|
margin-top: 10px;
|
|
368
384
|
}
|
|
@@ -439,6 +455,14 @@
|
|
|
439
455
|
width: 150px;
|
|
440
456
|
}
|
|
441
457
|
|
|
458
|
+
.w-\[170px\]\! {
|
|
459
|
+
width: 170px !important;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.w-\[188px\]\! {
|
|
463
|
+
width: 188px !important;
|
|
464
|
+
}
|
|
465
|
+
|
|
442
466
|
.w-\[207px\] {
|
|
443
467
|
width: 207px;
|
|
444
468
|
}
|
|
@@ -447,6 +471,10 @@
|
|
|
447
471
|
width: 320px;
|
|
448
472
|
}
|
|
449
473
|
|
|
474
|
+
.w-\[calc\(100\%-188px\)\]\! {
|
|
475
|
+
width: calc(100% - 188px) !important;
|
|
476
|
+
}
|
|
477
|
+
|
|
450
478
|
.w-full {
|
|
451
479
|
width: 100%;
|
|
452
480
|
}
|
|
@@ -455,6 +483,10 @@
|
|
|
455
483
|
max-width: 150px !important;
|
|
456
484
|
}
|
|
457
485
|
|
|
486
|
+
.grow {
|
|
487
|
+
flex-grow: 1;
|
|
488
|
+
}
|
|
489
|
+
|
|
458
490
|
.-translate-x-1\/2 {
|
|
459
491
|
--tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
|
|
460
492
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -529,11 +561,20 @@
|
|
|
529
561
|
border-width: 1px;
|
|
530
562
|
}
|
|
531
563
|
|
|
564
|
+
.border-t {
|
|
565
|
+
border-top-style: var(--tw-border-style);
|
|
566
|
+
border-top-width: 1px;
|
|
567
|
+
}
|
|
568
|
+
|
|
532
569
|
.border-b {
|
|
533
570
|
border-bottom-style: var(--tw-border-style);
|
|
534
571
|
border-bottom-width: 1px;
|
|
535
572
|
}
|
|
536
573
|
|
|
574
|
+
.border-t-\[\#ebebeb\] {
|
|
575
|
+
border-top-color: #ebebeb;
|
|
576
|
+
}
|
|
577
|
+
|
|
537
578
|
.border-b-\[\#ebebeb\] {
|
|
538
579
|
border-bottom-color: #ebebeb;
|
|
539
580
|
}
|
|
@@ -550,6 +591,10 @@
|
|
|
550
591
|
background-color: #ebebeb;
|
|
551
592
|
}
|
|
552
593
|
|
|
594
|
+
.bg-\[\#f1f1f1\] {
|
|
595
|
+
background-color: #f1f1f1;
|
|
596
|
+
}
|
|
597
|
+
|
|
553
598
|
.bg-gray-400 {
|
|
554
599
|
background-color: var(--color-gray-400);
|
|
555
600
|
}
|
|
@@ -562,6 +607,10 @@
|
|
|
562
607
|
object-fit: cover;
|
|
563
608
|
}
|
|
564
609
|
|
|
610
|
+
.p-4\! {
|
|
611
|
+
padding: calc(var(--spacing) * 4) !important;
|
|
612
|
+
}
|
|
613
|
+
|
|
565
614
|
.p-5 {
|
|
566
615
|
padding: calc(var(--spacing) * 5);
|
|
567
616
|
}
|
|
@@ -578,6 +627,22 @@
|
|
|
578
627
|
padding-inline: 8px !important;
|
|
579
628
|
}
|
|
580
629
|
|
|
630
|
+
.px-3 {
|
|
631
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.py-1\.5 {
|
|
635
|
+
padding-block: calc(var(--spacing) * 1.5);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.pb-4 {
|
|
639
|
+
padding-bottom: calc(var(--spacing) * 4);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.underline {
|
|
643
|
+
text-decoration-line: underline;
|
|
644
|
+
}
|
|
645
|
+
|
|
581
646
|
.opacity-50 {
|
|
582
647
|
opacity: .5;
|
|
583
648
|
}
|
|
@@ -642,6 +707,14 @@
|
|
|
642
707
|
top: calc(var(--spacing) * 0);
|
|
643
708
|
}
|
|
644
709
|
|
|
710
|
+
.md\:-left-5 {
|
|
711
|
+
left: calc(var(--spacing) * -5);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.md\:mt-0 {
|
|
715
|
+
margin-top: calc(var(--spacing) * 0);
|
|
716
|
+
}
|
|
717
|
+
|
|
645
718
|
.md\:h-\[100px\] {
|
|
646
719
|
height: 100px;
|
|
647
720
|
}
|
|
@@ -670,6 +743,10 @@
|
|
|
670
743
|
width: 117px;
|
|
671
744
|
}
|
|
672
745
|
|
|
746
|
+
.md\:w-\[256px\]\! {
|
|
747
|
+
width: 256px !important;
|
|
748
|
+
}
|
|
749
|
+
|
|
673
750
|
.md\:w-\[395px\] {
|
|
674
751
|
width: 395px;
|
|
675
752
|
}
|
|
@@ -678,9 +755,42 @@
|
|
|
678
755
|
width: 708px;
|
|
679
756
|
}
|
|
680
757
|
|
|
758
|
+
.md\:w-\[calc\(100\%\+40px\)\]\! {
|
|
759
|
+
width: calc(100% + 40px) !important;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.md\:w-\[calc\(100\%-256px\)\]\! {
|
|
763
|
+
width: calc(100% - 256px) !important;
|
|
764
|
+
}
|
|
765
|
+
|
|
681
766
|
.md\:grid-cols-\[repeat\(auto-fill\,minmax\(117px\,1fr\)\)\] {
|
|
682
767
|
grid-template-columns: repeat(auto-fill, minmax(117px, 1fr));
|
|
683
768
|
}
|
|
769
|
+
|
|
770
|
+
.md\:flex-col-reverse\! {
|
|
771
|
+
flex-direction: column-reverse !important;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.md\:border-b {
|
|
775
|
+
border-bottom-style: var(--tw-border-style);
|
|
776
|
+
border-bottom-width: 1px;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.md\:border-b-\[\#ebebeb\] {
|
|
780
|
+
border-bottom-color: #ebebeb;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.md\:border-b-transparent {
|
|
784
|
+
border-bottom-color: #0000;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.md\:pb-0 {
|
|
788
|
+
padding-bottom: calc(var(--spacing) * 0);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.md\:pb-3 {
|
|
792
|
+
padding-bottom: calc(var(--spacing) * 3);
|
|
793
|
+
}
|
|
684
794
|
}
|
|
685
795
|
|
|
686
796
|
@media (width >= 64rem) {
|
|
@@ -712,6 +822,10 @@
|
|
|
712
822
|
width: 300px;
|
|
713
823
|
}
|
|
714
824
|
|
|
825
|
+
.lg\:w-\[352px\]\! {
|
|
826
|
+
width: 352px !important;
|
|
827
|
+
}
|
|
828
|
+
|
|
715
829
|
.lg\:w-\[444px\] {
|
|
716
830
|
width: 444px;
|
|
717
831
|
}
|
|
@@ -720,6 +834,10 @@
|
|
|
720
834
|
width: 780px;
|
|
721
835
|
}
|
|
722
836
|
|
|
837
|
+
.lg\:w-\[calc\(100\%-352px\)\]\! {
|
|
838
|
+
width: calc(100% - 352px) !important;
|
|
839
|
+
}
|
|
840
|
+
|
|
723
841
|
.lg\:cursor-pointer {
|
|
724
842
|
cursor: pointer;
|
|
725
843
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soppiya/app-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"graphql": "^16.11.0",
|
|
46
46
|
"prettier": "^3.6.2",
|
|
47
47
|
"react": "^19.1.1",
|
|
48
|
+
"sass": "^1.97.0",
|
|
48
49
|
"storybook": "^9.1.8",
|
|
49
50
|
"storybook-addon-apollo-client": "^9.0.0",
|
|
50
51
|
"storybook-addon-rslib": "^2.1.2",
|
|
@@ -59,10 +60,11 @@
|
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
62
|
"@apollo/client": "^4.0.7",
|
|
62
|
-
"@soppiya/elementus": "^1.
|
|
63
|
+
"@soppiya/elementus": "^1.1.8",
|
|
63
64
|
"@uidotdev/usehooks": "^2.4.1",
|
|
64
65
|
"classnames": "^2.5.1",
|
|
65
66
|
"lodash": "^4.17.21",
|
|
67
|
+
"moment": "^2.30.1",
|
|
66
68
|
"react-toastify": "^11.0.5"
|
|
67
69
|
}
|
|
68
70
|
}
|