x-runtime-lib 0.9.0 → 0.9.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/index.js +49 -21
- package/dist/types/protocol.d.ts +9 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -792,33 +792,38 @@ var ht = [
|
|
|
792
792
|
timelineTruncateLineItemsV1: () => Rt
|
|
793
793
|
}), Bt = [
|
|
794
794
|
{
|
|
795
|
-
value: "
|
|
795
|
+
value: "notSet",
|
|
796
796
|
title: "x-runtime-lib.notSet",
|
|
797
797
|
validator: (e) => !e,
|
|
798
|
+
trait: "word",
|
|
798
799
|
default: ""
|
|
799
800
|
},
|
|
800
801
|
{
|
|
801
|
-
value: "
|
|
802
|
+
value: "thin",
|
|
802
803
|
title: "x-runtime-lib.thin",
|
|
804
|
+
trait: "word",
|
|
803
805
|
validator: (e) => e === "thin",
|
|
804
806
|
default: "thin"
|
|
805
807
|
},
|
|
806
808
|
{
|
|
807
|
-
value: "
|
|
809
|
+
value: "medium",
|
|
808
810
|
title: "x-runtime-lib.medium",
|
|
809
811
|
validator: (e) => e === "medium",
|
|
812
|
+
trait: "word",
|
|
810
813
|
default: "medium"
|
|
811
814
|
},
|
|
812
815
|
{
|
|
813
|
-
value: "
|
|
816
|
+
value: "thick",
|
|
814
817
|
title: "x-runtime-lib.thick",
|
|
815
818
|
validator: (e) => e === "thick",
|
|
819
|
+
trait: "word",
|
|
816
820
|
default: "thick"
|
|
817
821
|
},
|
|
818
822
|
{
|
|
819
823
|
value: "pixel",
|
|
820
824
|
title: "x-runtime-lib.pixel",
|
|
821
825
|
validator: Ue,
|
|
826
|
+
trait: "pixel",
|
|
822
827
|
precision: 0,
|
|
823
828
|
min: 0,
|
|
824
829
|
max: Infinity,
|
|
@@ -827,79 +832,91 @@ var ht = [
|
|
|
827
832
|
}
|
|
828
833
|
], Vt = [
|
|
829
834
|
{
|
|
830
|
-
value: "
|
|
835
|
+
value: "notSet",
|
|
831
836
|
title: "x-runtime-lib.notSet",
|
|
832
837
|
validator: (e) => !e,
|
|
838
|
+
trait: "word",
|
|
833
839
|
default: ""
|
|
834
840
|
},
|
|
835
841
|
{
|
|
836
|
-
value: "
|
|
842
|
+
value: "regular",
|
|
837
843
|
title: "x-runtime-lib.regular",
|
|
838
844
|
validator: qe,
|
|
845
|
+
trait: "hexColor",
|
|
839
846
|
default: "#ffffff"
|
|
840
847
|
},
|
|
841
848
|
{
|
|
842
|
-
value: "
|
|
849
|
+
value: "theme",
|
|
843
850
|
title: "x-runtime-lib.theme",
|
|
844
851
|
validator: Ye,
|
|
852
|
+
trait: "themeColor",
|
|
845
853
|
default: "primary"
|
|
846
854
|
}
|
|
847
855
|
], Ht = [
|
|
848
856
|
{
|
|
849
|
-
value: "
|
|
857
|
+
value: "notSet",
|
|
850
858
|
title: "x-runtime-lib.notSet",
|
|
851
859
|
validator: (e) => !e,
|
|
860
|
+
trait: "word",
|
|
852
861
|
default: ""
|
|
853
862
|
},
|
|
854
863
|
{
|
|
855
|
-
value: "
|
|
864
|
+
value: "left",
|
|
856
865
|
title: "x-runtime-lib.left",
|
|
857
866
|
validator: (e) => e === "left",
|
|
867
|
+
trait: "word",
|
|
858
868
|
default: "left"
|
|
859
869
|
},
|
|
860
870
|
{
|
|
861
|
-
value: "
|
|
871
|
+
value: "right",
|
|
862
872
|
title: "x-runtime-lib.right",
|
|
863
873
|
validator: (e) => e === "right",
|
|
874
|
+
trait: "word",
|
|
864
875
|
default: "right"
|
|
865
876
|
}
|
|
866
877
|
], Ut = [
|
|
867
878
|
{
|
|
868
|
-
value: "
|
|
879
|
+
value: "notSet",
|
|
869
880
|
title: "x-runtime-lib.notSet",
|
|
870
881
|
validator: (e) => !e,
|
|
882
|
+
trait: "word",
|
|
871
883
|
default: ""
|
|
872
884
|
},
|
|
873
885
|
{
|
|
874
|
-
value: "
|
|
886
|
+
value: "auto",
|
|
875
887
|
title: "x-runtime-lib.auto",
|
|
876
888
|
validator: (e) => e === "auto",
|
|
889
|
+
trait: "word",
|
|
877
890
|
default: "auto"
|
|
878
891
|
},
|
|
879
892
|
{
|
|
880
893
|
value: "pixel",
|
|
881
894
|
title: "x-runtime-lib.pixel",
|
|
882
895
|
validator: Ue,
|
|
896
|
+
trait: "pixel",
|
|
883
897
|
default: "0px"
|
|
884
898
|
},
|
|
885
899
|
{
|
|
886
900
|
value: "percent",
|
|
887
901
|
title: "x-runtime-lib.percent",
|
|
888
902
|
validator: Ge,
|
|
903
|
+
trait: "percent",
|
|
889
904
|
precision: 6,
|
|
890
905
|
default: "0%"
|
|
891
906
|
}
|
|
892
907
|
], Wt = [
|
|
893
908
|
{
|
|
894
|
-
value: "
|
|
909
|
+
value: "notSet",
|
|
895
910
|
title: "x-runtime-lib.notSet",
|
|
896
911
|
validator: (e) => !e,
|
|
912
|
+
trait: "word",
|
|
897
913
|
default: ""
|
|
898
914
|
},
|
|
899
915
|
{
|
|
900
916
|
value: "pixel",
|
|
901
917
|
title: "x-runtime-lib.pixel",
|
|
902
918
|
validator: Ue,
|
|
919
|
+
trait: "pixel",
|
|
903
920
|
min: 0,
|
|
904
921
|
default: "0px"
|
|
905
922
|
},
|
|
@@ -907,21 +924,24 @@ var ht = [
|
|
|
907
924
|
value: "percent",
|
|
908
925
|
title: "x-runtime-lib.percent",
|
|
909
926
|
validator: Ge,
|
|
927
|
+
trait: "percent",
|
|
910
928
|
precision: 6,
|
|
911
929
|
min: 0,
|
|
912
930
|
default: "0%"
|
|
913
931
|
}
|
|
914
932
|
], Gt = [
|
|
915
933
|
{
|
|
916
|
-
value: "
|
|
934
|
+
value: "notSet",
|
|
917
935
|
title: "x-runtime-lib.notSet",
|
|
918
936
|
validator: (e) => !e,
|
|
937
|
+
trait: "word",
|
|
919
938
|
default: ""
|
|
920
939
|
},
|
|
921
940
|
{
|
|
922
941
|
value: "pixel",
|
|
923
942
|
title: "x-runtime-lib.pixel",
|
|
924
943
|
validator: Ue,
|
|
944
|
+
trait: "pixel",
|
|
925
945
|
min: 0,
|
|
926
946
|
default: "0px"
|
|
927
947
|
},
|
|
@@ -929,52 +949,60 @@ var ht = [
|
|
|
929
949
|
value: "percent",
|
|
930
950
|
title: "x-runtime-lib.percent",
|
|
931
951
|
validator: Ge,
|
|
952
|
+
trait: "percent",
|
|
932
953
|
precision: 6,
|
|
933
954
|
min: 0,
|
|
934
955
|
default: "0%"
|
|
935
956
|
}
|
|
936
957
|
], Kt = [
|
|
937
958
|
{
|
|
938
|
-
value: "
|
|
959
|
+
value: "notSet",
|
|
939
960
|
title: "x-runtime-lib.notSet",
|
|
940
961
|
validator: (e) => !e,
|
|
962
|
+
trait: "word",
|
|
941
963
|
default: ""
|
|
942
964
|
},
|
|
943
965
|
{
|
|
944
|
-
value: "
|
|
966
|
+
value: "start",
|
|
945
967
|
title: "x-runtime-lib.start",
|
|
946
968
|
validator: (e) => e === "start",
|
|
969
|
+
trait: "word",
|
|
947
970
|
default: "start"
|
|
948
971
|
},
|
|
949
972
|
{
|
|
950
|
-
value: "
|
|
973
|
+
value: "center",
|
|
951
974
|
title: "x-runtime-lib.center",
|
|
952
975
|
validator: (e) => e === "center",
|
|
976
|
+
trait: "word",
|
|
953
977
|
default: "center"
|
|
954
978
|
},
|
|
955
979
|
{
|
|
956
|
-
value: "
|
|
980
|
+
value: "end",
|
|
957
981
|
title: "x-runtime-lib.end",
|
|
958
982
|
validator: (e) => e === "end",
|
|
983
|
+
trait: "word",
|
|
959
984
|
default: "end"
|
|
960
985
|
}
|
|
961
986
|
], qt = [
|
|
962
987
|
{
|
|
963
|
-
value: "
|
|
988
|
+
value: "notSet",
|
|
964
989
|
title: "x-runtime-lib.notSet",
|
|
965
990
|
validator: (e) => !e,
|
|
991
|
+
trait: "word",
|
|
966
992
|
default: ""
|
|
967
993
|
},
|
|
968
994
|
{
|
|
969
|
-
value: "
|
|
995
|
+
value: "top",
|
|
970
996
|
title: "x-runtime-lib.top",
|
|
971
997
|
validator: (e) => e === "top",
|
|
998
|
+
trait: "word",
|
|
972
999
|
default: "top"
|
|
973
1000
|
},
|
|
974
1001
|
{
|
|
975
|
-
value: "
|
|
1002
|
+
value: "bottom",
|
|
976
1003
|
title: "x-runtime-lib.bottom",
|
|
977
1004
|
validator: (e) => e === "bottom",
|
|
1005
|
+
trait: "word",
|
|
978
1006
|
default: "bottom"
|
|
979
1007
|
}
|
|
980
1008
|
], Jt = /* @__PURE__ */ e({
|
package/dist/types/protocol.d.ts
CHANGED
|
@@ -11,15 +11,16 @@ export type ZItem = {
|
|
|
11
11
|
title: string;
|
|
12
12
|
};
|
|
13
13
|
type ZTypeBase = {
|
|
14
|
+
value: string;
|
|
14
15
|
title: string;
|
|
15
|
-
validator: (v:
|
|
16
|
+
validator: (v: unknown) => boolean;
|
|
16
17
|
};
|
|
17
18
|
type ZTypeWord = {
|
|
18
|
-
|
|
19
|
+
trait: 'word';
|
|
19
20
|
default: string;
|
|
20
21
|
} & ZTypeBase;
|
|
21
22
|
type ZTypePixel = {
|
|
22
|
-
|
|
23
|
+
trait: 'pixel';
|
|
23
24
|
precision?: number;
|
|
24
25
|
min?: number;
|
|
25
26
|
max?: number;
|
|
@@ -27,22 +28,22 @@ type ZTypePixel = {
|
|
|
27
28
|
default: string;
|
|
28
29
|
} & ZTypeBase;
|
|
29
30
|
type ZTypePercent = {
|
|
30
|
-
|
|
31
|
+
trait: 'percent';
|
|
31
32
|
precision?: number;
|
|
32
33
|
min?: number;
|
|
33
34
|
max?: number;
|
|
34
35
|
step?: number;
|
|
35
36
|
default: string;
|
|
36
37
|
} & ZTypeBase;
|
|
37
|
-
type
|
|
38
|
-
|
|
38
|
+
type ZTypeHexColor = {
|
|
39
|
+
trait: 'hexColor';
|
|
39
40
|
default: string;
|
|
40
41
|
} & ZTypeBase;
|
|
41
42
|
type ZTypeThemeColor = {
|
|
42
|
-
|
|
43
|
+
trait: 'themeColor';
|
|
43
44
|
default: string;
|
|
44
45
|
} & ZTypeBase;
|
|
45
|
-
export type ZType = ZTypeWord | ZTypePixel | ZTypePercent |
|
|
46
|
+
export type ZType = ZTypeWord | ZTypePixel | ZTypePercent | ZTypeHexColor | ZTypeThemeColor;
|
|
46
47
|
type ZPropertyBranch = {
|
|
47
48
|
key: string;
|
|
48
49
|
name: string;
|