@powerhousedao/common 4.1.0-dev.100 → 4.1.0-dev.102

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.
@@ -1,3 +1,3 @@
1
1
  import type { EditorProps } from "document-model";
2
- export declare function Editor(props: EditorProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function Editor(props: EditorProps): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/editor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CA8BxC"}
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/editor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,2CA8BhD"}
@@ -3,7 +3,7 @@ import { CreateDocument, DriveLayout, FolderView } from "@powerhousedao/common";
3
3
  import { Breadcrumbs, useDrop } from "@powerhousedao/design-system";
4
4
  import { useSetPHDriveEditorConfig } from "@powerhousedao/reactor-browser";
5
5
  import { editorConfig } from "./config.js";
6
- export function Editor(props) {
6
+ export default function Editor(props) {
7
7
  useSetPHDriveEditorConfig(editorConfig);
8
8
  const { className, children } = props;
9
9
  const { isDropTarget, dropProps } = useDrop();
@@ -1 +1 @@
1
- {"version":3,"file":"editor.js","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,8BA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yBAAyB,CAAC,YAAY,CAAC,CAAC;IACxC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC;IAC9C,MAAM,kBAAkB,GAAG,CAAC,CAAC,QAAQ,CAAC;IAEtC,OAAO,CACL,MAAC,WAAW,IAAC,SAAS,EAAE,SAAS,aAC9B,CAAC,kBAAkB,IAAI,CACtB,KAAC,WAAW,CAAC,MAAM,cACjB,KAAC,WAAW,KAAG,GACI,CACtB,EACA,kBAAkB,CAAC,CAAC,CAAC,CACpB,QAAQ,CACT,CAAC,CAAC,CAAC,CACF,KAAC,WAAW,CAAC,OAAO,OACd,SAAS,EACb,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,YAEvD,KAAC,UAAU,KAAG,GACM,CACvB,EACA,CAAC,kBAAkB,IAAI,CACtB,KAAC,WAAW,CAAC,MAAM,cACjB,KAAC,cAAc,KAAG,GACC,CACtB,IACW,CACf,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Meta } from "@storybook/react";
2
- import { Editor } from "./editor.js";
2
+ import Editor from "./editor.js";
3
3
  declare const meta: Meta<typeof Editor>;
4
4
  export declare const Empty: any;
5
5
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"generic-drive-explorer.stories.d.ts","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/generic-drive-explorer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAiCrC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAGN,CAAC;AACzB,eAAO,MAAM,KAAK,EAAE,GAAyB,CAAC;AAE9C,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"generic-drive-explorer.stories.d.ts","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/generic-drive-explorer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,kBAAkB,CAAC;AAGvD,OAAO,MAAM,MAAM,aAAa,CAAC;AAiCjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAGN,CAAC;AACzB,eAAO,MAAM,KAAK,EAAE,GAAyB,CAAC;AAE9C,eAAe,IAAI,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { createDocumentStory, } from "@powerhousedao/builder-tools";
2
2
  import { driveDocumentModelModule } from "document-drive";
3
3
  import { defaultBaseState } from "document-model/core";
4
- import { Editor } from "./editor.js";
4
+ import Editor from "./editor.js";
5
5
  function createDriveStory(Editor, initialState, additionalStoryArgs) {
6
6
  const story = createDocumentStory(Editor, initialState ??
7
7
  driveDocumentModelModule.utils.createState({
@@ -1 +1 @@
1
- {"version":3,"file":"generic-drive-explorer.stories.js","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/generic-drive-explorer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,SAAS,gBAAgB,CACvB,MAAS,EACT,YAAkB,EAClB,mBAA+C;IAK/C,MAAM,KAAK,GAAG,mBAAmB,CAC/B,MAAM,EACN,YAAY;QACV,wBAAwB,CAAC,KAAK,CAAC,WAAW,CAAC;YACzC,GAAG,gBAAgB,EAAE;YACrB,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,EAAE;YAC7D,KAAK,EAAE;gBACL,gBAAgB,EAAE,KAAK;gBACvB,SAAS,EAAE,EAAE;gBACb,WAAW,EAAE,QAAQ;gBACrB,QAAQ,EAAE,EAAE;aACb;SACF,CAAC,EACJ,mBAAmB,CACpB,CAAC;IACF,OAAO,KAGN,CAAC;AACJ,CAAC;AAED,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,IAAI,GAAwB;IAChC,GAAG,KAAK;IACR,KAAK,EAAE,wBAAwB;CACT,CAAC;AACzB,MAAM,CAAC,MAAM,KAAK,GAAQ,mBAAmB,CAAC;AAE9C,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"generic-drive-explorer.stories.js","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/generic-drive-explorer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,SAAS,gBAAgB,CACvB,MAAS,EACT,YAAkB,EAClB,mBAA+C;IAK/C,MAAM,KAAK,GAAG,mBAAmB,CAC/B,MAAM,EACN,YAAY;QACV,wBAAwB,CAAC,KAAK,CAAC,WAAW,CAAC;YACzC,GAAG,gBAAgB,EAAE;YACrB,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,EAAE;YAC7D,KAAK,EAAE;gBACL,gBAAgB,EAAE,KAAK;gBACvB,SAAS,EAAE,EAAE;gBACb,WAAW,EAAE,QAAQ;gBACrB,QAAQ,EAAE,EAAE;aACb;SACF,CAAC,EACJ,mBAAmB,CACpB,CAAC;IACF,OAAO,KAGN,CAAC;AACJ,CAAC;AAED,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,IAAI,GAAwB;IAChC,GAAG,KAAK;IACR,KAAK,EAAE,wBAAwB;CACT,CAAC;AACzB,MAAM,CAAC,MAAM,KAAK,GAAQ,mBAAmB,CAAC;AAE9C,eAAe,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,eAAO,MAAM,oBAAoB,EAAE,YAOlC,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,eAAO,MAAM,oBAAoB,EAAE,YAOlC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Editor } from "@powerhousedao/common";
1
+ import { lazy } from "react";
2
2
  export const GenericDriveExplorer = {
3
- Component: Editor,
3
+ Component: lazy(() => import("./editor.js")),
4
4
  config: {
5
5
  id: "GenericDriveExplorer",
6
6
  name: "Drive Explorer App",
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,MAAM,CAAC,MAAM,oBAAoB,GAAiB;IAChD,SAAS,EAAE,MAAM;IACjB,MAAM,EAAE;QACN,EAAE,EAAE,sBAAsB;QAC1B,IAAI,EAAE,oBAAoB;KAC3B;IACD,aAAa,EAAE,CAAC,2BAA2B,CAAC;CAC7C,CAAC"}
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../../editors/generic-drive-explorer/module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,MAAM,CAAC,MAAM,oBAAoB,GAAiB;IAChD,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC5C,MAAM,EAAE;QACN,EAAE,EAAE,sBAAsB;QAC1B,IAAI,EAAE,oBAAoB;KAC3B;IACD,aAAa,EAAE,CAAC,2BAA2B,CAAC;CAC7C,CAAC"}