@powerhousedao/builder-profile 0.0.4 → 0.0.6
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/builder-profile/gen/document-model.js +2 -2
- package/dist/document-models/builder-profile/gen/document-schema.d.ts +67 -67
- package/dist/document-models/builder-profile/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/ph-factories.js +1 -1
- package/dist/document-models/builder-profile/gen/schema/types.d.ts +10 -10
- package/dist/document-models/builder-profile/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/schema/zod.js +1 -1
- package/dist/document-models/builder-profile/gen/utils.js +1 -1
- package/dist/document-models/builder-profile/src/reducers/builders.js +4 -4
- package/dist/editors/builder-profile/components/ProfilePreview.js +1 -1
- package/dist/editors/builder-profile/components/markdown-editor.d.ts +12 -0
- package/dist/editors/builder-profile/components/markdown-editor.d.ts.map +1 -0
- package/dist/editors/builder-profile/components/markdown-editor.js +133 -0
- package/dist/editors/builder-profile/editor.d.ts.map +1 -1
- package/dist/editors/builder-profile/editor.js +2 -5
- package/dist/style.css +100 -0
- package/package.json +3 -1
|
@@ -132,8 +132,8 @@ export const documentModel = {
|
|
|
132
132
|
state: {
|
|
133
133
|
global: {
|
|
134
134
|
examples: [],
|
|
135
|
-
initialValue: '"{\\n \\"id\\": null,\\n \\"code\\": null,\\n \\"slug\\": null,\\n \\"name\\": null,\\n \\"icon\\": null,\\n \\"description\\": null,\\n \\"lastModified\\": null,\\n \\"type\\": \\"INDIVIDUAL\\",\\n \\"contributors\\": [],\\n \\"status\\": null,\\n \\"
|
|
136
|
-
schema: "type BuilderProfileState {\n id: PHID\n code: String\n slug: String\n name: String\n icon: URL\n description: String\n lastModified: DateTime\n type: teamType!\n contributors: [PHID!]!\n status: BuilderStatus\n
|
|
135
|
+
initialValue: '"{\\n \\"id\\": null,\\n \\"code\\": null,\\n \\"slug\\": null,\\n \\"name\\": null,\\n \\"icon\\": null,\\n \\"description\\": null,\\n \\"lastModified\\": null,\\n \\"type\\": \\"INDIVIDUAL\\",\\n \\"contributors\\": [],\\n \\"status\\": null,\\n \\"skils\\": [],\\n \\"scopes\\": [],\\n \\"links\\": []\\n}"',
|
|
136
|
+
schema: "type BuilderProfileState {\n id: PHID\n code: String\n slug: String\n name: String\n icon: URL\n description: String\n lastModified: DateTime\n type: teamType!\n contributors: [PHID!]!\n status: BuilderStatus\n skils: [BuilderSkill!]!\n scopes: [BuilderScope!]!\n links: [BuilderLink!]!\n}\n\nenum teamType {\n INDIVIDUAL\n TEAM\n}\n\nenum BuilderStatus {\n ACTIVE\n INACTIVE\n ON_HOLD\n COMPLETED\n ARCHIVED\n}\n\nenum BuilderSkill {\n FRONTEND_DEVELOPMENT\n BACKEND_DEVELOPMENT\n FULL_STACK_DEVELOPMENT\n DEVOPS_ENGINEERING\n SMART_CONTRACT_DEVELOPMENT\n UI_UX_DESIGN\n TECHNICAL_WRITING\n QA_TESTING\n DATA_ENGINEERING\n SECURITY_ENGINEERING\n}\n\nenum BuilderScope {\n ACC\n STA\n SUP\n STABILITY_SCOPE\n SUPPORT_SCOPE\n PROTOCOL_SCOPE\n GOVERNANCE_SCOPE\n}\n\ntype BuilderLink {\n id: OID!\n url: URL!\n label: String\n}\n",
|
|
137
137
|
},
|
|
138
138
|
local: {
|
|
139
139
|
examples: [],
|
|
@@ -33,14 +33,14 @@ export declare const BuilderProfilePHStateSchema: z.ZodObject<{} & {
|
|
|
33
33
|
links: z.ZodType<import("./types.js").BuilderLink[], any, import("./types.js").BuilderLink[]>;
|
|
34
34
|
name: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
|
|
35
35
|
scopes: z.ZodType<import("./types.js").BuilderScope[], any, import("./types.js").BuilderScope[]>;
|
|
36
|
-
|
|
36
|
+
skils: z.ZodType<import("./types.js").BuilderSkill[], any, import("./types.js").BuilderSkill[]>;
|
|
37
37
|
slug: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
|
|
38
38
|
status: z.ZodType<import("./types.js").Maybe<import("./types.js").BuilderStatus>, any, import("./types.js").Maybe<import("./types.js").BuilderStatus>>;
|
|
39
39
|
type: z.ZodType<import("./types.js").TeamType, any, import("./types.js").TeamType>;
|
|
40
40
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
41
41
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
42
|
-
type: import("./types.js").TeamType
|
|
43
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
42
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
43
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
44
44
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
45
45
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
46
46
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -48,13 +48,13 @@ export declare const BuilderProfilePHStateSchema: z.ZodObject<{} & {
|
|
|
48
48
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
49
49
|
links: Array<import("./types.js").BuilderLink>;
|
|
50
50
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
51
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
52
|
-
|
|
51
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
52
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
53
53
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
54
54
|
}, {
|
|
55
55
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
56
|
-
type: import("./types.js").TeamType
|
|
57
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
56
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
57
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
58
58
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
59
59
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
60
60
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -62,15 +62,15 @@ export declare const BuilderProfilePHStateSchema: z.ZodObject<{} & {
|
|
|
62
62
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
63
63
|
links: Array<import("./types.js").BuilderLink>;
|
|
64
64
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
65
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
66
|
-
|
|
65
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
66
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
67
67
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
68
68
|
}>;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
global: {
|
|
71
71
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
72
|
-
type: import("./types.js").TeamType
|
|
73
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
72
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
73
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
74
74
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
75
75
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
76
76
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -78,15 +78,15 @@ export declare const BuilderProfilePHStateSchema: z.ZodObject<{} & {
|
|
|
78
78
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
79
79
|
links: Array<import("./types.js").BuilderLink>;
|
|
80
80
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
81
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
82
|
-
|
|
81
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
82
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
83
83
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
84
84
|
};
|
|
85
85
|
}, {
|
|
86
86
|
global: {
|
|
87
87
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
88
|
-
type: import("./types.js").TeamType
|
|
89
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
88
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
89
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
90
90
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
91
91
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
92
92
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -94,8 +94,8 @@ export declare const BuilderProfilePHStateSchema: z.ZodObject<{} & {
|
|
|
94
94
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
95
95
|
links: Array<import("./types.js").BuilderLink>;
|
|
96
96
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
97
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
98
|
-
|
|
97
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
98
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
99
99
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
100
100
|
};
|
|
101
101
|
}>;
|
|
@@ -131,14 +131,14 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
131
131
|
links: z.ZodType<import("./types.js").BuilderLink[], any, import("./types.js").BuilderLink[]>;
|
|
132
132
|
name: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
|
|
133
133
|
scopes: z.ZodType<import("./types.js").BuilderScope[], any, import("./types.js").BuilderScope[]>;
|
|
134
|
-
|
|
134
|
+
skils: z.ZodType<import("./types.js").BuilderSkill[], any, import("./types.js").BuilderSkill[]>;
|
|
135
135
|
slug: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
|
|
136
136
|
status: z.ZodType<import("./types.js").Maybe<import("./types.js").BuilderStatus>, any, import("./types.js").Maybe<import("./types.js").BuilderStatus>>;
|
|
137
137
|
type: z.ZodType<import("./types.js").TeamType, any, import("./types.js").TeamType>;
|
|
138
138
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
139
139
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
140
|
-
type: import("./types.js").TeamType
|
|
141
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
140
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
141
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
142
142
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
143
143
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
144
144
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -146,13 +146,13 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
146
146
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
147
147
|
links: Array<import("./types.js").BuilderLink>;
|
|
148
148
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
149
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
150
|
-
|
|
149
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
150
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
151
151
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
152
152
|
}, {
|
|
153
153
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
154
|
-
type: import("./types.js").TeamType
|
|
155
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
154
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
155
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
156
156
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
157
157
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
158
158
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -160,15 +160,15 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
160
160
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
161
161
|
links: Array<import("./types.js").BuilderLink>;
|
|
162
162
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
163
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
164
|
-
|
|
163
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
164
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
165
165
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
166
166
|
}>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
168
|
global: {
|
|
169
169
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
170
|
-
type: import("./types.js").TeamType
|
|
171
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
170
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
171
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
172
172
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
173
173
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
174
174
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -176,15 +176,15 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
176
176
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
177
177
|
links: Array<import("./types.js").BuilderLink>;
|
|
178
178
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
179
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
180
|
-
|
|
179
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
180
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
181
181
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
182
182
|
};
|
|
183
183
|
}, {
|
|
184
184
|
global: {
|
|
185
185
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
186
|
-
type: import("./types.js").TeamType
|
|
187
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
186
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
187
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
188
188
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
189
189
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
190
190
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -192,8 +192,8 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
192
192
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
193
193
|
links: Array<import("./types.js").BuilderLink>;
|
|
194
194
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
195
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
196
|
-
|
|
195
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
196
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
197
197
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
198
198
|
};
|
|
199
199
|
}>;
|
|
@@ -208,14 +208,14 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
208
208
|
links: z.ZodType<import("./types.js").BuilderLink[], any, import("./types.js").BuilderLink[]>;
|
|
209
209
|
name: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
|
|
210
210
|
scopes: z.ZodType<import("./types.js").BuilderScope[], any, import("./types.js").BuilderScope[]>;
|
|
211
|
-
|
|
211
|
+
skils: z.ZodType<import("./types.js").BuilderSkill[], any, import("./types.js").BuilderSkill[]>;
|
|
212
212
|
slug: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
|
|
213
213
|
status: z.ZodType<import("./types.js").Maybe<import("./types.js").BuilderStatus>, any, import("./types.js").Maybe<import("./types.js").BuilderStatus>>;
|
|
214
214
|
type: z.ZodType<import("./types.js").TeamType, any, import("./types.js").TeamType>;
|
|
215
215
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
216
216
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
217
|
-
type: import("./types.js").TeamType
|
|
218
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
217
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
218
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
219
219
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
220
220
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
221
221
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -223,13 +223,13 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
223
223
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
224
224
|
links: Array<import("./types.js").BuilderLink>;
|
|
225
225
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
226
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
227
|
-
|
|
226
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
227
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
228
228
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
229
229
|
}, {
|
|
230
230
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
231
|
-
type: import("./types.js").TeamType
|
|
232
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
231
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
232
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
233
233
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
234
234
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
235
235
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -237,15 +237,15 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
237
237
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
238
238
|
links: Array<import("./types.js").BuilderLink>;
|
|
239
239
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
240
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
241
|
-
|
|
240
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
241
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
242
242
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
243
243
|
}>;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
245
|
global: {
|
|
246
246
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
247
|
-
type: import("./types.js").TeamType
|
|
248
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
247
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
248
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
249
249
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
250
250
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
251
251
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -253,15 +253,15 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
253
253
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
254
254
|
links: Array<import("./types.js").BuilderLink>;
|
|
255
255
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
256
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
257
|
-
|
|
256
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
257
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
258
258
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
259
259
|
};
|
|
260
260
|
}, {
|
|
261
261
|
global: {
|
|
262
262
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
263
|
-
type: import("./types.js").TeamType
|
|
264
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
263
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
264
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
265
265
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
266
266
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
267
267
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -269,8 +269,8 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
269
269
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
270
270
|
links: Array<import("./types.js").BuilderLink>;
|
|
271
271
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
272
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
273
|
-
|
|
272
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
273
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
274
274
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
275
275
|
};
|
|
276
276
|
}>;
|
|
@@ -285,8 +285,8 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
285
285
|
state: {
|
|
286
286
|
global: {
|
|
287
287
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
288
|
-
type: import("./types.js").TeamType
|
|
289
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
288
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
289
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
290
290
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
291
291
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
292
292
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -294,16 +294,16 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
294
294
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
295
295
|
links: Array<import("./types.js").BuilderLink>;
|
|
296
296
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
297
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
298
|
-
|
|
297
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
298
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
299
299
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
300
300
|
};
|
|
301
301
|
};
|
|
302
302
|
initialState: {
|
|
303
303
|
global: {
|
|
304
304
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
305
|
-
type: import("./types.js").TeamType
|
|
306
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
305
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
306
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
307
307
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
308
308
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
309
309
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -311,8 +311,8 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
311
311
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
312
312
|
links: Array<import("./types.js").BuilderLink>;
|
|
313
313
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
314
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
315
|
-
|
|
314
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
315
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
316
316
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
317
317
|
};
|
|
318
318
|
};
|
|
@@ -327,8 +327,8 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
327
327
|
state: {
|
|
328
328
|
global: {
|
|
329
329
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
330
|
-
type: import("./types.js").TeamType
|
|
331
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
330
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
331
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
332
332
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
333
333
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
334
334
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -336,16 +336,16 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
336
336
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
337
337
|
links: Array<import("./types.js").BuilderLink>;
|
|
338
338
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
339
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
340
|
-
|
|
339
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
340
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
341
341
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
342
342
|
};
|
|
343
343
|
};
|
|
344
344
|
initialState: {
|
|
345
345
|
global: {
|
|
346
346
|
code: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
347
|
-
type: import("./types.js").TeamType
|
|
348
|
-
status: import("./types.js").Maybe<import("./types.js").BuilderStatus
|
|
347
|
+
type: import("./types.js").TeamType | `${import("./types.js").TeamType}`;
|
|
348
|
+
status: import("./types.js").Maybe<import("./types.js").BuilderStatus | `${import("./types.js").BuilderStatus}`>;
|
|
349
349
|
id: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
350
350
|
contributors: Array<import("./types.js").Scalars["PHID"]["output"]>;
|
|
351
351
|
description: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
@@ -353,8 +353,8 @@ export declare const BuilderProfileDocumentSchema: z.ZodObject<{
|
|
|
353
353
|
lastModified: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
354
354
|
links: Array<import("./types.js").BuilderLink>;
|
|
355
355
|
name: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
356
|
-
scopes: Array<import("./types.js").BuilderScope
|
|
357
|
-
|
|
356
|
+
scopes: Array<import("./types.js").BuilderScope | `${import("./types.js").BuilderScope}`>;
|
|
357
|
+
skils: Array<import("./types.js").BuilderSkill | `${import("./types.js").BuilderSkill}`>;
|
|
358
358
|
slug: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
359
359
|
};
|
|
360
360
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/document-schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;EAG3C,CAAC;AAEL,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/document-schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;EAG3C,CAAC;AAEL,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;yCAqCqmB,sCAAiB;;;uCAAuK,oCAAe;4BAAnJ,oCAAe;gDAAkC,sCAAiB;yCAA2B,mCAAc;iDAA2E,wCAAmB;;yCAAwD,sCAAiB;;;yCAAgI,sCAAiB;;yCAAvd,sCAAiB;;;uCAAuK,oCAAe;4BAAnJ,oCAAe;gDAAkC,sCAAiB;yCAA2B,mCAAc;iDAA2E,wCAAmB;;yCAAwD,sCAAiB;;;yCAAgI,sCAAiB;;;;yCAAvd,sCAAiB;;;uCAAuK,oCAAe;4BAAnJ,oCAAe;gDAAkC,sCAAiB;yCAA2B,mCAAc;iDAA2E,wCAAmB;;yCAAwD,sCAAiB;;;yCAAgI,sCA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];
|
|
144
144
|
};
|
|
145
145
|
export type AddScopeInput = {
|
|
146
|
-
scope?: InputMaybe<BuilderScopeInput
|
|
146
|
+
scope?: InputMaybe<BuilderScopeInput | `${BuilderScopeInput}`>;
|
|
147
147
|
};
|
|
148
148
|
export type AddSkillInput = {
|
|
149
|
-
skill?: InputMaybe<BuilderSkillInput
|
|
149
|
+
skill?: InputMaybe<BuilderSkillInput | `${BuilderSkillInput}`>;
|
|
150
150
|
};
|
|
151
151
|
export type BuilderLink = {
|
|
152
152
|
id: Scalars["OID"]["output"];
|
|
@@ -162,11 +162,11 @@ export type BuilderProfileState = {
|
|
|
162
162
|
lastModified: Maybe<Scalars["DateTime"]["output"]>;
|
|
163
163
|
links: Array<BuilderLink>;
|
|
164
164
|
name: Maybe<Scalars["String"]["output"]>;
|
|
165
|
-
scopes: Array<BuilderScope
|
|
166
|
-
|
|
165
|
+
scopes: Array<BuilderScope | `${BuilderScope}`>;
|
|
166
|
+
skils: Array<BuilderSkill | `${BuilderSkill}`>;
|
|
167
167
|
slug: Maybe<Scalars["String"]["output"]>;
|
|
168
|
-
status: Maybe<BuilderStatus
|
|
169
|
-
type: TeamType
|
|
168
|
+
status: Maybe<BuilderStatus | `${BuilderStatus}`>;
|
|
169
|
+
type: TeamType | `${TeamType}`;
|
|
170
170
|
};
|
|
171
171
|
export type BuilderScope = "ACC" | "GOVERNANCE_SCOPE" | "PROTOCOL_SCOPE" | "STA" | "STABILITY_SCOPE" | "SUP" | "SUPPORT_SCOPE";
|
|
172
172
|
export type BuilderScopeInput = "ACC" | "GOVERNANCE_SCOPE" | "PROTOCOL_SCOPE" | "STA" | "STABILITY_SCOPE" | "SUP" | "SUPPORT_SCOPE";
|
|
@@ -186,10 +186,10 @@ export type RemoveLinkInput = {
|
|
|
186
186
|
id: Scalars["OID"]["input"];
|
|
187
187
|
};
|
|
188
188
|
export type RemoveScopeInput = {
|
|
189
|
-
scope?: InputMaybe<BuilderScopeInput
|
|
189
|
+
scope?: InputMaybe<BuilderScopeInput | `${BuilderScopeInput}`>;
|
|
190
190
|
};
|
|
191
191
|
export type RemoveSkillInput = {
|
|
192
|
-
skill?: InputMaybe<BuilderSkillInput
|
|
192
|
+
skill?: InputMaybe<BuilderSkillInput | `${BuilderSkillInput}`>;
|
|
193
193
|
};
|
|
194
194
|
export type UpdateProfileInput = {
|
|
195
195
|
code?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -198,8 +198,8 @@ export type UpdateProfileInput = {
|
|
|
198
198
|
id?: InputMaybe<Scalars["PHID"]["input"]>;
|
|
199
199
|
name?: InputMaybe<Scalars["String"]["input"]>;
|
|
200
200
|
slug?: InputMaybe<Scalars["String"]["input"]>;
|
|
201
|
-
status?: InputMaybe<BuilderStatusInput
|
|
202
|
-
type?: InputMaybe<TeamTypeInput
|
|
201
|
+
status?: InputMaybe<BuilderStatusInput | `${BuilderStatusInput}`>;
|
|
202
|
+
type?: InputMaybe<TeamTypeInput | `${TeamTypeInput}`>;
|
|
203
203
|
};
|
|
204
204
|
export type TeamType = "INDIVIDUAL" | "TEAM";
|
|
205
205
|
export type TeamTypeInput = "INDIVIDUAL" | "TEAM";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-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,C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C,iBAAiB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-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,CAAA;CAAE,EACpC,CAAC,SAAS,MAAM,CAAC,IACf;KAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK;CAAE,CAAC;AACzB,MAAM,MAAM,WAAW,CAAC,CAAC,IACrB,CAAC,GACD;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,gBAAgB,GAAG,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAC1E,CAAC;AACN,qEAA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E,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACrD,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,EAAE,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,GAAG,kBAAkB,EAAE,CAAC,CAAC;IAClE,IAAI,CAAC,EAAE,UAAU,CAAC,aAAa,GAAG,GAAG,aAAa,EAAE,CAAC,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,MAAM,CAAC"}
|
|
@@ -103,7 +103,7 @@ export function BuilderProfileStateSchema() {
|
|
|
103
103
|
links: z.array(BuilderLinkSchema()),
|
|
104
104
|
name: z.string().nullable(),
|
|
105
105
|
scopes: z.array(BuilderScopeSchema),
|
|
106
|
-
|
|
106
|
+
skils: z.array(BuilderSkillSchema),
|
|
107
107
|
slug: z.string().nullable(),
|
|
108
108
|
status: BuilderStatusSchema.nullable(),
|
|
109
109
|
type: TeamTypeSchema,
|
|
@@ -21,8 +21,8 @@ export const builderProfileBuildersOperations = {
|
|
|
21
21
|
},
|
|
22
22
|
addSkillOperation(state, action) {
|
|
23
23
|
if (action.input.skill) {
|
|
24
|
-
if (!state.
|
|
25
|
-
state.
|
|
24
|
+
if (!state.skils.includes(action.input.skill)) {
|
|
25
|
+
state.skils.push(action.input.skill);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
// Convert UTC timestamp (ms) to ISO string for storage
|
|
@@ -30,9 +30,9 @@ export const builderProfileBuildersOperations = {
|
|
|
30
30
|
},
|
|
31
31
|
removeSkillOperation(state, action) {
|
|
32
32
|
if (action.input.skill) {
|
|
33
|
-
const index = state.
|
|
33
|
+
const index = state.skils.indexOf(action.input.skill);
|
|
34
34
|
if (index !== -1) {
|
|
35
|
-
state.
|
|
35
|
+
state.skils.splice(index, 1);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
// Convert UTC timestamp (ms) to ISO string for storage
|
|
@@ -51,5 +51,5 @@ export function ProfilePreview({ state }) {
|
|
|
51
51
|
const statusStyle = state.status
|
|
52
52
|
? STATUS_STYLES[state.status]
|
|
53
53
|
: STATUS_STYLES.INACTIVE;
|
|
54
|
-
return (_jsxs("div", { className: "bg-white border border-slate-200/60 rounded-2xl shadow-sm overflow-hidden", children: [_jsx("div", { className: "h-24 bg-gradient-to-br from-indigo-500 via-purple-500 to-pink-500 relative", children: _jsx("div", { className: "absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIj48cGF0aCBkPSJNMzYgMzBoLTZWMGg2djMwem0tNiAwSDI0VjBoNnYzMHoiLz48L2c+PC9nPjwvc3ZnPg==')] opacity-30" }) }), _jsxs("div", { className: "px-6 pb-6", children: [_jsxs("div", { className: "-mt-12 mb-4 flex items-end justify-between", children: [_jsxs("div", { className: "relative", children: [state.icon ? (_jsx("img", { src: state.icon, alt: "Profile", className: "w-24 h-24 rounded-2xl object-cover border-4 border-white shadow-lg" })) : (_jsx("div", { className: "w-24 h-24 rounded-2xl bg-gradient-to-br from-slate-700 to-slate-900 border-4 border-white shadow-lg flex items-center justify-center", children: _jsx("span", { className: "text-3xl font-bold text-white", children: state.name?.charAt(0).toUpperCase() || "?" }) })), state.type === "TEAM" && (_jsx("div", { className: "absolute -bottom-1 -right-1 w-7 h-7 bg-purple-500 rounded-lg border-2 border-white flex items-center justify-center", children: _jsx(Users, { size: 14, className: "text-white" }) }))] }), state.status && (_jsxs("div", { className: `flex items-center gap-1.5 px-3 py-1.5 rounded-full ${statusStyle.bg}`, children: [_jsx("span", { className: `w-2 h-2 rounded-full ${statusStyle.dot}` }), _jsx("span", { className: `text-xs font-medium ${statusStyle.text}`, children: state.status.replace("_", " ") })] }))] }), _jsxs("div", { className: "mb-4", children: [_jsx("h4", { className: "text-xl font-semibold text-slate-900 tracking-tight", children: state.name || "Unnamed Builder" }), state.slug && (_jsxs("p", { className: "text-sm text-slate-500 font-medium", children: ["@", state.slug] }))] }), state.description && (_jsx("p", { className: "text-slate-600 text-sm leading-relaxed mb-5", children: state.description })), state.
|
|
54
|
+
return (_jsxs("div", { className: "bg-white border border-slate-200/60 rounded-2xl shadow-sm overflow-hidden", children: [_jsx("div", { className: "h-24 bg-gradient-to-br from-indigo-500 via-purple-500 to-pink-500 relative", children: _jsx("div", { className: "absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIj48cGF0aCBkPSJNMzYgMzBoLTZWMGg2djMwem0tNiAwSDI0VjBoNnYzMHoiLz48L2c+PC9nPjwvc3ZnPg==')] opacity-30" }) }), _jsxs("div", { className: "px-6 pb-6", children: [_jsxs("div", { className: "-mt-12 mb-4 flex items-end justify-between", children: [_jsxs("div", { className: "relative", children: [state.icon ? (_jsx("img", { src: state.icon, alt: "Profile", className: "w-24 h-24 rounded-2xl object-cover border-4 border-white shadow-lg" })) : (_jsx("div", { className: "w-24 h-24 rounded-2xl bg-gradient-to-br from-slate-700 to-slate-900 border-4 border-white shadow-lg flex items-center justify-center", children: _jsx("span", { className: "text-3xl font-bold text-white", children: state.name?.charAt(0).toUpperCase() || "?" }) })), state.type === "TEAM" && (_jsx("div", { className: "absolute -bottom-1 -right-1 w-7 h-7 bg-purple-500 rounded-lg border-2 border-white flex items-center justify-center", children: _jsx(Users, { size: 14, className: "text-white" }) }))] }), state.status && (_jsxs("div", { className: `flex items-center gap-1.5 px-3 py-1.5 rounded-full ${statusStyle.bg}`, children: [_jsx("span", { className: `w-2 h-2 rounded-full ${statusStyle.dot}` }), _jsx("span", { className: `text-xs font-medium ${statusStyle.text}`, children: state.status.replace("_", " ") })] }))] }), _jsxs("div", { className: "mb-4", children: [_jsx("h4", { className: "text-xl font-semibold text-slate-900 tracking-tight", children: state.name || "Unnamed Builder" }), state.slug && (_jsxs("p", { className: "text-sm text-slate-500 font-medium", children: ["@", state.slug] }))] }), state.description && (_jsx("p", { className: "text-slate-600 text-sm leading-relaxed mb-5", children: state.description })), state.skils && state.skils.length > 0 && (_jsxs("div", { className: "mb-4", children: [_jsx("p", { className: "text-xs font-semibold text-slate-400 uppercase tracking-wider mb-2", children: "Skills" }), _jsx("div", { className: "flex flex-wrap gap-1.5", children: state.skils.map((skill) => (_jsx("span", { className: "px-2.5 py-1 rounded-lg text-xs font-medium bg-indigo-50 text-indigo-700 border border-indigo-100", children: SKILL_LABELS[skill] || skill }, skill))) })] })), state.scopes && state.scopes.length > 0 && (_jsxs("div", { className: "mb-4", children: [_jsx("p", { className: "text-xs font-semibold text-slate-400 uppercase tracking-wider mb-2", children: "Scopes" }), _jsx("div", { className: "flex flex-wrap gap-1.5", children: state.scopes.map((scope) => (_jsx("span", { className: "px-2.5 py-1 rounded-lg text-xs font-medium bg-emerald-50 text-emerald-700 border border-emerald-100", children: SCOPE_LABELS[scope] || scope }, scope))) })] })), state.links && state.links.length > 0 && (_jsx("div", { className: "pt-4 border-t border-slate-100", children: _jsx("div", { className: "flex flex-wrap gap-3", children: state.links.map((link) => (_jsxs("a", { href: link.url, target: "_blank", rel: "noopener noreferrer", className: "inline-flex items-center gap-1.5 text-sm text-slate-600 hover:text-indigo-600 transition-colors group", children: [_jsx(Link2, { size: 14, className: "text-slate-400 group-hover:text-indigo-500 transition-colors" }), _jsx("span", { className: "group-hover:underline underline-offset-2", children: link.label || new URL(link.url).hostname })] }, link.id))) }) }))] })] }));
|
|
55
55
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type MarkdownEditorMode = "preview" | "edit" | "live";
|
|
2
|
+
interface MarkdownEditorProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
onBlur?: (value: string) => void;
|
|
6
|
+
height?: number;
|
|
7
|
+
label?: string;
|
|
8
|
+
labelClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function MarkdownEditor({ value, onChange, onBlur, height, label, labelClassName, }: MarkdownEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=markdown-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-editor.d.ts","sourceRoot":"","sources":["../../../../editors/builder-profile/components/markdown-editor.tsx"],"names":[],"mappings":"AAeA,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7D,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,EACR,MAAM,EACN,MAAY,EACZ,KAAiB,EACjB,cAAqD,GACtD,EAAE,mBAAmB,2CA2LrB"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import remarkGfm from "remark-gfm";
|
|
4
|
+
import rehypeSlug from "rehype-slug";
|
|
5
|
+
import { useLocalStorage } from "usehooks-ts";
|
|
6
|
+
// Custom preview renderer to make links open in new tabs and ensure proper list rendering
|
|
7
|
+
const previewOptions = {
|
|
8
|
+
components: {
|
|
9
|
+
a: ({ ...props }) => (_jsx("a", { ...props, target: "_blank", rel: "noopener noreferrer" })),
|
|
10
|
+
},
|
|
11
|
+
rehypePlugins: [rehypeSlug],
|
|
12
|
+
remarkPlugins: [remarkGfm],
|
|
13
|
+
};
|
|
14
|
+
export function MarkdownEditor({ value, onChange, onBlur, height = 350, label = "Content", labelClassName = "text-sm leading-4 mb-3 font-medium", }) {
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
16
|
+
const [MDEditor, setMDEditor] = useState(null);
|
|
17
|
+
const [contentValue, setContentValue] = useState(" ");
|
|
18
|
+
const [isLoaded, setIsLoaded] = useState(false);
|
|
19
|
+
const [loadError, setLoadError] = useState(null);
|
|
20
|
+
const [viewMarkdownMode, setViewMarkdownMode] = useLocalStorage("markdown-editor-view-mode", "live");
|
|
21
|
+
// Ensure we have a valid mode for the editor
|
|
22
|
+
const editorMode = viewMarkdownMode || "live";
|
|
23
|
+
// Load the MDEditor component dynamically
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
// Use a more robust dynamic import approach
|
|
26
|
+
const loadEditor = async () => {
|
|
27
|
+
try {
|
|
28
|
+
const module = await import("@uiw/react-md-editor");
|
|
29
|
+
setMDEditor(() => module.default);
|
|
30
|
+
setIsLoaded(true);
|
|
31
|
+
setLoadError(null);
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
console.error("Failed to load MDEditor:", error);
|
|
35
|
+
setLoadError(error instanceof Error ? error.message : "Failed to load editor");
|
|
36
|
+
setIsLoaded(true);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
// Add a small delay to ensure DOM is ready
|
|
40
|
+
const timer = setTimeout(loadEditor, 0);
|
|
41
|
+
return () => clearTimeout(timer);
|
|
42
|
+
}, []);
|
|
43
|
+
// Update contentValue when value prop changes
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (isLoaded) {
|
|
46
|
+
const stringValue = typeof value === "string" ? value : "";
|
|
47
|
+
const safeValue = stringValue.trim() || " ";
|
|
48
|
+
setContentValue(safeValue);
|
|
49
|
+
}
|
|
50
|
+
}, [value, isLoaded]);
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
if (!MDEditor)
|
|
53
|
+
return;
|
|
54
|
+
const handleViewButtonClick = () => {
|
|
55
|
+
const buttonLive = document.querySelector("button[data-name='live']");
|
|
56
|
+
const buttonEdit = document.querySelector("button[data-name='edit']");
|
|
57
|
+
const buttonPreview = document.querySelector("button[data-name='preview']");
|
|
58
|
+
const liveLi = buttonLive?.closest("li");
|
|
59
|
+
const editLi = buttonEdit?.closest("li");
|
|
60
|
+
const previewLi = buttonPreview?.closest("li");
|
|
61
|
+
if (previewLi && previewLi.classList.contains("active")) {
|
|
62
|
+
setViewMarkdownMode("preview");
|
|
63
|
+
}
|
|
64
|
+
if (editLi && editLi.classList.contains("active")) {
|
|
65
|
+
setViewMarkdownMode("edit");
|
|
66
|
+
}
|
|
67
|
+
if (liveLi && liveLi.classList.contains("active")) {
|
|
68
|
+
setViewMarkdownMode("live");
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
document.addEventListener("click", handleViewButtonClick, true);
|
|
72
|
+
return () => {
|
|
73
|
+
document.removeEventListener("click", handleViewButtonClick, true);
|
|
74
|
+
};
|
|
75
|
+
}, [MDEditor, setViewMarkdownMode]);
|
|
76
|
+
// Handle content changes
|
|
77
|
+
const handleContentChange = (newValue) => {
|
|
78
|
+
if (newValue !== undefined) {
|
|
79
|
+
const stringValue = typeof newValue === "string" ? newValue : "";
|
|
80
|
+
// Only replace completely empty strings with a space, preserve all other content
|
|
81
|
+
const safeValue = stringValue === "" ? " " : stringValue;
|
|
82
|
+
setContentValue(safeValue);
|
|
83
|
+
onChange(newValue); // Keep the original value for the parent component
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
// Handle content blur
|
|
87
|
+
const handleContentBlur = (e) => {
|
|
88
|
+
if (onBlur) {
|
|
89
|
+
onBlur(e.target.value);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
return (_jsxs("div", { className: "w-full", children: [_jsx("style", { children: `
|
|
93
|
+
.w-md-editor-preview ul {
|
|
94
|
+
list-style-type: disc !important;
|
|
95
|
+
padding-left: 2em !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.w-md-editor-preview ol {
|
|
99
|
+
list-style-type: decimal !important;
|
|
100
|
+
padding-left: 2em !important;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Ensure proper table styling */
|
|
104
|
+
.w-md-editor-preview table {
|
|
105
|
+
border-collapse: collapse;
|
|
106
|
+
width: 100%;
|
|
107
|
+
margin: 1em 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.w-md-editor-preview th,
|
|
111
|
+
.w-md-editor-preview td {
|
|
112
|
+
border: 1px solid #ddd;
|
|
113
|
+
padding: 8px;
|
|
114
|
+
text-align: left;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.w-md-editor-preview th {
|
|
118
|
+
background-color: #f5f5f5;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.w-md-editor-text-pre code, .w-md-editor-text-pre div {
|
|
122
|
+
font-size: 16px !important;
|
|
123
|
+
line-height: 24px !important;
|
|
124
|
+
}
|
|
125
|
+
.w-md-editor-text-input {
|
|
126
|
+
font-size: 16px !important;
|
|
127
|
+
line-height: 24px !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
` }), label && _jsx("p", { className: labelClassName, children: label }), !isLoaded && (_jsx("div", { className: "w-full border border-gray-300 rounded-md p-3 bg-white", style: { height: `${height}px` }, children: _jsx("div", { className: "w-full h-full flex items-center justify-center text-gray-500", children: "Loading editor..." }) })), isLoaded && loadError && (_jsx("div", { className: "w-full border border-red-300 rounded-md p-3 bg-red-50", style: { height: `${height}px` }, children: _jsxs("div", { className: "w-full h-full flex flex-col items-center justify-center text-red-600", children: [_jsx("p", { className: "text-sm font-medium mb-2", children: "Failed to load markdown editor" }), _jsx("p", { className: "text-xs text-red-500", children: loadError }), _jsx("textarea", { className: "w-full h-full mt-2 p-2 border border-gray-300 rounded text-sm", placeholder: "Fallback text editor - write your content here...", value: value, onChange: (e) => onChange(e.target.value), onBlur: (e) => onBlur?.(e.target.value) })] }) })), isLoaded && MDEditor && (_jsx("div", { "data-color-mode": "light", className: "w-full", children: _jsx(MDEditor, { height: height, value: contentValue, onChange: handleContentChange, onBlur: handleContentBlur, previewOptions: previewOptions, enableScroll: true, preview: editorMode, textareaProps: {
|
|
131
|
+
placeholder: "Write your content here...",
|
|
132
|
+
} }) }))] }));
|
|
133
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/builder-profile/editor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/builder-profile/editor.tsx"],"names":[],"mappings":"AAwCA,MAAM,CAAC,OAAO,UAAU,MAAM,4CAmgB7B"}
|
|
@@ -12,6 +12,7 @@ import { LinksSection } from "./components/LinksSection.js";
|
|
|
12
12
|
import { ContributorsSection } from "./components/ContributorsSection.js";
|
|
13
13
|
import { ProfilePreview } from "./components/ProfilePreview.js";
|
|
14
14
|
import { ImageUrlInput } from "./components/ImageUrlInput.js";
|
|
15
|
+
import { MarkdownEditor } from "./components/markdown-editor.js";
|
|
15
16
|
const STATUS_OPTIONS = [
|
|
16
17
|
{ value: "ACTIVE", label: "Active", color: "bg-emerald-500" },
|
|
17
18
|
{ value: "INACTIVE", label: "Inactive", color: "bg-slate-400" },
|
|
@@ -242,9 +243,5 @@ export default function Editor() {
|
|
|
242
243
|
}
|
|
243
244
|
}, children: [_jsx("option", { value: "", disabled: true, children: "Select status..." }), STATUS_OPTIONS.map((option) => (_jsx("option", { value: option.value, children: option.label }, option.value)))] })] }), _jsxs("div", { children: [_jsx("label", { className: "field-label", children: "Profile Type" }), _jsxs("div", { className: "type-toggle", children: [_jsx("button", { type: "button", onClick: () => handleTypeChange("INDIVIDUAL"), className: state?.type === "INDIVIDUAL" ? "active" : "", children: _jsxs("span", { className: "flex items-center justify-center gap-2", children: [_jsx(User, { size: 16 }), "Individual"] }) }), _jsx("button", { type: "button", onClick: () => handleTypeChange("TEAM"), className: state?.type === "TEAM" ? "active" : "", children: _jsxs("span", { className: "flex items-center justify-center gap-2", children: [_jsx(Users, { size: 16 }), "Team"] }) })] }), _jsx("p", { className: "field-hint", children: state?.type === "TEAM"
|
|
244
245
|
? "Teams can add contributors to their profile"
|
|
245
|
-
: "Individual profiles represent a single builder" })] })] })] }), _jsxs("div", { className: "section-card p-6", children: [_jsxs("h3", { className: "text-lg font-semibold text-slate-900 mb-6 flex items-center gap-2", children: [_jsx("span", { className: "w-8 h-8 rounded-lg bg-emerald-50 flex items-center justify-center", children: _jsx(FileText, { size: 18, className: "text-emerald-600" }) }), "About"] }), _jsxs("div", { children: [_jsx(
|
|
246
|
-
if (e.target.value !== state?.description) {
|
|
247
|
-
handleFieldChange("description", e.target.value);
|
|
248
|
-
}
|
|
249
|
-
}, placeholder: "Describe your expertise, focus areas, and what you bring to the ecosystem...", rows: 4, autoExpand: true }), _jsx("p", { className: "field-hint", children: "A compelling description helps others understand your capabilities" })] })] }), _jsx(SkillsSection, { skills: state?.skilss || [], onAddSkill: handleAddSkill, onRemoveSkill: handleRemoveSkill }), _jsx(ScopesSection, { scopes: state?.scopes || [], onAddScope: handleAddScope, onRemoveScope: handleRemoveScope }), _jsx(LinksSection, { links: state?.links || [], onAddLink: handleAddLink, onEditLink: handleEditLink, onRemoveLink: handleRemoveLink }), state?.type === "TEAM" && (_jsx(ContributorsSection, { contributors: state.contributors, onAddContributor: handleAddContributor, onRemoveContributor: handleRemoveContributor })), _jsx(ToastContainer, { position: "bottom-right" })] })] }));
|
|
246
|
+
: "Individual profiles represent a single builder" })] })] })] }), _jsxs("div", { className: "section-card p-6", children: [_jsxs("h3", { className: "text-lg font-semibold text-slate-900 mb-6 flex items-center gap-2", children: [_jsx("span", { className: "w-8 h-8 rounded-lg bg-emerald-50 flex items-center justify-center", children: _jsx(FileText, { size: 18, className: "text-emerald-600" }) }), "About"] }), _jsxs("div", { children: [_jsx(MarkdownEditor, { label: "What is the builder profile about?", height: 350, value: state?.description || "", onChange: () => { }, onBlur: (value) => handleFieldChange("description", value) }), _jsx("p", { className: "field-hint", children: "A compelling description helps others understand your capabilities" })] })] }), _jsx(SkillsSection, { skills: state?.skils || [], onAddSkill: handleAddSkill, onRemoveSkill: handleRemoveSkill }), _jsx(ScopesSection, { scopes: state?.scopes || [], onAddScope: handleAddScope, onRemoveScope: handleRemoveScope }), _jsx(LinksSection, { links: state?.links || [], onAddLink: handleAddLink, onEditLink: handleEditLink, onRemoveLink: handleRemoveLink }), state?.type === "TEAM" && (_jsx(ContributorsSection, { contributors: state.contributors, onAddContributor: handleAddContributor, onRemoveContributor: handleRemoveContributor })), _jsx(ToastContainer, { position: "bottom-right" })] })] }));
|
|
250
247
|
}
|
package/dist/style.css
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"Courier New", monospace;
|
|
9
9
|
--color-red-50: oklch(97.1% 0.013 17.38);
|
|
10
10
|
--color-red-100: hsl(3 82% 96%);
|
|
11
|
+
--color-red-300: hsl(6 82% 87%);
|
|
11
12
|
--color-red-500: hsl(5 80% 78%);
|
|
12
13
|
--color-red-600: hsl(4 81% 74%);
|
|
13
14
|
--color-orange-500: hsl(33 99% 70%);
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
--tracking-wider: 0.05em;
|
|
84
85
|
--leading-relaxed: 1.625;
|
|
85
86
|
--radius-sm: 0.25rem;
|
|
87
|
+
--radius-md: 0.375rem;
|
|
86
88
|
--radius-lg: 0.5rem;
|
|
87
89
|
--radius-xl: 0.75rem;
|
|
88
90
|
--radius-2xl: 1rem;
|
|
@@ -293,6 +295,9 @@
|
|
|
293
295
|
.mt-1 {
|
|
294
296
|
margin-top: calc(var(--spacing) * 1);
|
|
295
297
|
}
|
|
298
|
+
.mt-2 {
|
|
299
|
+
margin-top: calc(var(--spacing) * 2);
|
|
300
|
+
}
|
|
296
301
|
.mt-3 {
|
|
297
302
|
margin-top: calc(var(--spacing) * 3);
|
|
298
303
|
}
|
|
@@ -329,6 +334,9 @@
|
|
|
329
334
|
.inline-flex {
|
|
330
335
|
display: inline-flex;
|
|
331
336
|
}
|
|
337
|
+
.table {
|
|
338
|
+
display: table;
|
|
339
|
+
}
|
|
332
340
|
.h-2 {
|
|
333
341
|
height: calc(var(--spacing) * 2);
|
|
334
342
|
}
|
|
@@ -398,6 +406,9 @@
|
|
|
398
406
|
.flex-shrink-0 {
|
|
399
407
|
flex-shrink: 0;
|
|
400
408
|
}
|
|
409
|
+
.border-collapse {
|
|
410
|
+
border-collapse: collapse;
|
|
411
|
+
}
|
|
401
412
|
.-translate-y-1\/2 {
|
|
402
413
|
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
403
414
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -414,6 +425,9 @@
|
|
|
414
425
|
.grid-cols-1 {
|
|
415
426
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
416
427
|
}
|
|
428
|
+
.flex-col {
|
|
429
|
+
flex-direction: column;
|
|
430
|
+
}
|
|
417
431
|
.flex-wrap {
|
|
418
432
|
flex-wrap: wrap;
|
|
419
433
|
}
|
|
@@ -492,6 +506,9 @@
|
|
|
492
506
|
.rounded-lg {
|
|
493
507
|
border-radius: var(--radius-lg);
|
|
494
508
|
}
|
|
509
|
+
.rounded-md {
|
|
510
|
+
border-radius: var(--radius-md);
|
|
511
|
+
}
|
|
495
512
|
.rounded-sm {
|
|
496
513
|
border-radius: var(--radius-sm);
|
|
497
514
|
}
|
|
@@ -533,6 +550,9 @@
|
|
|
533
550
|
.border-indigo-100 {
|
|
534
551
|
border-color: var(--color-indigo-100);
|
|
535
552
|
}
|
|
553
|
+
.border-red-300 {
|
|
554
|
+
border-color: var(--color-red-300);
|
|
555
|
+
}
|
|
536
556
|
.border-slate-100 {
|
|
537
557
|
border-color: var(--color-slate-100);
|
|
538
558
|
}
|
|
@@ -605,6 +625,9 @@
|
|
|
605
625
|
.bg-purple-500 {
|
|
606
626
|
background-color: var(--color-purple-500);
|
|
607
627
|
}
|
|
628
|
+
.bg-red-50 {
|
|
629
|
+
background-color: var(--color-red-50);
|
|
630
|
+
}
|
|
608
631
|
.bg-red-500 {
|
|
609
632
|
background-color: var(--color-red-500);
|
|
610
633
|
}
|
|
@@ -796,6 +819,10 @@
|
|
|
796
819
|
font-size: var(--text-xs);
|
|
797
820
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
798
821
|
}
|
|
822
|
+
.leading-4 {
|
|
823
|
+
--tw-leading: calc(var(--spacing) * 4);
|
|
824
|
+
line-height: calc(var(--spacing) * 4);
|
|
825
|
+
}
|
|
799
826
|
.leading-relaxed {
|
|
800
827
|
--tw-leading: var(--leading-relaxed);
|
|
801
828
|
line-height: var(--leading-relaxed);
|
|
@@ -863,6 +890,9 @@
|
|
|
863
890
|
.text-red-500 {
|
|
864
891
|
color: var(--color-red-500);
|
|
865
892
|
}
|
|
893
|
+
.text-red-600 {
|
|
894
|
+
color: var(--color-red-600);
|
|
895
|
+
}
|
|
866
896
|
.text-sky-700 {
|
|
867
897
|
color: var(--color-sky-700);
|
|
868
898
|
}
|
|
@@ -923,6 +953,10 @@
|
|
|
923
953
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
924
954
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
925
955
|
}
|
|
956
|
+
.blur {
|
|
957
|
+
--tw-blur: blur(8px);
|
|
958
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
959
|
+
}
|
|
926
960
|
.backdrop-blur-sm {
|
|
927
961
|
--tw-backdrop-blur: blur(var(--blur-sm));
|
|
928
962
|
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
@@ -1304,6 +1338,59 @@
|
|
|
1304
1338
|
inherits: false;
|
|
1305
1339
|
initial-value: 0 0 #0000;
|
|
1306
1340
|
}
|
|
1341
|
+
@property --tw-blur {
|
|
1342
|
+
syntax: "*";
|
|
1343
|
+
inherits: false;
|
|
1344
|
+
}
|
|
1345
|
+
@property --tw-brightness {
|
|
1346
|
+
syntax: "*";
|
|
1347
|
+
inherits: false;
|
|
1348
|
+
}
|
|
1349
|
+
@property --tw-contrast {
|
|
1350
|
+
syntax: "*";
|
|
1351
|
+
inherits: false;
|
|
1352
|
+
}
|
|
1353
|
+
@property --tw-grayscale {
|
|
1354
|
+
syntax: "*";
|
|
1355
|
+
inherits: false;
|
|
1356
|
+
}
|
|
1357
|
+
@property --tw-hue-rotate {
|
|
1358
|
+
syntax: "*";
|
|
1359
|
+
inherits: false;
|
|
1360
|
+
}
|
|
1361
|
+
@property --tw-invert {
|
|
1362
|
+
syntax: "*";
|
|
1363
|
+
inherits: false;
|
|
1364
|
+
}
|
|
1365
|
+
@property --tw-opacity {
|
|
1366
|
+
syntax: "*";
|
|
1367
|
+
inherits: false;
|
|
1368
|
+
}
|
|
1369
|
+
@property --tw-saturate {
|
|
1370
|
+
syntax: "*";
|
|
1371
|
+
inherits: false;
|
|
1372
|
+
}
|
|
1373
|
+
@property --tw-sepia {
|
|
1374
|
+
syntax: "*";
|
|
1375
|
+
inherits: false;
|
|
1376
|
+
}
|
|
1377
|
+
@property --tw-drop-shadow {
|
|
1378
|
+
syntax: "*";
|
|
1379
|
+
inherits: false;
|
|
1380
|
+
}
|
|
1381
|
+
@property --tw-drop-shadow-color {
|
|
1382
|
+
syntax: "*";
|
|
1383
|
+
inherits: false;
|
|
1384
|
+
}
|
|
1385
|
+
@property --tw-drop-shadow-alpha {
|
|
1386
|
+
syntax: "<percentage>";
|
|
1387
|
+
inherits: false;
|
|
1388
|
+
initial-value: 100%;
|
|
1389
|
+
}
|
|
1390
|
+
@property --tw-drop-shadow-size {
|
|
1391
|
+
syntax: "*";
|
|
1392
|
+
inherits: false;
|
|
1393
|
+
}
|
|
1307
1394
|
@property --tw-backdrop-blur {
|
|
1308
1395
|
syntax: "*";
|
|
1309
1396
|
inherits: false;
|
|
@@ -1384,6 +1471,19 @@
|
|
|
1384
1471
|
--tw-ring-offset-width: 0px;
|
|
1385
1472
|
--tw-ring-offset-color: #fff;
|
|
1386
1473
|
--tw-ring-offset-shadow: 0 0 #0000;
|
|
1474
|
+
--tw-blur: initial;
|
|
1475
|
+
--tw-brightness: initial;
|
|
1476
|
+
--tw-contrast: initial;
|
|
1477
|
+
--tw-grayscale: initial;
|
|
1478
|
+
--tw-hue-rotate: initial;
|
|
1479
|
+
--tw-invert: initial;
|
|
1480
|
+
--tw-opacity: initial;
|
|
1481
|
+
--tw-saturate: initial;
|
|
1482
|
+
--tw-sepia: initial;
|
|
1483
|
+
--tw-drop-shadow: initial;
|
|
1484
|
+
--tw-drop-shadow-color: initial;
|
|
1485
|
+
--tw-drop-shadow-alpha: 100%;
|
|
1486
|
+
--tw-drop-shadow-size: initial;
|
|
1387
1487
|
--tw-backdrop-blur: initial;
|
|
1388
1488
|
--tw-backdrop-brightness: initial;
|
|
1389
1489
|
--tw-backdrop-contrast: initial;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/builder-profile",
|
|
3
3
|
"description": "Builder profile document model",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -66,11 +66,13 @@
|
|
|
66
66
|
"@powerhousedao/common": "latest",
|
|
67
67
|
"@powerhousedao/design-system": "latest",
|
|
68
68
|
"@powerhousedao/document-engineering": "^1.38.0",
|
|
69
|
+
"@uiw/react-md-editor": "^4.0.11",
|
|
69
70
|
"document-model": "latest",
|
|
70
71
|
"error": "^10.4.0",
|
|
71
72
|
"graphql": "^16.10.0",
|
|
72
73
|
"graphql-tag": "^2.12.6",
|
|
73
74
|
"lucide-react": "^0.556.0",
|
|
75
|
+
"rehype-slug": "^6.0.0",
|
|
74
76
|
"zod": "^3.24.2"
|
|
75
77
|
},
|
|
76
78
|
"devDependencies": {
|