@arcote.tech/arc-react 0.0.13 → 0.0.14
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.
- package/dist/build.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/reactModel.d.ts +1 -1
- package/package.json +2 -2
package/dist/build.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -128,8 +128,8 @@ model
|
|
|
128
128
|
} from "@arcote.tech/arc";
|
|
129
129
|
import {createContext, useContext, useEffect, useRef, useState} from "react";
|
|
130
130
|
import {
|
|
131
|
-
|
|
132
|
-
} from "react/jsx-
|
|
131
|
+
jsx
|
|
132
|
+
} from "react/jsx-runtime";
|
|
133
133
|
var reactModel = (context, dependecies) => {
|
|
134
134
|
const LiveModelContext = createContext(null);
|
|
135
135
|
return [
|
|
@@ -145,7 +145,7 @@ var reactModel = (context, dependecies) => {
|
|
|
145
145
|
}, []);
|
|
146
146
|
if (!client)
|
|
147
147
|
return "Ekran \u0142adowania";
|
|
148
|
-
return /* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ jsx(LiveModelContext.Provider, {
|
|
149
149
|
value: {
|
|
150
150
|
client
|
|
151
151
|
},
|
package/dist/reactModel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type ArcContextWithCommandsAny, type ArcModelDependencies, type GetAnyCollectionQueryResult, type QueryFactoryFunction } from "@arcote.tech/arc";
|
|
2
2
|
export declare const reactModel: <C extends ArcContextWithCommandsAny>(context: C, dependecies: ArcModelDependencies<C>) => readonly [(props: {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
-
}) => "Ekran ładowania" | import("react/jsx-runtime").JSX.Element, <QueryBuilderFn extends QueryFactoryFunction<C>>(queryBuilder: QueryBuilderFn, dependencies?: any[]) => [GetAnyCollectionQueryResult<QueryBuilderFn>, false] | [null, true], () => import("@arcote.tech/arc/dist/context/commands").CommandsClient<C["commands"]>];
|
|
4
|
+
}) => "Ekran ładowania" | import("react/jsx-dev-runtime").JSX.Element, <QueryBuilderFn extends QueryFactoryFunction<C>>(queryBuilder: QueryBuilderFn, dependencies?: any[]) => [GetAnyCollectionQueryResult<QueryBuilderFn>, false] | [null, true], () => import("@arcote.tech/arc/dist/context/commands").CommandsClient<C["commands"]>];
|
package/package.json
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.14",
|
|
8
8
|
"private": false,
|
|
9
9
|
"author": "Przemysław Krasiński [arcote.tech]",
|
|
10
10
|
"description": "React client for the Arc framework, providing utilities for querying data and executing commands, enhancing the development of reactive and efficient user interfaces.",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "bun
|
|
12
|
+
"build": "bun run ./build.ts && bun run build:declaration",
|
|
13
13
|
"build:declaration": "tsc --emitDeclarationOnly --project tsconfig.types.json",
|
|
14
14
|
"postbuild": "rimraf tsconfig.types.tsbuildinfo",
|
|
15
15
|
"type-check": "tsc",
|