@powerhousedao/builder-profile 0.0.3 → 0.0.5

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.
Files changed (94) hide show
  1. package/dist/document-models/builder-profile/actions.d.ts +9 -0
  2. package/dist/document-models/builder-profile/actions.d.ts.map +1 -1
  3. package/dist/document-models/builder-profile/actions.js +2 -2
  4. package/dist/document-models/builder-profile/gen/actions.d.ts +3 -3
  5. package/dist/document-models/builder-profile/gen/actions.d.ts.map +1 -1
  6. package/dist/document-models/builder-profile/gen/actions.js +1 -1
  7. package/dist/document-models/builder-profile/gen/builders/actions.d.ts +44 -0
  8. package/dist/document-models/builder-profile/gen/builders/actions.d.ts.map +1 -0
  9. package/dist/document-models/builder-profile/gen/builders/creators.d.ts +13 -0
  10. package/dist/document-models/builder-profile/gen/builders/creators.d.ts.map +1 -0
  11. package/dist/document-models/builder-profile/gen/builders/creators.js +12 -0
  12. package/dist/document-models/builder-profile/gen/builders/error.d.ts.map +1 -0
  13. package/dist/document-models/builder-profile/gen/builders/operations.d.ts +16 -0
  14. package/dist/document-models/builder-profile/gen/builders/operations.d.ts.map +1 -0
  15. package/dist/document-models/builder-profile/gen/creators.d.ts +2 -2
  16. package/dist/document-models/builder-profile/gen/creators.d.ts.map +1 -1
  17. package/dist/document-models/builder-profile/gen/creators.js +2 -2
  18. package/dist/document-models/builder-profile/gen/document-model.d.ts.map +1 -1
  19. package/dist/document-models/builder-profile/gen/document-model.js +121 -22
  20. package/dist/document-models/builder-profile/gen/document-schema.d.ts +168 -16
  21. package/dist/document-models/builder-profile/gen/document-schema.d.ts.map +1 -1
  22. package/dist/document-models/builder-profile/gen/index.d.ts +1 -1
  23. package/dist/document-models/builder-profile/gen/index.d.ts.map +1 -1
  24. package/dist/document-models/builder-profile/gen/index.js +1 -1
  25. package/dist/document-models/builder-profile/gen/ph-factories.d.ts.map +1 -1
  26. package/dist/document-models/builder-profile/gen/ph-factories.js +8 -0
  27. package/dist/document-models/builder-profile/gen/reducer.d.ts.map +1 -1
  28. package/dist/document-models/builder-profile/gen/reducer.js +39 -3
  29. package/dist/document-models/builder-profile/gen/schema/types.d.ts +55 -0
  30. package/dist/document-models/builder-profile/gen/schema/types.d.ts.map +1 -1
  31. package/dist/document-models/builder-profile/gen/schema/zod.d.ts +19 -1
  32. package/dist/document-models/builder-profile/gen/schema/zod.d.ts.map +1 -1
  33. package/dist/document-models/builder-profile/gen/schema/zod.js +126 -0
  34. package/dist/document-models/builder-profile/gen/utils.d.ts.map +1 -1
  35. package/dist/document-models/builder-profile/gen/utils.js +9 -1
  36. package/dist/document-models/builder-profile/src/reducers/builders.d.ts +3 -0
  37. package/dist/document-models/builder-profile/src/reducers/builders.d.ts.map +1 -0
  38. package/dist/document-models/builder-profile/src/reducers/builders.js +108 -0
  39. package/dist/document-models/builder-profile/src/tests/{builder.test.d.ts → builders.test.d.ts} +1 -1
  40. package/dist/document-models/builder-profile/src/tests/builders.test.d.ts.map +1 -0
  41. package/dist/document-models/builder-profile/src/tests/{builder.test.js → builders.test.js} +1 -1
  42. package/dist/document-models/document-models.d.ts.map +1 -1
  43. package/dist/document-models/document-models.js +3 -1
  44. package/dist/document-models/index.d.ts +0 -4
  45. package/dist/document-models/index.d.ts.map +1 -1
  46. package/dist/document-models/index.js +0 -4
  47. package/dist/editors/builder-profile/components/ContributorsSection.d.ts +8 -0
  48. package/dist/editors/builder-profile/components/ContributorsSection.d.ts.map +1 -0
  49. package/dist/editors/builder-profile/components/ContributorsSection.js +177 -0
  50. package/dist/editors/builder-profile/components/ImageUrlInput.d.ts +9 -0
  51. package/dist/editors/builder-profile/components/ImageUrlInput.d.ts.map +1 -0
  52. package/dist/editors/builder-profile/components/ImageUrlInput.js +57 -0
  53. package/dist/editors/builder-profile/components/LinksSection.d.ts +18 -0
  54. package/dist/editors/builder-profile/components/LinksSection.d.ts.map +1 -0
  55. package/dist/editors/builder-profile/components/LinksSection.js +74 -0
  56. package/dist/editors/builder-profile/components/ProfilePreview.d.ts +7 -0
  57. package/dist/editors/builder-profile/components/ProfilePreview.d.ts.map +1 -0
  58. package/dist/editors/builder-profile/components/ProfilePreview.js +55 -0
  59. package/dist/editors/builder-profile/components/ScopesSection.d.ts +9 -0
  60. package/dist/editors/builder-profile/components/ScopesSection.d.ts.map +1 -0
  61. package/dist/editors/builder-profile/components/ScopesSection.js +58 -0
  62. package/dist/editors/builder-profile/components/SkillsSection.d.ts +9 -0
  63. package/dist/editors/builder-profile/components/SkillsSection.d.ts.map +1 -0
  64. package/dist/editors/builder-profile/components/SkillsSection.js +66 -0
  65. package/dist/editors/builder-profile/editor.d.ts.map +1 -1
  66. package/dist/editors/builder-profile/editor.js +213 -101
  67. package/dist/editors/builder-profile/module.js +1 -1
  68. package/dist/editors/index.d.ts +0 -4
  69. package/dist/editors/index.d.ts.map +1 -1
  70. package/dist/editors/index.js +0 -4
  71. package/dist/index.js +2 -2
  72. package/dist/powerhouse.manifest.json +9 -4
  73. package/dist/style.css +745 -29
  74. package/dist/subgraphs/builder-profile/resolvers.d.ts.map +1 -1
  75. package/dist/subgraphs/builder-profile/resolvers.js +108 -0
  76. package/dist/subgraphs/builder-profile/schema.d.ts.map +1 -1
  77. package/dist/subgraphs/builder-profile/schema.js +118 -1
  78. package/package.json +24 -20
  79. package/dist/document-models/builder-profile/gen/builder/actions.d.ts +0 -8
  80. package/dist/document-models/builder-profile/gen/builder/actions.d.ts.map +0 -1
  81. package/dist/document-models/builder-profile/gen/builder/creators.d.ts +0 -4
  82. package/dist/document-models/builder-profile/gen/builder/creators.d.ts.map +0 -1
  83. package/dist/document-models/builder-profile/gen/builder/creators.js +0 -3
  84. package/dist/document-models/builder-profile/gen/builder/error.d.ts.map +0 -1
  85. package/dist/document-models/builder-profile/gen/builder/operations.d.ts +0 -7
  86. package/dist/document-models/builder-profile/gen/builder/operations.d.ts.map +0 -1
  87. package/dist/document-models/builder-profile/src/reducers/builder.d.ts +0 -3
  88. package/dist/document-models/builder-profile/src/reducers/builder.d.ts.map +0 -1
  89. package/dist/document-models/builder-profile/src/reducers/builder.js +0 -9
  90. package/dist/document-models/builder-profile/src/tests/builder.test.d.ts.map +0 -1
  91. /package/dist/document-models/builder-profile/gen/{builder → builders}/actions.js +0 -0
  92. /package/dist/document-models/builder-profile/gen/{builder → builders}/error.d.ts +0 -0
  93. /package/dist/document-models/builder-profile/gen/{builder → builders}/error.js +0 -0
  94. /package/dist/document-models/builder-profile/gen/{builder → builders}/operations.js +0 -0
@@ -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;AAa/D,eAAO,MAAM,YAAY,GACvB,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAgHxB,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;AAsB/D,eAAO,MAAM,YAAY,GACvB,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CA4SxB,CAAC"}
@@ -79,6 +79,114 @@ export const getResolvers = (subgraph) => {
79
79
  }
80
80
  return true;
81
81
  },
82
+ BuilderProfile_addSkill: async (_, args) => {
83
+ const { docId, input } = args;
84
+ const doc = await reactor.getDocument(docId);
85
+ if (!doc) {
86
+ throw new Error("Document not found");
87
+ }
88
+ const result = await reactor.addAction(docId, actions.addSkill(input));
89
+ if (result.status !== "SUCCESS") {
90
+ throw new Error(result.error?.message ?? "Failed to addSkill");
91
+ }
92
+ return true;
93
+ },
94
+ BuilderProfile_removeSkill: async (_, args) => {
95
+ const { docId, input } = args;
96
+ const doc = await reactor.getDocument(docId);
97
+ if (!doc) {
98
+ throw new Error("Document not found");
99
+ }
100
+ const result = await reactor.addAction(docId, actions.removeSkill(input));
101
+ if (result.status !== "SUCCESS") {
102
+ throw new Error(result.error?.message ?? "Failed to removeSkill");
103
+ }
104
+ return true;
105
+ },
106
+ BuilderProfile_addScope: async (_, args) => {
107
+ const { docId, input } = args;
108
+ const doc = await reactor.getDocument(docId);
109
+ if (!doc) {
110
+ throw new Error("Document not found");
111
+ }
112
+ const result = await reactor.addAction(docId, actions.addScope(input));
113
+ if (result.status !== "SUCCESS") {
114
+ throw new Error(result.error?.message ?? "Failed to addScope");
115
+ }
116
+ return true;
117
+ },
118
+ BuilderProfile_removeScope: async (_, args) => {
119
+ const { docId, input } = args;
120
+ const doc = await reactor.getDocument(docId);
121
+ if (!doc) {
122
+ throw new Error("Document not found");
123
+ }
124
+ const result = await reactor.addAction(docId, actions.removeScope(input));
125
+ if (result.status !== "SUCCESS") {
126
+ throw new Error(result.error?.message ?? "Failed to removeScope");
127
+ }
128
+ return true;
129
+ },
130
+ BuilderProfile_addLink: async (_, args) => {
131
+ const { docId, input } = args;
132
+ const doc = await reactor.getDocument(docId);
133
+ if (!doc) {
134
+ throw new Error("Document not found");
135
+ }
136
+ const result = await reactor.addAction(docId, actions.addLink(input));
137
+ if (result.status !== "SUCCESS") {
138
+ throw new Error(result.error?.message ?? "Failed to addLink");
139
+ }
140
+ return true;
141
+ },
142
+ BuilderProfile_editLink: async (_, args) => {
143
+ const { docId, input } = args;
144
+ const doc = await reactor.getDocument(docId);
145
+ if (!doc) {
146
+ throw new Error("Document not found");
147
+ }
148
+ const result = await reactor.addAction(docId, actions.editLink(input));
149
+ if (result.status !== "SUCCESS") {
150
+ throw new Error(result.error?.message ?? "Failed to editLink");
151
+ }
152
+ return true;
153
+ },
154
+ BuilderProfile_removeLink: async (_, args) => {
155
+ const { docId, input } = args;
156
+ const doc = await reactor.getDocument(docId);
157
+ if (!doc) {
158
+ throw new Error("Document not found");
159
+ }
160
+ const result = await reactor.addAction(docId, actions.removeLink(input));
161
+ if (result.status !== "SUCCESS") {
162
+ throw new Error(result.error?.message ?? "Failed to removeLink");
163
+ }
164
+ return true;
165
+ },
166
+ BuilderProfile_addContributor: async (_, args) => {
167
+ const { docId, input } = args;
168
+ const doc = await reactor.getDocument(docId);
169
+ if (!doc) {
170
+ throw new Error("Document not found");
171
+ }
172
+ const result = await reactor.addAction(docId, actions.addContributor(input));
173
+ if (result.status !== "SUCCESS") {
174
+ throw new Error(result.error?.message ?? "Failed to addContributor");
175
+ }
176
+ return true;
177
+ },
178
+ BuilderProfile_removeContributor: async (_, args) => {
179
+ const { docId, input } = args;
180
+ const doc = await reactor.getDocument(docId);
181
+ if (!doc) {
182
+ throw new Error("Document not found");
183
+ }
184
+ const result = await reactor.addAction(docId, actions.removeContributor(input));
185
+ if (result.status !== "SUCCESS") {
186
+ throw new Error(result.error?.message ?? "Failed to removeContributor");
187
+ }
188
+ return true;
189
+ },
82
190
  },
83
191
  };
84
192
  };
@@ -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,YAoCpB,CAAC"}
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,YAyJpB,CAAC"}
@@ -23,16 +23,133 @@ export const schema = gql `
23
23
  docId: PHID
24
24
  input: BuilderProfile_UpdateProfileInput
25
25
  ): Int
26
+ BuilderProfile_addSkill(
27
+ driveId: String
28
+ docId: PHID
29
+ input: BuilderProfile_AddSkillInput
30
+ ): Int
31
+ BuilderProfile_removeSkill(
32
+ driveId: String
33
+ docId: PHID
34
+ input: BuilderProfile_RemoveSkillInput
35
+ ): Int
36
+ BuilderProfile_addScope(
37
+ driveId: String
38
+ docId: PHID
39
+ input: BuilderProfile_AddScopeInput
40
+ ): Int
41
+ BuilderProfile_removeScope(
42
+ driveId: String
43
+ docId: PHID
44
+ input: BuilderProfile_RemoveScopeInput
45
+ ): Int
46
+ BuilderProfile_addLink(
47
+ driveId: String
48
+ docId: PHID
49
+ input: BuilderProfile_AddLinkInput
50
+ ): Int
51
+ BuilderProfile_editLink(
52
+ driveId: String
53
+ docId: PHID
54
+ input: BuilderProfile_EditLinkInput
55
+ ): Int
56
+ BuilderProfile_removeLink(
57
+ driveId: String
58
+ docId: PHID
59
+ input: BuilderProfile_RemoveLinkInput
60
+ ): Int
61
+ BuilderProfile_addContributor(
62
+ driveId: String
63
+ docId: PHID
64
+ input: BuilderProfile_AddContributorInput
65
+ ): Int
66
+ BuilderProfile_removeContributor(
67
+ driveId: String
68
+ docId: PHID
69
+ input: BuilderProfile_RemoveContributorInput
70
+ ): Int
26
71
  }
27
72
 
28
73
  """
29
- Module: Builder
74
+ Module: Builders
30
75
  """
31
76
  input BuilderProfile_UpdateProfileInput {
32
77
  id: PHID
78
+ code: String
33
79
  slug: String
34
80
  name: String
35
81
  icon: URL
36
82
  description: String
83
+ status: BuilderProfile_BuilderStatusInput
84
+ type: BuilderProfile_teamTypeInput
85
+ }
86
+
87
+ enum BuilderProfile_teamTypeInput {
88
+ INDIVIDUAL
89
+ TEAM
90
+ }
91
+
92
+ enum BuilderProfile_BuilderStatusInput {
93
+ ACTIVE
94
+ INACTIVE
95
+ ON_HOLD
96
+ COMPLETED
97
+ ARCHIVED
98
+ }
99
+
100
+ input BuilderProfile_AddSkillInput {
101
+ skill: BuilderProfile_BuilderSkillInput
102
+ }
103
+
104
+ enum BuilderProfile_BuilderSkillInput {
105
+ FRONTEND_DEVELOPMENT
106
+ BACKEND_DEVELOPMENT
107
+ FULL_STACK_DEVELOPMENT
108
+ DEVOPS_ENGINEERING
109
+ SMART_CONTRACT_DEVELOPMENT
110
+ UI_UX_DESIGN
111
+ TECHNICAL_WRITING
112
+ QA_TESTING
113
+ DATA_ENGINEERING
114
+ SECURITY_ENGINEERING
115
+ }
116
+ input BuilderProfile_RemoveSkillInput {
117
+ skill: BuilderProfile_BuilderSkillInput
118
+ }
119
+
120
+ input BuilderProfile_AddScopeInput {
121
+ scope: BuilderProfile_BuilderScopeInput
122
+ }
123
+
124
+ enum BuilderProfile_BuilderScopeInput {
125
+ ACC
126
+ STA
127
+ SUP
128
+ STABILITY_SCOPE
129
+ SUPPORT_SCOPE
130
+ PROTOCOL_SCOPE
131
+ GOVERNANCE_SCOPE
132
+ }
133
+ input BuilderProfile_RemoveScopeInput {
134
+ scope: BuilderProfile_BuilderScopeInput
135
+ }
136
+ input BuilderProfile_AddLinkInput {
137
+ id: OID!
138
+ url: URL!
139
+ label: String
140
+ }
141
+ input BuilderProfile_EditLinkInput {
142
+ id: OID!
143
+ url: URL!
144
+ label: String
145
+ }
146
+ input BuilderProfile_RemoveLinkInput {
147
+ id: OID!
148
+ }
149
+ input BuilderProfile_AddContributorInput {
150
+ contributorPHID: PHID!
151
+ }
152
+ input BuilderProfile_RemoveContributorInput {
153
+ contributorPHID: PHID!
37
154
  }
38
155
  `;
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@powerhousedao/builder-profile",
3
3
  "description": "Builder profile document model",
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "/dist"
9
9
  ],
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
10
13
  "exports": {
11
14
  ".": {
12
15
  "types": "./dist/index.d.ts",
@@ -44,7 +47,7 @@
44
47
  "test": "vitest run",
45
48
  "test:watch": "vitest",
46
49
  "lint": "eslint --config eslint.config.js --cache --cache-strategy content",
47
- "lint:fix": "npm run lint --fix",
50
+ "lint:fix": "npm run lint -- --fix",
48
51
  "tsc": "tsc",
49
52
  "tsc:watch": "tsc --watch",
50
53
  "tailwind": "npx @tailwindcss/cli -i ./style.css -o ./dist/style.css",
@@ -59,41 +62,41 @@
59
62
  "service-unstartup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh"
60
63
  },
61
64
  "dependencies": {
62
- "@powerhousedao/builder-tools": "^5.0.1-staging.15",
63
- "@powerhousedao/common": "^5.0.1-staging.15",
64
- "@powerhousedao/design-system": "^5.0.1-staging.15",
65
+ "@powerhousedao/builder-tools": "latest",
66
+ "@powerhousedao/common": "latest",
67
+ "@powerhousedao/design-system": "latest",
65
68
  "@powerhousedao/document-engineering": "^1.38.0",
66
- "document-model": "^5.0.1-staging.15",
69
+ "document-model": "latest",
67
70
  "error": "^10.4.0",
68
71
  "graphql": "^16.10.0",
69
72
  "graphql-tag": "^2.12.6",
73
+ "lucide-react": "^0.556.0",
70
74
  "zod": "^3.24.2"
71
75
  },
72
76
  "devDependencies": {
73
77
  "@electric-sql/pglite": "^0.2.12",
74
78
  "@eslint/js": "^9.38.0",
75
79
  "@powerhousedao/analytics-engine-core": "^0.5.0",
76
- "@powerhousedao/codegen": "^5.0.1-staging.15",
77
- "@powerhousedao/config": "^5.0.1-staging.15",
78
- "@powerhousedao/ph-cli": "^5.0.1-staging.15",
79
- "@powerhousedao/reactor-api": "^5.0.1-staging.15",
80
- "@powerhousedao/reactor-browser": "^5.0.1-staging.15",
81
- "@powerhousedao/reactor-local": "^5.0.1-staging.15",
82
- "@powerhousedao/scalars": "staging",
83
- "@powerhousedao/switchboard": "^5.0.1-staging.15",
84
- "@powerhousedao/connect": "^5.0.1-staging.15",
80
+ "@powerhousedao/codegen": "latest",
81
+ "@powerhousedao/config": "latest",
82
+ "@powerhousedao/connect": "latest",
83
+ "@powerhousedao/ph-cli": "latest",
84
+ "@powerhousedao/reactor-api": "latest",
85
+ "@powerhousedao/reactor-browser": "latest",
86
+ "@powerhousedao/reactor-local": "latest",
87
+ "@powerhousedao/scalars": "latest",
88
+ "@powerhousedao/switchboard": "latest",
85
89
  "@tailwindcss/cli": "^4.1.4",
86
90
  "@testing-library/react": "^16.3.0",
87
91
  "@types/node": "^24.9.2",
88
92
  "@types/react": "^19.2.2",
89
93
  "@vitejs/plugin-react": "^5.1.0",
90
- "document-drive": "^5.0.1-staging.15",
94
+ "document-drive": "latest",
91
95
  "eslint": "^9.38.0",
92
- "vite-plugin-node-polyfills": "^0.24.0",
93
- "eslint-plugin-react": "^7.37.5",
94
- "eslint-plugin-react-hooks": "^7.0.1",
95
96
  "eslint-config-prettier": "^10.1.8",
96
97
  "eslint-plugin-prettier": "^5.5.4",
98
+ "eslint-plugin-react": "^7.37.5",
99
+ "eslint-plugin-react-hooks": "^7.0.1",
97
100
  "globals": "^16.4.0",
98
101
  "package-manager-detector": "^0.2.8",
99
102
  "pm2": "^5.4.3",
@@ -103,10 +106,11 @@
103
106
  "typescript": "^5.9.3",
104
107
  "typescript-eslint": "^8.46.2",
105
108
  "vite": "^6.2.3",
109
+ "vite-plugin-node-polyfills": "^0.24.0",
106
110
  "vitest": "^3.0.9"
107
111
  },
108
112
  "peerDependencies": {
109
113
  "react": "^19.2.0",
110
114
  "react-dom": "^19.2.0"
111
115
  }
112
- }
116
+ }
@@ -1,8 +0,0 @@
1
- import { type Action } from "document-model";
2
- import type { UpdateProfileInput } from "../types.js";
3
- export type UpdateProfileAction = Action & {
4
- type: "UPDATE_PROFILE";
5
- input: UpdateProfileInput;
6
- };
7
- export type BuilderProfileBuilderAction = UpdateProfileAction;
8
- //# sourceMappingURL=actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builder/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IACzC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { UpdateProfileInput } from "../types.js";
2
- import type { UpdateProfileAction } from "./actions.js";
3
- export declare const updateProfile: (input: UpdateProfileInput) => UpdateProfileAction;
4
- //# sourceMappingURL=creators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builder/creators.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,wBAOpD,CAAC"}
@@ -1,3 +0,0 @@
1
- import { createAction } from "document-model/core";
2
- import { UpdateProfileInputSchema } from "../schema/zod.js";
3
- export const updateProfile = (input) => createAction("UPDATE_PROFILE", { ...input }, undefined, UpdateProfileInputSchema, "global");
@@ -1 +0,0 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builder/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,IAAK,CAAC"}
@@ -1,7 +0,0 @@
1
- import { type SignalDispatch } from "document-model";
2
- import { type UpdateProfileAction } from "./actions.js";
3
- import { type BuilderProfileState } from "../types.js";
4
- export interface BuilderProfileBuilderOperations {
5
- updateProfileOperation: (state: BuilderProfileState, action: UpdateProfileAction, dispatch?: SignalDispatch) => void;
6
- }
7
- //# sourceMappingURL=operations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builder/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,+BAA+B;IAC9C,sBAAsB,EAAE,CACtB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
@@ -1,3 +0,0 @@
1
- import type { BuilderProfileBuilderOperations } from "@powerhousedao/builder-profile/document-models/builder-profile";
2
- export declare const builderProfileBuilderOperations: BuilderProfileBuilderOperations;
3
- //# sourceMappingURL=builder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/src/reducers/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gEAAgE,CAAC;AAEtH,eAAO,MAAM,+BAA+B,EAAE,+BAQ7C,CAAC"}
@@ -1,9 +0,0 @@
1
- export const builderProfileBuilderOperations = {
2
- updateProfileOperation(state, action) {
3
- state.id = action.input.id ?? state.id;
4
- state.slug = action.input.slug ?? state.slug;
5
- state.name = action.input.name ?? state.name;
6
- state.icon = action.input.icon ?? state.icon;
7
- state.description = action.input.description ?? state.description;
8
- }
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"builder.test.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/src/tests/builder.test.ts"],"names":[],"mappings":"AAAA;;;GAGG"}