altcha 1.1.0 → 1.2.0
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/altcha.d.ts +27 -1
- package/dist/altcha.js +581 -588
- package/dist/altcha.umd.cjs +3 -3
- package/dist_external/altcha.d.ts +27 -1
- package/dist_external/altcha.js +534 -541
- package/dist_external/altcha.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/altcha.d.ts
CHANGED
|
@@ -106,4 +106,30 @@ declare global {
|
|
|
106
106
|
style?: AltchaWidgetCSSProperties;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare module "react" {
|
|
112
|
+
namespace JSX {
|
|
113
|
+
interface IntrinsicElements {
|
|
114
|
+
'altcha-widget': AltchaWidgetReact;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface AltchaWidgetCSSProperties extends React.CSSProperties {
|
|
118
|
+
'--altcha-border-width'?: string;
|
|
119
|
+
'--altcha-border-radius'?: string;
|
|
120
|
+
'--altcha-color-base'?: string;
|
|
121
|
+
'--altcha-color-border'?: string;
|
|
122
|
+
'--altcha-color-text'?: string;
|
|
123
|
+
'--altcha-color-border-focus'?: string;
|
|
124
|
+
'--altcha-color-error-text'?: string;
|
|
125
|
+
'--altcha-color-footer-bg'?: string;
|
|
126
|
+
'--altcha-max-width'?: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface AltchaWidgetReact extends AltchaWidget extends React.HTMLAttributes<HTMLElement> {
|
|
130
|
+
children?: React.ReactNode;
|
|
131
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
132
|
+
style?: AltchaWidgetCSSProperties;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|