@powerhousedao/builder-profile 0.0.2 → 0.0.3

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 (111) hide show
  1. package/dist/document-models/builder-profile/actions.d.ts +13 -0
  2. package/dist/document-models/builder-profile/actions.d.ts.map +1 -0
  3. package/dist/document-models/builder-profile/actions.js +4 -0
  4. package/dist/document-models/builder-profile/gen/builder/actions.js +1 -1
  5. package/dist/document-models/builder-profile/gen/builder/creators.d.ts +2 -2
  6. package/dist/document-models/builder-profile/gen/builder/creators.d.ts.map +1 -1
  7. package/dist/document-models/builder-profile/gen/builder/creators.js +3 -3
  8. package/dist/document-models/builder-profile/gen/builder/operations.js +3 -1
  9. package/dist/document-models/builder-profile/gen/creators.d.ts +1 -0
  10. package/dist/document-models/builder-profile/gen/creators.d.ts.map +1 -1
  11. package/dist/document-models/builder-profile/gen/creators.js +1 -0
  12. package/dist/document-models/builder-profile/gen/document-model.d.ts +2 -2
  13. package/dist/document-models/builder-profile/gen/document-model.d.ts.map +1 -1
  14. package/dist/document-models/builder-profile/gen/document-model.js +23 -23
  15. package/dist/document-models/builder-profile/gen/document-schema.d.ts +218 -0
  16. package/dist/document-models/builder-profile/gen/document-schema.d.ts.map +1 -0
  17. package/dist/document-models/builder-profile/gen/document-schema.js +33 -0
  18. package/dist/document-models/builder-profile/gen/document-type.d.ts +2 -0
  19. package/dist/document-models/builder-profile/gen/document-type.d.ts.map +1 -0
  20. package/dist/document-models/builder-profile/gen/document-type.js +1 -0
  21. package/dist/document-models/builder-profile/gen/index.d.ts +7 -3
  22. package/dist/document-models/builder-profile/gen/index.d.ts.map +1 -1
  23. package/dist/document-models/builder-profile/gen/index.js +7 -2
  24. package/dist/document-models/builder-profile/gen/ph-factories.d.ts +6 -10
  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 +1 -4
  27. package/dist/document-models/builder-profile/gen/reducer.d.ts +1 -3
  28. package/dist/document-models/builder-profile/gen/reducer.d.ts.map +1 -1
  29. package/dist/document-models/builder-profile/gen/reducer.js +6 -9
  30. package/dist/document-models/builder-profile/gen/schema/index.d.ts +1 -1
  31. package/dist/document-models/builder-profile/gen/schema/index.d.ts.map +1 -1
  32. package/dist/document-models/builder-profile/gen/schema/index.js +1 -1
  33. package/dist/document-models/builder-profile/gen/types.d.ts +9 -7
  34. package/dist/document-models/builder-profile/gen/types.d.ts.map +1 -1
  35. package/dist/document-models/builder-profile/gen/types.js +1 -1
  36. package/dist/document-models/builder-profile/gen/utils.d.ts +13 -20
  37. package/dist/document-models/builder-profile/gen/utils.d.ts.map +1 -1
  38. package/dist/document-models/builder-profile/gen/utils.js +45 -36
  39. package/dist/document-models/builder-profile/hooks.d.ts +11 -0
  40. package/dist/document-models/builder-profile/hooks.d.ts.map +1 -0
  41. package/dist/document-models/builder-profile/hooks.js +26 -0
  42. package/dist/document-models/builder-profile/index.d.ts +5 -20
  43. package/dist/document-models/builder-profile/index.d.ts.map +1 -1
  44. package/dist/document-models/builder-profile/index.js +5 -17
  45. package/dist/document-models/builder-profile/module.d.ts +5 -0
  46. package/dist/document-models/builder-profile/module.d.ts.map +1 -0
  47. package/dist/document-models/builder-profile/module.js +10 -0
  48. package/dist/document-models/builder-profile/src/index.d.ts +2 -0
  49. package/dist/document-models/builder-profile/src/index.d.ts.map +1 -0
  50. package/dist/document-models/builder-profile/src/index.js +1 -0
  51. package/dist/document-models/builder-profile/src/reducers/builder.d.ts +2 -2
  52. package/dist/document-models/builder-profile/src/reducers/builder.d.ts.map +1 -1
  53. package/dist/document-models/builder-profile/src/reducers/builder.js +2 -2
  54. package/dist/document-models/builder-profile/src/tests/builder.test.d.ts +4 -0
  55. package/dist/document-models/builder-profile/src/tests/builder.test.d.ts.map +1 -1
  56. package/dist/document-models/builder-profile/src/tests/builder.test.js +14 -111
  57. package/dist/document-models/builder-profile/src/tests/document-model.test.d.ts +4 -0
  58. package/dist/document-models/builder-profile/src/tests/document-model.test.d.ts.map +1 -1
  59. package/dist/document-models/builder-profile/src/tests/document-model.test.js +91 -5
  60. package/dist/document-models/builder-profile/utils.d.ts +14 -0
  61. package/dist/document-models/builder-profile/utils.d.ts.map +1 -0
  62. package/dist/document-models/builder-profile/utils.js +7 -0
  63. package/dist/document-models/document-models.d.ts +3 -0
  64. package/dist/document-models/document-models.d.ts.map +1 -0
  65. package/dist/document-models/document-models.js +2 -0
  66. package/dist/document-models/index.d.ts +5 -2
  67. package/dist/document-models/index.d.ts.map +1 -1
  68. package/dist/document-models/index.js +5 -1
  69. package/dist/editors/builder-profile/editor.d.ts +0 -2
  70. package/dist/editors/builder-profile/editor.d.ts.map +1 -1
  71. package/dist/editors/builder-profile/editor.js +26 -19
  72. package/dist/editors/builder-profile/module.d.ts +4 -0
  73. package/dist/editors/builder-profile/module.d.ts.map +1 -0
  74. package/dist/editors/builder-profile/module.js +10 -0
  75. package/dist/editors/editors.d.ts +3 -0
  76. package/dist/editors/editors.d.ts.map +1 -0
  77. package/dist/editors/editors.js +2 -0
  78. package/dist/editors/index.d.ts +5 -2
  79. package/dist/editors/index.d.ts.map +1 -1
  80. package/dist/editors/index.js +5 -1
  81. package/dist/index.d.ts +2 -2
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/powerhouse.manifest.json +7 -20
  84. package/dist/processors/index.d.ts.map +1 -1
  85. package/dist/style.css +108 -5029
  86. package/dist/subgraphs/builder-profile/index.d.ts +2 -2
  87. package/dist/subgraphs/builder-profile/index.d.ts.map +1 -1
  88. package/dist/subgraphs/builder-profile/index.js +2 -2
  89. package/dist/subgraphs/builder-profile/resolvers.d.ts +2 -2
  90. package/dist/subgraphs/builder-profile/resolvers.d.ts.map +1 -1
  91. package/dist/subgraphs/builder-profile/resolvers.js +4 -4
  92. package/dist/subgraphs/builder-profile/schema.d.ts.map +1 -1
  93. package/dist/subgraphs/builder-profile/schema.js +1 -12
  94. package/dist/subgraphs/index.d.ts +0 -1
  95. package/dist/subgraphs/index.d.ts.map +1 -1
  96. package/dist/vite.config.d.ts +3 -0
  97. package/dist/vite.config.d.ts.map +1 -0
  98. package/dist/vite.config.js +13 -0
  99. package/package.json +55 -45
  100. package/dist/document-models/builder-profile/gen/builder/object.d.ts +0 -7
  101. package/dist/document-models/builder-profile/gen/builder/object.d.ts.map +0 -1
  102. package/dist/document-models/builder-profile/gen/builder/object.js +0 -7
  103. package/dist/document-models/builder-profile/gen/object.d.ts +0 -15
  104. package/dist/document-models/builder-profile/gen/object.d.ts.map +0 -1
  105. package/dist/document-models/builder-profile/gen/object.js +0 -25
  106. package/dist/editors/builder-profile/index.d.ts +0 -3
  107. package/dist/editors/builder-profile/index.d.ts.map +0 -1
  108. package/dist/editors/builder-profile/index.js +0 -11
  109. package/dist/editors/hooks/useBuilderProfileDocument.d.ts +0 -4
  110. package/dist/editors/hooks/useBuilderProfileDocument.d.ts.map +0 -1
  111. package/dist/editors/hooks/useBuilderProfileDocument.js +0 -8
@@ -1,6 +1,6 @@
1
- import { Subgraph } from "@powerhousedao/reactor-api";
1
+ import { BaseSubgraph } from "@powerhousedao/reactor-api";
2
2
  import type { DocumentNode } from "graphql";
3
- export declare class BuilderProfileSubgraph extends Subgraph {
3
+ export declare class BuilderProfileSubgraph extends BaseSubgraph {
4
4
  name: string;
5
5
  typeDefs: DocumentNode;
6
6
  resolvers: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C,qBAAa,sBAAuB,SAAQ,QAAQ;IAClD,IAAI,SAAqB;IACzB,QAAQ,EAAE,YAAY,CAAU;IAChC,SAAS,0BAAsB;IAC/B,uBAAuB,KAAM;IACvB,OAAO;IACP,YAAY;CACnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C,qBAAa,sBAAuB,SAAQ,YAAY;IACtD,IAAI,SAAqB;IACzB,QAAQ,EAAE,YAAY,CAAU;IAChC,SAAS,0BAAsB;IAC/B,uBAAuB,KAAM;IACvB,OAAO;IACP,YAAY;CACnB"}
@@ -1,7 +1,7 @@
1
- import { Subgraph } from "@powerhousedao/reactor-api";
1
+ import { BaseSubgraph } from "@powerhousedao/reactor-api";
2
2
  import { schema } from "./schema.js";
3
3
  import { getResolvers } from "./resolvers.js";
4
- export class BuilderProfileSubgraph extends Subgraph {
4
+ export class BuilderProfileSubgraph extends BaseSubgraph {
5
5
  name = "builder-profile";
6
6
  typeDefs = schema;
7
7
  resolvers = getResolvers(this);
@@ -1,3 +1,3 @@
1
- import { type Subgraph } from "@powerhousedao/reactor-api";
2
- export declare const getResolvers: (subgraph: Subgraph) => Record<string, unknown>;
1
+ import type { BaseSubgraph } from "@powerhousedao/reactor-api";
2
+ export declare const getResolvers: (subgraph: BaseSubgraph) => Record<string, unknown>;
3
3
  //# sourceMappingURL=resolvers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-profile/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAS3D,eAAO,MAAM,YAAY,GAAI,UAAU,QAAQ,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAkHvE,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;AAa/D,eAAO,MAAM,YAAY,GACvB,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAgHxB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { addFile } from "document-drive";
2
- import { actions, } from "../../document-models/builder-profile/index.js";
3
2
  import { setName } from "document-model";
3
+ import { actions, builderProfileDocumentType, } from "@powerhousedao/builder-profile/document-models/builder-profile";
4
4
  export const getResolvers = (subgraph) => {
5
5
  const reactor = subgraph.reactor;
6
6
  return {
@@ -46,7 +46,7 @@ export const getResolvers = (subgraph) => {
46
46
  revision: doc.header?.revision?.global ?? 0,
47
47
  };
48
48
  }));
49
- return docs.filter((doc) => doc.header.documentType === "powerhouse/builder-profile");
49
+ return docs.filter((doc) => doc.header.documentType === builderProfileDocumentType);
50
50
  },
51
51
  };
52
52
  },
@@ -54,12 +54,12 @@ export const getResolvers = (subgraph) => {
54
54
  Mutation: {
55
55
  BuilderProfile_createDocument: async (_, args) => {
56
56
  const { driveId, name } = args;
57
- const document = await reactor.addDocument("powerhouse/builder-profile");
57
+ const document = await reactor.addDocument(builderProfileDocumentType);
58
58
  if (driveId) {
59
59
  await reactor.addAction(driveId, addFile({
60
60
  name,
61
61
  id: document.header.id,
62
- documentType: "powerhouse/builder-profile",
62
+ documentType: builderProfileDocumentType,
63
63
  }));
64
64
  }
65
65
  if (name) {
@@ -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,YA+CpB,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,YAoCpB,CAAC"}
@@ -1,18 +1,7 @@
1
1
  import { gql } from "graphql-tag";
2
2
  export const schema = gql `
3
3
  """
4
- Subgraph definition for BuilderProfile (powerhouse/builder-profile)
5
- """
6
- type BuilderProfileState {
7
- id: PHID
8
- slug: String
9
- name: String
10
- icon: URL
11
- description: String
12
- }
13
-
14
- """
15
- Queries: BuilderProfile
4
+ Queries: BuilderProfile Document
16
5
  """
17
6
  type BuilderProfileQueries {
18
7
  getDocument(docId: PHID!, driveId: PHID): BuilderProfile
@@ -1,3 +1,2 @@
1
- export {};
2
1
  export * as BuilderProfileSubgraph from "./builder-profile/index.js";
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../subgraphs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AACV,OAAO,KAAK,sBAAsB,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../subgraphs/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,sBAAsB,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vite").UserConfigFnObject;
2
+ export default _default;
3
+ //# sourceMappingURL=vite.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAGA,wBAaG"}
@@ -0,0 +1,13 @@
1
+ import { getConnectBaseViteConfig } from "@powerhousedao/builder-tools";
2
+ import { defineConfig, mergeConfig } from "vite";
3
+ export default defineConfig(({ mode }) => {
4
+ const baseConnectViteConfig = getConnectBaseViteConfig({
5
+ mode,
6
+ dirname: import.meta.dirname,
7
+ });
8
+ const additionalViteConfig = {
9
+ // add your own vite config here
10
+ };
11
+ const config = mergeConfig(baseConnectViteConfig, additionalViteConfig);
12
+ return config;
13
+ });
package/package.json CHANGED
@@ -1,64 +1,69 @@
1
1
  {
2
2
  "name": "@powerhousedao/builder-profile",
3
3
  "description": "Builder profile document model",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
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
- },
13
10
  "exports": {
14
11
  ".": {
15
12
  "types": "./dist/index.d.ts",
16
- "default": "./dist/index.js"
13
+ "import": "./dist/index.js"
17
14
  },
18
15
  "./document-models": {
19
16
  "types": "./dist/document-models/index.d.ts",
20
- "default": "./dist/document-models/index.js"
17
+ "import": "./dist/document-models/index.js"
21
18
  },
22
19
  "./editors": {
23
20
  "types": "./dist/editors/index.d.ts",
24
- "default": "./dist/editors/index.js"
21
+ "import": "./dist/editors/index.js"
22
+ },
23
+ "./document-models/*": {
24
+ "types": "./dist/document-models/*/index.d.ts",
25
+ "import": "./dist/document-models/*/index.js"
26
+ },
27
+ "./editors/*": {
28
+ "types": "./dist/editors/*/index.d.ts",
29
+ "import": "./dist/editors/*/index.js"
25
30
  },
26
31
  "./subgraphs": {
27
32
  "types": "./dist/subgraphs/index.d.ts",
28
- "default": "./dist/subgraphs/index.js"
33
+ "import": "./dist/subgraphs/index.js"
29
34
  },
30
35
  "./processors": {
31
36
  "types": "./dist/processors/index.d.ts",
32
- "default": "./dist/processors/index.js"
33
- },
34
- "./manifest": {
35
- "types": "./dist/manifest.d.ts",
36
- "default": "./dist/manifest.js"
37
+ "import": "./dist/processors/index.js"
37
38
  },
39
+ "./manifest": "./dist/powerhouse.manifest.json",
38
40
  "./style.css": "./dist/style.css"
39
41
  },
40
42
  "scripts": {
41
- "lint": "eslint .",
42
- "build:tsc": "tsc",
43
- "build:tsc:watch": "tsc --watch",
44
- "build:css": "npx @tailwindcss/cli -i ./style.css -o ./dist/style.css",
45
- "build:css:watch": "npx @tailwindcss/cli -i ./style.css -o ./dist/style.css --watch",
46
- "build": "npm run build:tsc && npm run build:css",
43
+ "build": "npm run tsc && npm run tailwind",
47
44
  "test": "vitest run",
48
45
  "test:watch": "vitest",
46
+ "lint": "eslint --config eslint.config.js --cache --cache-strategy content",
47
+ "lint:fix": "npm run lint --fix",
48
+ "tsc": "tsc",
49
+ "tsc:watch": "tsc --watch",
50
+ "tailwind": "npx @tailwindcss/cli -i ./style.css -o ./dist/style.css",
49
51
  "prepublishOnly": "npm run build",
52
+ "check-circular-imports": "npx dpdm -T ./index.ts",
50
53
  "generate": "ph-cli generate",
51
54
  "connect": "ph-cli connect",
52
55
  "reactor": "ph-cli reactor",
53
56
  "service": "ph-cli service",
57
+ "vetra": "ph-cli vetra",
54
58
  "service-startup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-startup.sh",
55
59
  "service-unstartup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh"
56
60
  },
57
61
  "dependencies": {
58
- "@powerhousedao/builder-tools": "^5.0.0-staging.30",
59
- "@powerhousedao/common": "^5.0.0-staging.30",
60
- "@powerhousedao/design-system": "^5.0.0-staging.30",
61
- "document-model": "^5.0.0-staging.30",
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/document-engineering": "^1.38.0",
66
+ "document-model": "^5.0.1-staging.15",
62
67
  "error": "^10.4.0",
63
68
  "graphql": "^16.10.0",
64
69
  "graphql-tag": "^2.12.6",
@@ -66,37 +71,42 @@
66
71
  },
67
72
  "devDependencies": {
68
73
  "@electric-sql/pglite": "^0.2.12",
69
- "@eslint/js": "^9.25.0",
74
+ "@eslint/js": "^9.38.0",
70
75
  "@powerhousedao/analytics-engine-core": "^0.5.0",
71
- "@powerhousedao/codegen": "^5.0.0-staging.30",
72
- "@powerhousedao/ph-cli": "^5.0.0-staging.30",
73
- "@powerhousedao/reactor-api": "^5.0.0-staging.30",
74
- "@powerhousedao/reactor-browser": "^5.0.0-staging.30",
75
- "@powerhousedao/reactor-local": "^5.0.0-staging.30",
76
- "@powerhousedao/scalars": "latest",
77
- "@powerhousedao/switchboard": "^5.0.0-staging.30",
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",
78
85
  "@tailwindcss/cli": "^4.1.4",
79
86
  "@testing-library/react": "^16.3.0",
80
- "@types/node": "^22.14.1",
81
- "@types/react": "^18.3.20",
82
- "@vitejs/plugin-react": "^4.4.1",
83
- "document-drive": "^5.0.0-staging.30",
84
- "eslint": "^9.25.0",
87
+ "@types/node": "^24.9.2",
88
+ "@types/react": "^19.2.2",
89
+ "@vitejs/plugin-react": "^5.1.0",
90
+ "document-drive": "^5.0.1-staging.15",
91
+ "eslint": "^9.38.0",
92
+ "vite-plugin-node-polyfills": "^0.24.0",
85
93
  "eslint-plugin-react": "^7.37.5",
86
- "eslint-plugin-react-hooks": "^5.2.0",
87
- "globals": "^16.0.0",
94
+ "eslint-plugin-react-hooks": "^7.0.1",
95
+ "eslint-config-prettier": "^10.1.8",
96
+ "eslint-plugin-prettier": "^5.5.4",
97
+ "globals": "^16.4.0",
88
98
  "package-manager-detector": "^0.2.8",
89
99
  "pm2": "^5.4.3",
90
- "react": "^18.3.1",
91
- "react-dom": "^18.3.1",
92
- "tailwindcss": "^4.1.4",
93
- "typescript": "^5.8.3",
94
- "typescript-eslint": "^8.30.1",
100
+ "react": "^19.2.0",
101
+ "react-dom": "^19.2.0",
102
+ "tailwindcss": "^4.1.16",
103
+ "typescript": "^5.9.3",
104
+ "typescript-eslint": "^8.46.2",
95
105
  "vite": "^6.2.3",
96
106
  "vitest": "^3.0.9"
97
107
  },
98
108
  "peerDependencies": {
99
- "react": "^18.3.1",
100
- "react-dom": "^18.3.1"
109
+ "react": "^19.2.0",
110
+ "react-dom": "^19.2.0"
101
111
  }
102
112
  }
@@ -1,7 +0,0 @@
1
- import { BaseDocumentClass } from "document-model";
2
- import { BuilderProfilePHState } from "../ph-factories.js";
3
- import { type UpdateProfileInput } from "../types.js";
4
- export default class BuilderProfile_Builder extends BaseDocumentClass<BuilderProfilePHState> {
5
- updateProfile(input: UpdateProfileInput): this;
6
- }
7
- //# sourceMappingURL=object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builder/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAItD,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,iBAAiB,CAAC,qBAAqB,CAAC;IACnF,aAAa,CAAC,KAAK,EAAE,kBAAkB;CAG/C"}
@@ -1,7 +0,0 @@
1
- import { BaseDocumentClass } from "document-model";
2
- import { updateProfile } from "./creators.js";
3
- export default class BuilderProfile_Builder extends BaseDocumentClass {
4
- updateProfile(input) {
5
- return this.dispatch(updateProfile(input));
6
- }
7
- }
@@ -1,15 +0,0 @@
1
- import { BaseDocumentClass, type SignalDispatch } from "document-model";
2
- import { BuilderProfilePHState } from "./ph-factories.js";
3
- import BuilderProfile_Builder from "./builder/object.js";
4
- export * from "./builder/object.js";
5
- interface BuilderProfile extends BuilderProfile_Builder {
6
- }
7
- declare class BuilderProfile extends BaseDocumentClass<BuilderProfilePHState> {
8
- static fileExtension: string;
9
- constructor(initialState?: Partial<BuilderProfilePHState>, dispatch?: SignalDispatch);
10
- saveToFile(path: string, name?: string): Promise<string>;
11
- loadFromFile(path: string): Promise<void>;
12
- static fromFile(path: string): Promise<BuilderProfile>;
13
- }
14
- export { BuilderProfile };
15
- //# sourceMappingURL=object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/object.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,sBAAsB,MAAM,qBAAqB,CAAC;AAEzD,cAAc,qBAAqB,CAAC;AAGpC,UAAU,cAAe,SAAQ,sBAAsB;CAAG;AAG1D,cAAM,cAAe,SAAQ,iBAAiB,CAAC,qBAAqB,CAAC;IACnE,MAAM,CAAC,aAAa,SAAW;gBAG7B,YAAY,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,EAC7C,QAAQ,CAAC,EAAE,cAAc;IAKpB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IAItC,YAAY,CAAC,IAAI,EAAE,MAAM;WAInB,QAAQ,CAAC,IAAI,EAAE,MAAM;CAKnC;AAID,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1,25 +0,0 @@
1
- import { BaseDocumentClass, applyMixins, } from "document-model";
2
- import { reducer } from "./reducer.js";
3
- import { createDocument } from "./utils.js";
4
- import BuilderProfile_Builder from "./builder/object.js";
5
- export * from "./builder/object.js";
6
- // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
7
- class BuilderProfile extends BaseDocumentClass {
8
- static fileExtension = ".phdm";
9
- constructor(initialState, dispatch) {
10
- super(reducer, createDocument(initialState), dispatch);
11
- }
12
- saveToFile(path, name) {
13
- return super.saveToFile(path, BuilderProfile.fileExtension, name);
14
- }
15
- loadFromFile(path) {
16
- return super.loadFromFile(path);
17
- }
18
- static async fromFile(path) {
19
- const document = new this();
20
- await document.loadFromFile(path);
21
- return document;
22
- }
23
- }
24
- applyMixins(BuilderProfile, [BuilderProfile_Builder]);
25
- export { BuilderProfile };
@@ -1,3 +0,0 @@
1
- import type { EditorModule } from "document-model";
2
- export declare const module: EditorModule;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../editors/builder-profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,eAAO,MAAM,MAAM,EAAE,YASpB,CAAC"}
@@ -1,11 +0,0 @@
1
- import Editor from "./editor.js";
2
- export const module = {
3
- Component: Editor,
4
- documentTypes: ["powerhouse/builder-profile"],
5
- config: {
6
- id: "builder-profile-editor",
7
- disableExternalControls: true,
8
- documentToolbarEnabled: true,
9
- showSwitchboardLink: true,
10
- },
11
- };
@@ -1,4 +0,0 @@
1
- import type { BuilderProfileDocument } from "../../document-models/builder-profile/index.js";
2
- export declare function useBuilderProfileDocument(documentId: string | null | undefined): never[] | [BuilderProfileDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/builder-profile/gen/actions.js").UpdateProfileAction>];
3
- export declare function useSelectedBuilderProfileDocument(): never[] | [BuilderProfileDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/builder-profile/gen/actions.js").UpdateProfileAction>];
4
- //# sourceMappingURL=useBuilderProfileDocument.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBuilderProfileDocument.d.ts","sourceRoot":"","sources":["../../../editors/hooks/useBuilderProfileDocument.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,gDAAgD,CAAC;AAExD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,qLAMtC;AAED,wBAAgB,iCAAiC,sLAGhD"}
@@ -1,8 +0,0 @@
1
- import { useDocumentOfType, useSelectedDocumentId, } from "@powerhousedao/reactor-browser";
2
- export function useBuilderProfileDocument(documentId) {
3
- return useDocumentOfType(documentId, "powerhouse/builder-profile");
4
- }
5
- export function useSelectedBuilderProfileDocument() {
6
- const selectedDocumentId = useSelectedDocumentId();
7
- return useBuilderProfileDocument(selectedDocumentId);
8
- }