@opendoor/partner-sdk-client-react 1.1.6-beta.96.1 → 1.1.6-beta.98.1
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/README.md +3 -3
- package/dist/client-react/src/components/ScheduleAssessmentFlow/ScheduleAssessmentFlow.d.ts +24 -0
- package/dist/client-react/src/components/ScheduleAssessmentFlow/ScheduleAssessmentFlow.d.ts.map +1 -0
- package/dist/client-react/src/components/ScheduleAssessmentFlow/index.d.ts +3 -0
- package/dist/client-react/src/components/{QualificationQuestions → ScheduleAssessmentFlow}/index.d.ts.map +1 -1
- package/dist/client-react/src/index.d.ts +2 -2
- package/dist/client-react/src/index.d.ts.map +1 -1
- package/dist/index.js +2061 -4124
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/client-react/src/components/QualificationQuestions/QQContext.d.ts +0 -30
- package/dist/client-react/src/components/QualificationQuestions/QQContext.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/QQLayout.d.ts +0 -14
- package/dist/client-react/src/components/QualificationQuestions/QQLayout.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/QQNavigation.d.ts +0 -4
- package/dist/client-react/src/components/QualificationQuestions/QQNavigation.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/QQPage.d.ts +0 -4
- package/dist/client-react/src/components/QualificationQuestions/QQPage.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/QQProvider.d.ts +0 -30
- package/dist/client-react/src/components/QualificationQuestions/QQProvider.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/QQReviewCard.d.ts +0 -13
- package/dist/client-react/src/components/QualificationQuestions/QQReviewCard.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/QQSidebar.d.ts +0 -8
- package/dist/client-react/src/components/QualificationQuestions/QQSidebar.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/QualificationQuestions.d.ts +0 -44
- package/dist/client-react/src/components/QualificationQuestions/QualificationQuestions.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/CardSelectField.d.ts +0 -5
- package/dist/client-react/src/components/QualificationQuestions/fields/CardSelectField.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/CheckboxField.d.ts +0 -5
- package/dist/client-react/src/components/QualificationQuestions/fields/CheckboxField.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/CurrencyField.d.ts +0 -5
- package/dist/client-react/src/components/QualificationQuestions/fields/CurrencyField.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/DropdownField.d.ts +0 -5
- package/dist/client-react/src/components/QualificationQuestions/fields/DropdownField.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/FieldRenderer.d.ts +0 -6
- package/dist/client-react/src/components/QualificationQuestions/fields/FieldRenderer.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/FieldWrapper.d.ts +0 -10
- package/dist/client-react/src/components/QualificationQuestions/fields/FieldWrapper.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/InputField.d.ts +0 -5
- package/dist/client-react/src/components/QualificationQuestions/fields/InputField.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/PhoneField.d.ts +0 -5
- package/dist/client-react/src/components/QualificationQuestions/fields/PhoneField.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/RadioField.d.ts +0 -5
- package/dist/client-react/src/components/QualificationQuestions/fields/RadioField.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/ToggleField.d.ts +0 -6
- package/dist/client-react/src/components/QualificationQuestions/fields/ToggleField.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/index.d.ts +0 -12
- package/dist/client-react/src/components/QualificationQuestions/fields/index.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/fields/types.d.ts +0 -7
- package/dist/client-react/src/components/QualificationQuestions/fields/types.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/icons.d.ts +0 -7
- package/dist/client-react/src/components/QualificationQuestions/icons.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/index.d.ts +0 -3
- package/dist/client-react/src/components/QualificationQuestions/pages/additionalDetailsPage.d.ts +0 -4
- package/dist/client-react/src/components/QualificationQuestions/pages/additionalDetailsPage.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/pages/conditionPage.d.ts +0 -4
- package/dist/client-react/src/components/QualificationQuestions/pages/conditionPage.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/pages/contactInfoPage.d.ts +0 -4
- package/dist/client-react/src/components/QualificationQuestions/pages/contactInfoPage.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/pages/featuresPage.d.ts +0 -4
- package/dist/client-react/src/components/QualificationQuestions/pages/featuresPage.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/pages/homeDetailsPage.d.ts +0 -4
- package/dist/client-react/src/components/QualificationQuestions/pages/homeDetailsPage.d.ts.map +0 -1
- package/dist/client-react/src/components/QualificationQuestions/pages/index.d.ts +0 -6
- package/dist/client-react/src/components/QualificationQuestions/pages/index.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @opendoor/partner-sdk-client-react
|
|
2
2
|
|
|
3
|
-
React components for Opendoor partner integrations. Prebuilt address entry and
|
|
3
|
+
React components for Opendoor partner integrations. Prebuilt address entry and home-details onboarding flow with theming support.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ npm install @opendoor/partner-sdk-client-react @opendoor/partner-sdk-client-js-c
|
|
|
14
14
|
import {
|
|
15
15
|
OpendoorProvider,
|
|
16
16
|
AddressEntry,
|
|
17
|
-
|
|
17
|
+
DtcOnboardingFlow,
|
|
18
18
|
} from '@opendoor/partner-sdk-client-react';
|
|
19
19
|
import { OpendoorClient } from '@opendoor/partner-sdk-client-js-core';
|
|
20
20
|
|
|
@@ -29,7 +29,7 @@ function App() {
|
|
|
29
29
|
}}
|
|
30
30
|
/>
|
|
31
31
|
{/* After offer created: */}
|
|
32
|
-
<
|
|
32
|
+
<DtcOnboardingFlow
|
|
33
33
|
offerId={offerId}
|
|
34
34
|
address={address}
|
|
35
35
|
onSubmit={(answers) => {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OpendoorAppearance } from '../../../../client-js-core/src/index.ts';
|
|
2
|
+
|
|
3
|
+
export interface ScheduleAssessmentFlowProps {
|
|
4
|
+
/** The opendoorOfferRequestId from offer creation */
|
|
5
|
+
offerId: string;
|
|
6
|
+
/** Customer name — prefilled into the confirm step and shown on success */
|
|
7
|
+
customerName?: string;
|
|
8
|
+
/** Customer phone — prefilled into the confirm step */
|
|
9
|
+
customerPhone?: string;
|
|
10
|
+
/** Property address — shown on the success card */
|
|
11
|
+
address?: string;
|
|
12
|
+
/** Visual appearance configuration */
|
|
13
|
+
appearance?: OpendoorAppearance;
|
|
14
|
+
/** Called with the new visitId after a successful schedule submission */
|
|
15
|
+
onScheduled?: (visitId: string) => void | Promise<void>;
|
|
16
|
+
/** Called when the user clicks Done on the success screen */
|
|
17
|
+
onDone?: () => void;
|
|
18
|
+
/** Called when slots are loaded and the component is ready */
|
|
19
|
+
onReady?: () => void;
|
|
20
|
+
/** Called on slot-fetch or schedule-submission errors */
|
|
21
|
+
onError?: (error: Error) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function ScheduleAssessmentFlow({ offerId, customerName: initialCustomerName, customerPhone: initialCustomerPhone, address, appearance, onScheduled, onDone, onReady, onError, }: ScheduleAssessmentFlowProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=ScheduleAssessmentFlow.d.ts.map
|
package/dist/client-react/src/components/ScheduleAssessmentFlow/ScheduleAssessmentFlow.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduleAssessmentFlow.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScheduleAssessmentFlow/ScheduleAssessmentFlow.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK/E,MAAM,WAAW,2BAA2B;IAC1C,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,yEAAyE;IACzE,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yDAAyD;IACzD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAoBD,wBAAgB,sBAAsB,CAAC,EACrC,OAAO,EACP,YAAY,EAAE,mBAAmB,EACjC,aAAa,EAAE,oBAAoB,EACnC,OAAO,EACP,UAAU,EACV,WAAW,EACX,MAAM,EACN,OAAO,EACP,OAAO,GACR,EAAE,2BAA2B,2CA6c7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScheduleAssessmentFlow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -3,14 +3,14 @@ export type { OpendoorProviderProps } from './provider';
|
|
|
3
3
|
export { useOpendoorClient } from './useOpendoorClient';
|
|
4
4
|
export { AddressEntry } from './components/AddressEntry';
|
|
5
5
|
export type { AddressEntryProps } from './components/AddressEntry';
|
|
6
|
-
export { QualificationQuestions } from './components/QualificationQuestions';
|
|
7
|
-
export type { QualificationQuestionsProps } from './components/QualificationQuestions';
|
|
8
6
|
export { AddressUnitConfirmation } from './components/AddressUnitConfirmation';
|
|
9
7
|
export type { AddressUnitConfirmationProps } from './components/AddressUnitConfirmation';
|
|
10
8
|
export { AddressMap } from './components/AddressMap';
|
|
11
9
|
export type { AddressMapProps } from './components/AddressMap';
|
|
12
10
|
export { DtcOnboardingFlow } from './components/DtcOnboardingFlow';
|
|
13
11
|
export type { DtcOnboardingFlowProps } from './components/DtcOnboardingFlow';
|
|
12
|
+
export { ScheduleAssessmentFlow } from './components/ScheduleAssessmentFlow';
|
|
13
|
+
export type { ScheduleAssessmentFlowProps } from './components/ScheduleAssessmentFlow';
|
|
14
14
|
export type { Address, CreateOfferRequest, CreateOfferResponse, AddressSuggestionsResponse, OpendoorClientConfig, OpendoorAppearance, OpendoorThemeVariables, } from '../../client-js-core/src/index.ts';
|
|
15
15
|
export { THEMES, resolveAppearance, } from '../../client-js-core/src/index.ts';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE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