@flamingo-stack/openframe-frontend-core 0.0.399-snapshot.20260710120252 → 0.0.399
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/{chunk-56XCRZ7I.js → chunk-2L6ALD2Q.js} +2 -2
- package/dist/{chunk-UYBNOHTC.js → chunk-2XVOYDRF.js} +22 -57
- package/dist/{chunk-UYBNOHTC.js.map → chunk-2XVOYDRF.js.map} +1 -1
- package/dist/{chunk-RYPCNUXA.js → chunk-4H2ICJYB.js} +4 -4
- package/dist/{chunk-463X3AW2.js → chunk-4K5XJ5EJ.js} +3 -3
- package/dist/{chunk-MTBFE3JF.js → chunk-4KWIQEZT.js} +2 -2
- package/dist/{chunk-QGQ76SSR.cjs → chunk-4PEC5KU6.cjs} +12 -12
- package/dist/{chunk-QGQ76SSR.cjs.map → chunk-4PEC5KU6.cjs.map} +1 -1
- package/dist/{chunk-J6IQQJJQ.cjs → chunk-7OKNKZBW.cjs} +531 -566
- package/dist/chunk-7OKNKZBW.cjs.map +1 -0
- package/dist/{chunk-MQRTT3DO.js → chunk-A6KGHQRF.js} +6 -6
- package/dist/{chunk-6VR7BJF6.js → chunk-BSJO5VFV.js} +5 -5
- package/dist/{chunk-PD5MXNTJ.js → chunk-CRRH7RJX.js} +5 -5
- package/dist/{chunk-ILWSJCWD.cjs → chunk-D5IHYUBY.cjs} +29 -29
- package/dist/{chunk-ILWSJCWD.cjs.map → chunk-D5IHYUBY.cjs.map} +1 -1
- package/dist/{chunk-UFP45JLE.js → chunk-FXWURWDU.js} +3 -3
- package/dist/{chunk-FHEIG7QO.js → chunk-G3A7QHCX.js} +2 -2
- package/dist/{chunk-556BG7SX.cjs → chunk-G5NDKTX6.cjs} +40 -40
- package/dist/{chunk-556BG7SX.cjs.map → chunk-G5NDKTX6.cjs.map} +1 -1
- package/dist/{chunk-MFRP2UDK.cjs → chunk-JBLBFJ4N.cjs} +32 -32
- package/dist/{chunk-MFRP2UDK.cjs.map → chunk-JBLBFJ4N.cjs.map} +1 -1
- package/dist/{chunk-J4XR6YYZ.cjs → chunk-JWBRDNYH.cjs} +4 -23
- package/dist/chunk-JWBRDNYH.cjs.map +1 -0
- package/dist/{chunk-VTSEL7CJ.cjs → chunk-NCW22SII.cjs} +73 -73
- package/dist/{chunk-VTSEL7CJ.cjs.map → chunk-NCW22SII.cjs.map} +1 -1
- package/dist/{chunk-KIC4ZEZ7.cjs → chunk-O5NA3ULU.cjs} +73 -73
- package/dist/{chunk-KIC4ZEZ7.cjs.map → chunk-O5NA3ULU.cjs.map} +1 -1
- package/dist/{chunk-ABRDOCVN.cjs → chunk-QNYNXSYQ.cjs} +7 -7
- package/dist/{chunk-ABRDOCVN.cjs.map → chunk-QNYNXSYQ.cjs.map} +1 -1
- package/dist/{chunk-OPD5V57R.cjs → chunk-RIC4TCPD.cjs} +19 -19
- package/dist/{chunk-OPD5V57R.cjs.map → chunk-RIC4TCPD.cjs.map} +1 -1
- package/dist/{chunk-6XQJSN7G.cjs → chunk-VOHOA3WV.cjs} +15 -15
- package/dist/{chunk-6XQJSN7G.cjs.map → chunk-VOHOA3WV.cjs.map} +1 -1
- package/dist/{chunk-LAL63W5J.js → chunk-VVKWNVKE.js} +6 -6
- package/dist/{chunk-Q3AO2QWK.cjs → chunk-WBLRUO3F.cjs} +3 -3
- package/dist/{chunk-Q3AO2QWK.cjs.map → chunk-WBLRUO3F.cjs.map} +1 -1
- package/dist/{chunk-4HAVKWTJ.js → chunk-XBCAY6NE.js} +3 -3
- package/dist/{chunk-EFTKJFEF.cjs → chunk-YWCCKB4J.cjs} +5 -5
- package/dist/{chunk-EFTKJFEF.cjs.map → chunk-YWCCKB4J.cjs.map} +1 -1
- package/dist/{chunk-I4XG5PJA.js → chunk-Z5ERSGP2.js} +2 -2
- package/dist/{chunk-RSFHAFZN.cjs → chunk-ZDT2MBKE.cjs} +40 -40
- package/dist/{chunk-RSFHAFZN.cjs.map → chunk-ZDT2MBKE.cjs.map} +1 -1
- package/dist/{chunk-DH6HTYOV.js → chunk-ZSZRJWY3.js} +134 -153
- package/dist/chunk-ZSZRJWY3.js.map +1 -0
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/auth/complete-account-form.d.ts.map +1 -1
- package/dist/components/features/auth/create-organization-form.d.ts.map +1 -1
- package/dist/components/features/auth/login-form.d.ts.map +1 -1
- package/dist/components/features/auth/openframe-sso-login-form.d.ts.map +1 -1
- package/dist/components/features/auth/openframe-sso-signup-form.d.ts.map +1 -1
- package/dist/components/features/auth/password-reset-form.d.ts.map +1 -1
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +125 -125
- package/dist/components/index.js +11 -11
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/hooks/index.cjs +2 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +1 -3
- package/dist/hooks/ui/index.d.ts +0 -1
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -4
- package/package.json +1 -1
- package/src/components/features/auth/auth-benefits-panel.tsx +1 -1
- package/src/components/features/auth/complete-account-form.tsx +4 -15
- package/src/components/features/auth/create-organization-form.tsx +5 -14
- package/src/components/features/auth/login-form.tsx +1 -6
- package/src/components/features/auth/openframe-sso-login-form.tsx +2 -9
- package/src/components/features/auth/openframe-sso-signup-form.tsx +5 -18
- package/src/components/features/auth/password-reset-form.tsx +2 -9
- package/src/hooks/ui/index.ts +0 -1
- package/src/stories/Input.stories.tsx +1 -1
- package/src/stories/auth/CreateOrganization.stories.tsx +1 -2
- package/dist/chunk-DH6HTYOV.js.map +0 -1
- package/dist/chunk-J4XR6YYZ.cjs.map +0 -1
- package/dist/chunk-J6IQQJJQ.cjs.map +0 -1
- package/dist/hooks/ui/use-deferred-error.d.ts +0 -16
- package/dist/hooks/ui/use-deferred-error.d.ts.map +0 -1
- package/src/hooks/ui/use-deferred-error.ts +0 -38
- /package/dist/{chunk-56XCRZ7I.js.map → chunk-2L6ALD2Q.js.map} +0 -0
- /package/dist/{chunk-RYPCNUXA.js.map → chunk-4H2ICJYB.js.map} +0 -0
- /package/dist/{chunk-463X3AW2.js.map → chunk-4K5XJ5EJ.js.map} +0 -0
- /package/dist/{chunk-MTBFE3JF.js.map → chunk-4KWIQEZT.js.map} +0 -0
- /package/dist/{chunk-MQRTT3DO.js.map → chunk-A6KGHQRF.js.map} +0 -0
- /package/dist/{chunk-6VR7BJF6.js.map → chunk-BSJO5VFV.js.map} +0 -0
- /package/dist/{chunk-PD5MXNTJ.js.map → chunk-CRRH7RJX.js.map} +0 -0
- /package/dist/{chunk-UFP45JLE.js.map → chunk-FXWURWDU.js.map} +0 -0
- /package/dist/{chunk-FHEIG7QO.js.map → chunk-G3A7QHCX.js.map} +0 -0
- /package/dist/{chunk-LAL63W5J.js.map → chunk-VVKWNVKE.js.map} +0 -0
- /package/dist/{chunk-4HAVKWTJ.js.map → chunk-XBCAY6NE.js.map} +0 -0
- /package/dist/{chunk-I4XG5PJA.js.map → chunk-Z5ERSGP2.js.map} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface UseDeferredErrorResult {
|
|
2
|
-
/** The message to render (undefined while the reveal is deferred or the field is valid). */
|
|
3
|
-
error: string | undefined;
|
|
4
|
-
/** Attach to the field's onBlur — reveals validation immediately and keeps it live from then on. */
|
|
5
|
-
onBlur: () => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Defers showing a field validation message while the user is still typing.
|
|
9
|
-
*
|
|
10
|
-
* The message is revealed when the field loses focus (touched) or when the
|
|
11
|
-
* value hasn't changed for `delay` ms; every keystroke restarts the timer.
|
|
12
|
-
* Once touched, validation stays live. A message that clears (the value became
|
|
13
|
-
* valid) disappears immediately.
|
|
14
|
-
*/
|
|
15
|
-
export declare function useDeferredError(error: string | undefined, value: string, delay?: number): UseDeferredErrorResult;
|
|
16
|
-
//# sourceMappingURL=use-deferred-error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-deferred-error.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/use-deferred-error.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,sBAAsB;IACrC,4FAA4F;IAC5F,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,oGAAoG;IACpG,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,SAAO,GAAG,sBAAsB,CAkB/G"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import * as React from 'react'
|
|
4
|
-
|
|
5
|
-
export interface UseDeferredErrorResult {
|
|
6
|
-
/** The message to render (undefined while the reveal is deferred or the field is valid). */
|
|
7
|
-
error: string | undefined
|
|
8
|
-
/** Attach to the field's onBlur — reveals validation immediately and keeps it live from then on. */
|
|
9
|
-
onBlur: () => void
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Defers showing a field validation message while the user is still typing.
|
|
14
|
-
*
|
|
15
|
-
* The message is revealed when the field loses focus (touched) or when the
|
|
16
|
-
* value hasn't changed for `delay` ms; every keystroke restarts the timer.
|
|
17
|
-
* Once touched, validation stays live. A message that clears (the value became
|
|
18
|
-
* valid) disappears immediately.
|
|
19
|
-
*/
|
|
20
|
-
export function useDeferredError(error: string | undefined, value: string, delay = 1500): UseDeferredErrorResult {
|
|
21
|
-
const [touched, setTouched] = React.useState(false)
|
|
22
|
-
const [paused, setPaused] = React.useState(false)
|
|
23
|
-
|
|
24
|
-
// Typing hides the message and restarts the pause timer.
|
|
25
|
-
React.useEffect(() => {
|
|
26
|
-
if (touched) return
|
|
27
|
-
setPaused(false)
|
|
28
|
-
const timer = setTimeout(() => setPaused(true), delay)
|
|
29
|
-
return () => clearTimeout(timer)
|
|
30
|
-
}, [value, delay, touched])
|
|
31
|
-
|
|
32
|
-
const onBlur = React.useCallback(() => setTouched(true), [])
|
|
33
|
-
|
|
34
|
-
return {
|
|
35
|
-
error: error && (touched || paused) ? error : undefined,
|
|
36
|
-
onBlur,
|
|
37
|
-
}
|
|
38
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|