@powerhousedao/common 4.1.0-dev.7 → 4.1.0-dev.71
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/drive-analytics/processor/document-processor.d.ts +3 -5
- package/dist/drive-analytics/processor/document-processor.d.ts.map +1 -1
- package/dist/drive-analytics/processor/document-processor.js +4 -3
- package/dist/drive-analytics/processor/document-processor.js.map +1 -1
- package/dist/drive-analytics/processor/drive-processor.d.ts +3 -5
- package/dist/drive-analytics/processor/drive-processor.d.ts.map +1 -1
- package/dist/drive-analytics/processor/drive-processor.js +7 -6
- package/dist/drive-analytics/processor/drive-processor.js.map +1 -1
- package/dist/drive-analytics/processor/index.d.ts +4 -3
- package/dist/drive-analytics/processor/index.d.ts.map +1 -1
- package/dist/drive-analytics/processor/index.js +2 -3
- package/dist/drive-analytics/processor/index.js.map +1 -1
- package/dist/drive-analytics/useDocumentAnalytics.d.ts +5 -3
- package/dist/drive-analytics/useDocumentAnalytics.d.ts.map +1 -1
- package/dist/drive-analytics/useDocumentAnalytics.js +3 -1
- package/dist/drive-analytics/useDocumentAnalytics.js.map +1 -1
- package/dist/drive-analytics/useDriveAnalytics.d.ts +3 -3
- package/dist/drive-analytics/useDriveAnalytics.d.ts.map +1 -1
- package/dist/drive-analytics/useDriveAnalytics.js +3 -1
- package/dist/drive-analytics/useDriveAnalytics.js.map +1 -1
- package/dist/editors/generic-drive-explorer/components/create-document.d.ts +1 -1
- package/dist/editors/generic-drive-explorer/components/create-document.d.ts.map +1 -1
- package/dist/editors/generic-drive-explorer/components/create-document.js +4 -7
- package/dist/editors/generic-drive-explorer/components/create-document.js.map +1 -1
- package/dist/editors/generic-drive-explorer/components/file-content-view.d.ts +4 -4
- package/dist/editors/generic-drive-explorer/components/file-content-view.d.ts.map +1 -1
- package/dist/editors/generic-drive-explorer/components/file-content-view.js +1 -3
- package/dist/editors/generic-drive-explorer/components/file-content-view.js.map +1 -1
- package/dist/editors/generic-drive-explorer/components/folder-view.d.ts +4 -4
- package/dist/editors/generic-drive-explorer/components/folder-view.d.ts.map +1 -1
- package/dist/editors/generic-drive-explorer/components/folder-view.js +4 -5
- package/dist/editors/generic-drive-explorer/components/folder-view.js.map +1 -1
- package/dist/editors/generic-drive-explorer/components/index.d.ts +6 -0
- package/dist/editors/generic-drive-explorer/components/index.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/components/index.js +6 -0
- package/dist/editors/generic-drive-explorer/components/index.js.map +1 -0
- package/dist/editors/generic-drive-explorer/components/layout.d.ts +1 -1
- package/dist/editors/generic-drive-explorer/components/layout.d.ts.map +1 -1
- package/dist/editors/generic-drive-explorer/components/layout.js.map +1 -1
- package/dist/editors/generic-drive-explorer/components/search-bar.d.ts.map +1 -1
- package/dist/editors/generic-drive-explorer/components/search-bar.js +1 -1
- package/dist/editors/generic-drive-explorer/components/search-bar.js.map +1 -1
- package/dist/editors/generic-drive-explorer/editor.d.ts +5 -6
- package/dist/editors/generic-drive-explorer/editor.d.ts.map +1 -1
- package/dist/editors/generic-drive-explorer/editor.js +21 -22
- package/dist/editors/generic-drive-explorer/editor.js.map +1 -1
- package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.d.ts +3 -4
- package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.d.ts.map +1 -1
- package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.js +18 -2
- package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.js.map +1 -1
- package/dist/editors/generic-drive-explorer/index.d.ts +3 -3
- package/dist/editors/generic-drive-explorer/index.d.ts.map +1 -1
- package/dist/editors/generic-drive-explorer/index.js +3 -11
- package/dist/editors/generic-drive-explorer/index.js.map +1 -1
- package/dist/editors/generic-drive-explorer/module.d.ts +3 -0
- package/dist/editors/generic-drive-explorer/module.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/module.js +13 -0
- package/dist/editors/generic-drive-explorer/module.js.map +1 -0
- package/dist/editors/index.d.ts +2 -1
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +3 -1
- package/dist/editors/index.js.map +1 -1
- package/dist/editors/styles.css +72 -4648
- package/dist/editors/utils/cn.d.ts +3 -0
- package/dist/editors/utils/cn.d.ts.map +1 -0
- package/dist/editors/utils/cn.js +6 -0
- package/dist/editors/utils/cn.js.map +1 -0
- package/dist/editors/utils/index.d.ts +2 -9
- package/dist/editors/utils/index.d.ts.map +1 -1
- package/dist/editors/utils/index.js +2 -5
- package/dist/editors/utils/index.js.map +1 -1
- package/dist/editors/utils/types.d.ts +8 -0
- package/dist/editors/utils/types.d.ts.map +1 -0
- package/dist/editors/utils/types.js +2 -0
- package/dist/editors/utils/types.js.map +1 -0
- package/dist/hooks/useTimelineItems.d.ts +2 -2
- package/dist/hooks/useTimelineItems.d.ts.map +1 -1
- package/dist/hooks/useTimelineItems.js +4 -3
- package/dist/hooks/useTimelineItems.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/get-revision-from-date.d.ts +3 -0
- package/dist/utils/get-revision-from-date.d.ts.map +1 -0
- package/dist/utils/get-revision-from-date.js +10 -0
- package/dist/utils/get-revision-from-date.js.map +1 -0
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -9
- package/dist/utils/index.js.map +1 -1
- package/package.json +28 -39
- package/dist/editors/utils/storybook.d.ts +0 -9
- package/dist/editors/utils/storybook.d.ts.map +0 -1
- package/dist/editors/utils/storybook.js +0 -51
- package/dist/editors/utils/storybook.js.map +0 -1
- package/dist/package.json +0 -91
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-revision-from-date.d.ts","sourceRoot":"","sources":["../../utils/get-revision-from-date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,eAAO,MAAM,mBAAmB,GAC9B,YAAY,IAAI,EAChB,UAAU,IAAI,EACd,aAAY,SAAS,EAAO,WAU7B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const getRevisionFromDate = (startDate, endDate, operations = []) => {
|
|
2
|
+
if (!startDate || !endDate)
|
|
3
|
+
return 0;
|
|
4
|
+
const operation = operations.find((operation) => {
|
|
5
|
+
const operationDate = new Date(operation.timestampUtcMs);
|
|
6
|
+
return operationDate >= startDate && operationDate <= endDate;
|
|
7
|
+
});
|
|
8
|
+
return operation ? operation.index : 0;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=get-revision-from-date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-revision-from-date.js","sourceRoot":"","sources":["../../utils/get-revision-from-date.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,SAAgB,EAChB,OAAc,EACd,aAA0B,EAAE,EAC5B,EAAE;IACF,IAAI,CAAC,SAAS,IAAI,CAAC,OAAO;QAAE,OAAO,CAAC,CAAC;IAErC,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE;QAC9C,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACzD,OAAO,aAAa,IAAI,SAAS,IAAI,aAAa,IAAI,OAAO,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACzC,CAAC,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
if (!startDate || !endDate)
|
|
3
|
-
return 0;
|
|
4
|
-
const operation = operations.find((operation) => {
|
|
5
|
-
const operationDate = new Date(operation.timestamp);
|
|
6
|
-
return operationDate >= startDate && operationDate <= endDate;
|
|
7
|
-
});
|
|
8
|
-
return operation ? operation.index : 0;
|
|
9
|
-
};
|
|
1
|
+
export * from "./get-revision-from-date.js";
|
|
10
2
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/common",
|
|
3
|
-
"version": "4.1.0-dev.
|
|
3
|
+
"version": "4.1.0-dev.71",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -10,30 +10,23 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/powerhouse-inc/powerhouse"
|
|
12
12
|
},
|
|
13
|
-
"exports":
|
|
14
|
-
".": "./dist/index.js",
|
|
15
|
-
"./*": "./dist/*.js",
|
|
16
|
-
"./drive-analytics": "./dist/drive-analytics/index.js"
|
|
17
|
-
},
|
|
13
|
+
"exports": "./dist/index.js",
|
|
18
14
|
"types": "./dist/index.d.ts",
|
|
19
|
-
"imports": {
|
|
20
|
-
"#document-models/*": "./dist/document-models/*.js",
|
|
21
|
-
"#editors/*": "./dist/editors/*.js"
|
|
22
|
-
},
|
|
23
15
|
"description": "The Powerhouse Common package contains the basic document model and drive UI (App) that is required to get started with Connect and visualize private & public apps.",
|
|
24
16
|
"peerDependencies": {
|
|
25
|
-
"react": "^
|
|
26
|
-
"react-dom": "^
|
|
27
|
-
"@powerhousedao/reactor-browser": "4.1.0-dev.7"
|
|
17
|
+
"react": "^19.2.0",
|
|
18
|
+
"react-dom": "^19.2.0"
|
|
28
19
|
},
|
|
29
20
|
"dependencies": {
|
|
21
|
+
"@powerhousedao/analytics-engine-core": "^0.5.0",
|
|
30
22
|
"@tanstack/react-virtual": "^3.8.1",
|
|
23
|
+
"@types/luxon": "^3.7.1",
|
|
24
|
+
"luxon": "^3.7.1",
|
|
31
25
|
"react-i18next": "^13.5.0",
|
|
32
|
-
"@powerhousedao/
|
|
33
|
-
"@powerhousedao/
|
|
34
|
-
"
|
|
35
|
-
"document-model": "4.1.0-dev.
|
|
36
|
-
"document-drive": "4.1.0-dev.7"
|
|
26
|
+
"@powerhousedao/design-system": "4.1.0-dev.71",
|
|
27
|
+
"@powerhousedao/builder-tools": "4.1.0-dev.71",
|
|
28
|
+
"document-drive": "4.1.0-dev.71",
|
|
29
|
+
"document-model": "4.1.0-dev.71"
|
|
37
30
|
},
|
|
38
31
|
"devDependencies": {
|
|
39
32
|
"@storybook/addon-actions": "^8.6.7",
|
|
@@ -50,41 +43,37 @@
|
|
|
50
43
|
"@storybook/react-vite": "^8.6.7",
|
|
51
44
|
"@storybook/test": "^8.6.7",
|
|
52
45
|
"@storybook/types": "^8.6.7",
|
|
53
|
-
"@tailwindcss/cli": "^4.1.
|
|
54
|
-
"@tailwindcss/vite": "^4.1.
|
|
55
|
-
"@types/node": "^
|
|
56
|
-
"@types/react": "^
|
|
46
|
+
"@tailwindcss/cli": "^4.1.14",
|
|
47
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
48
|
+
"@types/node": "^24.6.1",
|
|
49
|
+
"@types/react": "^19.2.0",
|
|
57
50
|
"@types/wicg-file-system-access": "^2020.9.6",
|
|
58
51
|
"autoprefixer": "^10.4.20",
|
|
59
52
|
"clsx": "^2.1.1",
|
|
60
53
|
"package-manager-detector": "^0.2.8",
|
|
61
54
|
"postcss": "^8.5.1",
|
|
62
|
-
"react": "^
|
|
63
|
-
"react-dom": "^
|
|
64
|
-
"storybook": "^8.6.
|
|
55
|
+
"react": "^19.2.0",
|
|
56
|
+
"react-dom": "^19.2.0",
|
|
57
|
+
"storybook": "^8.6.14",
|
|
65
58
|
"storybook-addon-pseudo-states": "^4.0.4",
|
|
66
59
|
"storybook-mock-date-decorator": "^2.0.6",
|
|
67
60
|
"tailwind-merge": "^3.0.2",
|
|
68
|
-
"tailwindcss": "^4.
|
|
61
|
+
"tailwindcss": "^4.1.14",
|
|
69
62
|
"tsx": "^4.20.3",
|
|
70
63
|
"uuid": "^11.0.5",
|
|
71
|
-
"vite": "^
|
|
72
|
-
"
|
|
64
|
+
"vite": "^7.1.9",
|
|
65
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
66
|
+
"vitest": "^3.2.4",
|
|
73
67
|
"zod": "^3.24.3",
|
|
74
|
-
"@powerhousedao/config": "4.1.0-dev.
|
|
75
|
-
"@powerhousedao/reactor-browser": "4.1.0-dev.
|
|
76
|
-
"document-model": "4.1.0-dev.
|
|
68
|
+
"@powerhousedao/config": "4.1.0-dev.71",
|
|
69
|
+
"@powerhousedao/reactor-browser": "4.1.0-dev.71",
|
|
70
|
+
"document-model": "4.1.0-dev.71"
|
|
77
71
|
},
|
|
78
72
|
"scripts": {
|
|
73
|
+
"tsc": "tsc",
|
|
74
|
+
"lint": "eslint",
|
|
79
75
|
"dev": "ph-cli dev --config-file ./powerhouse.config.json",
|
|
80
76
|
"build:css": "pnpm dlx @tailwindcss/cli -i ./editors/styles.css -o ./dist/editors/styles.css",
|
|
81
|
-
"
|
|
82
|
-
"lint": "eslint",
|
|
83
|
-
"build": "npm run build:css && npm run build:tsc",
|
|
84
|
-
"prebuild": "npm run clean",
|
|
85
|
-
"storybook": "storybook dev -p 6006",
|
|
86
|
-
"build-storybook": "storybook build",
|
|
87
|
-
"clean": "rimraf dist",
|
|
88
|
-
"clean:node_modules": "rimraf node_modules"
|
|
77
|
+
"storybook": "storybook dev -p 6006"
|
|
89
78
|
}
|
|
90
79
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type DocumentStory, type EditorStoryArgs, type EditorStoryComponent, type EditorStoryProps } from "@powerhousedao/builder-tools/editor-utils";
|
|
2
|
-
import { type Decorator, type Meta } from "@storybook/react";
|
|
3
|
-
import { type DocumentDriveDocument, type DocumentDriveLocalState, type DocumentDriveState } from "document-drive";
|
|
4
|
-
import { type ExtendedState, type PartialState } from "document-model";
|
|
5
|
-
export declare function createDriveStory(Editor: EditorStoryComponent<DocumentDriveDocument>, initialState?: ExtendedState<PartialState<DocumentDriveState>, PartialState<DocumentDriveLocalState>>, additionalStoryArgs?: EditorStoryArgs<DocumentDriveDocument>, decorators?: Decorator<EditorStoryProps<DocumentDriveDocument>>[]): {
|
|
6
|
-
meta: Meta<typeof Editor>;
|
|
7
|
-
CreateDocumentStory: DocumentStory<DocumentDriveDocument>;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=storybook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../../editors/utils/storybook.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACtB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EAExB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,oBAAoB,CAAC,qBAAqB,CAAC,EACnD,YAAY,CAAC,EAAE,aAAa,CAC1B,YAAY,CAAC,kBAAkB,CAAC,EAChC,YAAY,CAAC,uBAAuB,CAAC,CACtC,EACD,mBAAmB,CAAC,EAAE,eAAe,CAAC,qBAAqB,CAAC,EAC5D,UAAU,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC,EAAE,GAChE;IACD,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC;IAC1B,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CAC3D,CAwDA"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createDocumentStory, } from "@powerhousedao/builder-tools/editor-utils";
|
|
3
|
-
import { DriveContextProvider } from "@powerhousedao/reactor-browser";
|
|
4
|
-
import { driveDocumentModelModule, } from "document-drive";
|
|
5
|
-
import { documentModelDocumentModelModule, } from "document-model";
|
|
6
|
-
export function createDriveStory(Editor, initialState, additionalStoryArgs, decorators) {
|
|
7
|
-
const story = createDocumentStory(Editor, driveDocumentModelModule.reducer, initialState ?? {
|
|
8
|
-
...driveDocumentModelModule.utils.createExtendedState({
|
|
9
|
-
state: { global: { name: "Powerhouse" }, local: {} },
|
|
10
|
-
}),
|
|
11
|
-
}, additionalStoryArgs, [
|
|
12
|
-
(Story, context) => (_jsx(DriveContextProvider, { value: {
|
|
13
|
-
analyticsDatabaseName: "test",
|
|
14
|
-
onAddFile: () => Promise.resolve(),
|
|
15
|
-
onAddFolder: () => Promise.resolve(undefined),
|
|
16
|
-
onRenameNode: () => Promise.resolve(undefined),
|
|
17
|
-
onCopyNode: () => Promise.resolve(),
|
|
18
|
-
onMoveNode: () => Promise.resolve(),
|
|
19
|
-
onDuplicateNode: () => Promise.resolve(),
|
|
20
|
-
onAddAndSelectNewFolder: () => Promise.resolve(),
|
|
21
|
-
getSyncStatusSync: () => undefined,
|
|
22
|
-
showDeleteNodeModal: () => { },
|
|
23
|
-
getDocumentModelModule: () => undefined,
|
|
24
|
-
getEditor: () => undefined,
|
|
25
|
-
useDocumentEditorProps: () => ({
|
|
26
|
-
dispatch: () => { },
|
|
27
|
-
document: context.args.document,
|
|
28
|
-
error: undefined,
|
|
29
|
-
}),
|
|
30
|
-
showSearchBar: false,
|
|
31
|
-
isAllowedToCreateDocuments: true,
|
|
32
|
-
documentModels: [
|
|
33
|
-
documentModelDocumentModelModule,
|
|
34
|
-
],
|
|
35
|
-
addFile() {
|
|
36
|
-
throw new Error("addFile not implemented");
|
|
37
|
-
},
|
|
38
|
-
addDocument() {
|
|
39
|
-
throw new Error("addDocument not implemented");
|
|
40
|
-
},
|
|
41
|
-
showCreateDocumentModal(documentModel) {
|
|
42
|
-
return Promise.resolve({
|
|
43
|
-
name: `New ${documentModel.documentModel.name}`,
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
}, children: _jsx(Story, {}) })),
|
|
47
|
-
...(decorators ?? []),
|
|
48
|
-
]);
|
|
49
|
-
return story;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=storybook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storybook.js","sourceRoot":"","sources":["../../../editors/utils/storybook.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,mBAAmB,GAKpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,OAAO,EACL,wBAAwB,GAKzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gCAAgC,GAIjC,MAAM,gBAAgB,CAAC;AAExB,MAAM,UAAU,gBAAgB,CAC9B,MAAmD,EACnD,YAGC,EACD,mBAA4D,EAC5D,UAAiE;IAKjE,MAAM,KAAK,GAAG,mBAAmB,CAC/B,MAAM,EACN,wBAAwB,CAAC,OAAO,EAChC,YAAY,IAAI;QACd,GAAG,wBAAwB,CAAC,KAAK,CAAC,mBAAmB,CAAC;YACpD,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;SACrD,CAAC;KACH,EACD,mBAAmB,EACnB;QACE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAClB,KAAC,oBAAoB,IACnB,KAAK,EAAE;gBACL,qBAAqB,EAAE,MAAM;gBAC7B,SAAS,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;gBAClC,WAAW,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;gBAC7C,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;gBAC9C,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;gBACnC,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;gBACnC,eAAe,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;gBACxC,uBAAuB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;gBAChD,iBAAiB,EAAE,GAAG,EAAE,CAAC,SAAS;gBAClC,mBAAmB,EAAE,GAAG,EAAE,GAAE,CAAC;gBAC7B,sBAAsB,EAAE,GAAG,EAAE,CAAC,SAAS;gBACvC,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS;gBAC1B,sBAAsB,EAAE,GAAG,EAAE,CAAC,CAAC;oBAC7B,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;oBAClB,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ;oBAC/B,KAAK,EAAE,SAAS;iBACjB,CAAC;gBACF,aAAa,EAAE,KAAK;gBACpB,0BAA0B,EAAE,IAAI;gBAChC,cAAc,EAAE;oBACd,gCAAuD;iBACxD;gBACD,OAAO;oBACL,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;gBAC7C,CAAC;gBACD,WAAW;oBACT,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;gBACjD,CAAC;gBACD,uBAAuB,CAAC,aAAkC;oBACxD,OAAO,OAAO,CAAC,OAAO,CAAC;wBACrB,IAAI,EAAE,OAAO,aAAa,CAAC,aAAa,CAAC,IAAI,EAAE;qBAChD,CAAC,CAAC;gBACL,CAAC;aACF,YAED,KAAC,KAAK,KAAG,GACY,CACxB;QACD,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC;KACtB,CACF,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/package.json
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@powerhousedao/common",
|
|
3
|
-
"version": "4.1.0-dev.7",
|
|
4
|
-
"license": "AGPL-3.0-only",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"files": [
|
|
7
|
-
"/dist"
|
|
8
|
-
],
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/powerhouse-inc/powerhouse"
|
|
12
|
-
},
|
|
13
|
-
"exports": {
|
|
14
|
-
".": "./dist/index.js",
|
|
15
|
-
"./*": "./dist/*.js",
|
|
16
|
-
"./drive-analytics": "./dist/drive-analytics/index.js"
|
|
17
|
-
},
|
|
18
|
-
"types": "./dist/index.d.ts",
|
|
19
|
-
"imports": {
|
|
20
|
-
"#document-models/*": "./dist/document-models/*.js",
|
|
21
|
-
"#editors/*": "./dist/editors/*.js"
|
|
22
|
-
},
|
|
23
|
-
"description": "The Powerhouse Common package contains the basic document model and drive UI (App) that is required to get started with Connect and visualize private & public apps.",
|
|
24
|
-
"scripts": {
|
|
25
|
-
"dev": "ph-cli dev --config-file ./powerhouse.config.json",
|
|
26
|
-
"build:css": "pnpm dlx @tailwindcss/cli -i ./editors/styles.css -o ./dist/editors/styles.css",
|
|
27
|
-
"build:tsc": "tsc --build",
|
|
28
|
-
"lint": "eslint",
|
|
29
|
-
"build": "npm run build:css && npm run build:tsc",
|
|
30
|
-
"prebuild": "npm run clean",
|
|
31
|
-
"storybook": "storybook dev -p 6006",
|
|
32
|
-
"build-storybook": "storybook build",
|
|
33
|
-
"prepublishOnly": "npm run build",
|
|
34
|
-
"clean": "rimraf dist",
|
|
35
|
-
"clean:node_modules": "rimraf node_modules"
|
|
36
|
-
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"@powerhousedao/reactor-browser": "workspace:*",
|
|
39
|
-
"react": "^18.3.1",
|
|
40
|
-
"react-dom": "^18.3.1"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@powerhousedao/builder-tools": "workspace:*",
|
|
44
|
-
"@powerhousedao/design-system": "workspace:*",
|
|
45
|
-
"@powerhousedao/state": "workspace:*",
|
|
46
|
-
"@tanstack/react-virtual": "^3.8.1",
|
|
47
|
-
"document-drive": "workspace:*",
|
|
48
|
-
"document-model": "workspace:*",
|
|
49
|
-
"react-i18next": "^13.5.0"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@powerhousedao/config": "workspace:*",
|
|
53
|
-
"@powerhousedao/reactor-browser": "workspace:*",
|
|
54
|
-
"@storybook/addon-actions": "^8.6.7",
|
|
55
|
-
"@storybook/addon-docs": "^8.6.3",
|
|
56
|
-
"@storybook/addon-essentials": "^8.6.7",
|
|
57
|
-
"@storybook/addon-interactions": "^8.6.7",
|
|
58
|
-
"@storybook/addon-links": "^8.6.7",
|
|
59
|
-
"@storybook/addon-themes": "^8.6.7",
|
|
60
|
-
"@storybook/blocks": "^8.6.7",
|
|
61
|
-
"@storybook/components": "^8.6.7",
|
|
62
|
-
"@storybook/manager-api": "^8.6.7",
|
|
63
|
-
"@storybook/preview-api": "^8.6.7",
|
|
64
|
-
"@storybook/react": "^8.6.7",
|
|
65
|
-
"@storybook/react-vite": "^8.6.7",
|
|
66
|
-
"@storybook/test": "^8.6.7",
|
|
67
|
-
"@storybook/types": "^8.6.7",
|
|
68
|
-
"@tailwindcss/cli": "^4.1.4",
|
|
69
|
-
"@tailwindcss/vite": "^4.1.4",
|
|
70
|
-
"@types/node": "^22.15.17",
|
|
71
|
-
"@types/react": "^18.3.18",
|
|
72
|
-
"@types/wicg-file-system-access": "^2020.9.6",
|
|
73
|
-
"autoprefixer": "^10.4.20",
|
|
74
|
-
"clsx": "^2.1.1",
|
|
75
|
-
"document-model": "workspace:*",
|
|
76
|
-
"package-manager-detector": "^0.2.8",
|
|
77
|
-
"postcss": "^8.5.1",
|
|
78
|
-
"react": "^18.3.1",
|
|
79
|
-
"react-dom": "^18.3.1",
|
|
80
|
-
"storybook": "^8.6.7",
|
|
81
|
-
"storybook-addon-pseudo-states": "^4.0.4",
|
|
82
|
-
"storybook-mock-date-decorator": "^2.0.6",
|
|
83
|
-
"tailwind-merge": "^3.0.2",
|
|
84
|
-
"tailwindcss": "^4.0.9",
|
|
85
|
-
"tsx": "^4.20.3",
|
|
86
|
-
"uuid": "^11.0.5",
|
|
87
|
-
"vite": "^6.3.3",
|
|
88
|
-
"vitest": "^3.1.2",
|
|
89
|
-
"zod": "^3.24.3"
|
|
90
|
-
}
|
|
91
|
-
}
|