@mindbill/react 0.41.1 → 0.41.3

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 CHANGED
@@ -195,7 +195,7 @@ The component includes the interaction model, not just the markup:
195
195
  - QME, AME, and Psych QME evaluation modes with medical-legal modifier defaults; Psych QME also seeds `Z04.6` when no more specific diagnosis was supplied, and exposes it as a Psych quick pick;
196
196
  - a searchable rendering-provider taxonomy combobox that accepts either a human-readable specialty search or an exact 10-character taxonomy code;
197
197
  - searchable workers-comp procedure/modifier controls, medical-legal fee-schedule amounts, totals, valid manual CPT/HCPCS entry, and an automatically maintained empty line;
198
- - removable source documents with new-tab previews, a locked auto-attached practice W-9, and a full-width click, panel-drop, or whole-page PDF upload area. Med-legal mode assigns every document to `J4 - Med-Legal Report` without showing another control; professional mode shows the complete searchable PWK01 report-type directory. Override that presentation with `attachmentReportTypeMode`, `attachmentReportTypes`, and `defaultAttachmentReportType`.
198
+ - removable source documents with new-tab previews and a full-width click, panel-drop, or whole-page PDF upload area. Auto-attached documents can be removable when the host sets `removable: true`; otherwise they remain locked by default. Med-legal mode assigns every document to `J4 - Med-Legal Report` without showing another control; professional mode shows the complete searchable PWK01 report-type directory. Override that presentation with `attachmentReportTypeMode`, `attachmentReportTypes`, and `defaultAttachmentReportType`.
199
199
 
200
200
  Partners supply tenant-specific bootstrap data, one short-lived browser session callback, and optionally an `onSubmitted` callback to persist the returned `billId`. Required fields, validation, ZIP lookup, ICD-10 and payer directories, service-line behavior, PDF encoding, wire-format serialization, atomic submission, attachments, and submission UX stay inside `@mindbill/react`, so every integration receives the same billing workflow. Optional `diagnosisOptions`, `procedureOptions`, `modifierOptions`, and lookup callbacks extend or replace defaults when a partner has licensed or organization-specific data.
201
201
 
@@ -317,7 +317,7 @@ Never send a Partner API key or long-lived credential to React/browser code.
317
317
 
318
318
  ## Bill tasks worklist, submissions ribbon, and payer status calls
319
319
 
320
- `BillTasksDashboard` is the daisyBill-style Bill Tasks worklist: one tone-colored card per task section, rows bucketed by age (1-30 / 31-60 / 61-90 / 91-180 / 181+ days), clickable counts that carry the bill refs behind them, and a grand-total card. It is purely props-driven — aggregate your own work items with `buildBillTasksDashboard` (re-exported from `@mindbill/browser`):
320
+ `BillTasksDashboard` is a Bill Tasks worklist: one tone-colored card per task section, rows bucketed by age (1-30 / 31-60 / 61-90 / 91-180 / 181+ days), clickable counts that carry the bill refs behind them, and a grand-total card. It is purely props-driven — aggregate your own work items with `buildBillTasksDashboard` (re-exported from `@mindbill/browser`):
321
321
 
322
322
  ```tsx
323
323
  import { BillTasksDashboard, buildBillTasksDashboard } from "@mindbill/react";
package/dist/index.d.ts CHANGED
@@ -532,8 +532,9 @@ type BillSubmissionSourceAttachment = {
532
532
  description?: string;
533
533
  /** @deprecated Source attachments shown in the form are included until removed. */
534
534
  selected?: boolean;
535
- /** Auto-attached documents such as a practice W-9 cannot be deselected. */
535
+ /** Marks a document that the host selected by default. This does not imply that it is locked. */
536
536
  autoAttached?: boolean;
537
+ /** Controls whether the user can remove the document from this submission packet. Defaults to false for auto-attached documents and true otherwise. */
537
538
  removable?: boolean;
538
539
  previewUrl?: string;
539
540
  /** Authenticated source loader used when the document is not available at a public URL. */
@@ -579,7 +580,7 @@ type BillSubmissionFormProps = {
579
580
  /** Common NUCC provider taxonomies are bundled; supplied values extend or replace matching codes. */
580
581
  taxonomyOptions?: BillSubmissionTaxonomyOption[];
581
582
  /**
582
- * The daisyBill-style delivery-method dialog shown when the biller submits.
583
+ * The delivery-method dialog shown when the biller submits.
583
584
  * "auto" (default) shows it in connected mode whenever the delivery preview
584
585
  * is available; "off" submits directly on MindBill's recommended route.
585
586
  */
package/dist/index.js CHANGED
@@ -1726,7 +1726,6 @@ function Main({ directory }) {
1726
1726
  ["Web portals", list(directory.webPortals, "url")],
1727
1727
  ["Payers", directory.payers?.length ? /* @__PURE__ */ jsx4("ul", { className: "mbcad-list", children: directory.payers.map((payer, index) => /* @__PURE__ */ jsxs4("li", { children: [
1728
1728
  /* @__PURE__ */ jsx4("strong", { children: payer.name }),
1729
- payer.daisyBillPayerId ? ` \xB7 daisyBill Payer ID ${payer.daisyBillPayerId}` : "",
1730
1729
  payer.route ? ` \xB7 ${payer.route}` : "",
1731
1730
  payer.hint ? /* @__PURE__ */ jsx4("small", { children: payer.hint }) : null
1732
1731
  ] }, `${payer.name}-${index}`)) }) : "\u2014"],
@@ -3020,11 +3019,11 @@ function BillSubmissionForm({
3020
3019
  /* @__PURE__ */ jsxs5("div", { className: "mbsf-attach-list", children: [
3021
3020
  attachments.filter((attachment) => !removedSourceIds.includes(attachment.id)).map((attachment) => {
3022
3021
  const auto = attachment.autoAttached || attachment.documentType === "w9";
3023
- const removable = !auto && attachment.removable !== false;
3022
+ const removable = attachment.removable ?? !auto;
3024
3023
  const reportTypeCode = sourceAttachmentReportTypes[attachment.id] || attachment.reportTypeCode || defaultAttachmentReportType || "";
3025
3024
  return /* @__PURE__ */ jsxs5("div", { className: "mbsf-attach-row", "data-auto": auto, children: [
3026
3025
  /* @__PURE__ */ jsxs5("div", { className: "mbsf-attach-main", children: [
3027
- auto ? /* @__PURE__ */ jsx5("span", { "aria-label": "Always attached", role: "img", children: "\u2713" }) : null,
3026
+ auto ? /* @__PURE__ */ jsx5("span", { "aria-label": "Auto-attached", role: "img", children: "\u2713" }) : null,
3028
3027
  /* @__PURE__ */ jsxs5("span", { className: "mbsf-file", children: [
3029
3028
  /* @__PURE__ */ jsx5("strong", { children: attachment.fileName }),
3030
3029
  /* @__PURE__ */ jsx5("span", { className: "mbsf-badge", children: auto ? "Auto-attached" : documentLabels[attachment.documentType] }),