@digo-labs/common 0.1.11 → 0.1.13
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 +1 -0
- package/dist/fonts.d.ts +12 -24
- package/dist/icons.d.ts +4 -0
- package/dist/images.d.ts +7 -0
- package/dist/index.css +266 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +204 -161
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +3 -1
- package/dist/routes.d.ts +1 -1
- package/dist/schemas/ai.d.ts +105 -40
- package/dist/schemas/database.d.ts +3 -1
- package/dist/session-storage.d.ts +4 -0
- package/dist/types/common-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
|
@@ -3,6 +3,7 @@ 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";
|
|
8
9
|
export declare const AI_MODELS: ModelPayload[];
|
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
package/dist/images.d.ts
CHANGED
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; }
|
|
@@ -911,6 +916,267 @@
|
|
|
911
916
|
size-adjust: 100%;
|
|
912
917
|
src: url(https://cdn.digo-labs.com/fonts/obrazec.ttf) format('truetype');
|
|
913
918
|
}
|
|
919
|
+
|
|
920
|
+
@font-face {
|
|
921
|
+
font-family: 'satoshi';
|
|
922
|
+
font-weight: 300 900;
|
|
923
|
+
font-style: normal;
|
|
924
|
+
font-display: swap;
|
|
925
|
+
size-adjust: 100%;
|
|
926
|
+
src: url(https://cdn.digo-labs.com/fonts/satoshi.woff2) format('woff2');
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
@font-face {
|
|
930
|
+
font-family: 'chillax';
|
|
931
|
+
font-weight: 200 700;
|
|
932
|
+
font-style: normal;
|
|
933
|
+
font-display: swap;
|
|
934
|
+
size-adjust: 100%;
|
|
935
|
+
src: url(https://cdn.digo-labs.com/fonts/chillax.woff2) format('woff2');
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
@font-face {
|
|
939
|
+
font-family: 'panchang';
|
|
940
|
+
font-weight: 200 800;
|
|
941
|
+
font-style: normal;
|
|
942
|
+
font-display: swap;
|
|
943
|
+
size-adjust: 100%;
|
|
944
|
+
src: url(https://cdn.digo-labs.com/fonts/panchang.woff2) format('woff2');
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
@font-face {
|
|
948
|
+
font-family: 'zodiak';
|
|
949
|
+
font-weight: 100 900;
|
|
950
|
+
font-style: normal;
|
|
951
|
+
font-display: swap;
|
|
952
|
+
size-adjust: 100%;
|
|
953
|
+
src: url(https://cdn.digo-labs.com/fonts/zodiak.woff2) format('woff2');
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
@font-face {
|
|
957
|
+
font-family: 'supreme';
|
|
958
|
+
font-weight: 100 800;
|
|
959
|
+
font-style: normal;
|
|
960
|
+
font-display: swap;
|
|
961
|
+
size-adjust: 100%;
|
|
962
|
+
src: url(https://cdn.digo-labs.com/fonts/supreme.woff2) format('woff2');
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
@font-face {
|
|
966
|
+
font-family: 'boska';
|
|
967
|
+
font-weight: 200 900;
|
|
968
|
+
font-style: normal;
|
|
969
|
+
font-display: swap;
|
|
970
|
+
size-adjust: 100%;
|
|
971
|
+
src: url(https://cdn.digo-labs.com/fonts/boska.woff2) format('woff2');
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
@font-face {
|
|
975
|
+
font-family: 'tanker';
|
|
976
|
+
font-weight: 400;
|
|
977
|
+
font-style: normal;
|
|
978
|
+
font-display: swap;
|
|
979
|
+
size-adjust: 100%;
|
|
980
|
+
src: url(https://cdn.digo-labs.com/fonts/tanker.woff2) format('woff2');
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
@font-face {
|
|
984
|
+
font-family: 'gambarino';
|
|
985
|
+
font-weight: 400;
|
|
986
|
+
font-style: normal;
|
|
987
|
+
font-display: swap;
|
|
988
|
+
size-adjust: 100%;
|
|
989
|
+
src: url(https://cdn.digo-labs.com/fonts/gambarino.woff2) format('woff2');
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
@font-face {
|
|
993
|
+
font-family: 'neco';
|
|
994
|
+
font-weight: 400 900;
|
|
995
|
+
font-style: normal;
|
|
996
|
+
font-display: swap;
|
|
997
|
+
size-adjust: 100%;
|
|
998
|
+
src: url(https://cdn.digo-labs.com/fonts/neco.woff2) format('woff2');
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
@font-face {
|
|
1002
|
+
font-family: 'erode';
|
|
1003
|
+
font-weight: 300 700;
|
|
1004
|
+
font-style: normal;
|
|
1005
|
+
font-display: swap;
|
|
1006
|
+
size-adjust: 100%;
|
|
1007
|
+
src: url(https://cdn.digo-labs.com/fonts/erode.woff2) format('woff2');
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
@font-face {
|
|
1011
|
+
font-family: 'pramukh-rounded';
|
|
1012
|
+
font-weight: 200 900;
|
|
1013
|
+
font-style: normal;
|
|
1014
|
+
font-display: swap;
|
|
1015
|
+
size-adjust: 100%;
|
|
1016
|
+
src: url(https://cdn.digo-labs.com/fonts/pramukh-rounded.woff2) format('woff2');
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
@font-face {
|
|
1020
|
+
font-family: 'bevellier';
|
|
1021
|
+
font-weight: 100 900;
|
|
1022
|
+
font-style: normal;
|
|
1023
|
+
font-display: swap;
|
|
1024
|
+
size-adjust: 100%;
|
|
1025
|
+
src: url(https://cdn.digo-labs.com/fonts/bevellier.woff2) format('woff2');
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
@font-face {
|
|
1029
|
+
font-family: 'comico';
|
|
1030
|
+
font-weight: 400;
|
|
1031
|
+
font-style: normal;
|
|
1032
|
+
font-display: swap;
|
|
1033
|
+
size-adjust: 100%;
|
|
1034
|
+
src: url(https://cdn.digo-labs.com/fonts/comico.woff2) format('woff2');
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
@font-face {
|
|
1038
|
+
font-family: 'aktura';
|
|
1039
|
+
font-weight: 400;
|
|
1040
|
+
font-style: normal;
|
|
1041
|
+
font-display: swap;
|
|
1042
|
+
size-adjust: 100%;
|
|
1043
|
+
src: url(https://cdn.digo-labs.com/fonts/aktura.woff2) format('woff2');
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
@font-face {
|
|
1047
|
+
font-family: 'technor';
|
|
1048
|
+
font-weight: 200 900;
|
|
1049
|
+
font-style: normal;
|
|
1050
|
+
font-display: swap;
|
|
1051
|
+
size-adjust: 100%;
|
|
1052
|
+
src: url(https://cdn.digo-labs.com/fonts/technor.woff2) format('woff2');
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
@font-face {
|
|
1056
|
+
font-family: 'array';
|
|
1057
|
+
font-weight: 400;
|
|
1058
|
+
font-style: normal;
|
|
1059
|
+
font-display: swap;
|
|
1060
|
+
size-adjust: 100%;
|
|
1061
|
+
src: url(https://cdn.digo-labs.com/fonts/array.woff2) format('woff2');
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
@font-face {
|
|
1065
|
+
font-family: 'styro';
|
|
1066
|
+
font-weight: 200 900;
|
|
1067
|
+
font-style: normal;
|
|
1068
|
+
font-display: swap;
|
|
1069
|
+
size-adjust: 100%;
|
|
1070
|
+
src: url(https://cdn.digo-labs.com/fonts/styro.woff2) format('woff2');
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
@font-face {
|
|
1074
|
+
font-family: 'recia';
|
|
1075
|
+
font-weight: 300 700;
|
|
1076
|
+
font-style: normal;
|
|
1077
|
+
font-display: swap;
|
|
1078
|
+
size-adjust: 100%;
|
|
1079
|
+
src: url(https://cdn.digo-labs.com/fonts/recia.woff2) format('woff2');
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
@font-face {
|
|
1083
|
+
font-family: 'melodrama';
|
|
1084
|
+
font-weight: 300 700;
|
|
1085
|
+
font-style: normal;
|
|
1086
|
+
font-display: swap;
|
|
1087
|
+
size-adjust: 100%;
|
|
1088
|
+
src: url(https://cdn.digo-labs.com/fonts/melodrama.woff2) format('woff2');
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
@font-face {
|
|
1092
|
+
font-family: 'boxing';
|
|
1093
|
+
font-weight: 400;
|
|
1094
|
+
font-style: normal;
|
|
1095
|
+
font-display: swap;
|
|
1096
|
+
size-adjust: 100%;
|
|
1097
|
+
src: url(https://cdn.digo-labs.com/fonts/boxing.woff2) format('woff2');
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
@font-face {
|
|
1101
|
+
font-family: 'kola';
|
|
1102
|
+
font-weight: 400;
|
|
1103
|
+
font-style: normal;
|
|
1104
|
+
font-display: swap;
|
|
1105
|
+
size-adjust: 100%;
|
|
1106
|
+
src: url(https://cdn.digo-labs.com/fonts/kola.woff2) format('woff2');
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
@font-face {
|
|
1110
|
+
font-family: 'zina';
|
|
1111
|
+
font-weight: 400;
|
|
1112
|
+
font-style: normal;
|
|
1113
|
+
font-display: swap;
|
|
1114
|
+
size-adjust: 100%;
|
|
1115
|
+
src: url(https://cdn.digo-labs.com/fonts/zina.woff2) format('woff2');
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
@font-face {
|
|
1119
|
+
font-family: 'tabular';
|
|
1120
|
+
font-weight: 300 700;
|
|
1121
|
+
font-style: normal;
|
|
1122
|
+
font-display: swap;
|
|
1123
|
+
size-adjust: 100%;
|
|
1124
|
+
src: url(https://cdn.digo-labs.com/fonts/tabular.woff2) format('woff2');
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
@font-face {
|
|
1128
|
+
font-family: 'expose';
|
|
1129
|
+
font-weight: 400 900;
|
|
1130
|
+
font-style: normal;
|
|
1131
|
+
font-display: swap;
|
|
1132
|
+
size-adjust: 100%;
|
|
1133
|
+
src: url(https://cdn.digo-labs.com/fonts/expose.woff2) format('woff2');
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
@font-face {
|
|
1137
|
+
font-family: 'kihim';
|
|
1138
|
+
font-weight: 400;
|
|
1139
|
+
font-style: normal;
|
|
1140
|
+
font-display: swap;
|
|
1141
|
+
size-adjust: 100%;
|
|
1142
|
+
src: url(https://cdn.digo-labs.com/fonts/kihim.woff2) format('woff2');
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
@font-face {
|
|
1146
|
+
font-family: 'pilcrow-rounded';
|
|
1147
|
+
font-weight: 400 900;
|
|
1148
|
+
font-style: normal;
|
|
1149
|
+
font-display: swap;
|
|
1150
|
+
size-adjust: 100%;
|
|
1151
|
+
src: url(https://cdn.digo-labs.com/fonts/pilcrow-rounded.woff2) format('woff2');
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
@font-face {
|
|
1155
|
+
font-family: 'new-title';
|
|
1156
|
+
font-weight: 200 700;
|
|
1157
|
+
font-style: normal;
|
|
1158
|
+
font-display: swap;
|
|
1159
|
+
size-adjust: 100%;
|
|
1160
|
+
src: url(https://cdn.digo-labs.com/fonts/new-title.woff2) format('woff2');
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
@font-face {
|
|
1164
|
+
font-family: 'kohinoor-zerone';
|
|
1165
|
+
font-weight: 100;
|
|
1166
|
+
font-style: normal;
|
|
1167
|
+
font-display: swap;
|
|
1168
|
+
size-adjust: 100%;
|
|
1169
|
+
src: url(https://cdn.digo-labs.com/fonts/kohinoor-zerone.woff2) format('woff2');
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
@font-face {
|
|
1173
|
+
font-family: 'roundo';
|
|
1174
|
+
font-weight: 200 700;
|
|
1175
|
+
font-style: normal;
|
|
1176
|
+
font-display: swap;
|
|
1177
|
+
size-adjust: 100%;
|
|
1178
|
+
src: url(https://cdn.digo-labs.com/fonts/roundo.woff2) format('woff2');
|
|
1179
|
+
}
|
|
914
1180
|
|
|
915
1181
|
}
|
|
916
1182
|
|
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';
|