@powerhousedao/vetra-builder-package 0.0.28 → 0.0.30
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-team/gen/member/object.d.ts +1 -1
- package/dist/document-models/builder-team/gen/object.d.ts +1 -1
- package/dist/document-models/builder-team/gen/packages/object.d.ts +1 -1
- package/dist/document-models/builder-team/gen/profile/object.d.ts +1 -1
- package/dist/document-models/builder-team/gen/reducer.d.ts +1 -1
- package/dist/document-models/builder-team/gen/spaces/object.d.ts +1 -1
- package/dist/document-models/builder-team/gen/utils.d.ts +1 -1
- package/dist/document-models/builder-team/src/reducers/packages.js +0 -4
- package/dist/document-models/builder-team/src/reducers/spaces.js +0 -4
- package/dist/editors/builder-team-editor/config.js +6 -24
- package/package.json +15 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseDocumentClass } from "document-model";
|
|
2
|
-
import {
|
|
2
|
+
import { BuilderTeamPHState } from "../ph-factories.js";
|
|
3
3
|
import { type AddMemberInput, type UpdateMemberInfoInput, type RemoveMemberInput } from "../types.js";
|
|
4
4
|
export default class BuilderTeam_Member extends BaseDocumentClass<BuilderTeamPHState> {
|
|
5
5
|
addMember(input: AddMemberInput): this;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseDocumentClass, type SignalDispatch } from "document-model";
|
|
2
|
-
import {
|
|
2
|
+
import { BuilderTeamPHState } from "./ph-factories.js";
|
|
3
3
|
import BuilderTeam_Profile from "./profile/object.js";
|
|
4
4
|
import BuilderTeam_Member from "./member/object.js";
|
|
5
5
|
import BuilderTeam_Spaces from "./spaces/object.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseDocumentClass } from "document-model";
|
|
2
|
-
import {
|
|
2
|
+
import { BuilderTeamPHState } from "../ph-factories.js";
|
|
3
3
|
import { type AddPackageInput, type UpdatePackageInfoInput, type RemovePackageInput, type ReorderPackagesInput } from "../types.js";
|
|
4
4
|
export default class BuilderTeam_Packages extends BaseDocumentClass<BuilderTeamPHState> {
|
|
5
5
|
addPackage(input: AddPackageInput): this;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseDocumentClass } from "document-model";
|
|
2
|
-
import {
|
|
2
|
+
import { BuilderTeamPHState } from "../ph-factories.js";
|
|
3
3
|
import { type SetLogoInput, type SetTeamNameInput, type SetSlugInput, type SetDescriptionInput, type SetSocialsInput } from "../types.js";
|
|
4
4
|
export default class BuilderTeam_Profile extends BaseDocumentClass<BuilderTeamPHState> {
|
|
5
5
|
setLogo(input: SetLogoInput): this;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type StateReducer } from "document-model";
|
|
2
|
-
import {
|
|
2
|
+
import { BuilderTeamPHState } from "./ph-factories.js";
|
|
3
3
|
export declare const stateReducer: StateReducer<BuilderTeamPHState>;
|
|
4
4
|
export declare const reducer: import("document-model").Reducer<BuilderTeamPHState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseDocumentClass } from "document-model";
|
|
2
|
-
import {
|
|
2
|
+
import { BuilderTeamPHState } from "../ph-factories.js";
|
|
3
3
|
import { type AddSpaceInput, type UpdateSpaceInfoInput, type RemoveSpaceInput, type ReorderSpacesInput } from "../types.js";
|
|
4
4
|
export default class BuilderTeam_Spaces extends BaseDocumentClass<BuilderTeamPHState> {
|
|
5
5
|
addSpace(input: AddSpaceInput): this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CreateDocument, type CreateState, type LoadFromFile, type LoadFromInput } from "document-model";
|
|
2
2
|
import { type BuilderTeamState, type BuilderTeamLocalState } from "./types.js";
|
|
3
|
-
import {
|
|
3
|
+
import { BuilderTeamPHState } from "./ph-factories.js";
|
|
4
4
|
export declare const initialGlobalState: BuilderTeamState;
|
|
5
5
|
export declare const initialLocalState: BuilderTeamLocalState;
|
|
6
6
|
export declare const createState: CreateState<BuilderTeamPHState>;
|
|
@@ -53,9 +53,5 @@ export const reducer = {
|
|
|
53
53
|
// Insert the packages at the target index
|
|
54
54
|
remainingPackages.splice(targetIndex, 0, ...packagesToMove);
|
|
55
55
|
space.packages = remainingPackages;
|
|
56
|
-
// Update sortOrder for all packages
|
|
57
|
-
space.packages.forEach((pkg, index) => {
|
|
58
|
-
pkg.sortOrder = index;
|
|
59
|
-
});
|
|
60
56
|
},
|
|
61
57
|
};
|
|
@@ -42,9 +42,5 @@ export const reducer = {
|
|
|
42
42
|
// Insert the spaces at the target index
|
|
43
43
|
remainingSpaces.splice(targetIndex, 0, ...spacesToMove);
|
|
44
44
|
state.spaces = remainingSpaces;
|
|
45
|
-
// Update sortOrder for all spaces
|
|
46
|
-
state.spaces.forEach((space, index) => {
|
|
47
|
-
space.sortOrder = index;
|
|
48
|
-
});
|
|
49
45
|
},
|
|
50
46
|
};
|
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
const getEnvVar = (key, defaultValue) => {
|
|
2
|
-
|
|
3
|
-
if (typeof window !== "undefined") {
|
|
4
|
-
// Browser environment - check window object for injected env vars
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
|
6
|
-
const windowEnv = window.__ENV__;
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
8
|
-
if (windowEnv && typeof windowEnv[key] === "string") {
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
10
|
-
return windowEnv[key];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
// Node.js environment - check process.env
|
|
14
|
-
if (typeof process !== "undefined" && process.env) {
|
|
15
|
-
const value = process.env[key];
|
|
16
|
-
if (typeof value === "string") {
|
|
17
|
-
return value;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return defaultValue;
|
|
2
|
+
return import.meta.env[key] ?? defaultValue;
|
|
21
3
|
};
|
|
22
4
|
export const config = {
|
|
23
|
-
renownGraphqlEndpoint: getEnvVar("
|
|
24
|
-
vetraGraphqlEndpoint: getEnvVar("
|
|
25
|
-
renownProfileBasePath: getEnvVar("
|
|
26
|
-
vetraPackageBasePath: getEnvVar("
|
|
27
|
-
vetraDriveBaseUrl: getEnvVar("
|
|
5
|
+
renownGraphqlEndpoint: getEnvVar("PH_VETRA_RENOWN_GRAPHQL_ENDPOINT", "https://switchboard.renown-staging.vetra.io/graphql"),
|
|
6
|
+
vetraGraphqlEndpoint: getEnvVar("PH_VETRA_VETRA_GRAPHQL_ENDPOINT", "https://switchboard.staging.vetra.io/graphql"),
|
|
7
|
+
renownProfileBasePath: getEnvVar("PH_VETRA_RENOWN_PROFILE_BASE_PATH", "phd://renown-staging.vetra.to"),
|
|
8
|
+
vetraPackageBasePath: getEnvVar("PH_VETRA_VETRA_PACKAGE_BASE_PATH", "phd://staging.vetra.to"),
|
|
9
|
+
vetraDriveBaseUrl: getEnvVar("PH_VETRA_DRIVE_BASE_URL", "https://switchboard.staging.vetra.io/d"),
|
|
28
10
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/vetra-builder-package",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.30",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"./style.css": "./dist/style.css"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@powerhousedao/builder-tools": "staging",
|
|
66
|
-
"@powerhousedao/common": "staging",
|
|
67
|
-
"@powerhousedao/design-system": "staging",
|
|
65
|
+
"@powerhousedao/builder-tools": "5.0.0-staging.30",
|
|
66
|
+
"@powerhousedao/common": "5.0.0-staging.30",
|
|
67
|
+
"@powerhousedao/design-system": "5.0.0-staging.30",
|
|
68
68
|
"@powerhousedao/document-engineering": "^1.38.0",
|
|
69
|
-
"@renown/sdk": "staging",
|
|
70
|
-
"document-model": "staging",
|
|
69
|
+
"@renown/sdk": "5.0.0-staging.30",
|
|
70
|
+
"document-model": "5.0.0-staging.30",
|
|
71
71
|
"graphql": "^16.10.0",
|
|
72
72
|
"graphql-request": "^7.2.0",
|
|
73
73
|
"graphql-tag": "^2.12.6",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"@electric-sql/pglite": "^0.2.12",
|
|
81
81
|
"@eslint/js": "^9.22.0",
|
|
82
82
|
"@powerhousedao/analytics-engine-core": "^0.5.0",
|
|
83
|
-
"@powerhousedao/codegen": "staging",
|
|
84
|
-
"@powerhousedao/ph-cli": "staging",
|
|
85
|
-
"@powerhousedao/reactor-api": "staging",
|
|
86
|
-
"@powerhousedao/reactor-browser": "staging",
|
|
87
|
-
"@powerhousedao/reactor-local": "staging",
|
|
88
|
-
"@powerhousedao/scalars": "staging",
|
|
89
|
-
"@powerhousedao/switchboard": "staging",
|
|
90
|
-
"@powerhousedao/vetra": "staging",
|
|
83
|
+
"@powerhousedao/codegen": "5.0.0-staging.30",
|
|
84
|
+
"@powerhousedao/ph-cli": "5.0.0-staging.30",
|
|
85
|
+
"@powerhousedao/reactor-api": "5.0.0-staging.30",
|
|
86
|
+
"@powerhousedao/reactor-browser": "5.0.0-staging.30",
|
|
87
|
+
"@powerhousedao/reactor-local": "5.0.0-staging.30",
|
|
88
|
+
"@powerhousedao/scalars": "1.33.1-staging.5",
|
|
89
|
+
"@powerhousedao/switchboard": "5.0.0-staging.30",
|
|
90
|
+
"@powerhousedao/vetra": "5.0.0-staging.30",
|
|
91
91
|
"@semantic-release/changelog": "^6.0.3",
|
|
92
92
|
"@semantic-release/git": "^10.0.1",
|
|
93
93
|
"@tailwindcss/cli": "^4.0.15",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@types/node": "^22.13.11",
|
|
96
96
|
"@types/react": "^18.3.19",
|
|
97
97
|
"@vitejs/plugin-react": "^5.0.4",
|
|
98
|
-
"document-drive": "staging",
|
|
98
|
+
"document-drive": "5.0.0-staging.30",
|
|
99
99
|
"eslint": "^9.22.0",
|
|
100
100
|
"eslint-plugin-react": "^7.37.4",
|
|
101
101
|
"eslint-plugin-react-hooks": "^5.2.0",
|