@powerhousedao/common 1.5.7 → 1.7.0
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/editors/index.d.ts +1 -0
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +1 -0
- package/dist/editors/styles.css +1243 -0
- package/dist/editors/utils/storybook.d.ts +4 -4
- package/dist/editors/utils/storybook.d.ts.map +1 -1
- package/dist/editors/utils/storybook.js +3 -0
- package/dist/package.json +8 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DocumentStory, EditorStoryArgs, EditorStoryComponent, type EditorStoryProps } from "@powerhousedao/builder-tools/editor-utils";
|
|
2
|
-
import { Decorator, Meta } from "@storybook/react";
|
|
3
|
-
import { DocumentDriveDocument, DocumentDriveLocalState, DocumentDriveState } from "document-drive";
|
|
4
|
-
import { ExtendedState, PartialState } from "document-model";
|
|
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
5
|
export declare function createDriveStory(Editor: EditorStoryComponent<DocumentDriveDocument>, initialState?: ExtendedState<PartialState<DocumentDriveState>, PartialState<DocumentDriveLocalState>>, additionalStoryArgs?: EditorStoryArgs<DocumentDriveDocument>, decorators?: Decorator<EditorStoryProps<DocumentDriveDocument>>[]): {
|
|
6
6
|
meta: Meta<typeof Editor>;
|
|
7
7
|
CreateDocumentStory: DocumentStory<DocumentDriveDocument>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../../editors/utils/storybook.tsx"],"names":[],"mappings":"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AE,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC;IAC1B,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CAC3D,CAWA"}
|
|
@@ -57,6 +57,9 @@ const DriveContextDecorator = (Story, context) => {
|
|
|
57
57
|
addFile() {
|
|
58
58
|
throw new Error("addFile not implemented");
|
|
59
59
|
},
|
|
60
|
+
addDocument() {
|
|
61
|
+
throw new Error("addDocument not implemented");
|
|
62
|
+
},
|
|
60
63
|
showCreateDocumentModal(documentModel) {
|
|
61
64
|
return Promise.resolve({
|
|
62
65
|
name: `New ${documentModel.documentModel.name}`,
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
"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.",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"dev": "ph-cli dev --config-file ./powerhouse.config.json",
|
|
21
|
+
"build:css": "pnpm dlx @tailwindcss/cli -i ./editors/styles.css -o ./dist/editors/styles.css",
|
|
21
22
|
"build:tsc": "tsc --build",
|
|
22
23
|
"lint": "eslint",
|
|
23
|
-
"build": "
|
|
24
|
+
"build": "npm run build:css && npm run build:tsc",
|
|
24
25
|
"storybook": "storybook dev -p 6006",
|
|
25
26
|
"build-storybook": "storybook build",
|
|
26
27
|
"prepublishOnly": "npm run build"
|
|
@@ -52,9 +53,11 @@
|
|
|
52
53
|
"react": "^18.3.1",
|
|
53
54
|
"react-dom": "^18.3.1",
|
|
54
55
|
"storybook-mock-date-decorator": "^2.0.6",
|
|
55
|
-
"tailwind-merge": "^3.0.1",
|
|
56
56
|
"tailwind-scrollbar": "^3.1.0",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
57
|
+
"tsx": "^4.19.2",
|
|
58
|
+
"tailwind-merge": "^3.0.2",
|
|
59
|
+
"tailwindcss": "^4.0.9",
|
|
60
|
+
"uuid": "^11.0.5",
|
|
61
|
+
"zod": "^3.24.1"
|
|
59
62
|
}
|
|
60
63
|
}
|