Skip to content

Commit 6417878

Browse files
authored
feat(extension/document-builder): make document-builder an extension (#1300)
1 parent 32fad71 commit 6417878

File tree

152 files changed

+8523
-10267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+8523
-10267
lines changed

bundle-sizes/bare/bundle-stats.json

Lines changed: 1015 additions & 3509 deletions
Large diffs are not rendered by default.

bundle-sizes/bare/bundle-visualization.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bundle-sizes/bare/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle-sizes/basic/bundle-stats.json

Lines changed: 2166 additions & 2219 deletions
Large diffs are not rendered by default.

bundle-sizes/basic/bundle-visualization.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bundle-sizes/basic/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle-sizes/minimal/bundle-stats.json

Lines changed: 1865 additions & 1925 deletions
Large diffs are not rendered by default.

bundle-sizes/minimal/bundle-visualization.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bundle-sizes/minimal/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/$/graffle/modules/client.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1+
import { DocumentBuilder } from 'graffle/extensions/document-builder'
12
import { TransportHttp } from 'graffle/extensions/transport-http'
23
import * as $$Utilities from 'graffle/utilities-for-generated'
34
import * as $$Data from './data.js'
45
import * as $$Scalar from './scalar.js'
56
import * as $$SchemaDrivenDataMap from './schema-driven-data-map.js'
67

78
const context = $$Utilities.useReducer(
8-
{
9-
...$$Utilities.Context.States.empty,
10-
name: $$Data.Name,
11-
schemaMap: $$SchemaDrivenDataMap.schemaDrivenDataMap,
12-
scalars: $$Scalar.$registry,
13-
},
14-
TransportHttp({
15-
url: $$Data.defaultSchemaUrl,
16-
}),
9+
$$Utilities.useReducer(
10+
{
11+
...$$Utilities.Context.States.empty,
12+
name: $$Data.Name,
13+
schemaMap: $$SchemaDrivenDataMap.schemaDrivenDataMap,
14+
scalars: $$Scalar.$registry,
15+
},
16+
TransportHttp({
17+
url: $$Data.defaultSchemaUrl,
18+
}),
19+
),
20+
DocumentBuilder(),
1721
)
1822

1923
export const create = $$Utilities.createConstructorWithContext(

0 commit comments

Comments
 (0)