@contember/bindx-react 0.1.45 → 0.1.46
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,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import { GraphQlClient } from '@contember/graphql-client';
|
|
3
2
|
import { SnapshotStore, UndoManager, type SchemaDefinition, type SchemaNames, type UndoManagerConfig, type UpdateMode } from '@contember/bindx';
|
|
3
|
+
import { type BindxGraphQlClient } from './BackendAdapterContext.js';
|
|
4
4
|
/**
|
|
5
5
|
* Converts SchemaNames (Contember format) to SchemaDefinition (bindx format)
|
|
6
6
|
* so that a SchemaRegistry can be created for standalone hooks.
|
|
@@ -16,7 +16,7 @@ export interface ContemberBindxProviderProps {
|
|
|
16
16
|
store?: SnapshotStore;
|
|
17
17
|
/** Children */
|
|
18
18
|
children: ReactNode;
|
|
19
|
-
client:
|
|
19
|
+
client: BindxGraphQlClient;
|
|
20
20
|
/** Enable undo/redo functionality. Pass true to auto-create an UndoManager, or pass an UndoManager instance. */
|
|
21
21
|
undoManager?: UndoManager | boolean;
|
|
22
22
|
/** Configuration for auto-created undo manager (only used when undoManager={true}) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContemberBindxProvider.d.ts","sourceRoot":"","sources":["../../src/hooks/ContemberBindxProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ContemberBindxProvider.d.ts","sourceRoot":"","sources":["../../src/hooks/ContemberBindxProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,EAAoB,aAAa,EAAuF,WAAW,EAAqC,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAiB,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxS,OAAO,EAAwC,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAG1G;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAwBnG;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C,gDAAgD;IAChD,MAAM,EAAE,WAAW,CAAA;IACnB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,eAAe;IACf,QAAQ,EAAE,SAAS,CAAA;IAEnB,MAAM,EAAE,kBAAkB,CAAA;IAE1B,gHAAgH;IAChH,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAA;IACnC,sFAAsF;IACtF,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAC9B,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAA;CACf;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,mEAkEjC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/bindx-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.46",
|
|
4
4
|
"description": "Type-safe React data binding framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"react": ">=18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@contember/bindx": "0.1.
|
|
19
|
-
"@contember/bindx-client": "0.1.
|
|
18
|
+
"@contember/bindx": "0.1.46",
|
|
19
|
+
"@contember/bindx-client": "0.1.46",
|
|
20
20
|
"@contember/graphql-client": "^2.1.0-beta.1",
|
|
21
21
|
"@radix-ui/primitive": "^1.1.3",
|
|
22
22
|
"@radix-ui/react-slot": "^1.2.4"
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { memo, useMemo, type ReactNode } from 'react'
|
|
2
|
-
import { GraphQlClient } from '@contember/graphql-client'
|
|
3
2
|
import { ContentClient } from '@contember/bindx-client'
|
|
4
3
|
import { ContemberAdapter, SnapshotStore, ActionDispatcher, BatchPersister, MutationCollector, ContemberSchemaMutationAdapter, UndoManager, SchemaRegistry, NotificationStore, type SchemaDefinition, type SchemaNames, type FieldDef, type UndoManagerConfig, type UpdateMode } from '@contember/bindx'
|
|
5
|
-
import { BindxContext, type BindxContextValue } from './BackendAdapterContext.js'
|
|
4
|
+
import { BindxContext, type BindxContextValue, type BindxGraphQlClient } from './BackendAdapterContext.js'
|
|
6
5
|
import { QueryBatcher } from '../batching/QueryBatcher.js'
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -46,7 +45,7 @@ export interface ContemberBindxProviderProps {
|
|
|
46
45
|
/** Children */
|
|
47
46
|
children: ReactNode
|
|
48
47
|
|
|
49
|
-
client:
|
|
48
|
+
client: BindxGraphQlClient
|
|
50
49
|
|
|
51
50
|
/** Enable undo/redo functionality. Pass true to auto-create an UndoManager, or pass an UndoManager instance. */
|
|
52
51
|
undoManager?: UndoManager | boolean
|