@digo-labs/common 0.1.12 → 0.1.15
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/auth.d.ts +23 -0
- package/dist/constants.d.ts +4 -1
- package/dist/fonts.d.ts +12 -24
- package/dist/icons.d.ts +8 -0
- package/dist/images.d.ts +14 -0
- package/dist/index.css +274 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +216 -129
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +3 -1
- package/dist/schemas/database.d.ts +3 -1
- package/dist/session-storage.d.ts +4 -0
- package/dist/types/common-types.d.ts +3 -0
- package/dist/types/websocket-types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/font-parser.d.ts +0 -2
- package/dist/font-types.d.ts +0 -11
package/dist/auth.d.ts
CHANGED
|
@@ -4,3 +4,26 @@ export declare const AUTH_PROJECTS: {
|
|
|
4
4
|
};
|
|
5
5
|
};
|
|
6
6
|
export type AuthProject = keyof typeof AUTH_PROJECTS;
|
|
7
|
+
export type AuthTier = 'public' | 'user' | 'org' | 'admin';
|
|
8
|
+
export type SignInProvider = 'google';
|
|
9
|
+
export interface AccessTiers {
|
|
10
|
+
read: AuthTier;
|
|
11
|
+
write: AuthTier;
|
|
12
|
+
}
|
|
13
|
+
export type AccessOperation = keyof AccessTiers;
|
|
14
|
+
export interface TableAccessRule extends AccessTiers {
|
|
15
|
+
owner?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const ORG_EMAIL_DOMAIN = "productionclub.net";
|
|
18
|
+
export interface AuthTierUser {
|
|
19
|
+
email: string;
|
|
20
|
+
emailVerified: boolean;
|
|
21
|
+
role?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export declare class AuthTierHelpers {
|
|
24
|
+
static deriveTier(user: AuthTierUser | null | undefined): AuthTier;
|
|
25
|
+
static meetsTier(tier: AuthTier, required: AuthTier): boolean;
|
|
26
|
+
static isTier(value: unknown): value is AuthTier;
|
|
27
|
+
private static hasAdminRole;
|
|
28
|
+
private static isOrgUser;
|
|
29
|
+
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { CodeLanguageMetadata, ModelPayload } from './types/common-types';
|
|
1
|
+
import { Breakpoint, ClassGroups, CodeLanguageMetadata, ModelPayload } from './types/common-types';
|
|
2
2
|
export declare const BACKEND_URL = "https://api.digo-labs.com";
|
|
3
3
|
export declare const DIGO_HEADERS = "X-Digo-App";
|
|
4
4
|
export declare const DIGO_ADMIN_SECRET = "X-Admin-Secret";
|
|
5
5
|
export declare const DIGO_STORAGE_BUCKET_SUFFIX = "-digo-labs-storage";
|
|
6
|
+
export declare const DIGO_COLORS: string[];
|
|
6
7
|
export declare const WS_URL = "wss://ws.digo-labs.com";
|
|
7
8
|
export declare const AWS_DEFAULT_REGION = "us-east-1";
|
|
9
|
+
export declare const BREAKPOINTS: Record<Breakpoint, number>;
|
|
10
|
+
export declare const TYPO_CLASS_GROUPS: ClassGroups;
|
|
8
11
|
export declare const AI_MODELS: ModelPayload[];
|
|
9
12
|
export declare const LANGUAGE_MAP: Record<string, CodeLanguageMetadata>;
|
package/dist/fonts.d.ts
CHANGED
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
karmaticArcade: string;
|
|
14
|
-
kodeMono: string;
|
|
15
|
-
miratrix: string;
|
|
16
|
-
nippo: string;
|
|
17
|
-
obrazec: string;
|
|
18
|
-
pixelony: string;
|
|
19
|
-
triakis: string;
|
|
20
|
-
unknown: string;
|
|
21
|
-
yeager: string;
|
|
22
|
-
geist: string;
|
|
23
|
-
geistMono: string;
|
|
24
|
-
};
|
|
1
|
+
export type FontFormat = 'ttf' | 'otf' | 'woff2';
|
|
2
|
+
export interface FontFaceData {
|
|
3
|
+
family: string;
|
|
4
|
+
weightMin: number;
|
|
5
|
+
weightMax: number;
|
|
6
|
+
style: string;
|
|
7
|
+
format: FontFormat;
|
|
8
|
+
filePath: string;
|
|
9
|
+
fileName: string;
|
|
10
|
+
cssVariable: string | null;
|
|
11
|
+
}
|
|
12
|
+
export declare const FONT_FACES: FontFaceData[];
|
package/dist/icons.d.ts
CHANGED
|
@@ -996,6 +996,10 @@ declare const CURATED_ICONS: {
|
|
|
996
996
|
category: IconCategory.Brands;
|
|
997
997
|
icon: string;
|
|
998
998
|
};
|
|
999
|
+
googleMono: {
|
|
1000
|
+
category: IconCategory.Brands;
|
|
1001
|
+
icon: string;
|
|
1002
|
+
};
|
|
999
1003
|
github: {
|
|
1000
1004
|
category: IconCategory.Brands;
|
|
1001
1005
|
icon: string;
|
|
@@ -1724,6 +1728,10 @@ declare const CURATED_ICONS: {
|
|
|
1724
1728
|
category: IconCategory.Misc;
|
|
1725
1729
|
icon: string;
|
|
1726
1730
|
};
|
|
1731
|
+
tv: {
|
|
1732
|
+
category: IconCategory.Misc;
|
|
1733
|
+
icon: string;
|
|
1734
|
+
};
|
|
1727
1735
|
tvMinimal: {
|
|
1728
1736
|
category: IconCategory.Misc;
|
|
1729
1737
|
icon: string;
|
package/dist/images.d.ts
CHANGED
|
@@ -4,4 +4,18 @@ export declare const IMAGES: {
|
|
|
4
4
|
pcLogoV1Svg: string;
|
|
5
5
|
pcLogo3d: string;
|
|
6
6
|
userPlaceholder: string;
|
|
7
|
+
audio3d: string;
|
|
8
|
+
blocks3d: string;
|
|
9
|
+
components3d: string;
|
|
10
|
+
effects3d: string;
|
|
11
|
+
fonts3d: string;
|
|
12
|
+
icons3d: string;
|
|
13
|
+
image3d: string;
|
|
14
|
+
llms3d: string;
|
|
15
|
+
pages3d: string;
|
|
16
|
+
text3d: string;
|
|
17
|
+
video3d: string;
|
|
18
|
+
terminalScreenFrame: string;
|
|
19
|
+
terminalScreenGlass: string;
|
|
20
|
+
terminalSideGlass: string;
|
|
7
21
|
};
|
package/dist/index.css
CHANGED
|
@@ -557,6 +557,11 @@
|
|
|
557
557
|
background-attachment: fixed;
|
|
558
558
|
}
|
|
559
559
|
|
|
560
|
+
@utility cs-dots {
|
|
561
|
+
background-image: radial-gradient(var(--color-neutral-4) 1px, transparent 1px);
|
|
562
|
+
background-size: 20px 20px;
|
|
563
|
+
}
|
|
564
|
+
|
|
560
565
|
@keyframes stripes {
|
|
561
566
|
from { background-position: 0 0; }
|
|
562
567
|
to { background-position: 16px 0; }
|
|
@@ -666,6 +671,14 @@
|
|
|
666
671
|
}
|
|
667
672
|
}
|
|
668
673
|
|
|
674
|
+
@media (pointer: coarse) {
|
|
675
|
+
input,
|
|
676
|
+
select,
|
|
677
|
+
textarea {
|
|
678
|
+
font-size: max(16px, 1em);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
669
682
|
@layer base {
|
|
670
683
|
|
|
671
684
|
* {
|
|
@@ -911,6 +924,267 @@
|
|
|
911
924
|
size-adjust: 100%;
|
|
912
925
|
src: url(https://cdn.digo-labs.com/fonts/obrazec.ttf) format('truetype');
|
|
913
926
|
}
|
|
927
|
+
|
|
928
|
+
@font-face {
|
|
929
|
+
font-family: 'satoshi';
|
|
930
|
+
font-weight: 300 900;
|
|
931
|
+
font-style: normal;
|
|
932
|
+
font-display: swap;
|
|
933
|
+
size-adjust: 100%;
|
|
934
|
+
src: url(https://cdn.digo-labs.com/fonts/satoshi.woff2) format('woff2');
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
@font-face {
|
|
938
|
+
font-family: 'chillax';
|
|
939
|
+
font-weight: 200 700;
|
|
940
|
+
font-style: normal;
|
|
941
|
+
font-display: swap;
|
|
942
|
+
size-adjust: 100%;
|
|
943
|
+
src: url(https://cdn.digo-labs.com/fonts/chillax.woff2) format('woff2');
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
@font-face {
|
|
947
|
+
font-family: 'panchang';
|
|
948
|
+
font-weight: 200 800;
|
|
949
|
+
font-style: normal;
|
|
950
|
+
font-display: swap;
|
|
951
|
+
size-adjust: 100%;
|
|
952
|
+
src: url(https://cdn.digo-labs.com/fonts/panchang.woff2) format('woff2');
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
@font-face {
|
|
956
|
+
font-family: 'zodiak';
|
|
957
|
+
font-weight: 100 900;
|
|
958
|
+
font-style: normal;
|
|
959
|
+
font-display: swap;
|
|
960
|
+
size-adjust: 100%;
|
|
961
|
+
src: url(https://cdn.digo-labs.com/fonts/zodiak.woff2) format('woff2');
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
@font-face {
|
|
965
|
+
font-family: 'supreme';
|
|
966
|
+
font-weight: 100 800;
|
|
967
|
+
font-style: normal;
|
|
968
|
+
font-display: swap;
|
|
969
|
+
size-adjust: 100%;
|
|
970
|
+
src: url(https://cdn.digo-labs.com/fonts/supreme.woff2) format('woff2');
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
@font-face {
|
|
974
|
+
font-family: 'boska';
|
|
975
|
+
font-weight: 200 900;
|
|
976
|
+
font-style: normal;
|
|
977
|
+
font-display: swap;
|
|
978
|
+
size-adjust: 100%;
|
|
979
|
+
src: url(https://cdn.digo-labs.com/fonts/boska.woff2) format('woff2');
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
@font-face {
|
|
983
|
+
font-family: 'tanker';
|
|
984
|
+
font-weight: 400;
|
|
985
|
+
font-style: normal;
|
|
986
|
+
font-display: swap;
|
|
987
|
+
size-adjust: 100%;
|
|
988
|
+
src: url(https://cdn.digo-labs.com/fonts/tanker.woff2) format('woff2');
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
@font-face {
|
|
992
|
+
font-family: 'gambarino';
|
|
993
|
+
font-weight: 400;
|
|
994
|
+
font-style: normal;
|
|
995
|
+
font-display: swap;
|
|
996
|
+
size-adjust: 100%;
|
|
997
|
+
src: url(https://cdn.digo-labs.com/fonts/gambarino.woff2) format('woff2');
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
@font-face {
|
|
1001
|
+
font-family: 'neco';
|
|
1002
|
+
font-weight: 400 900;
|
|
1003
|
+
font-style: normal;
|
|
1004
|
+
font-display: swap;
|
|
1005
|
+
size-adjust: 100%;
|
|
1006
|
+
src: url(https://cdn.digo-labs.com/fonts/neco.woff2) format('woff2');
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
@font-face {
|
|
1010
|
+
font-family: 'erode';
|
|
1011
|
+
font-weight: 300 700;
|
|
1012
|
+
font-style: normal;
|
|
1013
|
+
font-display: swap;
|
|
1014
|
+
size-adjust: 100%;
|
|
1015
|
+
src: url(https://cdn.digo-labs.com/fonts/erode.woff2) format('woff2');
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
@font-face {
|
|
1019
|
+
font-family: 'pramukh-rounded';
|
|
1020
|
+
font-weight: 200 900;
|
|
1021
|
+
font-style: normal;
|
|
1022
|
+
font-display: swap;
|
|
1023
|
+
size-adjust: 100%;
|
|
1024
|
+
src: url(https://cdn.digo-labs.com/fonts/pramukh-rounded.woff2) format('woff2');
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
@font-face {
|
|
1028
|
+
font-family: 'bevellier';
|
|
1029
|
+
font-weight: 100 900;
|
|
1030
|
+
font-style: normal;
|
|
1031
|
+
font-display: swap;
|
|
1032
|
+
size-adjust: 100%;
|
|
1033
|
+
src: url(https://cdn.digo-labs.com/fonts/bevellier.woff2) format('woff2');
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
@font-face {
|
|
1037
|
+
font-family: 'comico';
|
|
1038
|
+
font-weight: 400;
|
|
1039
|
+
font-style: normal;
|
|
1040
|
+
font-display: swap;
|
|
1041
|
+
size-adjust: 100%;
|
|
1042
|
+
src: url(https://cdn.digo-labs.com/fonts/comico.woff2) format('woff2');
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
@font-face {
|
|
1046
|
+
font-family: 'aktura';
|
|
1047
|
+
font-weight: 400;
|
|
1048
|
+
font-style: normal;
|
|
1049
|
+
font-display: swap;
|
|
1050
|
+
size-adjust: 100%;
|
|
1051
|
+
src: url(https://cdn.digo-labs.com/fonts/aktura.woff2) format('woff2');
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
@font-face {
|
|
1055
|
+
font-family: 'technor';
|
|
1056
|
+
font-weight: 200 900;
|
|
1057
|
+
font-style: normal;
|
|
1058
|
+
font-display: swap;
|
|
1059
|
+
size-adjust: 100%;
|
|
1060
|
+
src: url(https://cdn.digo-labs.com/fonts/technor.woff2) format('woff2');
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
@font-face {
|
|
1064
|
+
font-family: 'array';
|
|
1065
|
+
font-weight: 400;
|
|
1066
|
+
font-style: normal;
|
|
1067
|
+
font-display: swap;
|
|
1068
|
+
size-adjust: 100%;
|
|
1069
|
+
src: url(https://cdn.digo-labs.com/fonts/array.woff2) format('woff2');
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
@font-face {
|
|
1073
|
+
font-family: 'styro';
|
|
1074
|
+
font-weight: 200 900;
|
|
1075
|
+
font-style: normal;
|
|
1076
|
+
font-display: swap;
|
|
1077
|
+
size-adjust: 100%;
|
|
1078
|
+
src: url(https://cdn.digo-labs.com/fonts/styro.woff2) format('woff2');
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
@font-face {
|
|
1082
|
+
font-family: 'recia';
|
|
1083
|
+
font-weight: 300 700;
|
|
1084
|
+
font-style: normal;
|
|
1085
|
+
font-display: swap;
|
|
1086
|
+
size-adjust: 100%;
|
|
1087
|
+
src: url(https://cdn.digo-labs.com/fonts/recia.woff2) format('woff2');
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
@font-face {
|
|
1091
|
+
font-family: 'melodrama';
|
|
1092
|
+
font-weight: 300 700;
|
|
1093
|
+
font-style: normal;
|
|
1094
|
+
font-display: swap;
|
|
1095
|
+
size-adjust: 100%;
|
|
1096
|
+
src: url(https://cdn.digo-labs.com/fonts/melodrama.woff2) format('woff2');
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
@font-face {
|
|
1100
|
+
font-family: 'boxing';
|
|
1101
|
+
font-weight: 400;
|
|
1102
|
+
font-style: normal;
|
|
1103
|
+
font-display: swap;
|
|
1104
|
+
size-adjust: 100%;
|
|
1105
|
+
src: url(https://cdn.digo-labs.com/fonts/boxing.woff2) format('woff2');
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
@font-face {
|
|
1109
|
+
font-family: 'kola';
|
|
1110
|
+
font-weight: 400;
|
|
1111
|
+
font-style: normal;
|
|
1112
|
+
font-display: swap;
|
|
1113
|
+
size-adjust: 100%;
|
|
1114
|
+
src: url(https://cdn.digo-labs.com/fonts/kola.woff2) format('woff2');
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
@font-face {
|
|
1118
|
+
font-family: 'zina';
|
|
1119
|
+
font-weight: 400;
|
|
1120
|
+
font-style: normal;
|
|
1121
|
+
font-display: swap;
|
|
1122
|
+
size-adjust: 100%;
|
|
1123
|
+
src: url(https://cdn.digo-labs.com/fonts/zina.woff2) format('woff2');
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
@font-face {
|
|
1127
|
+
font-family: 'tabular';
|
|
1128
|
+
font-weight: 300 700;
|
|
1129
|
+
font-style: normal;
|
|
1130
|
+
font-display: swap;
|
|
1131
|
+
size-adjust: 100%;
|
|
1132
|
+
src: url(https://cdn.digo-labs.com/fonts/tabular.woff2) format('woff2');
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
@font-face {
|
|
1136
|
+
font-family: 'expose';
|
|
1137
|
+
font-weight: 400 900;
|
|
1138
|
+
font-style: normal;
|
|
1139
|
+
font-display: swap;
|
|
1140
|
+
size-adjust: 100%;
|
|
1141
|
+
src: url(https://cdn.digo-labs.com/fonts/expose.woff2) format('woff2');
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
@font-face {
|
|
1145
|
+
font-family: 'kihim';
|
|
1146
|
+
font-weight: 400;
|
|
1147
|
+
font-style: normal;
|
|
1148
|
+
font-display: swap;
|
|
1149
|
+
size-adjust: 100%;
|
|
1150
|
+
src: url(https://cdn.digo-labs.com/fonts/kihim.woff2) format('woff2');
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
@font-face {
|
|
1154
|
+
font-family: 'pilcrow-rounded';
|
|
1155
|
+
font-weight: 400 900;
|
|
1156
|
+
font-style: normal;
|
|
1157
|
+
font-display: swap;
|
|
1158
|
+
size-adjust: 100%;
|
|
1159
|
+
src: url(https://cdn.digo-labs.com/fonts/pilcrow-rounded.woff2) format('woff2');
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
@font-face {
|
|
1163
|
+
font-family: 'new-title';
|
|
1164
|
+
font-weight: 200 700;
|
|
1165
|
+
font-style: normal;
|
|
1166
|
+
font-display: swap;
|
|
1167
|
+
size-adjust: 100%;
|
|
1168
|
+
src: url(https://cdn.digo-labs.com/fonts/new-title.woff2) format('woff2');
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
@font-face {
|
|
1172
|
+
font-family: 'kohinoor-zerone';
|
|
1173
|
+
font-weight: 100;
|
|
1174
|
+
font-style: normal;
|
|
1175
|
+
font-display: swap;
|
|
1176
|
+
size-adjust: 100%;
|
|
1177
|
+
src: url(https://cdn.digo-labs.com/fonts/kohinoor-zerone.woff2) format('woff2');
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
@font-face {
|
|
1181
|
+
font-family: 'roundo';
|
|
1182
|
+
font-weight: 200 700;
|
|
1183
|
+
font-style: normal;
|
|
1184
|
+
font-display: swap;
|
|
1185
|
+
size-adjust: 100%;
|
|
1186
|
+
src: url(https://cdn.digo-labs.com/fonts/roundo.woff2) format('woff2');
|
|
1187
|
+
}
|
|
914
1188
|
|
|
915
1189
|
}
|
|
916
1190
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,11 @@ export * from './app-config-helpers';
|
|
|
2
2
|
export * from './common-helpers';
|
|
3
3
|
export * from './constants';
|
|
4
4
|
export * from './icons';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './fonts';
|
|
6
6
|
export * from './images';
|
|
7
7
|
export * from './models';
|
|
8
8
|
export * from './local-storage';
|
|
9
|
+
export * from './session-storage';
|
|
9
10
|
export * from './routes';
|
|
10
11
|
export * from './string-helpers';
|
|
11
12
|
export * from './strings';
|
|
@@ -14,8 +15,6 @@ export * from './types/common-types';
|
|
|
14
15
|
export * from './types/database-types';
|
|
15
16
|
export * from './types/websocket-types';
|
|
16
17
|
export * from './videos';
|
|
17
|
-
export * from './fonts';
|
|
18
|
-
export * from './font-types';
|
|
19
18
|
export * from './utils';
|
|
20
19
|
export * from './samples';
|
|
21
20
|
export * from './auth';
|