@hiver/connector-admin 4.20.2 → 4.21.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "4.20.2",
3
+ "version": "4.21.0",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -0,0 +1,26 @@
1
+ import { FC } from 'react';
2
+ interface EnabledToggleProps {
3
+ connectorId: string;
4
+ isEnabled: boolean;
5
+ /** false when the connector hasn't completed workspace auth — disables the
6
+ * toggle to match the legacy Settings behavior (`!isAuthenticated`
7
+ * forces `disableSwitch = true`). */
8
+ isAuthenticated: boolean;
9
+ /** Connector type (e.g. `slack`) — gates connector-specific tracking. */
10
+ connectorType?: string;
11
+ /** Connector display name, for the tracking payload. */
12
+ connectorName?: string;
13
+ }
14
+ /**
15
+ * Active/Inactive status chip + loader switch for the connector-route
16
+ * AppDetailPage. Same wire + UX as the legacy Settings page (top-right
17
+ * of `apps/admin/src/v2/app/connectors/pages/settings/index.tsx`) —
18
+ * dispatches the same `updateConnectorDetailsApi` thunk, shows the
19
+ * same toasts, disables under the same conditions.
20
+ *
21
+ * Only intended to be rendered in `mode === 'connector'`. The
22
+ * template route has no install row to toggle.
23
+ */
24
+ export declare const EnabledToggle: FC<EnabledToggleProps>;
25
+ export {};
26
+ //# sourceMappingURL=EnabledToggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnabledToggle.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/app/connectors/pages/app-detail/EnabledToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,EAAE,EAAc,MAAM,OAAO,CAAC;AAuBpD,UAAU,kBAAkB;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB;;0CAEsC;IACtC,eAAe,EAAE,OAAO,CAAC;IACzB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAsDhD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=header-and-default-tab.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-and-default-tab.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/app/connectors/pages/app-detail/__tests__/header-and-default-tab.test.tsx"],"names":[],"mappings":""}
@@ -4,9 +4,11 @@ interface AppDetailPageProps {
4
4
  /**
5
5
  * Which route mounted this page.
6
6
  * - `template`: URL `:id` is a template id (marketplace flow,
7
- * pre-install). "Start Setup" CTA visible; configs not fetched.
7
+ * pre-install). "Start Setup" CTA visible; configs not fetched;
8
+ * opens on Overview.
8
9
  * - `connector`: URL `:id` is an install id (post-install flow).
9
- * Configs fetched + prefilled; no "Start Setup" CTA.
10
+ * Configs fetched + prefilled; no "Start Setup" CTA, enable/disable
11
+ * toggle instead; opens on Visibility.
10
12
  */
11
13
  mode: AppDetailMode;
12
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/app/connectors/pages/app-detail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAgD,MAAM,OAAO,CAAC;AAwBzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAqC9C,UAAU,kBAAkB;IAC1B;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAgGhD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/app/connectors/pages/app-detail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAgD,MAAM,OAAO,CAAC;AAyBzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAqC9C,UAAU,kBAAkB;IAC1B;;;;;;;;OAQG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAgGhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/slack/controller.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAyBpG;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,iBAAiB,GAAG,aAAa,CAuJjF"}
1
+ {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/slack/controller.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAyBpG;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,iBAAiB,GAAG,aAAa,CAkLjF"}
@@ -1 +1 @@
1
- {"version":3,"file":"connector-template.d.ts","sourceRoot":"","sources":["../../../../../src/v2/testing/mocks/handlers/connector-template.ts"],"names":[],"mappings":"AA6WA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyB,CAAC;AAyErD,eAAO,MAAM,QAAQ,6BAYpB,CAAC"}
1
+ {"version":3,"file":"connector-template.d.ts","sourceRoot":"","sources":["../../../../../src/v2/testing/mocks/handlers/connector-template.ts"],"names":[],"mappings":"AAkXA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyB,CAAC;AAyErD,eAAO,MAAM,QAAQ,6BAYpB,CAAC"}