@overmap-ai/forms 1.0.17 → 1.0.18

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@overmap-ai/forms",
3
3
  "private": false,
4
- "version": "1.0.17",
4
+ "version": "1.0.18",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/forms.umd.cjs",
7
7
  "module": "dist/forms.js",
@@ -74,12 +74,12 @@
74
74
  "prettier": "^3.4.2",
75
75
  "react": "^19.0.0",
76
76
  "react-dom": "^19.0.0",
77
+ "rollup-plugin-polyfill-node": "^0.13.0",
77
78
  "storybook": "^8.5.3",
78
79
  "tailwindcss": "^4.0.0",
79
80
  "typescript": "~5.6.2",
80
81
  "typescript-eslint": "^8.22.0",
81
82
  "vite": "^6.0.5",
82
- "rollup-plugin-polyfill-node": "^0.13.0",
83
83
  "vite-plugin-dts": "^4.5.0",
84
84
  "vite-plugin-externalize-deps": "^0.9.0"
85
85
  },
@@ -89,16 +89,16 @@
89
89
  ]
90
90
  },
91
91
  "dependencies": {
92
- "class-variance-authority": "^0.7.0",
93
92
  "@hello-pangea/dnd": "^17.0.0",
94
93
  "@vitejs/plugin-react-swc": "^3.10.2",
94
+ "class-variance-authority": "^0.7.0",
95
+ "file-saver": "^2.0.5",
95
96
  "formik": "^2.4.6",
96
97
  "lodash.clonedeep": "^4.5.0",
97
98
  "lodash.get": "^4.4.2",
98
99
  "lodash.set": "^4.3.2",
99
- "qr-scanner": "^1.4.2",
100
100
  "react-icons": "^5.5.0",
101
- "file-saver": "^2.0.5"
101
+ "react-zxing": "^2.1.0"
102
102
  },
103
103
  "resolutions": {
104
104
  "@types/react": "^19.0.0"
@@ -1,21 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { RiQrCodeLine } from 'react-icons/ri';
3
- import { BaseField, ChildFieldOptions } from '../BaseField';
4
- import { ComponentProps, ISerializedField } from '../typings';
5
- import { SerializedQrField } from './typings';
6
- export declare const emptyQrField: {
7
- type: string;
8
- label: string;
9
- description: string;
10
- required: boolean;
11
- };
12
- export declare class QrField extends BaseField<string, "qr"> {
13
- static readonly fieldTypeName = "QR";
14
- static readonly fieldTypeDescription = "Used for scanning/reading QR codes.";
15
- readonly onlyValidateAfterTouched = false;
16
- static Icon: typeof RiQrCodeLine;
17
- constructor(options: ChildFieldOptions<string>);
18
- serialize(): SerializedQrField;
19
- static deserialize(data: ISerializedField): QrField;
20
- getInput(props: ComponentProps<QrField>): ReactNode;
21
- }
@@ -1,8 +0,0 @@
1
- import { ComponentProps } from '../typings';
2
- import { QrField } from './QrField';
3
- export declare const QrInput: import('react').MemoExoticComponent<(props: ComponentProps<QrField>) => import("react/jsx-runtime").JSX.Element>;
4
- interface QrScannerProps {
5
- onQrScan: (data: string) => void;
6
- }
7
- export declare const QrScanner: import('react').MemoExoticComponent<(props: QrScannerProps) => import("react/jsx-runtime").JSX.Element>;
8
- export {};
@@ -1,3 +0,0 @@
1
- export * from './QrField';
2
- export * from './QrInput';
3
- export * from './typings';