@dxos/plugin-script 0.6.13-main.09887cd → 0.6.13-main.ed424a1

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 +1 @@
1
- {"version":3,"file":"ScriptBlock.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptBlock/ScriptBlock.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAA6B,MAAM,OAAO,CAAC;;;;;;;AA0DlD,wBAKE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
1
+ {"version":3,"file":"ScriptBlock.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptBlock/ScriptBlock.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAA6B,MAAM,OAAO,CAAC;;;;;;;AAuDlD,wBAKE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-script",
3
- "version": "0.6.13-main.09887cd",
3
+ "version": "0.6.13-main.ed424a1",
4
4
  "description": "Braneframe notebook plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -78,32 +78,32 @@
78
78
  "prettier": "^3.2.4",
79
79
  "react-syntax-highlighter": "^15.5.0",
80
80
  "typescript": "^5.6.2",
81
- "@dxos/app-framework": "0.6.13-main.09887cd",
82
- "@dxos/client": "0.6.13-main.09887cd",
83
- "@dxos/async": "0.6.13-main.09887cd",
84
- "@dxos/client-protocol": "0.6.13-main.09887cd",
85
- "@dxos/crypto": "0.6.13-main.09887cd",
86
- "@dxos/debug": "0.6.13-main.09887cd",
87
- "@dxos/invariant": "0.6.13-main.09887cd",
88
- "@dxos/echo-schema": "0.6.13-main.09887cd",
89
- "@dxos/keys": "0.6.13-main.09887cd",
90
- "@dxos/log": "0.6.13-main.09887cd",
91
- "@dxos/plugin-client": "0.6.13-main.09887cd",
92
- "@dxos/plugin-explorer": "0.6.13-main.09887cd",
93
- "@dxos/plugin-graph": "0.6.13-main.09887cd",
94
- "@dxos/plugin-markdown": "0.6.13-main.09887cd",
95
- "@dxos/plugin-settings": "0.6.13-main.09887cd",
96
- "@dxos/plugin-space": "0.6.13-main.09887cd",
97
- "@dxos/plugin-stack": "0.6.13-main.09887cd",
98
- "@dxos/plugin-theme": "0.6.13-main.09887cd",
99
- "@dxos/protocols": "0.6.13-main.09887cd",
100
- "@dxos/react-client": "0.6.13-main.09887cd",
101
- "@dxos/react-ui-attention": "0.6.13-main.09887cd",
102
- "@dxos/react-ui-editor": "0.6.13-main.09887cd",
103
- "@dxos/react-ui-syntax-highlighter": "0.6.13-main.09887cd",
104
- "@dxos/rpc": "0.6.13-main.09887cd",
105
- "@dxos/rpc-tunnel": "0.6.13-main.09887cd",
106
- "@dxos/util": "0.6.13-main.09887cd"
81
+ "@dxos/app-framework": "0.6.13-main.ed424a1",
82
+ "@dxos/async": "0.6.13-main.ed424a1",
83
+ "@dxos/client-protocol": "0.6.13-main.ed424a1",
84
+ "@dxos/client": "0.6.13-main.ed424a1",
85
+ "@dxos/debug": "0.6.13-main.ed424a1",
86
+ "@dxos/crypto": "0.6.13-main.ed424a1",
87
+ "@dxos/echo-schema": "0.6.13-main.ed424a1",
88
+ "@dxos/invariant": "0.6.13-main.ed424a1",
89
+ "@dxos/keys": "0.6.13-main.ed424a1",
90
+ "@dxos/log": "0.6.13-main.ed424a1",
91
+ "@dxos/plugin-client": "0.6.13-main.ed424a1",
92
+ "@dxos/plugin-explorer": "0.6.13-main.ed424a1",
93
+ "@dxos/plugin-graph": "0.6.13-main.ed424a1",
94
+ "@dxos/plugin-markdown": "0.6.13-main.ed424a1",
95
+ "@dxos/plugin-space": "0.6.13-main.ed424a1",
96
+ "@dxos/plugin-settings": "0.6.13-main.ed424a1",
97
+ "@dxos/plugin-stack": "0.6.13-main.ed424a1",
98
+ "@dxos/plugin-theme": "0.6.13-main.ed424a1",
99
+ "@dxos/protocols": "0.6.13-main.ed424a1",
100
+ "@dxos/react-client": "0.6.13-main.ed424a1",
101
+ "@dxos/react-ui-attention": "0.6.13-main.ed424a1",
102
+ "@dxos/react-ui-syntax-highlighter": "0.6.13-main.ed424a1",
103
+ "@dxos/react-ui-editor": "0.6.13-main.ed424a1",
104
+ "@dxos/rpc": "0.6.13-main.ed424a1",
105
+ "@dxos/rpc-tunnel": "0.6.13-main.ed424a1",
106
+ "@dxos/util": "0.6.13-main.ed424a1"
107
107
  },
108
108
  "devDependencies": {
109
109
  "@phosphor-icons/react": "^2.1.5",
@@ -113,20 +113,20 @@
113
113
  "react": "~18.2.0",
114
114
  "react-dom": "~18.2.0",
115
115
  "vite": "5.4.7",
116
- "@dxos/echo-generator": "0.6.13-main.09887cd",
117
- "@dxos/random": "0.6.13-main.09887cd",
118
- "@dxos/react-ui": "0.6.13-main.09887cd",
119
- "@dxos/react-ui-theme": "0.6.13-main.09887cd",
120
- "@dxos/react-ui-mosaic": "0.6.13-main.09887cd",
121
- "@dxos/storybook-utils": "0.6.13-main.09887cd"
116
+ "@dxos/echo-generator": "0.6.13-main.ed424a1",
117
+ "@dxos/react-ui": "0.6.13-main.ed424a1",
118
+ "@dxos/random": "0.6.13-main.ed424a1",
119
+ "@dxos/react-ui-mosaic": "0.6.13-main.ed424a1",
120
+ "@dxos/react-ui-theme": "0.6.13-main.ed424a1",
121
+ "@dxos/storybook-utils": "0.6.13-main.ed424a1"
122
122
  },
123
123
  "peerDependencies": {
124
124
  "@phosphor-icons/react": "^2.1.5",
125
125
  "react": "~18.2.0",
126
126
  "react-dom": "~18.2.0",
127
- "@dxos/react-ui-mosaic": "0.6.13-main.09887cd",
128
- "@dxos/react-ui-theme": "0.6.13-main.09887cd",
129
- "@dxos/react-ui": "0.6.13-main.09887cd"
127
+ "@dxos/react-ui-mosaic": "0.6.13-main.ed424a1",
128
+ "@dxos/react-ui": "0.6.13-main.ed424a1",
129
+ "@dxos/react-ui-theme": "0.6.13-main.ed424a1"
130
130
  },
131
131
  "publishConfig": {
132
132
  "access": "public"
@@ -9,7 +9,7 @@ import React, { useEffect, useMemo } from 'react';
9
9
  import { createSpaceObjectGenerator, TestSchemaType } from '@dxos/echo-generator';
10
10
  import { TextType } from '@dxos/plugin-markdown/types';
11
11
  import { useClient } from '@dxos/react-client';
12
- import { create, createEchoObject, useSpaces } from '@dxos/react-client/echo';
12
+ import { create, createObject, useSpaces } from '@dxos/react-client/echo';
13
13
  import { withClientProvider } from '@dxos/react-client/testing';
14
14
  import { withLayout, withTheme } from '@dxos/storybook-utils';
15
15
 
@@ -52,10 +52,7 @@ const Story = () => {
52
52
  }, [client]);
53
53
 
54
54
  // TODO(burdon): Review what's the right way to create automerge-backed objects.
55
- const object = useMemo(
56
- () => createEchoObject(create(ScriptType, { source: create(TextType, { content: code }) })),
57
- [],
58
- );
55
+ const object = useMemo(() => createObject(create(ScriptType, { source: create(TextType, { content: code }) })), []);
59
56
 
60
57
  // TODO(dmaretskyi): Not sure how to provide `containerUrl` here since the html now lives in composer-app.
61
58
  // TODO(burdon): Normalize html/frame.tsx with composer-app to test locally.
@@ -6,7 +6,7 @@ import '@dxos-theme';
6
6
 
7
7
  import React, { useMemo } from 'react';
8
8
 
9
- import { createDocAccessor, createEchoObject } from '@dxos/react-client/echo';
9
+ import { createDocAccessor, createObject } from '@dxos/react-client/echo';
10
10
  import { createDataExtensions } from '@dxos/react-ui-editor';
11
11
 
12
12
  import { TypescriptEditor } from './TypescriptEditor';
@@ -23,7 +23,7 @@ import { templates } from '../../templates';
23
23
  // TODO(burdon): react-buddy for storybook?
24
24
 
25
25
  const Story = () => {
26
- const object = useMemo(() => createEchoObject({ content: templates[0].source }), []);
26
+ const object = useMemo(() => createObject({ content: templates[0].source }), []);
27
27
  const initialValue = useMemo(() => object.content, [object]);
28
28
  const accessor = useMemo(() => createDocAccessor(object, ['content']), [object]);
29
29
  const extensions = useMemo(() => [createDataExtensions({ id: object.id, text: accessor })], [object.id, accessor]);