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