@comms-id/apra-registered-financial-corporation-lookup-react

中文文档
0.1.0发布于 2026/10/22SEE LICENSE IN LICENSETypeScriptES Module

React hook and component for the Comms.ID APRA list field: corporation name or ABN, accessible, no layout shift, with the data attribution

此软件包已被标记为弃用

Removed. Comms.ID products are served live, nothing to install: https://cdn.comms.id/apra-registered-financial-corporation-lookup/latest.js

原始使用文档

@comms-id/apra-registered-financial-corporation-lookup-react

A React hook and a finished component for the APRA list field: the user types a corporation name or an ABN. Accessible, no layout shift, with the data attribution always shown. React 18 or later; it depends on @comms-id/apra-registered-financial-corporation-lookup and nothing else.

import { createApraRegisteredFinancialCorporationLookupBrowserClient } from "@comms-id/apra-registered-financial-corporation-lookup/browser";
import { ApraRegisteredFinancialCorporationLookupLookup } from "@comms-id/apra-registered-financial-corporation-lookup-react";

const client = createApraRegisteredFinancialCorporationLookupBrowserClient({ relayUrl: "/api/comms-id/apra-registered-financial-corporation-lookup" });

export const Form = () => <ApraRegisteredFinancialCorporationLookupLookup client={client} onSelect={(record) => console.log(record)} />;

relayUrl is your own server route, set up with @comms-id/relay: your server signs the call as your registered app, so the browser holds no credential.

What the field does

  • A name: after the user pauses, it suggests corporations (name, ABN, category or exempted) from APRA's published list of registered financial corporations. The search already returns each whole record, so choosing one needs no second call. Rows that APRA publishes without an ABN are found this way only.
  • An ABN: eleven digits (spaces allowed) are checked in the browser and looked up at once. A wrong length or checksum is refused and nothing is sent.
  • An exempted corporation is shown as "Exempted from registration", never as registered (FSCODA s7(2)(j)).
  • "Not on APRA's published list of registered financial corporations." and "Financial corporation lookup is unavailable" are different messages. Not on the page is not proof that a corporation is unregistered: APRA's legal list is the one it publishes in the Gazette (s11(4)).

版本与发布记录

@comms-id/apra-registered-financial-corporation-lookup-react 共发布 2 个版本,首次发布于 2026/10/22;过去 12 个月发布了 2 个版本。

版本发布日期距今
0.1.0latest2026/10/2212 天前
0.0.0-stage2026/10/2212 天前

关于 @comms-id/apra-registered-financial-corporation-lookup-react 的常见问题

@comms-id/apra-registered-financial-corporation-lookup-react 是什么?

用于通信的React钩子和组件。ID APRA列表字段:公司名称或ABN,可访问,无布局移位,具有数据属性注意:该包已被作者标记为弃用——Removed. Comms.ID products are served live, nothing to install: https://cdn.comms.id/apra-registered-financial-corporation-lookup/latest.js

如何安装 @comms-id/apra-registered-financial-corporation-lookup-react?

在项目目录运行 npm install @comms-id/apra-registered-financial-corporation-lookup-react,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=18)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@comms-id/apra-registered-financial-corporation-lookup-react 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@comms-id/apra-registered-financial-corporation-lookup-react 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@comms-id/apra-registered-financial-corporation-lookup-react 可以商用吗?

@comms-id/apra-registered-financial-corporation-lookup-react 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@comms-id/apra-registered-financial-corporation-lookup-react 还在维护吗?

最新版本 0.1.0 发布于 2026/10/22(12 天前);至今共发布 2 个版本,其中过去 12 个月发布了 2 个;首次发布于 2026/10/22。作者已将其标记为弃用,新项目建议寻找替代方案。