@arcote.tech/arc-react 0.0.12 → 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.
@@ -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
- jsxDEV
132
- } from "react/jsx-dev-runtime";
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__ */ jsxDEV(LiveModelContext.Provider, {
148
+ return /* @__PURE__ */ jsx(LiveModelContext.Provider, {
149
149
  value: {
150
150
  client
151
151
  },
@@ -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,24 +4,23 @@
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
7
- "version": "0.0.12",
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 build --target=node ./index.ts --outfile=dist/index.js --external react --external rxjs --external @arcote.tech/arc && bun run build:declaration",
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",
16
16
  "publish": "bun run build && npm publish --access=public"
17
17
  },
18
18
  "dependencies": {
19
- "@arcote.tech/arc": "link:@arcote.tech/arc",
19
+ "@arcote.tech/arc": "latest",
20
20
  "react": "^18.3.1",
21
21
  "rxjs": "^7.8.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@arcote.tech/arc": "workspace:*",
25
24
  "@types/bun": "latest",
26
25
  "@types/react": "^18.3.5",
27
26
  "prettier": "^3.0.3",