@dxos/plugin-sheet 0.7.5-labs.f5080a1 → 0.7.5-main.5ae2ba8

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 (47) hide show
  1. package/dist/lib/browser/index.mjs +16 -18
  2. package/dist/lib/browser/index.mjs.map +3 -3
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node/index.cjs +15 -17
  5. package/dist/lib/node/index.cjs.map +3 -3
  6. package/dist/lib/node/meta.json +1 -1
  7. package/dist/lib/node-esm/index.mjs +16 -18
  8. package/dist/lib/node-esm/index.mjs.map +3 -3
  9. package/dist/lib/node-esm/meta.json +1 -1
  10. package/dist/types/src/SheetPlugin.d.ts.map +1 -1
  11. package/dist/types/src/capabilities/index.d.ts +2 -2
  12. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  13. package/dist/types/src/capabilities/markdown.d.ts +1 -1
  14. package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts +1 -1
  15. package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
  16. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +1 -2
  17. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +1 -1
  18. package/dist/types/src/components/GridSheet/GridSheet.d.ts +1 -2
  19. package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
  20. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +1 -2
  21. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
  22. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +1 -2
  23. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -1
  24. package/dist/types/src/components/RangeList/RangeList.d.ts +1 -2
  25. package/dist/types/src/components/RangeList/RangeList.d.ts.map +1 -1
  26. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +1 -2
  27. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -1
  28. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +2 -3
  29. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
  30. package/dist/types/src/components/SheetContext/SheetContext.d.ts +2 -2
  31. package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -1
  32. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts +2 -2
  33. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
  34. package/dist/types/src/components/SheetToolbar/align.d.ts +1 -1
  35. package/dist/types/src/components/SheetToolbar/style.d.ts +1 -1
  36. package/dist/types/src/components/index.d.ts +2 -2
  37. package/dist/types/src/components/index.d.ts.map +1 -1
  38. package/dist/types/src/extensions/compute.stories.d.ts +2 -3
  39. package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
  40. package/dist/types/src/types/schema.d.ts +14 -14
  41. package/dist/types/src/types/schema.d.ts.map +1 -1
  42. package/package.json +45 -44
  43. package/src/SheetPlugin.tsx +17 -14
  44. package/src/extensions/compute.stories.tsx +2 -2
  45. package/dist/types/src/testing/playwright/playwright.config.d.ts +0 -3
  46. package/dist/types/src/testing/playwright/playwright.config.d.ts.map +0 -1
  47. /package/src/testing/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,eAAO,MAAM,cAAc;;;QAC0T,CAAC;mBAA2B,CAAC;yCAD9S,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,eAAO,MAAM,cAAc;;;QAC0T,CAAC;mBAA2B,CAAC;qDAD9S,CAAC"}
@@ -1,17 +1,16 @@
1
1
  import '@dxos-theme';
2
2
  import { type Meta } from '@storybook/react';
3
- import React from 'react';
4
3
  type EditorProps = {
5
4
  text?: string;
6
5
  };
7
6
  export declare const Default: {
8
- render: ({ text }: EditorProps) => React.JSX.Element;
7
+ render: ({ text }: EditorProps) => import("react/jsx-runtime").JSX.Element;
9
8
  args: {
10
9
  text: string;
11
10
  };
12
11
  };
13
12
  export declare const Graph: {
14
- render: (props: EditorProps) => React.JSX.Element;
13
+ render: (props: EditorProps) => import("react/jsx-runtime").JSX.Element;
15
14
  args: {
16
15
  text: string;
17
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAA6B,MAAM,OAAO,CAAC;AAyBlD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAmEF,eAAO,MAAM,OAAO;uBA1DW,WAAW;;;;CAgFzC,CAAC;AAEF,eAAO,MAAM,KAAK;oBAlCS,WAAW;;;;CAkDrC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA0B7C,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAmEF,eAAO,MAAM,OAAO;uBA1DW,WAAW;;;;CAgFzC,CAAC;AAEF,eAAO,MAAM,KAAK;oBAlCS,WAAW;;;;CAkDrC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -12,7 +12,7 @@ export type Range = S.Schema.Type<typeof Range>;
12
12
  export declare const RowColumnMeta: S.Struct<{
13
13
  size: S.optional<typeof S.Number>;
14
14
  }>;
15
- declare const SheetType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
15
+ declare const SheetType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
16
16
  name: S.optional<typeof S.String>;
17
17
  cells: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
18
18
  value: typeof S.Any;
@@ -30,21 +30,21 @@ declare const SheetType_base: import("@dxos/echo-schema").TypedObjectPrototype<i
30
30
  key: typeof S.String;
31
31
  value: typeof S.String;
32
32
  }>>>;
33
- threads: S.optional<S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
33
+ threads: S.optional<S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
34
34
  name: S.optional<typeof S.String>;
35
35
  anchor: S.optional<typeof S.String>;
36
36
  status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
37
- messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
37
+ messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
38
38
  timestamp: typeof S.String;
39
39
  state: S.optional<S.Enums<typeof import("@dxos/plugin-space/types").MessageState>>;
40
40
  sender: S.mutable<S.Struct<{
41
- contact: S.optional<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
41
+ contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
42
42
  name: S.optional<typeof S.String>;
43
43
  identifiers: S.mutable<S.Array$<S.Struct<{
44
44
  type: typeof S.String;
45
45
  value: typeof S.String;
46
46
  }>>>;
47
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>;
47
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>;
48
48
  identityKey: S.optional<typeof S.String>;
49
49
  email: S.optional<typeof S.String>;
50
50
  name: S.optional<typeof S.String>;
@@ -53,9 +53,9 @@ declare const SheetType_base: import("@dxos/echo-schema").TypedObjectPrototype<i
53
53
  parts: S.optional<S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>>>;
54
54
  properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
55
55
  context: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>;
56
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>>;
57
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>>>;
58
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>, S.Struct.Encoded<{
56
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>>;
57
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>>>;
58
+ }, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
59
59
  name: S.optional<typeof S.String>;
60
60
  cells: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
61
61
  value: typeof S.Any;
@@ -73,21 +73,21 @@ declare const SheetType_base: import("@dxos/echo-schema").TypedObjectPrototype<i
73
73
  key: typeof S.String;
74
74
  value: typeof S.String;
75
75
  }>>>;
76
- threads: S.optional<S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
76
+ threads: S.optional<S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
77
77
  name: S.optional<typeof S.String>;
78
78
  anchor: S.optional<typeof S.String>;
79
79
  status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
80
- messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
80
+ messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
81
81
  timestamp: typeof S.String;
82
82
  state: S.optional<S.Enums<typeof import("@dxos/plugin-space/types").MessageState>>;
83
83
  sender: S.mutable<S.Struct<{
84
- contact: S.optional<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
84
+ contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
85
85
  name: S.optional<typeof S.String>;
86
86
  identifiers: S.mutable<S.Array$<S.Struct<{
87
87
  type: typeof S.String;
88
88
  value: typeof S.String;
89
89
  }>>>;
90
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>;
90
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>;
91
91
  identityKey: S.optional<typeof S.String>;
92
92
  email: S.optional<typeof S.String>;
93
93
  name: S.optional<typeof S.String>;
@@ -96,8 +96,8 @@ declare const SheetType_base: import("@dxos/echo-schema").TypedObjectPrototype<i
96
96
  parts: S.optional<S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>>>;
97
97
  properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
98
98
  context: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>;
99
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>>;
100
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>>>;
99
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>>;
100
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>>>;
101
101
  }>>;
102
102
  export declare class SheetType extends SheetType_base {
103
103
  }
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAO,CAAC,EAAe,MAAM,mBAAmB,CAAC;AAGxD,eAAO,MAAM,SAAS;;EAKpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAGxD,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAGhD,eAAO,MAAM,aAAa;;EAExB,CAAC;;;;;;;;;;;;;;;;;;;;cA4Bi/F,EAAG,QAAQ,QAAO,EAAG,MAAM;gBAAqD,EAAG,QAAQ,QAAO,EAAG,MAAM;gBAAc,EAAG,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,cAAa,EAAG,OAAO,cAAa,EAAG,OAAO;kBAAgC,EAAG,OAAO,CAAC,EAAE,MAAM,QAAQ,mBAAmB,cAAc,6DAA6D;8BAAyG,EAAG,MAAM;mBAA8C,EAAG,QAAQ,CAAC,EAAE,KAAK;oBAAsF,EAAG,OAAO,CAAC,EAAE,MAAM;yBAAuB,EAAG,QAAQ,QAAQ,mBAAmB,cAAc,6DAA6D;0BAA2C,EAAG,QAAQ,QAAO,EAAG,MAAM;iCAA+B,EAAG,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM;qCAAmC,EAAG,MAAM;sCAAmC,EAAG,MAAM;;0BAA8C,6DAA6D;6BAAiD,EAAG,QAAQ,QAAO,EAAG,MAAM;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": "@dxos/plugin-sheet",
3
- "version": "0.7.5-labs.f5080a1",
3
+ "version": "0.7.5-main.5ae2ba8",
4
4
  "description": "Braneframe sketch plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
7
  "license": "MIT",
8
8
  "author": "DXOS.org",
9
9
  "sideEffects": true,
10
+ "type": "module",
10
11
  "exports": {
11
12
  ".": {
12
13
  "types": "./dist/types/src/index.d.ts",
@@ -54,38 +55,38 @@
54
55
  "re-resizable": "^6.9.17",
55
56
  "react-markdown": "^8.0.5",
56
57
  "react-resize-detector": "^11.0.1",
57
- "@dxos/app-framework": "0.7.5-labs.f5080a1",
58
- "@dxos/client": "0.7.5-labs.f5080a1",
59
- "@dxos/async": "0.7.5-labs.f5080a1",
60
- "@dxos/context": "0.7.5-labs.f5080a1",
61
- "@dxos/compute": "0.7.5-labs.f5080a1",
62
- "@dxos/crypto": "0.7.5-labs.f5080a1",
63
- "@dxos/debug": "0.7.5-labs.f5080a1",
64
- "@dxos/functions": "0.7.5-labs.f5080a1",
65
- "@dxos/echo-schema": "0.7.5-labs.f5080a1",
66
- "@dxos/keys": "0.7.5-labs.f5080a1",
67
- "@dxos/live-object": "0.7.5-labs.f5080a1",
68
- "@dxos/log": "0.7.5-labs.f5080a1",
69
- "@dxos/invariant": "0.7.5-labs.f5080a1",
70
- "@dxos/plugin-attention": "0.7.5-labs.f5080a1",
71
- "@dxos/plugin-graph": "0.7.5-labs.f5080a1",
72
- "@dxos/plugin-client": "0.7.5-labs.f5080a1",
73
- "@dxos/plugin-markdown": "0.7.5-labs.f5080a1",
74
- "@dxos/plugin-space": "0.7.5-labs.f5080a1",
75
- "@dxos/plugin-stack": "0.7.5-labs.f5080a1",
76
- "@dxos/plugin-thread": "0.7.5-labs.f5080a1",
77
- "@dxos/react-client": "0.7.5-labs.f5080a1",
78
- "@dxos/react-hooks": "0.7.5-labs.f5080a1",
79
- "@dxos/plugin-script": "0.7.5-labs.f5080a1",
80
- "@dxos/react-ui-attention": "0.7.5-labs.f5080a1",
81
- "@dxos/react-ui-editor": "0.7.5-labs.f5080a1",
82
- "@dxos/react-ui-form": "0.7.5-labs.f5080a1",
83
- "@dxos/react-ui-grid": "0.7.5-labs.f5080a1",
84
- "@dxos/react-ui-menu": "0.7.5-labs.f5080a1",
85
- "@dxos/react-ui-stack": "0.7.5-labs.f5080a1",
86
- "@dxos/react-ui-list": "0.7.5-labs.f5080a1",
87
- "@dxos/schema": "0.7.5-labs.f5080a1",
88
- "@dxos/util": "0.7.5-labs.f5080a1"
58
+ "@dxos/app-framework": "0.7.5-main.5ae2ba8",
59
+ "@dxos/client": "0.7.5-main.5ae2ba8",
60
+ "@dxos/context": "0.7.5-main.5ae2ba8",
61
+ "@dxos/async": "0.7.5-main.5ae2ba8",
62
+ "@dxos/compute": "0.7.5-main.5ae2ba8",
63
+ "@dxos/crypto": "0.7.5-main.5ae2ba8",
64
+ "@dxos/debug": "0.7.5-main.5ae2ba8",
65
+ "@dxos/invariant": "0.7.5-main.5ae2ba8",
66
+ "@dxos/echo-schema": "0.7.5-main.5ae2ba8",
67
+ "@dxos/keys": "0.7.5-main.5ae2ba8",
68
+ "@dxos/log": "0.7.5-main.5ae2ba8",
69
+ "@dxos/functions": "0.7.5-main.5ae2ba8",
70
+ "@dxos/live-object": "0.7.5-main.5ae2ba8",
71
+ "@dxos/plugin-attention": "0.7.5-main.5ae2ba8",
72
+ "@dxos/plugin-client": "0.7.5-main.5ae2ba8",
73
+ "@dxos/plugin-markdown": "0.7.5-main.5ae2ba8",
74
+ "@dxos/plugin-graph": "0.7.5-main.5ae2ba8",
75
+ "@dxos/plugin-script": "0.7.5-main.5ae2ba8",
76
+ "@dxos/plugin-stack": "0.7.5-main.5ae2ba8",
77
+ "@dxos/plugin-thread": "0.7.5-main.5ae2ba8",
78
+ "@dxos/plugin-space": "0.7.5-main.5ae2ba8",
79
+ "@dxos/react-client": "0.7.5-main.5ae2ba8",
80
+ "@dxos/react-hooks": "0.7.5-main.5ae2ba8",
81
+ "@dxos/react-ui-attention": "0.7.5-main.5ae2ba8",
82
+ "@dxos/react-ui-editor": "0.7.5-main.5ae2ba8",
83
+ "@dxos/react-ui-form": "0.7.5-main.5ae2ba8",
84
+ "@dxos/react-ui-grid": "0.7.5-main.5ae2ba8",
85
+ "@dxos/react-ui-list": "0.7.5-main.5ae2ba8",
86
+ "@dxos/react-ui-menu": "0.7.5-main.5ae2ba8",
87
+ "@dxos/react-ui-stack": "0.7.5-main.5ae2ba8",
88
+ "@dxos/schema": "0.7.5-main.5ae2ba8",
89
+ "@dxos/util": "0.7.5-main.5ae2ba8"
89
90
  },
90
91
  "devDependencies": {
91
92
  "@lezer/generator": "^1.7.1",
@@ -97,21 +98,21 @@
97
98
  "react": "~18.2.0",
98
99
  "react-dom": "~18.2.0",
99
100
  "vite": "5.4.7",
100
- "@dxos/echo-generator": "0.7.5-labs.f5080a1",
101
- "@dxos/lit-grid": "0.7.5-labs.f5080a1",
102
- "@dxos/random": "0.7.5-labs.f5080a1",
103
- "@dxos/react-ui": "0.7.5-labs.f5080a1",
104
- "@dxos/react-ui-syntax-highlighter": "0.7.5-labs.f5080a1",
105
- "@dxos/react-ui-theme": "0.7.5-labs.f5080a1",
106
- "@dxos/react-ui-types": "0.7.5-labs.f5080a1",
107
- "@dxos/storybook-utils": "0.7.5-labs.f5080a1",
108
- "@dxos/test-utils": "0.7.5-labs.f5080a1"
101
+ "@dxos/lit-grid": "0.7.5-main.5ae2ba8",
102
+ "@dxos/echo-generator": "0.7.5-main.5ae2ba8",
103
+ "@dxos/react-ui": "0.7.5-main.5ae2ba8",
104
+ "@dxos/random": "0.7.5-main.5ae2ba8",
105
+ "@dxos/react-ui-syntax-highlighter": "0.7.5-main.5ae2ba8",
106
+ "@dxos/react-ui-theme": "0.7.5-main.5ae2ba8",
107
+ "@dxos/storybook-utils": "0.7.5-main.5ae2ba8",
108
+ "@dxos/react-ui-types": "0.7.5-main.5ae2ba8",
109
+ "@dxos/test-utils": "0.7.5-main.5ae2ba8"
109
110
  },
110
111
  "peerDependencies": {
111
112
  "react": "~18.2.0",
112
113
  "react-dom": "~18.2.0",
113
- "@dxos/react-ui": "0.7.5-labs.f5080a1",
114
- "@dxos/react-ui-theme": "0.7.5-labs.f5080a1"
114
+ "@dxos/react-ui": "0.7.5-main.5ae2ba8",
115
+ "@dxos/react-ui-theme": "0.7.5-main.5ae2ba8"
115
116
  },
116
117
  "publishConfig": {
117
118
  "access": "public"
@@ -3,8 +3,10 @@
3
3
  //
4
4
 
5
5
  import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';
6
- import { FunctionType } from '@dxos/functions';
7
- import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
6
+ import { ClientEvents } from '@dxos/plugin-client';
7
+ import { MarkdownEvents } from '@dxos/plugin-markdown';
8
+ import { SpaceCapabilities, ThreadEvents } from '@dxos/plugin-space';
9
+ import { defineObjectForm } from '@dxos/plugin-space/types';
8
10
 
9
11
  import { Markdown, Thread, ReactSurface, IntentResolver, ComputeGraphRegistry } from './capabilities';
10
12
  import { meta, SHEET_PLUGIN } from './meta';
@@ -31,7 +33,6 @@ export const SheetPlugin = () =>
31
33
  contributes(Capabilities.Metadata, {
32
34
  id: SheetType.typename,
33
35
  metadata: {
34
- createObject: (props: { name?: string }) => createIntent(SheetAction.Create, props),
35
36
  label: (object: any) => (object instanceof SheetType ? object.name : undefined),
36
37
  placeholder: ['sheet title placeholder', { ns: SHEET_PLUGIN }],
37
38
  icon: 'ph--grid-nine--regular',
@@ -40,33 +41,35 @@ export const SheetPlugin = () =>
40
41
  }),
41
42
  }),
42
43
  defineModule({
43
- id: `${meta.id}/module/schema`,
44
+ id: `${meta.id}/module/object-form`,
44
45
  activatesOn: ClientEvents.SetupSchema,
45
- activate: () => [
46
- contributes(ClientCapabilities.Schema, [SheetType]),
47
- // TODO(wittjosiah): Factor out to common package/plugin.
48
- // FunctionType is currently registered here in case script plugin isn't enabled.
49
- contributes(ClientCapabilities.SystemSchema, [FunctionType]),
50
- ],
46
+ activate: () =>
47
+ contributes(
48
+ SpaceCapabilities.ObjectForm,
49
+ defineObjectForm({
50
+ objectSchema: SheetType,
51
+ getIntent: (props, options) => createIntent(SheetAction.Create, { ...props, space: options.space }),
52
+ }),
53
+ ),
51
54
  }),
52
55
  defineModule({
53
56
  id: `${meta.id}/module/markdown`,
54
- activatesOn: Events.Startup,
57
+ activatesOn: MarkdownEvents.SetupExtensions,
55
58
  activate: Markdown,
56
59
  }),
57
60
  defineModule({
58
61
  id: `${meta.id}/module/thread`,
59
- activatesOn: Events.Startup,
62
+ activatesOn: ThreadEvents.SetupThread,
60
63
  activate: Thread,
61
64
  }),
62
65
  defineModule({
63
66
  id: `${meta.id}/module/react-surface`,
64
- activatesOn: Events.SetupSurfaces,
67
+ activatesOn: Events.SetupReactSurface,
65
68
  activate: ReactSurface,
66
69
  }),
67
70
  defineModule({
68
71
  id: `${meta.id}/module/intent-resolver`,
69
- activatesOn: Events.SetupIntents,
72
+ activatesOn: Events.SetupIntentResolver,
70
73
  activate: IntentResolver,
71
74
  }),
72
75
  ]);
@@ -20,7 +20,7 @@ import {
20
20
  useTextEditor,
21
21
  } from '@dxos/react-ui-editor';
22
22
  import { withTheme, withLayout } from '@dxos/storybook-utils';
23
- import { nonNullable } from '@dxos/util';
23
+ import { isNonNullable } from '@dxos/util';
24
24
 
25
25
  import { compute, computeGraphFacet } from './compute';
26
26
  import { GridSheet, SheetProvider, useComputeGraph } from '../components';
@@ -57,7 +57,7 @@ const EditorStory = ({ text }: EditorProps) => {
57
57
  computeGraph && computeGraphFacet.of(computeGraph),
58
58
  compute(),
59
59
  decorateMarkdown(),
60
- ].filter(nonNullable),
60
+ ].filter(isNonNullable),
61
61
  }),
62
62
  [computeGraph, themeMode],
63
63
  );
@@ -1,3 +0,0 @@
1
- declare const _default: import("@playwright/test").PlaywrightTestConfig<{}, {}>;
2
- export default _default;
3
- //# sourceMappingURL=playwright.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"playwright.config.d.ts","sourceRoot":"","sources":["../../../../../src/testing/playwright/playwright.config.ts"],"names":[],"mappings":";AASA,wBAQG"}