@arcote.tech/arc-react 0.0.32 → 0.0.33
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/index.js +0 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
useState
|
|
12
12
|
} from "react";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
|
-
"use client";
|
|
15
14
|
var FormContext = createContext(null);
|
|
16
15
|
function Form({
|
|
17
16
|
render,
|
|
@@ -69,7 +68,6 @@ Form.displayName = "Form";
|
|
|
69
68
|
|
|
70
69
|
// form/field.tsx
|
|
71
70
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
72
|
-
"use client";
|
|
73
71
|
var FormFieldContext = createContext2(null);
|
|
74
72
|
function useFormField() {
|
|
75
73
|
const context = useContext(FormFieldContext);
|
|
@@ -129,7 +127,6 @@ function formResolver(schema) {
|
|
|
129
127
|
// form/message.tsx
|
|
130
128
|
import React3 from "react";
|
|
131
129
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
132
|
-
"use client";
|
|
133
130
|
var FormMessage = React3.forwardRef(({}, ref) => {
|
|
134
131
|
const { messages } = useFormField();
|
|
135
132
|
if (messages.length === 0)
|
|
@@ -144,7 +141,6 @@ FormMessage.displayName = "FormMessage";
|
|
|
144
141
|
// form/test.tsx
|
|
145
142
|
import { object, string } from "@arcote.tech/arc";
|
|
146
143
|
import { jsx as jsx4, Fragment } from "react/jsx-runtime";
|
|
147
|
-
"use client";
|
|
148
144
|
function Test() {
|
|
149
145
|
const schema = object({
|
|
150
146
|
username: string().minLength(3).maxLength(10)
|
|
@@ -348,7 +344,6 @@ import {
|
|
|
348
344
|
useState as useState2
|
|
349
345
|
} from "react";
|
|
350
346
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
351
|
-
"use client";
|
|
352
347
|
var reactModel = (arcContext, databaseName) => {
|
|
353
348
|
const LiveModelContext = createContext3(null);
|
|
354
349
|
const LocalModelContext = createContext3(null);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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.33",
|
|
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.",
|