@powerhousedao/builder-profile 0.0.8 → 0.0.10
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/actions.d.ts +1 -0
- package/dist/document-models/builder-profile/actions.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/builders/actions.d.ts +6 -2
- package/dist/document-models/builder-profile/gen/builders/actions.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/builders/creators.d.ts +3 -2
- package/dist/document-models/builder-profile/gen/builders/creators.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/builders/creators.js +2 -1
- package/dist/document-models/builder-profile/gen/builders/operations.d.ts +2 -1
- package/dist/document-models/builder-profile/gen/builders/operations.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/document-model.js +14 -3
- package/dist/document-models/builder-profile/gen/document-schema.d.ts +57 -19
- package/dist/document-models/builder-profile/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/ph-factories.js +3 -1
- package/dist/document-models/builder-profile/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/reducer.js +5 -1
- package/dist/document-models/builder-profile/gen/schema/types.d.ts +7 -1
- package/dist/document-models/builder-profile/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/schema/zod.d.ts +2 -1
- package/dist/document-models/builder-profile/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/schema/zod.js +9 -1
- package/dist/document-models/builder-profile/gen/utils.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/utils.js +3 -1
- package/dist/document-models/builder-profile/src/reducers/builders.d.ts.map +1 -1
- package/dist/document-models/builder-profile/src/reducers/builders.js +14 -5
- package/dist/editors/builder-profile/components/MarkdownPreview.d.ts +8 -0
- package/dist/editors/builder-profile/components/MarkdownPreview.d.ts.map +1 -0
- package/dist/editors/builder-profile/components/MarkdownPreview.js +80 -0
- package/dist/editors/builder-profile/components/ProfilePreview.d.ts.map +1 -1
- package/dist/editors/builder-profile/components/ProfilePreview.js +2 -1
- package/dist/editors/builder-profile/editor.d.ts.map +1 -1
- package/dist/editors/builder-profile/editor.js +80 -5
- package/dist/style.css +835 -0
- package/dist/subgraphs/builder-profile/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/builder-profile/resolvers.js +12 -0
- package/dist/subgraphs/builder-profile/schema.d.ts.map +1 -1
- package/dist/subgraphs/builder-profile/schema.js +11 -2
- package/package.json +16 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-profile/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-profile/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAuB/D,eAAO,MAAM,YAAY,GACvB,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAkUxB,CAAC"}
|
|
@@ -187,6 +187,18 @@ export const getResolvers = (subgraph) => {
|
|
|
187
187
|
}
|
|
188
188
|
return true;
|
|
189
189
|
},
|
|
190
|
+
BuilderProfile_setOperator: async (_, args) => {
|
|
191
|
+
const { docId, input } = args;
|
|
192
|
+
const doc = await reactor.getDocument(docId);
|
|
193
|
+
if (!doc) {
|
|
194
|
+
throw new Error("Document not found");
|
|
195
|
+
}
|
|
196
|
+
const result = await reactor.addAction(docId, actions.setOperator(input));
|
|
197
|
+
if (result.status !== "SUCCESS") {
|
|
198
|
+
throw new Error(result.error?.message ?? "Failed to setOperator");
|
|
199
|
+
}
|
|
200
|
+
return true;
|
|
201
|
+
},
|
|
190
202
|
},
|
|
191
203
|
};
|
|
192
204
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-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/builder-profile/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,YAkKpB,CAAC"}
|
|
@@ -68,6 +68,11 @@ export const schema = gql `
|
|
|
68
68
|
docId: PHID
|
|
69
69
|
input: BuilderProfile_RemoveContributorInput
|
|
70
70
|
): Int
|
|
71
|
+
BuilderProfile_setOperator(
|
|
72
|
+
driveId: String
|
|
73
|
+
docId: PHID
|
|
74
|
+
input: BuilderProfile_SetOperatorInput
|
|
75
|
+
): Int
|
|
71
76
|
}
|
|
72
77
|
|
|
73
78
|
"""
|
|
@@ -80,6 +85,7 @@ export const schema = gql `
|
|
|
80
85
|
name: String
|
|
81
86
|
icon: URL
|
|
82
87
|
description: String
|
|
88
|
+
about: String
|
|
83
89
|
status: BuilderProfile_BuilderStatusInput
|
|
84
90
|
type: BuilderProfile_teamTypeInput
|
|
85
91
|
}
|
|
@@ -114,7 +120,7 @@ export const schema = gql `
|
|
|
114
120
|
SECURITY_ENGINEERING
|
|
115
121
|
}
|
|
116
122
|
input BuilderProfile_RemoveSkillInput {
|
|
117
|
-
skill:
|
|
123
|
+
skill: BuilderSkillInput
|
|
118
124
|
}
|
|
119
125
|
|
|
120
126
|
input BuilderProfile_AddScopeInput {
|
|
@@ -131,7 +137,7 @@ export const schema = gql `
|
|
|
131
137
|
GOVERNANCE_SCOPE
|
|
132
138
|
}
|
|
133
139
|
input BuilderProfile_RemoveScopeInput {
|
|
134
|
-
scope:
|
|
140
|
+
scope: BuilderScopeInput
|
|
135
141
|
}
|
|
136
142
|
input BuilderProfile_AddLinkInput {
|
|
137
143
|
id: OID!
|
|
@@ -152,4 +158,7 @@ export const schema = gql `
|
|
|
152
158
|
input BuilderProfile_RemoveContributorInput {
|
|
153
159
|
contributorPHID: PHID!
|
|
154
160
|
}
|
|
161
|
+
input BuilderProfile_SetOperatorInput {
|
|
162
|
+
isOperator: Boolean!
|
|
163
|
+
}
|
|
155
164
|
`;
|
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.10",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -62,12 +62,13 @@
|
|
|
62
62
|
"service-unstartup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@powerhousedao/builder-tools": "
|
|
66
|
-
"@powerhousedao/common": "
|
|
67
|
-
"@powerhousedao/design-system": "
|
|
65
|
+
"@powerhousedao/builder-tools": "^5.1.0",
|
|
66
|
+
"@powerhousedao/common": "^5.1.0",
|
|
67
|
+
"@powerhousedao/design-system": "^5.1.0",
|
|
68
68
|
"@powerhousedao/document-engineering": "^1.40.0",
|
|
69
|
+
"@powerhousedao/vetra": "^5.1.0",
|
|
69
70
|
"@uiw/react-md-editor": "^4.0.11",
|
|
70
|
-
"document-model": "
|
|
71
|
+
"document-model": "^5.1.0",
|
|
71
72
|
"error": "^10.4.0",
|
|
72
73
|
"graphql": "^16.10.0",
|
|
73
74
|
"graphql-tag": "^2.12.6",
|
|
@@ -79,21 +80,21 @@
|
|
|
79
80
|
"@electric-sql/pglite": "^0.2.12",
|
|
80
81
|
"@eslint/js": "^9.38.0",
|
|
81
82
|
"@powerhousedao/analytics-engine-core": "^0.5.0",
|
|
82
|
-
"@powerhousedao/codegen": "
|
|
83
|
-
"@powerhousedao/config": "
|
|
84
|
-
"@powerhousedao/connect": "
|
|
85
|
-
"@powerhousedao/ph-cli": "
|
|
86
|
-
"@powerhousedao/reactor-api": "
|
|
87
|
-
"@powerhousedao/reactor-browser": "
|
|
88
|
-
"@powerhousedao/reactor-local": "
|
|
83
|
+
"@powerhousedao/codegen": "^5.1.0",
|
|
84
|
+
"@powerhousedao/config": "^5.1.0",
|
|
85
|
+
"@powerhousedao/connect": "^5.1.0",
|
|
86
|
+
"@powerhousedao/ph-cli": "^5.1.0",
|
|
87
|
+
"@powerhousedao/reactor-api": "^5.1.0",
|
|
88
|
+
"@powerhousedao/reactor-browser": "^5.1.0",
|
|
89
|
+
"@powerhousedao/reactor-local": "^5.1.0",
|
|
89
90
|
"@powerhousedao/scalars": "latest",
|
|
90
|
-
"@powerhousedao/switchboard": "
|
|
91
|
+
"@powerhousedao/switchboard": "^5.1.0",
|
|
91
92
|
"@tailwindcss/cli": "^4.1.4",
|
|
92
93
|
"@testing-library/react": "^16.3.0",
|
|
93
94
|
"@types/node": "^24.9.2",
|
|
94
95
|
"@types/react": "^19.2.2",
|
|
95
96
|
"@vitejs/plugin-react": "^5.1.0",
|
|
96
|
-
"document-drive": "
|
|
97
|
+
"document-drive": "^5.1.0",
|
|
97
98
|
"eslint": "^9.38.0",
|
|
98
99
|
"eslint-config-prettier": "^10.1.8",
|
|
99
100
|
"eslint-plugin-prettier": "^5.5.4",
|
|
@@ -115,4 +116,4 @@
|
|
|
115
116
|
"react": "^19.2.0",
|
|
116
117
|
"react-dom": "^19.2.0"
|
|
117
118
|
}
|
|
118
|
-
}
|
|
119
|
+
}
|