@srimandir/astro-consultation 1.2.6 → 1.2.8

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.
@@ -1,11 +1,13 @@
1
1
  import { default as React } from 'react';
2
- import { AstrologerListItem, ConsultationSlot, ConsultationSlotDay, ConsultationSlotPeriod } from '../../../../astrology-common/dist/index.js';
2
+ import { ConsultationSlot, ConsultationSlotDay, ConsultationSlotPeriod } from '../../../../astrology-common/dist/index.js';
3
3
  import { ConsultationDetailsCardAstrologer } from '../ConsultationDetailsCard';
4
4
  export interface ConsultationSlotSheetProps {
5
5
  /** Modal mode only — ignored when `inline` is true. Defaults to `true`. */
6
6
  isOpen?: boolean;
7
7
  /** Modal mode only — ignored when `inline` is true. */
8
8
  onClose?: () => void;
9
+ /** Modal mode only. Round close button in the sheet's top-right corner. */
10
+ showCloseButton?: boolean;
9
11
  /**
10
12
  * Renders the header/body/footer directly in the page flow instead of
11
13
  * inside `@srimandir/common`'s `BottomSheet` — no overlay, backdrop, or
@@ -34,12 +36,6 @@ export interface ConsultationSlotSheetProps {
34
36
  * Omit it and the sheet opens with no astrologer identity shown.
35
37
  */
36
38
  astrologer?: ConsultationDetailsCardAstrologer;
37
- /** Astrologers to render in the selectable list above the slot picker. */
38
- astrologers?: AstrologerListItem[];
39
- /** Selected astrologer id for the controlled astrologer list. */
40
- selectedAstrologerId?: string;
41
- /** Called when the user selects an astrologer from the list. */
42
- onAstrologerSelect?: (astrologer: AstrologerListItem) => void;
43
39
  /**
44
40
  * The host's phone-number input, rendered above the slot picker. Omit it and
45
41
  * the sheet shows the slot picker alone (e.g. when the number is already known).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srimandir/astro-consultation",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "React NPM package for the standalone astrologer consultation flow – consumed by Hanuman at /astro-consultation",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -35,8 +35,8 @@
35
35
  "react-dom": "^18.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@srimandir/astrology-common": "^7.2.6",
39
- "@srimandir/common": "^1.1.10",
38
+ "@srimandir/astrology-common": "^7.2.7",
39
+ "@srimandir/common": "^1.1.11",
40
40
  "@types/react": "^18.2.0",
41
41
  "@types/react-dom": "^18.2.0",
42
42
  "@vitejs/plugin-react": "^4.3.4",
@@ -54,5 +54,5 @@
54
54
  "react"
55
55
  ],
56
56
  "license": "MIT",
57
- "gitHead": "b54043efb4acc3b80c9b04da46cc19cc75797662"
57
+ "gitHead": "cd248bd0a308d4d5c3c2e4389fe7e4d1ebf7fedc"
58
58
  }