@powerhousedao/network-admin 0.0.45 → 0.0.47
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/document-models/builders/gen/document-schema.d.ts +6 -6
- package/dist/document-models/document-models.js +2 -2
- package/dist/document-models/index.d.ts +1 -1
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +1 -1
- package/dist/document-models/network-profile/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/network-profile/gen/document-model.js +6 -6
- package/dist/document-models/network-profile/gen/document-schema.d.ts +76 -38
- package/dist/document-models/network-profile/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/network-profile/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/network-profile/gen/ph-factories.js +2 -0
- package/dist/document-models/network-profile/gen/schema/types.d.ts +6 -2
- package/dist/document-models/network-profile/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/network-profile/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/network-profile/gen/schema/zod.js +6 -2
- package/dist/document-models/network-profile/gen/utils.d.ts.map +1 -1
- package/dist/document-models/network-profile/gen/utils.js +3 -1
- package/dist/document-models/network-profile/src/reducers/network-profile-management.d.ts.map +1 -1
- package/dist/document-models/network-profile/src/reducers/network-profile-management.js +2 -0
- package/dist/document-models/payment-terms/gen/document-schema.d.ts +6 -6
- package/dist/document-models/request-for-proposals/gen/document-schema.d.ts +6 -6
- package/dist/document-models/workstream/gen/document-schema.d.ts +6 -6
- package/dist/editors/network-profile/editor.d.ts.map +1 -1
- package/dist/editors/network-profile/editor.js +28 -5
- package/dist/powerhouse.manifest.json +5 -5
- package/dist/processors/workstreams/factory.js +1 -1
- package/dist/processors/workstreams/index.d.ts +1 -0
- package/dist/processors/workstreams/index.d.ts.map +1 -1
- package/dist/processors/workstreams/index.js +20 -6
- package/dist/style.css +61 -18
- package/dist/subgraphs/network-profile/schema.d.ts.map +1 -1
- package/dist/subgraphs/network-profile/schema.js +4 -2
- package/dist/subgraphs/networks/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/networks/resolvers.js +12 -3
- package/dist/subgraphs/networks/schema.d.ts.map +1 -1
- package/dist/subgraphs/networks/schema.js +7 -1
- package/dist/subgraphs/workstreams/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/workstreams/resolvers.js +68 -15
- package/dist/subgraphs/workstreams/schema.d.ts.map +1 -1
- package/dist/subgraphs/workstreams/schema.js +30 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../document-models/network-profile/gen/schema/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAChC,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AACjD,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,IAAI;KACvD,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;KAC3D,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC;AACF,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;KACxD,MAAM,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AACF,MAAM,MAAM,SAAS,CACnB,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO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
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../../document-models/network-profile/gen/schema/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAEV,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,SAAS,EACT,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,KAAK,UAAU,CAAC,CAAC,IAAI,QAAQ,CAAC;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3C,CAAC,CAAC;AAEH,KAAK,iBAAiB,GAAG,EAAE,CAAC;AAE5B,eAAO,MAAM,mBAAmB,GAAI,GAAG,GAAG,KAAG,CAAC,IAAI,iBACnB,CAAC;AAEhC,eAAO,MAAM,uBAAuB,gDAEI,CAAC;AAEzC,eAAO,MAAM,qBAAqB,wDAMhC,CAAC;AAEH,wBAAgB,yBAAyB,IAAI,CAAC,CAAC,SAAS,CACtD,UAAU,CAAC,mBAAmB,CAAC,CAChC,CAiBA;AAED,wBAAgB,sBAAsB,IAAI,CAAC,CAAC,SAAS,CACnD,UAAU,CAAC,gBAAgB,CAAC,CAC7B,CAIA;AAED,wBAAgB,yBAAyB,IAAI,CAAC,CAAC,SAAS,CACtD,UAAU,CAAC,mBAAmB,CAAC,CAChC,CAIA;AAED,wBAAgB,qBAAqB,IAAI,CAAC,CAAC,SAAS,CAClD,UAAU,CAAC,eAAe,CAAC,CAC5B,CAIA;AAED,wBAAgB,oBAAoB,IAAI,CAAC,CAAC,SAAS,CACjD,UAAU,CAAC,cAAc,CAAC,CAC3B,CAIA;AAED,wBAAgB,kBAAkB,IAAI,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAK1E;AAED,wBAAgB,qBAAqB,IAAI,CAAC,CAAC,SAAS,CAClD,UAAU,CAAC,eAAe,CAAC,CAC5B,CAIA;AAED,wBAAgB,kBAAkB,IAAI,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAK1E;AAED,wBAAgB,yBAAyB,IAAI,CAAC,CAAC,SAAS,CACtD,UAAU,CAAC,mBAAmB,CAAC,CAChC,CAIA;AAED,wBAAgB,qBAAqB,IAAI,CAAC,CAAC,SAAS,CAClD,UAAU,CAAC,eAAe,CAAC,CAC5B,CAIA;AAED,wBAAgB,eAAe,IAAI,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAIpE;AAED,wBAAgB,qBAAqB,IAAI,CAAC,CAAC,SAAS,CAClD,UAAU,CAAC,eAAe,CAAC,CAC5B,CAIA"}
|
|
@@ -14,6 +14,8 @@ export function NetworkProfileStateSchema() {
|
|
|
14
14
|
return z.object({
|
|
15
15
|
__typename: z.literal("NetworkProfileState").optional(),
|
|
16
16
|
category: z.array(NetworkCategorySchema),
|
|
17
|
+
darkThemeIcon: z.string(),
|
|
18
|
+
darkThemeLogo: z.string(),
|
|
17
19
|
description: z.string(),
|
|
18
20
|
discord: z.string().nullable(),
|
|
19
21
|
github: z.string().nullable(),
|
|
@@ -48,7 +50,8 @@ export function SetGithubInputSchema() {
|
|
|
48
50
|
}
|
|
49
51
|
export function SetIconInputSchema() {
|
|
50
52
|
return z.object({
|
|
51
|
-
|
|
53
|
+
darkThemeIcon: z.string().nullish(),
|
|
54
|
+
icon: z.string().nullish(),
|
|
52
55
|
});
|
|
53
56
|
}
|
|
54
57
|
export function SetLogoBigInputSchema() {
|
|
@@ -58,7 +61,8 @@ export function SetLogoBigInputSchema() {
|
|
|
58
61
|
}
|
|
59
62
|
export function SetLogoInputSchema() {
|
|
60
63
|
return z.object({
|
|
61
|
-
|
|
64
|
+
darkThemeLogo: z.string().nullish(),
|
|
65
|
+
logo: z.string().nullish(),
|
|
62
66
|
});
|
|
63
67
|
}
|
|
64
68
|
export function SetProfileNameInputSchema() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../document-models/network-profile/gen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAQzD,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAUxD,eAAO,MAAM,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../document-models/network-profile/gen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAQzD,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAUxD,eAAO,MAAM,kBAAkB,EAAE,yBAchC,CAAC;AACF,eAAO,MAAM,iBAAiB,EAAE,wBAA6B,CAAC;AAE9D,eAAO,MAAM,KAAK,EAAE,kBAAkB,CAAC,qBAAqB,CAqC3D,CAAC;AAEF,eAAO,MAAM,cAAc,gEAAuB,CAAC;AACnD,eAAO,MAAM,WAAW,6DAAoB,CAAC;AAC7C,eAAO,MAAM,gBAAgB,2CAAyB,CAAC;AACvD,eAAO,MAAM,aAAa,+DAAsB,CAAC;AACjD,eAAO,MAAM,aAAa,+DAAsB,CAAC;AACjD,eAAO,MAAM,mBAAmB,qEAA4B,CAAC;AAC7D,eAAO,MAAM,gBAAgB,kEAAyB,CAAC;AACvD,eAAO,MAAM,sBAAsB,wEAA+B,CAAC"}
|
|
@@ -5,7 +5,9 @@ import { isNetworkProfileDocument, assertIsNetworkProfileDocument, isNetworkProf
|
|
|
5
5
|
export const initialGlobalState = {
|
|
6
6
|
name: "",
|
|
7
7
|
icon: "",
|
|
8
|
+
darkThemeIcon: "",
|
|
8
9
|
logo: "",
|
|
10
|
+
darkThemeLogo: "",
|
|
9
11
|
logoBig: "",
|
|
10
12
|
website: null,
|
|
11
13
|
description: "",
|
|
@@ -17,7 +19,7 @@ export const initialGlobalState = {
|
|
|
17
19
|
};
|
|
18
20
|
export const initialLocalState = {};
|
|
19
21
|
export const utils = {
|
|
20
|
-
fileExtension: "
|
|
22
|
+
fileExtension: "",
|
|
21
23
|
createState(state) {
|
|
22
24
|
return {
|
|
23
25
|
...defaultBaseState(),
|
package/dist/document-models/network-profile/src/reducers/network-profile-management.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-profile-management.d.ts","sourceRoot":"","sources":["../../../../../document-models/network-profile/src/reducers/network-profile-management.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gDAAgD,EAAE,MAAM,8DAA8D,CAAC;AAErI,eAAO,MAAM,gDAAgD,EAAE,
|
|
1
|
+
{"version":3,"file":"network-profile-management.d.ts","sourceRoot":"","sources":["../../../../../document-models/network-profile/src/reducers/network-profile-management.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gDAAgD,EAAE,MAAM,8DAA8D,CAAC;AAErI,eAAO,MAAM,gDAAgD,EAAE,gDAoC9D,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export const networkProfileNetworkProfileManagementOperations = {
|
|
2
2
|
setIconOperation(state, action) {
|
|
3
3
|
state.icon = action.input.icon || "";
|
|
4
|
+
state.darkThemeIcon = action.input.darkThemeIcon || "";
|
|
4
5
|
},
|
|
5
6
|
setLogoOperation(state, action) {
|
|
6
7
|
state.logo = action.input.logo || "";
|
|
8
|
+
state.darkThemeLogo = action.input.darkThemeLogo || "";
|
|
7
9
|
},
|
|
8
10
|
setLogoBigOperation(state, action) {
|
|
9
11
|
state.logoBig = action.input.logoBig || "";
|
|
@@ -9,15 +9,15 @@ export declare const PaymentTermsDocumentHeaderSchema: z.ZodObject<{
|
|
|
9
9
|
} & {
|
|
10
10
|
documentType: z.ZodLiteral<"payment-terms">;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
name: string;
|
|
13
12
|
documentType: "payment-terms";
|
|
14
13
|
id: string;
|
|
14
|
+
name: string;
|
|
15
15
|
createdAtUtcIso: string;
|
|
16
16
|
lastModifiedAtUtcIso: string;
|
|
17
17
|
}, {
|
|
18
|
-
name: string;
|
|
19
18
|
documentType: "payment-terms";
|
|
20
19
|
id: string;
|
|
20
|
+
name: string;
|
|
21
21
|
createdAtUtcIso: string;
|
|
22
22
|
lastModifiedAtUtcIso: string;
|
|
23
23
|
}>;
|
|
@@ -109,15 +109,15 @@ export declare const PaymentTermsDocumentSchema: z.ZodObject<{
|
|
|
109
109
|
} & {
|
|
110
110
|
documentType: z.ZodLiteral<"payment-terms">;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
name: string;
|
|
113
112
|
documentType: "payment-terms";
|
|
114
113
|
id: string;
|
|
114
|
+
name: string;
|
|
115
115
|
createdAtUtcIso: string;
|
|
116
116
|
lastModifiedAtUtcIso: string;
|
|
117
117
|
}, {
|
|
118
|
-
name: string;
|
|
119
118
|
documentType: "payment-terms";
|
|
120
119
|
id: string;
|
|
120
|
+
name: string;
|
|
121
121
|
createdAtUtcIso: string;
|
|
122
122
|
lastModifiedAtUtcIso: string;
|
|
123
123
|
}>;
|
|
@@ -279,9 +279,9 @@ export declare const PaymentTermsDocumentSchema: z.ZodObject<{
|
|
|
279
279
|
}>;
|
|
280
280
|
}, "strip", z.ZodTypeAny, {
|
|
281
281
|
header: {
|
|
282
|
-
name: string;
|
|
283
282
|
documentType: "payment-terms";
|
|
284
283
|
id: string;
|
|
284
|
+
name: string;
|
|
285
285
|
createdAtUtcIso: string;
|
|
286
286
|
lastModifiedAtUtcIso: string;
|
|
287
287
|
};
|
|
@@ -319,9 +319,9 @@ export declare const PaymentTermsDocumentSchema: z.ZodObject<{
|
|
|
319
319
|
};
|
|
320
320
|
}, {
|
|
321
321
|
header: {
|
|
322
|
-
name: string;
|
|
323
322
|
documentType: "payment-terms";
|
|
324
323
|
id: string;
|
|
324
|
+
name: string;
|
|
325
325
|
createdAtUtcIso: string;
|
|
326
326
|
lastModifiedAtUtcIso: string;
|
|
327
327
|
};
|
|
@@ -9,15 +9,15 @@ export declare const RequestForProposalsDocumentHeaderSchema: z.ZodObject<{
|
|
|
9
9
|
} & {
|
|
10
10
|
documentType: z.ZodLiteral<"powerhouse/rfp">;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
name: string;
|
|
13
12
|
documentType: "powerhouse/rfp";
|
|
14
13
|
id: string;
|
|
14
|
+
name: string;
|
|
15
15
|
createdAtUtcIso: string;
|
|
16
16
|
lastModifiedAtUtcIso: string;
|
|
17
17
|
}, {
|
|
18
|
-
name: string;
|
|
19
18
|
documentType: "powerhouse/rfp";
|
|
20
19
|
id: string;
|
|
20
|
+
name: string;
|
|
21
21
|
createdAtUtcIso: string;
|
|
22
22
|
lastModifiedAtUtcIso: string;
|
|
23
23
|
}>;
|
|
@@ -113,15 +113,15 @@ export declare const RequestForProposalsDocumentSchema: z.ZodObject<{
|
|
|
113
113
|
} & {
|
|
114
114
|
documentType: z.ZodLiteral<"powerhouse/rfp">;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
name: string;
|
|
117
116
|
documentType: "powerhouse/rfp";
|
|
118
117
|
id: string;
|
|
118
|
+
name: string;
|
|
119
119
|
createdAtUtcIso: string;
|
|
120
120
|
lastModifiedAtUtcIso: string;
|
|
121
121
|
}, {
|
|
122
|
-
name: string;
|
|
123
122
|
documentType: "powerhouse/rfp";
|
|
124
123
|
id: string;
|
|
124
|
+
name: string;
|
|
125
125
|
createdAtUtcIso: string;
|
|
126
126
|
lastModifiedAtUtcIso: string;
|
|
127
127
|
}>;
|
|
@@ -291,9 +291,9 @@ export declare const RequestForProposalsDocumentSchema: z.ZodObject<{
|
|
|
291
291
|
}>;
|
|
292
292
|
}, "strip", z.ZodTypeAny, {
|
|
293
293
|
header: {
|
|
294
|
-
name: string;
|
|
295
294
|
documentType: "powerhouse/rfp";
|
|
296
295
|
id: string;
|
|
296
|
+
name: string;
|
|
297
297
|
createdAtUtcIso: string;
|
|
298
298
|
lastModifiedAtUtcIso: string;
|
|
299
299
|
};
|
|
@@ -335,9 +335,9 @@ export declare const RequestForProposalsDocumentSchema: z.ZodObject<{
|
|
|
335
335
|
};
|
|
336
336
|
}, {
|
|
337
337
|
header: {
|
|
338
|
-
name: string;
|
|
339
338
|
documentType: "powerhouse/rfp";
|
|
340
339
|
id: string;
|
|
340
|
+
name: string;
|
|
341
341
|
createdAtUtcIso: string;
|
|
342
342
|
lastModifiedAtUtcIso: string;
|
|
343
343
|
};
|
|
@@ -9,15 +9,15 @@ export declare const WorkstreamDocumentHeaderSchema: z.ZodObject<{
|
|
|
9
9
|
} & {
|
|
10
10
|
documentType: z.ZodLiteral<"powerhouse/workstream">;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
name: string;
|
|
13
12
|
documentType: "powerhouse/workstream";
|
|
14
13
|
id: string;
|
|
14
|
+
name: string;
|
|
15
15
|
createdAtUtcIso: string;
|
|
16
16
|
lastModifiedAtUtcIso: string;
|
|
17
17
|
}, {
|
|
18
|
-
name: string;
|
|
19
18
|
documentType: "powerhouse/workstream";
|
|
20
19
|
id: string;
|
|
20
|
+
name: string;
|
|
21
21
|
createdAtUtcIso: string;
|
|
22
22
|
lastModifiedAtUtcIso: string;
|
|
23
23
|
}>;
|
|
@@ -93,15 +93,15 @@ export declare const WorkstreamDocumentSchema: z.ZodObject<{
|
|
|
93
93
|
} & {
|
|
94
94
|
documentType: z.ZodLiteral<"powerhouse/workstream">;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
name: string;
|
|
97
96
|
documentType: "powerhouse/workstream";
|
|
98
97
|
id: string;
|
|
98
|
+
name: string;
|
|
99
99
|
createdAtUtcIso: string;
|
|
100
100
|
lastModifiedAtUtcIso: string;
|
|
101
101
|
}, {
|
|
102
|
-
name: string;
|
|
103
102
|
documentType: "powerhouse/workstream";
|
|
104
103
|
id: string;
|
|
104
|
+
name: string;
|
|
105
105
|
createdAtUtcIso: string;
|
|
106
106
|
lastModifiedAtUtcIso: string;
|
|
107
107
|
}>;
|
|
@@ -231,9 +231,9 @@ export declare const WorkstreamDocumentSchema: z.ZodObject<{
|
|
|
231
231
|
}>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
233
|
header: {
|
|
234
|
-
name: string;
|
|
235
234
|
documentType: "powerhouse/workstream";
|
|
236
235
|
id: string;
|
|
236
|
+
name: string;
|
|
237
237
|
createdAtUtcIso: string;
|
|
238
238
|
lastModifiedAtUtcIso: string;
|
|
239
239
|
};
|
|
@@ -267,9 +267,9 @@ export declare const WorkstreamDocumentSchema: z.ZodObject<{
|
|
|
267
267
|
};
|
|
268
268
|
}, {
|
|
269
269
|
header: {
|
|
270
|
-
name: string;
|
|
271
270
|
documentType: "powerhouse/workstream";
|
|
272
271
|
id: string;
|
|
272
|
+
name: string;
|
|
273
273
|
createdAtUtcIso: string;
|
|
274
274
|
lastModifiedAtUtcIso: string;
|
|
275
275
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/network-profile/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAoBlD,MAAM,MAAM,MAAM,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/network-profile/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAoBlD,MAAM,MAAM,MAAM,GAAG,WAAW,CAAC;AA+RjC,MAAM,CAAC,OAAO,UAAU,MAAM,mDAgR7B"}
|
|
@@ -56,7 +56,7 @@ function ImageUrlInput({ label, value, onChange, placeholder, fileSize = "200KB"
|
|
|
56
56
|
setIsModalOpen(true);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "block text-sm font-medium text-gray-700", children: label }), _jsxs("div", { className: "border border-gray-300 rounded-lg p-4", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center space-x-3", children: [_jsx("div", { className: `flex-shrink-0 w-12 h-12 bg-gray-100 rounded border flex items-center justify-center overflow-hidden ${value &&
|
|
59
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "space-y-2", children: [label && (_jsx("label", { className: "block text-sm font-medium text-gray-700", children: label })), _jsxs("div", { className: "border border-gray-300 rounded-lg p-4", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center space-x-3", children: [_jsx("div", { className: `flex-shrink-0 w-12 h-12 bg-gray-100 rounded border flex items-center justify-center overflow-hidden ${value &&
|
|
60
60
|
!imageError &&
|
|
61
61
|
(value.startsWith("http://") || value.startsWith("https://"))
|
|
62
62
|
? "cursor-pointer hover:opacity-80 transition-opacity duration-200"
|
|
@@ -72,6 +72,11 @@ function ImageUrlInput({ label, value, onChange, placeholder, fileSize = "200KB"
|
|
|
72
72
|
}
|
|
73
73
|
}, placeholder: placeholder || "Enter image URL" }) })] })] }), _jsx(ImageModal, { isOpen: isModalOpen, onClose: () => setIsModalOpen(false), imageUrl: value, imageAlt: `${label} full size` })] }));
|
|
74
74
|
}
|
|
75
|
+
// Toggle-enabled image input component for light/dark theme switching
|
|
76
|
+
function ToggleableImageInput({ label, lightValue, darkValue, onLightChange, onDarkChange, lightPlaceholder, darkPlaceholder, fileSize = "200KB", }) {
|
|
77
|
+
const [isDarkMode, setIsDarkMode] = useState(false);
|
|
78
|
+
return (_jsxs("div", { className: "space-y-2", children: [_jsxs("div", { className: "flex items-center justify-between mb-2", children: [_jsx("label", { className: "block text-sm font-medium text-gray-700", children: label }), _jsxs("div", { className: "flex items-center space-x-2", children: [_jsx("span", { className: `text-xs font-medium ${!isDarkMode ? "text-gray-900" : "text-gray-500"}`, children: "Light" }), _jsx("button", { type: "button", onClick: () => setIsDarkMode(!isDarkMode), className: `relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 ${isDarkMode ? "bg-gray-700" : "bg-gray-300"}`, children: _jsx("span", { className: `inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${isDarkMode ? "translate-x-6" : "translate-x-1"}` }) }), _jsx("span", { className: `text-xs font-medium ${isDarkMode ? "text-gray-900" : "text-gray-500"}`, children: "Dark" })] })] }), !isDarkMode ? (_jsx(ImageUrlInput, { label: "", value: lightValue, onChange: onLightChange, placeholder: lightPlaceholder, fileSize: fileSize })) : (_jsx(ImageUrlInput, { label: "", value: darkValue, onChange: onDarkChange, placeholder: darkPlaceholder, fileSize: fileSize }))] }));
|
|
79
|
+
}
|
|
75
80
|
export default function Editor() {
|
|
76
81
|
// Getting dispatch from selected document
|
|
77
82
|
const [doc, dispatch] = useSelectedNetworkProfileDocument();
|
|
@@ -94,10 +99,28 @@ export default function Editor() {
|
|
|
94
99
|
action = actions.setProfileName({ name: value });
|
|
95
100
|
break;
|
|
96
101
|
case "icon":
|
|
97
|
-
action = actions.setIcon({
|
|
102
|
+
action = actions.setIcon({
|
|
103
|
+
icon: value,
|
|
104
|
+
darkThemeIcon: state?.darkThemeIcon || "",
|
|
105
|
+
});
|
|
106
|
+
break;
|
|
107
|
+
case "darkThemeIcon":
|
|
108
|
+
action = actions.setIcon({
|
|
109
|
+
icon: state?.icon || "",
|
|
110
|
+
darkThemeIcon: value,
|
|
111
|
+
});
|
|
98
112
|
break;
|
|
99
113
|
case "logo":
|
|
100
|
-
action = actions.setLogo({
|
|
114
|
+
action = actions.setLogo({
|
|
115
|
+
logo: value,
|
|
116
|
+
darkThemeLogo: state?.darkThemeLogo || "",
|
|
117
|
+
});
|
|
118
|
+
break;
|
|
119
|
+
case "darkThemeLogo":
|
|
120
|
+
action = actions.setLogo({
|
|
121
|
+
logo: state?.logo || "",
|
|
122
|
+
darkThemeLogo: value,
|
|
123
|
+
});
|
|
101
124
|
break;
|
|
102
125
|
case "logoBig":
|
|
103
126
|
action = actions.setLogoBig({ logoBig: value });
|
|
@@ -130,7 +153,7 @@ export default function Editor() {
|
|
|
130
153
|
return;
|
|
131
154
|
}
|
|
132
155
|
dispatch(action);
|
|
133
|
-
}, [dispatch]);
|
|
156
|
+
}, [dispatch, state]);
|
|
134
157
|
// Get the parent folder node for the currently selected node
|
|
135
158
|
const parentFolder = useParentFolderForSelectedNode();
|
|
136
159
|
// Set the selected node to the parent folder node (close the editor)
|
|
@@ -141,7 +164,7 @@ export default function Editor() {
|
|
|
141
164
|
if (e.target.value !== state?.name) {
|
|
142
165
|
handleFieldChange("name", e.target.value);
|
|
143
166
|
}
|
|
144
|
-
}, placeholder: "Enter network name" })] }), _jsx(
|
|
167
|
+
}, placeholder: "Enter network name" })] }), _jsx(ToggleableImageInput, { label: "Icon:", lightValue: state?.icon || "", darkValue: state?.darkThemeIcon || "", onLightChange: (value) => handleFieldChange("icon", value), onDarkChange: (value) => handleFieldChange("darkThemeIcon", value), lightPlaceholder: "PowerhouseIcon.jpg", darkPlaceholder: "PowerhouseIconDark.jpg", fileSize: "200KB" }), _jsx(ToggleableImageInput, { label: "Logo:", lightValue: state?.logo || "", darkValue: state?.darkThemeLogo || "", onLightChange: (value) => handleFieldChange("logo", value), onDarkChange: (value) => handleFieldChange("darkThemeLogo", value), lightPlaceholder: "PowerhouseLogo.jpg", darkPlaceholder: "PowerhouseLogoDark.jpg", fileSize: "2MB" }), _jsx(ImageUrlInput, { label: "Large Logo:", value: state?.logoBig || "", onChange: (value) => handleFieldChange("logoBig", value), placeholder: "LargeLogo.jpg", fileSize: "10MB" }), _jsxs("div", { children: [_jsx("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "Website:" }), _jsx(TextInput, { className: "w-full", defaultValue: state?.website || "", onBlur: (e) => {
|
|
145
168
|
const value = e.target.value || null;
|
|
146
169
|
if (value !== state?.website) {
|
|
147
170
|
handleFieldChange("website", value);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "",
|
|
3
|
-
"description": "",
|
|
4
|
-
"category": "",
|
|
2
|
+
"name": "Network Admin",
|
|
3
|
+
"description": "A place where network admin doc models live",
|
|
4
|
+
"category": "Project Management",
|
|
5
5
|
"publisher": {
|
|
6
|
-
"name": "",
|
|
7
|
-
"url": ""
|
|
6
|
+
"name": "Powerhouse",
|
|
7
|
+
"url": "https://powerhouse.inc/"
|
|
8
8
|
},
|
|
9
9
|
"documentModels": [],
|
|
10
10
|
"editors": [],
|
|
@@ -11,7 +11,7 @@ export const workstreamsProcessorFactory = (module) => async (driveHeader) => {
|
|
|
11
11
|
const filter = {
|
|
12
12
|
branch: ["main"],
|
|
13
13
|
documentId: ["*"],
|
|
14
|
-
documentType: ["powerhouse/workstream"],
|
|
14
|
+
documentType: ["powerhouse/workstream", "powerhouse/document-drive"],
|
|
15
15
|
scope: ["global"],
|
|
16
16
|
};
|
|
17
17
|
// Create the processor
|
|
@@ -3,6 +3,7 @@ import type { InternalTransmitterUpdate, InternalOperationUpdate } from "documen
|
|
|
3
3
|
import type { DB } from "./schema.js";
|
|
4
4
|
export declare class WorkstreamsProcessor extends RelationalDbProcessor<DB> {
|
|
5
5
|
static getNamespace(driveId: string): string;
|
|
6
|
+
workstreams: string[];
|
|
6
7
|
initAndUpgrade(): Promise<void>;
|
|
7
8
|
onStrands(strands: InternalTransmitterUpdate[]): Promise<void>;
|
|
8
9
|
onDisconnect(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../processors/workstreams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../processors/workstreams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,uBAAuB,EAAqB,MAAM,gBAAgB,CAAC;AAG5G,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEtC,qBAAa,oBAAqB,SAAQ,qBAAqB,CAAC,EAAE,CAAC;WACjD,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAKrD,WAAW,EAAE,MAAM,EAAE,CAAK;IAEX,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,SAAS,CACtB,OAAO,EAAE,yBAAyB,EAAE,GACnC,OAAO,CAAC,IAAI,CAAC;IAoCV,YAAY;IAelB,aAAa,GAAU,QAAQ,yBAAyB,mBA+BvD;IAED,iCAAiC,GAAU,QAAQ,yBAAyB,EAAE,WAAW,uBAAuB,mBA6C/G;IAED,yBAAyB,GAAU,QAAQ,yBAAyB,EAAE,WAAW,uBAAuB,mBAwCvG;IAED,gBAAgB,GAAU,QAAQ,yBAAyB,EAAE,WAAW,uBAAuB,mBAyC9F;CACF"}
|
|
@@ -5,6 +5,7 @@ export class WorkstreamsProcessor extends RelationalDbProcessor {
|
|
|
5
5
|
// Default namespace: `${this.name}_${driveId.replaceAll("-", "_")}`
|
|
6
6
|
return super.getNamespace(driveId);
|
|
7
7
|
}
|
|
8
|
+
workstreams = [];
|
|
8
9
|
async initAndUpgrade() {
|
|
9
10
|
await up(this.relationalDb);
|
|
10
11
|
}
|
|
@@ -19,13 +20,23 @@ export class WorkstreamsProcessor extends RelationalDbProcessor {
|
|
|
19
20
|
if (strand.documentType === "powerhouse/workstream") {
|
|
20
21
|
this.setWorkstream(strand);
|
|
21
22
|
}
|
|
22
|
-
// console.log("strand", { documentType: strand.documentType, docId: strand.documentId
|
|
23
|
+
// console.log("strand", { documentType: strand.documentType, docId: strand.documentId });
|
|
23
24
|
for (const operation of strand.operations) {
|
|
24
25
|
if (strand.documentType === "powerhouse/workstream") {
|
|
25
26
|
this.updateWorkstream(strand, operation);
|
|
26
27
|
this.updateNetworkInWorkstream(strand, operation);
|
|
27
28
|
this.updateInitialProposalInWorkstream(strand, operation);
|
|
28
29
|
}
|
|
30
|
+
if (strand.documentType === "powerhouse/document-drive") {
|
|
31
|
+
if (operation.action.type === "DELETE_NODE") {
|
|
32
|
+
const castAction = operation.action;
|
|
33
|
+
console.log("deleting workstream node", (castAction.input.id));
|
|
34
|
+
const foundWorkstream = this.workstreams.find(ws => ws === castAction.input.id);
|
|
35
|
+
if (foundWorkstream) {
|
|
36
|
+
await this.relationalDb.deleteFrom("workstreams").where("workstream_phid", "=", foundWorkstream).execute();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
29
40
|
}
|
|
30
41
|
}
|
|
31
42
|
}
|
|
@@ -54,21 +65,22 @@ export class WorkstreamsProcessor extends RelationalDbProcessor {
|
|
|
54
65
|
console.log("existingWorkstreamPhids", existingWorkstreamPhids);
|
|
55
66
|
if (existingWorkstreamPhids.length === 0) {
|
|
56
67
|
console.log('No workstream id found, inserting new one', docId);
|
|
68
|
+
this.workstreams.push(docId);
|
|
57
69
|
// insert network id
|
|
58
70
|
await this.relationalDb
|
|
59
71
|
.insertInto("workstreams")
|
|
60
72
|
.values({
|
|
61
|
-
|
|
62
|
-
|
|
73
|
+
network_phid: strand.state.client.id,
|
|
74
|
+
network_slug: strand.state.client.name ? strand.state.client.name.toLowerCase().split(' ').join("-") : null,
|
|
63
75
|
workstream_phid: strand.documentId,
|
|
64
76
|
workstream_slug: strand.state.title ? strand.state.title.toLowerCase().split(' ').join("-") : "",
|
|
65
77
|
workstream_title: strand.state.title,
|
|
66
78
|
workstream_status: strand.state.status,
|
|
67
|
-
|
|
79
|
+
sow_phid: strand.state.initialProposal ? strand.state.initialProposal.sow : null,
|
|
68
80
|
// roadmap_oid: "which roadmmap Id ? there's many roadmaps in a sow doc",
|
|
69
81
|
// final_milestone_target: new Date(),
|
|
70
|
-
|
|
71
|
-
|
|
82
|
+
initial_proposal_status: strand.state.initialProposal ? strand.state.initialProposal.status : null,
|
|
83
|
+
initial_proposal_author: strand.state.initialProposal ? strand.state.initialProposal.author.name : null
|
|
72
84
|
})
|
|
73
85
|
.onConflict((oc) => oc.column("workstream_phid").doNothing())
|
|
74
86
|
.execute();
|
|
@@ -93,9 +105,11 @@ export class WorkstreamsProcessor extends RelationalDbProcessor {
|
|
|
93
105
|
const updateData = {};
|
|
94
106
|
if (input.sowId) {
|
|
95
107
|
updateData.sow_phid = input.sowId;
|
|
108
|
+
updateData.initial_proposal_status = "DRAFT";
|
|
96
109
|
}
|
|
97
110
|
if (input.proposalAuthor) {
|
|
98
111
|
updateData.initial_proposal_author = input.proposalAuthor.name;
|
|
112
|
+
updateData.initial_proposal_status = "DRAFT";
|
|
99
113
|
}
|
|
100
114
|
if (input.status) {
|
|
101
115
|
updateData.initial_proposal_status = input.status;
|
package/dist/style.css
CHANGED
|
@@ -329,6 +329,9 @@
|
|
|
329
329
|
.hidden {
|
|
330
330
|
display: none;
|
|
331
331
|
}
|
|
332
|
+
.inline-block {
|
|
333
|
+
display: inline-block;
|
|
334
|
+
}
|
|
332
335
|
.inline-flex {
|
|
333
336
|
display: inline-flex;
|
|
334
337
|
}
|
|
@@ -392,6 +395,9 @@
|
|
|
392
395
|
.w-10 {
|
|
393
396
|
width: calc(var(--spacing) * 10);
|
|
394
397
|
}
|
|
398
|
+
.w-11 {
|
|
399
|
+
width: calc(var(--spacing) * 11);
|
|
400
|
+
}
|
|
395
401
|
.w-12 {
|
|
396
402
|
width: calc(var(--spacing) * 12);
|
|
397
403
|
}
|
|
@@ -452,6 +458,14 @@
|
|
|
452
458
|
.border-collapse {
|
|
453
459
|
border-collapse: collapse;
|
|
454
460
|
}
|
|
461
|
+
.translate-x-1 {
|
|
462
|
+
--tw-translate-x: calc(var(--spacing) * 1);
|
|
463
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
464
|
+
}
|
|
465
|
+
.translate-x-6 {
|
|
466
|
+
--tw-translate-x: calc(var(--spacing) * 6);
|
|
467
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
468
|
+
}
|
|
455
469
|
.transform {
|
|
456
470
|
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
457
471
|
}
|
|
@@ -697,12 +711,18 @@
|
|
|
697
711
|
.bg-gray-200 {
|
|
698
712
|
background-color: var(--color-gray-200);
|
|
699
713
|
}
|
|
714
|
+
.bg-gray-300 {
|
|
715
|
+
background-color: var(--color-gray-300);
|
|
716
|
+
}
|
|
700
717
|
.bg-gray-500\/30 {
|
|
701
718
|
background-color: color-mix(in srgb, hsl(200 2% 63%) 30%, transparent);
|
|
702
719
|
@supports (color: color-mix(in lab, red, red)) {
|
|
703
720
|
background-color: color-mix(in oklab, var(--color-gray-500) 30%, transparent);
|
|
704
721
|
}
|
|
705
722
|
}
|
|
723
|
+
.bg-gray-700 {
|
|
724
|
+
background-color: var(--color-gray-700);
|
|
725
|
+
}
|
|
706
726
|
.bg-gray-800 {
|
|
707
727
|
background-color: var(--color-gray-800);
|
|
708
728
|
}
|
|
@@ -987,6 +1007,11 @@
|
|
|
987
1007
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
988
1008
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
989
1009
|
}
|
|
1010
|
+
.transition-transform {
|
|
1011
|
+
transition-property: transform, translate, scale, rotate;
|
|
1012
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1013
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1014
|
+
}
|
|
990
1015
|
.duration-200 {
|
|
991
1016
|
--tw-duration: 200ms;
|
|
992
1017
|
transition-duration: 200ms;
|
|
@@ -1068,11 +1093,29 @@
|
|
|
1068
1093
|
}
|
|
1069
1094
|
}
|
|
1070
1095
|
}
|
|
1096
|
+
.focus\:ring-2 {
|
|
1097
|
+
&:focus {
|
|
1098
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1099
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1071
1102
|
.focus\:ring-blue-500 {
|
|
1072
1103
|
&:focus {
|
|
1073
1104
|
--tw-ring-color: var(--color-blue-500);
|
|
1074
1105
|
}
|
|
1075
1106
|
}
|
|
1107
|
+
.focus\:ring-offset-2 {
|
|
1108
|
+
&:focus {
|
|
1109
|
+
--tw-ring-offset-width: 2px;
|
|
1110
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
.focus\:outline-none {
|
|
1114
|
+
&:focus {
|
|
1115
|
+
--tw-outline-style: none;
|
|
1116
|
+
outline-style: none;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1076
1119
|
.disabled\:cursor-not-allowed {
|
|
1077
1120
|
&:disabled {
|
|
1078
1121
|
cursor: not-allowed;
|
|
@@ -1980,21 +2023,6 @@
|
|
|
1980
2023
|
}
|
|
1981
2024
|
}
|
|
1982
2025
|
}
|
|
1983
|
-
@property --tw-translate-x {
|
|
1984
|
-
syntax: "*";
|
|
1985
|
-
inherits: false;
|
|
1986
|
-
initial-value: 0;
|
|
1987
|
-
}
|
|
1988
|
-
@property --tw-translate-y {
|
|
1989
|
-
syntax: "*";
|
|
1990
|
-
inherits: false;
|
|
1991
|
-
initial-value: 0;
|
|
1992
|
-
}
|
|
1993
|
-
@property --tw-translate-z {
|
|
1994
|
-
syntax: "*";
|
|
1995
|
-
inherits: false;
|
|
1996
|
-
initial-value: 0;
|
|
1997
|
-
}
|
|
1998
2026
|
@property --tw-ease {
|
|
1999
2027
|
syntax: "*";
|
|
2000
2028
|
inherits: false;
|
|
@@ -2032,6 +2060,21 @@
|
|
|
2032
2060
|
}
|
|
2033
2061
|
}
|
|
2034
2062
|
}
|
|
2063
|
+
@property --tw-translate-x {
|
|
2064
|
+
syntax: "*";
|
|
2065
|
+
inherits: false;
|
|
2066
|
+
initial-value: 0;
|
|
2067
|
+
}
|
|
2068
|
+
@property --tw-translate-y {
|
|
2069
|
+
syntax: "*";
|
|
2070
|
+
inherits: false;
|
|
2071
|
+
initial-value: 0;
|
|
2072
|
+
}
|
|
2073
|
+
@property --tw-translate-z {
|
|
2074
|
+
syntax: "*";
|
|
2075
|
+
inherits: false;
|
|
2076
|
+
initial-value: 0;
|
|
2077
|
+
}
|
|
2035
2078
|
@property --tw-rotate-x {
|
|
2036
2079
|
syntax: "*";
|
|
2037
2080
|
inherits: false;
|
|
@@ -2245,6 +2288,9 @@
|
|
|
2245
2288
|
@layer properties {
|
|
2246
2289
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
2247
2290
|
*, ::before, ::after, ::backdrop {
|
|
2291
|
+
--tw-translate-x: 0;
|
|
2292
|
+
--tw-translate-y: 0;
|
|
2293
|
+
--tw-translate-z: 0;
|
|
2248
2294
|
--tw-rotate-x: initial;
|
|
2249
2295
|
--tw-rotate-y: initial;
|
|
2250
2296
|
--tw-rotate-z: initial;
|
|
@@ -2294,9 +2340,6 @@
|
|
|
2294
2340
|
--tw-backdrop-saturate: initial;
|
|
2295
2341
|
--tw-backdrop-sepia: initial;
|
|
2296
2342
|
--tw-duration: initial;
|
|
2297
|
-
--tw-translate-x: 0;
|
|
2298
|
-
--tw-translate-y: 0;
|
|
2299
|
-
--tw-translate-z: 0;
|
|
2300
2343
|
--tw-ease: initial;
|
|
2301
2344
|
}
|
|
2302
2345
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/network-profile/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/network-profile/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,YAkHpB,CAAC"}
|