Skip to content

Commit 97c09a7

Browse files
Improvements (#75)
* Fixed background for code snippet in the guide * Added option to "Select all services" for the services selector * Allowed passing container element for injecting MUI styles * Enhanced triggers for multi select with custom values
1 parent 6e893b6 commit 97c09a7

24 files changed

+4667
-7192
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ module.exports = {
121121
'unicorn/no-nested-ternary': 'off',
122122
'unicorn/no-null': 'off',
123123
'unicorn/no-useless-undefined': 'off',
124+
'unicorn/prefer-global-this': 'off',
124125
'unicorn/prefer-string-replace-all': 'off',
125126
'unicorn/prevent-abbreviations': 'off',
126127
},

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- name: Use Node.js LTS
10+
- name: Use Node.js
1111
uses: actions/setup-node@v4
1212
with:
13-
node-version: 'lts/*'
13+
node-version-file: '.nvmrc'
1414
cache: 'npm'
1515
- name: Install dependencies
1616
run: npm ci

.github/workflows/publish-rc.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
- name: Setup Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '18.18.0'
19+
node-version-file: '.nvmrc'
20+
cache: 'npm'
2021
registry-url: 'https://registry.npmjs.org'
2122

2223
- name: Get package name and current version from package.json

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '18.18.0'
21+
node-version-file: '.nvmrc'
2222
registry-url: 'https://registry.npmjs.org'
2323

2424
- name: Get package name and current version from package.json

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.18.0
1+
22.13.1

etc/plugin-config-ui-lib.api.md

+20-5
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ export interface CodeSnippetProps {
7777
}
7878

7979
// @public
80-
export function ConfigUIForm({ prepareSubmitValues }: ConfigUIFormProps): JSX_2.Element;
80+
export function ConfigUIForm({ prepareSubmitValues, container }: ConfigUIFormProps): JSX_2.Element;
8181

8282
// @public (undocumented)
8383
export interface ConfigUIFormProps {
84+
// (undocumented)
85+
container?: HTMLElement | ShadowRoot;
8486
// (undocumented)
8587
prepareSubmitValues: (config: PluginConfig, values: Record<string, any>, tablesList?: PluginTable[]) => PluginUiMessagePayload['validation_passed']['values'];
8688
}
@@ -157,10 +159,12 @@ export interface ControlExclusiveToggleFieldProps {
157159
export { Controller }
158160

159161
// @public
160-
export function ControlMultiSelectField({ name, helperText, label, }: ControlMultiSelectFieldProps): JSX_2.Element;
162+
export function ControlMultiSelectField({ name, helperText, label, codeSeparators, }: ControlMultiSelectFieldProps): JSX_2.Element;
161163

162164
// @public (undocumented)
163165
export interface ControlMultiSelectFieldProps {
166+
// (undocumented)
167+
codeSeparators?: string[];
164168
// (undocumented)
165169
helperText?: ReactNode;
166170
// (undocumented)
@@ -243,10 +247,10 @@ export interface ControlServicesSelectorFieldProps {
243247
topServices?: string[];
244248
}
245249

246-
// Warning: (ae-forgotten-export) The symbol "_PluginTableSelector" needs to be exported by the entry point index.d.ts
250+
// Warning: (ae-forgotten-export) The symbol "InternalPluginTableSelector" needs to be exported by the entry point index.d.ts
247251
//
248252
// @public
249-
export const ControlTableSelectorField: React_2.MemoExoticComponent<typeof _PluginTableSelector>;
253+
export const ControlTableSelectorField: React_2.MemoExoticComponent<typeof InternalPluginTableSelector>;
250254

251255
// @public
252256
export function ControlTextField({ name, label, helperText, textFieldProps, }: ControlTextFieldProps): JSX_2.Element;
@@ -442,6 +446,15 @@ export function generatePluginTableList(tables?: PluginTable[]): PluginTableList
442446
// @public
443447
export const generateTablesFromJson: (tablesJson: CloudQueryTable[]) => PluginTable[];
444448

449+
// @public
450+
export function getAppRootElements({ rootSelector, shadowRootWindowKey, }?: {
451+
rootSelector?: string;
452+
shadowRootWindowKey?: string;
453+
}): {
454+
rootElement: HTMLElement;
455+
shadowRootContainer: HTMLElement | undefined;
456+
};
457+
445458
// @public
446459
export function getAuthenticateConnector({ connectorId, teamName, callApi, authPluginType, }: {
447460
connectorId: string;
@@ -526,7 +539,7 @@ export interface GuideConfig {
526539
// (undocumented)
527540
sections: GuideSection[];
528541
// (undocumented)
529-
title: string;
542+
title: string | ((values: any) => string);
530543
}
531544

532545
// @public (undocumented)
@@ -587,6 +600,8 @@ export const MultiAutocomplete: React_2.ForwardRefExoticComponent<MultiAutocompl
587600

588601
// @public (undocumented)
589602
export interface MultiAutocompleteProps {
603+
// (undocumented)
604+
codeSeparators?: string[];
590605
// (undocumented)
591606
disabled?: boolean | undefined;
592607
// (undocumented)

0 commit comments

Comments
 (0)