@microsoft/sp-top-actions 1.22.0-beta.1 → 1.22.0-beta.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/dist/d5c7f2a5-a8e2-431c-9161-70d4d6396f79.manifest.json +2 -2
- package/dist/index-internal-beta.d.ts +25 -1
- package/dist/index-internal-public.d.ts +25 -1
- package/dist/index-internal.d.ts +25 -1
- package/dist/{sp-top-actions_none_69a4ebc2610b4b1c3da5.js → sp-top-actions_none_f2da6b2e6f2b73611ecb.js} +1 -1
- package/lib-commonjs/ITopActions.js +6 -3
- package/lib-commonjs/index.js +16 -9
- package/lib-commonjs/topActionsFields/topActionsButton/ITopActionsButton.js +6 -3
- package/lib-commonjs/topActionsFields/topActionsButton/ITopActionsButtonV2.js +7 -0
- package/lib-commonjs/topActionsFields/topActionsCombobox/ITopActionsCombobox.js +7 -0
- package/lib-commonjs/topActionsFields/topActionsDropdown/ITopActionsDropdown.js +6 -3
- package/lib-commonjs/topActionsFields/topActionsDropdown/ITopActionsDropdownV2.js +7 -0
- package/lib-commonjs/topActionsFields/topActionsField/ITopActionsCoachmark.js +11 -3
- package/lib-commonjs/topActionsFields/topActionsField/topActionsField.js +33 -19
- package/lib-commonjs/topActionsFields/topActionsSplit/ITopActionsSplit.js +7 -0
- package/lib-commonjs/topActionsFields/topActionsToggle/ITopActionsToggle.js +7 -0
- package/lib-dts/ITopActions.d.ts +33 -0
- package/lib-dts/index.d.ts +16 -0
- package/lib-dts/topActionsFields/topActionsButton/ITopActionsButton.d.ts +45 -0
- package/lib-dts/topActionsFields/topActionsButton/ITopActionsButtonV2.d.ts +10 -0
- package/lib-dts/topActionsFields/topActionsCombobox/ITopActionsCombobox.d.ts +10 -0
- package/lib-dts/topActionsFields/topActionsDropdown/ITopActionsDropdown.d.ts +98 -0
- package/lib-dts/topActionsFields/topActionsDropdown/ITopActionsDropdownV2.d.ts +10 -0
- package/lib-dts/topActionsFields/topActionsField/ITopActionsCoachmark.d.ts +29 -0
- package/lib-dts/topActionsFields/topActionsField/topActionsField.d.ts +95 -0
- package/lib-dts/topActionsFields/topActionsSplit/ITopActionsSplit.d.ts +10 -0
- package/lib-dts/topActionsFields/topActionsToggle/ITopActionsToggle.d.ts +18 -0
- package/lib-esm/ITopActions.js +8 -0
- package/lib-esm/index.js +15 -0
- package/lib-esm/sp-top-actions.manifest.json +14 -0
- package/lib-esm/topActionsFields/topActionsButton/ITopActionsButton.js +8 -0
- package/lib-esm/topActionsFields/topActionsButton/ITopActionsButtonV2.js +8 -0
- package/lib-esm/topActionsFields/topActionsCombobox/ITopActionsCombobox.js +8 -0
- package/lib-esm/topActionsFields/topActionsDropdown/ITopActionsDropdown.js +8 -0
- package/lib-esm/topActionsFields/topActionsDropdown/ITopActionsDropdownV2.js +8 -0
- package/lib-esm/topActionsFields/topActionsField/ITopActionsCoachmark.js +8 -0
- package/lib-esm/topActionsFields/topActionsField/topActionsField.js +27 -0
- package/lib-esm/topActionsFields/topActionsSplit/ITopActionsSplit.js +8 -0
- package/lib-esm/topActionsFields/topActionsToggle/ITopActionsToggle.js +8 -0
- package/package.json +36 -5
- /package/{dist → lib-dts}/tsdoc-metadata.json +0 -0
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"sp-top-actions": {
|
|
14
14
|
"type": "path",
|
|
15
15
|
"path": {
|
|
16
|
-
"path": "sp-top-
|
|
17
|
-
"integrity": "sha256-
|
|
16
|
+
"path": "sp-top-actions_none_f2da6b2e6f2b73611ecb.js",
|
|
17
|
+
"integrity": "sha256-QpfFwPsXgklP2yLExX78DC1G1bvE5aDnFDeBnUcLR4E="
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { IMultiStepCoachmark } from '@msinternal/sp-coachmark-utility';
|
|
2
|
+
import type { IToolbarBasicButton } from '@msinternal/sp-toolbar';
|
|
3
|
+
import type { IToolbarButtonBase } from '@msinternal/sp-toolbar';
|
|
4
|
+
import type { IToolbarComboboxButton } from '@msinternal/sp-toolbar';
|
|
5
|
+
import type { IToolbarDropdownButton } from '@msinternal/sp-toolbar';
|
|
6
|
+
import type { IToolbarSplitButton } from '@msinternal/sp-toolbar';
|
|
7
|
+
import type { IToolbarToggleButton } from '@msinternal/sp-toolbar';
|
|
2
8
|
import type * as React_2 from 'react';
|
|
3
9
|
|
|
4
10
|
/**
|
|
@@ -56,8 +62,12 @@ export declare interface ITopActionsButtonProps {
|
|
|
56
62
|
/* Excluded from this release type: themableSvg */
|
|
57
63
|
}
|
|
58
64
|
|
|
65
|
+
/* Excluded from this release type: ITopActionsButtonV2Props */
|
|
66
|
+
|
|
59
67
|
/* Excluded from this release type: _ITopActionsCoachmark */
|
|
60
68
|
|
|
69
|
+
/* Excluded from this release type: ITopActionsComboboxProps */
|
|
70
|
+
|
|
61
71
|
/**
|
|
62
72
|
* TopActions Dropdown option props.
|
|
63
73
|
*
|
|
@@ -147,6 +157,8 @@ export declare interface ITopActionsDropdownProps {
|
|
|
147
157
|
readonly titleButton?: ITopActionsButtonProps;
|
|
148
158
|
}
|
|
149
159
|
|
|
160
|
+
/* Excluded from this release type: ITopActionsDropdownV2Props */
|
|
161
|
+
|
|
150
162
|
/**
|
|
151
163
|
* Configuration used for a single Top Action command.
|
|
152
164
|
*
|
|
@@ -192,14 +204,24 @@ export declare interface ITopActionsField<TProperties = unknown> {
|
|
|
192
204
|
/* Excluded from this release type: dataAutomationId */
|
|
193
205
|
}
|
|
194
206
|
|
|
207
|
+
/* Excluded from this release type: ITopActionsFieldCommonProps */
|
|
208
|
+
|
|
209
|
+
/* Excluded from this release type: ITopActionsSplitProps */
|
|
210
|
+
|
|
211
|
+
/* Excluded from this release type: ITopActionsToggleProps */
|
|
212
|
+
|
|
195
213
|
/**
|
|
196
214
|
* Enum for all the supported Top Actions field types.
|
|
197
215
|
*
|
|
198
216
|
* Names should be consistent with those in office-ui-fabric-react, be careful to get letter casing correct.
|
|
199
217
|
*
|
|
218
|
+
* @privateRemarks
|
|
219
|
+
* These mirror `PropertyPaneFieldType` in `sp-property-pane`. We use arbitrary values for those without a corresponding field in `PropertyPaneFieldType`.
|
|
220
|
+
*
|
|
200
221
|
* @public
|
|
201
222
|
*/
|
|
202
223
|
export declare enum TopActionsFieldType {
|
|
224
|
+
/* Excluded from this release type: Toggle */
|
|
203
225
|
/**
|
|
204
226
|
* Choice Group field.
|
|
205
227
|
*/
|
|
@@ -207,7 +229,9 @@ export declare enum TopActionsFieldType {
|
|
|
207
229
|
/**
|
|
208
230
|
* Button field.
|
|
209
231
|
*/
|
|
210
|
-
Button = 11
|
|
232
|
+
Button = 11,
|
|
233
|
+
/* Excluded from this release type: Split */
|
|
234
|
+
/* Excluded from this release type: Combobox */
|
|
211
235
|
}
|
|
212
236
|
|
|
213
237
|
export { }
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { IMultiStepCoachmark } from '@msinternal/sp-coachmark-utility';
|
|
2
|
+
import type { IToolbarBasicButton } from '@msinternal/sp-toolbar';
|
|
3
|
+
import type { IToolbarButtonBase } from '@msinternal/sp-toolbar';
|
|
4
|
+
import type { IToolbarComboboxButton } from '@msinternal/sp-toolbar';
|
|
5
|
+
import type { IToolbarDropdownButton } from '@msinternal/sp-toolbar';
|
|
6
|
+
import type { IToolbarSplitButton } from '@msinternal/sp-toolbar';
|
|
7
|
+
import type { IToolbarToggleButton } from '@msinternal/sp-toolbar';
|
|
2
8
|
import type * as React_2 from 'react';
|
|
3
9
|
|
|
4
10
|
/**
|
|
@@ -56,8 +62,12 @@ export declare interface ITopActionsButtonProps {
|
|
|
56
62
|
/* Excluded from this release type: themableSvg */
|
|
57
63
|
}
|
|
58
64
|
|
|
65
|
+
/* Excluded from this release type: ITopActionsButtonV2Props */
|
|
66
|
+
|
|
59
67
|
/* Excluded from this release type: _ITopActionsCoachmark */
|
|
60
68
|
|
|
69
|
+
/* Excluded from this release type: ITopActionsComboboxProps */
|
|
70
|
+
|
|
61
71
|
/**
|
|
62
72
|
* TopActions Dropdown option props.
|
|
63
73
|
*
|
|
@@ -147,6 +157,8 @@ export declare interface ITopActionsDropdownProps {
|
|
|
147
157
|
readonly titleButton?: ITopActionsButtonProps;
|
|
148
158
|
}
|
|
149
159
|
|
|
160
|
+
/* Excluded from this release type: ITopActionsDropdownV2Props */
|
|
161
|
+
|
|
150
162
|
/**
|
|
151
163
|
* Configuration used for a single Top Action command.
|
|
152
164
|
*
|
|
@@ -192,14 +204,24 @@ export declare interface ITopActionsField<TProperties = unknown> {
|
|
|
192
204
|
/* Excluded from this release type: dataAutomationId */
|
|
193
205
|
}
|
|
194
206
|
|
|
207
|
+
/* Excluded from this release type: ITopActionsFieldCommonProps */
|
|
208
|
+
|
|
209
|
+
/* Excluded from this release type: ITopActionsSplitProps */
|
|
210
|
+
|
|
211
|
+
/* Excluded from this release type: ITopActionsToggleProps */
|
|
212
|
+
|
|
195
213
|
/**
|
|
196
214
|
* Enum for all the supported Top Actions field types.
|
|
197
215
|
*
|
|
198
216
|
* Names should be consistent with those in office-ui-fabric-react, be careful to get letter casing correct.
|
|
199
217
|
*
|
|
218
|
+
* @privateRemarks
|
|
219
|
+
* These mirror `PropertyPaneFieldType` in `sp-property-pane`. We use arbitrary values for those without a corresponding field in `PropertyPaneFieldType`.
|
|
220
|
+
*
|
|
200
221
|
* @public
|
|
201
222
|
*/
|
|
202
223
|
export declare enum TopActionsFieldType {
|
|
224
|
+
/* Excluded from this release type: Toggle */
|
|
203
225
|
/**
|
|
204
226
|
* Choice Group field.
|
|
205
227
|
*/
|
|
@@ -207,7 +229,9 @@ export declare enum TopActionsFieldType {
|
|
|
207
229
|
/**
|
|
208
230
|
* Button field.
|
|
209
231
|
*/
|
|
210
|
-
Button = 11
|
|
232
|
+
Button = 11,
|
|
233
|
+
/* Excluded from this release type: Split */
|
|
234
|
+
/* Excluded from this release type: Combobox */
|
|
211
235
|
}
|
|
212
236
|
|
|
213
237
|
export { }
|
package/dist/index-internal.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { IMultiStepCoachmark } from '@msinternal/sp-coachmark-utility';
|
|
2
|
+
import type { IToolbarBasicButton } from '@msinternal/sp-toolbar';
|
|
3
|
+
import type { IToolbarButtonBase } from '@msinternal/sp-toolbar';
|
|
4
|
+
import type { IToolbarComboboxButton } from '@msinternal/sp-toolbar';
|
|
5
|
+
import type { IToolbarDropdownButton } from '@msinternal/sp-toolbar';
|
|
6
|
+
import type { IToolbarSplitButton } from '@msinternal/sp-toolbar';
|
|
7
|
+
import type { IToolbarToggleButton } from '@msinternal/sp-toolbar';
|
|
2
8
|
import type * as React_2 from 'react';
|
|
3
9
|
|
|
4
10
|
/**
|
|
@@ -56,8 +62,12 @@ export declare interface ITopActionsButtonProps {
|
|
|
56
62
|
/* Excluded from this release type: themableSvg */
|
|
57
63
|
}
|
|
58
64
|
|
|
65
|
+
/* Excluded from this release type: ITopActionsButtonV2Props */
|
|
66
|
+
|
|
59
67
|
/* Excluded from this release type: _ITopActionsCoachmark */
|
|
60
68
|
|
|
69
|
+
/* Excluded from this release type: ITopActionsComboboxProps */
|
|
70
|
+
|
|
61
71
|
/**
|
|
62
72
|
* TopActions Dropdown option props.
|
|
63
73
|
*
|
|
@@ -147,6 +157,8 @@ export declare interface ITopActionsDropdownProps {
|
|
|
147
157
|
readonly titleButton?: ITopActionsButtonProps;
|
|
148
158
|
}
|
|
149
159
|
|
|
160
|
+
/* Excluded from this release type: ITopActionsDropdownV2Props */
|
|
161
|
+
|
|
150
162
|
/**
|
|
151
163
|
* Configuration used for a single Top Action command.
|
|
152
164
|
*
|
|
@@ -192,14 +204,24 @@ export declare interface ITopActionsField<TProperties = unknown> {
|
|
|
192
204
|
/* Excluded from this release type: dataAutomationId */
|
|
193
205
|
}
|
|
194
206
|
|
|
207
|
+
/* Excluded from this release type: ITopActionsFieldCommonProps */
|
|
208
|
+
|
|
209
|
+
/* Excluded from this release type: ITopActionsSplitProps */
|
|
210
|
+
|
|
211
|
+
/* Excluded from this release type: ITopActionsToggleProps */
|
|
212
|
+
|
|
195
213
|
/**
|
|
196
214
|
* Enum for all the supported Top Actions field types.
|
|
197
215
|
*
|
|
198
216
|
* Names should be consistent with those in office-ui-fabric-react, be careful to get letter casing correct.
|
|
199
217
|
*
|
|
218
|
+
* @privateRemarks
|
|
219
|
+
* These mirror `PropertyPaneFieldType` in `sp-property-pane`. We use arbitrary values for those without a corresponding field in `PropertyPaneFieldType`.
|
|
220
|
+
*
|
|
200
221
|
* @public
|
|
201
222
|
*/
|
|
202
223
|
export declare enum TopActionsFieldType {
|
|
224
|
+
/* Excluded from this release type: Toggle */
|
|
203
225
|
/**
|
|
204
226
|
* Choice Group field.
|
|
205
227
|
*/
|
|
@@ -207,7 +229,9 @@ export declare enum TopActionsFieldType {
|
|
|
207
229
|
/**
|
|
208
230
|
* Button field.
|
|
209
231
|
*/
|
|
210
|
-
Button = 11
|
|
232
|
+
Button = 11,
|
|
233
|
+
/* Excluded from this release type: Split */
|
|
234
|
+
/* Excluded from this release type: Combobox */
|
|
211
235
|
}
|
|
212
236
|
|
|
213
237
|
export { }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define("d5c7f2a5-a8e2-431c-9161-70d4d6396f79_1.22.0",[],()=>(()=>{"use strict";var e,t={d:(e,n)=>{for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};return t.r(n),t.d(n,{TopActionsFieldType:()=>e}),function(e){e[e.Dropdown=10]="Dropdown",e[e.Button=11]="Button"}(e||(e={})),n})());
|
|
1
|
+
define("d5c7f2a5-a8e2-431c-9161-70d4d6396f79_1.22.0",[],()=>(()=>{"use strict";var e,t={d:(e,n)=>{for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};return t.r(n),t.d(n,{TopActionsFieldType:()=>e}),function(e){e[e.Toggle=5]="Toggle",e[e.Dropdown=10]="Dropdown",e[e.Button=11]="Button",e[e.Split=100]="Split",e[e.Combobox=101]="Combobox"}(e||(e={})),n})());
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=./ITopActions.js.map
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
3
|
*
|
|
5
4
|
* TopActions modules index
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
*/ "use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
|
10
|
+
_export_star._(require("./ITopActions"), exports);
|
|
11
|
+
_export_star._(require("./topActionsFields/topActionsField/topActionsField"), exports);
|
|
12
|
+
_export_star._(require("./topActionsFields/topActionsButton/ITopActionsButton"), exports);
|
|
13
|
+
_export_star._(require("./topActionsFields/topActionsButton/ITopActionsButtonV2"), exports);
|
|
14
|
+
_export_star._(require("./topActionsFields/topActionsCombobox/ITopActionsCombobox"), exports);
|
|
15
|
+
_export_star._(require("./topActionsFields/topActionsDropdown/ITopActionsDropdown"), exports);
|
|
16
|
+
_export_star._(require("./topActionsFields/topActionsDropdown/ITopActionsDropdownV2"), exports);
|
|
17
|
+
_export_star._(require("./topActionsFields/topActionsSplit/ITopActionsSplit"), exports);
|
|
18
|
+
_export_star._(require("./topActionsFields/topActionsToggle/ITopActionsToggle"), exports);
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=./index.js.map
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Copyright (c) Microsoft. All rights reserved.
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=./ITopActionsButton.js.map
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Copyright (c) Microsoft. All rights reserved.
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=./ITopActionsDropdown.js.map
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Custom props to add a coachmark to a topActions button
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
* @deprecated Use `IMultiStepCoachmark` from sp-coachmark-utility instead. TopActions now uses multi-step coachmarks from sp-coachmark-utility.
|
|
6
|
+
*/ "use strict";
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=./ITopActionsCoachmark.js.map
|
|
@@ -1,23 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Copyright (c) Microsoft. All rights reserved.
|
|
3
|
-
|
|
4
|
-
exports
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TopActionsFieldType", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return TopActionsFieldType;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
12
|
var TopActionsFieldType;
|
|
13
|
-
(function
|
|
13
|
+
(function(TopActionsFieldType) {
|
|
14
|
+
/**
|
|
15
|
+
* Toggle field.
|
|
16
|
+
*
|
|
17
|
+
* @alpha
|
|
18
|
+
*/ TopActionsFieldType[TopActionsFieldType["Toggle"] = 5] = "Toggle";
|
|
19
|
+
/**
|
|
20
|
+
* Choice Group field.
|
|
21
|
+
*/ TopActionsFieldType[TopActionsFieldType["Dropdown"] = 10] = "Dropdown";
|
|
22
|
+
/**
|
|
23
|
+
* Button field.
|
|
24
|
+
*/ TopActionsFieldType[TopActionsFieldType["Button"] = 11] = "Button";
|
|
14
25
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
* Split field.
|
|
27
|
+
*
|
|
28
|
+
* @alpha
|
|
29
|
+
*/ TopActionsFieldType[TopActionsFieldType["Split"] = 100] = "Split";
|
|
18
30
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
* Combobox field.
|
|
32
|
+
*
|
|
33
|
+
* @alpha
|
|
34
|
+
*/ TopActionsFieldType[TopActionsFieldType["Combobox"] = 101] = "Combobox";
|
|
35
|
+
})(TopActionsFieldType || (TopActionsFieldType = {}));
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=./topActionsField.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { IMultiStepCoachmark } from '@msinternal/sp-coachmark-utility';
|
|
2
|
+
import type { ITopActionsField } from './topActionsFields/topActionsField/topActionsField';
|
|
3
|
+
import type { ITopActionsCoachmark as _ITopActionsCoachmark } from './topActionsFields/topActionsField/ITopActionsCoachmark';
|
|
4
|
+
/**
|
|
5
|
+
* The configurations used to define a webpart's top actions.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export interface ITopActions {
|
|
10
|
+
/**
|
|
11
|
+
* List of top actions configurations
|
|
12
|
+
*/
|
|
13
|
+
readonly topActions: ITopActionsField[];
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
* List of coachmark configurations
|
|
17
|
+
*
|
|
18
|
+
* @deprecated Use `coachmarksFromUtility` instead. TopActions now uses multi-step coachmarks from sp-coachmark-utility.
|
|
19
|
+
*/
|
|
20
|
+
readonly coachmarks?: Record<string, _ITopActionsCoachmark>;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* List of coachmark configurations. A MultiStepTeachingBubbleComponent will be rendered if coachmarks are passed here.
|
|
24
|
+
*/
|
|
25
|
+
readonly coachmarksFromUtility?: Record<string, IMultiStepCoachmark>;
|
|
26
|
+
/**
|
|
27
|
+
* Triggered once the top action configuration state has been executed for the specified property path
|
|
28
|
+
* @param actionName - the specified property path that has been altered
|
|
29
|
+
* @param updatedValue - the updated value passed by top actions for the specified actionName
|
|
30
|
+
*/
|
|
31
|
+
onExecute(actionName: string, updatedValue: unknown): void;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=ITopActions.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* TopActions modules index
|
|
5
|
+
*/
|
|
6
|
+
export * from './ITopActions';
|
|
7
|
+
export * from './topActionsFields/topActionsField/topActionsField';
|
|
8
|
+
export type { ITopActionsCoachmark as _ITopActionsCoachmark } from './topActionsFields/topActionsField/ITopActionsCoachmark';
|
|
9
|
+
export * from './topActionsFields/topActionsButton/ITopActionsButton';
|
|
10
|
+
export * from './topActionsFields/topActionsButton/ITopActionsButtonV2';
|
|
11
|
+
export * from './topActionsFields/topActionsCombobox/ITopActionsCombobox';
|
|
12
|
+
export * from './topActionsFields/topActionsDropdown/ITopActionsDropdown';
|
|
13
|
+
export * from './topActionsFields/topActionsDropdown/ITopActionsDropdownV2';
|
|
14
|
+
export * from './topActionsFields/topActionsSplit/ITopActionsSplit';
|
|
15
|
+
export * from './topActionsFields/topActionsToggle/ITopActionsToggle';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* TopActions button props.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface ITopActionsButtonProps {
|
|
8
|
+
/**
|
|
9
|
+
* Display text of the element.
|
|
10
|
+
*/
|
|
11
|
+
readonly text: string;
|
|
12
|
+
/**
|
|
13
|
+
* The button icon to display.
|
|
14
|
+
*/
|
|
15
|
+
readonly icon?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Description of the action this button takes.
|
|
18
|
+
*/
|
|
19
|
+
readonly description?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the button is disabled.
|
|
22
|
+
*/
|
|
23
|
+
readonly disabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The aria label of the button for the benefit of screen readers.
|
|
26
|
+
*/
|
|
27
|
+
readonly ariaLabel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Detailed description of the button for the benefit of screen readers.
|
|
30
|
+
*
|
|
31
|
+
*Button types will need more information provided to screen reader.
|
|
32
|
+
*/
|
|
33
|
+
readonly ariaDescription?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Optional attribute used for when an SVG is used in a Button component
|
|
36
|
+
* This is necessary to allow the SVG to be themed. This is an element using SVG tags such as:
|
|
37
|
+
*
|
|
38
|
+
* <svg width="400" height="110">
|
|
39
|
+
* <rect width="300" height="100"/>
|
|
40
|
+
* </svg>
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
readonly themableSvg?: React.ReactElement;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=ITopActionsButton.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IToolbarBasicButton } from '@msinternal/sp-toolbar';
|
|
2
|
+
import type { ITopActionsFieldCommonProps } from '../topActionsField/topActionsField';
|
|
3
|
+
/**
|
|
4
|
+
* TopActions basic button props.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export interface ITopActionsButtonV2Props extends Pick<IToolbarBasicButton, 'icon' | 'onClick'>, ITopActionsFieldCommonProps {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ITopActionsButtonV2.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IToolbarComboboxButton } from '@msinternal/sp-toolbar';
|
|
2
|
+
import type { ITopActionsFieldCommonProps } from '../topActionsField/topActionsField';
|
|
3
|
+
/**
|
|
4
|
+
* TopActions combobox props.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export interface ITopActionsComboboxProps extends Pick<IToolbarComboboxButton, 'icon' | 'freeform' | 'currentOption' | 'options' | 'onChange' | 'type'>, ITopActionsFieldCommonProps {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ITopActionsCombobox.d.ts.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ITopActionsButtonProps } from '../topActionsButton/ITopActionsButton';
|
|
3
|
+
/**
|
|
4
|
+
* TopActions Dropdown props.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface ITopActionsDropdownProps {
|
|
9
|
+
/**
|
|
10
|
+
* The options for the choice group.
|
|
11
|
+
*/
|
|
12
|
+
readonly options: ITopActionsDropdownOption[];
|
|
13
|
+
/**
|
|
14
|
+
* Adds functionality to create an action dropdown where
|
|
15
|
+
* the selected choice is not highlighted at the top level.
|
|
16
|
+
*
|
|
17
|
+
* The TitleButton is always displayed on the toolbar.
|
|
18
|
+
*/
|
|
19
|
+
readonly titleButton?: ITopActionsButtonProps;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* TopActions Dropdown option props.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface ITopActionsDropdownOption {
|
|
27
|
+
/**
|
|
28
|
+
* Title (tooltip) text displayed when hovering over an item.
|
|
29
|
+
*/
|
|
30
|
+
readonly title?: string;
|
|
31
|
+
/**
|
|
32
|
+
* A required key to uniquely identify the option.
|
|
33
|
+
*/
|
|
34
|
+
readonly key: string | number;
|
|
35
|
+
/**
|
|
36
|
+
* The text string for the option.
|
|
37
|
+
*/
|
|
38
|
+
readonly text: string;
|
|
39
|
+
/**
|
|
40
|
+
* The Icon component props for choice field.
|
|
41
|
+
*/
|
|
42
|
+
readonly iconProps?: ITopActionsDropdownOptionIconProps;
|
|
43
|
+
/**
|
|
44
|
+
* The src of image for choice field.
|
|
45
|
+
*/
|
|
46
|
+
readonly imageSrc?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The src of image for choice field which is selected.
|
|
49
|
+
*/
|
|
50
|
+
readonly selectedImageSrc?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The width and height of the image in px for choice field.
|
|
53
|
+
*/
|
|
54
|
+
readonly imageSize?: {
|
|
55
|
+
readonly width: number;
|
|
56
|
+
readonly height: number;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Whether the choice group option is disabled or not.
|
|
60
|
+
*/
|
|
61
|
+
readonly disabled?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Whether the choice group option is checked or not.
|
|
64
|
+
*
|
|
65
|
+
* Default value is false.
|
|
66
|
+
*/
|
|
67
|
+
readonly checked?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* The aria label of the choice group option for the benefit of screen readers.
|
|
70
|
+
*/
|
|
71
|
+
readonly ariaLabel?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Optional attribute used for when an SVG is used in a Dropdown component
|
|
74
|
+
* This is necessary to allow the SVG to be themed. This is an element using SVG tags such as:
|
|
75
|
+
*
|
|
76
|
+
* <svg width="400" height="110">
|
|
77
|
+
* <rect width="300" height="100"/>
|
|
78
|
+
* </svg>
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
readonly themableSvg?: React.ReactElement;
|
|
82
|
+
/**
|
|
83
|
+
* The data-automation-id property for the dropdown option.
|
|
84
|
+
*/
|
|
85
|
+
readonly dataAutomationId?: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* TopActions Dropdown icon props.
|
|
89
|
+
*
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
export interface ITopActionsDropdownOptionIconProps {
|
|
93
|
+
/**
|
|
94
|
+
* The name of the icon to use from the Office Fabric icon set.
|
|
95
|
+
*/
|
|
96
|
+
readonly officeFabricIconFontName?: string | null;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=ITopActionsDropdown.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IToolbarDropdownButton } from '@msinternal/sp-toolbar';
|
|
2
|
+
import type { ITopActionsFieldCommonProps } from '../topActionsField/topActionsField';
|
|
3
|
+
/**
|
|
4
|
+
* TopActions dropdown props.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export interface ITopActionsDropdownV2Props extends Pick<IToolbarDropdownButton, 'icon' | 'checkedValues' | 'onChange' | 'popover'>, ITopActionsFieldCommonProps {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ITopActionsDropdownV2.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom props to add a coachmark to a topActions button
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
* @deprecated Use `IMultiStepCoachmark` from sp-coachmark-utility instead. TopActions now uses multi-step coachmarks from sp-coachmark-utility.
|
|
6
|
+
*/
|
|
7
|
+
export interface ITopActionsCoachmark {
|
|
8
|
+
/**
|
|
9
|
+
* The target property for the coachmark
|
|
10
|
+
*/
|
|
11
|
+
readonly topActionTitle: string;
|
|
12
|
+
/**
|
|
13
|
+
* A headline for the coachmark
|
|
14
|
+
*/
|
|
15
|
+
readonly headline: string;
|
|
16
|
+
/**
|
|
17
|
+
* The content for the coachmark
|
|
18
|
+
*/
|
|
19
|
+
readonly content: string;
|
|
20
|
+
/**
|
|
21
|
+
* The screen reader text for the coachmark
|
|
22
|
+
*/
|
|
23
|
+
readonly screenReaderText: string;
|
|
24
|
+
/**
|
|
25
|
+
* The key for the next coachmark target if multi-step coachmark
|
|
26
|
+
*/
|
|
27
|
+
readonly nextTarget?: string;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ITopActionsCoachmark.d.ts.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { IToolbarButtonBase } from '@msinternal/sp-toolbar';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration used for a single Top Action command.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface ITopActionsField<TProperties = unknown> {
|
|
8
|
+
/**
|
|
9
|
+
* Display name for the action which can be used in a tooltip or aria-label.
|
|
10
|
+
*/
|
|
11
|
+
readonly title?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Type of the top actions field.
|
|
14
|
+
*/
|
|
15
|
+
readonly type: TopActionsFieldType;
|
|
16
|
+
/**
|
|
17
|
+
* Target property from the web part's property bag.
|
|
18
|
+
*/
|
|
19
|
+
readonly targetProperty: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether this control should be focused.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* The default value is false.
|
|
25
|
+
*/
|
|
26
|
+
readonly shouldFocus?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Strongly typed properties object. Specific to each field type.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Example: Dropdown has ITopActionsChoiceGroupProps, Button has ITopActionsButtonProps props.
|
|
32
|
+
*
|
|
33
|
+
* @privateRemarks
|
|
34
|
+
* - These props are from the office-ui-fabric-react.
|
|
35
|
+
* These props may not be extensive as the fabric-react ones. This is intentional.
|
|
36
|
+
* - We are not including any callbacks as part of the props, as this might end up breaking
|
|
37
|
+
* the internal flow and cause unwanted problems.
|
|
38
|
+
* - These are in line with property pane props as top actions consumes from the same
|
|
39
|
+
* source as property pane.
|
|
40
|
+
*
|
|
41
|
+
* We are including only those which are supported by the web part framework.
|
|
42
|
+
*/
|
|
43
|
+
readonly properties: TProperties;
|
|
44
|
+
/**
|
|
45
|
+
* The data-automation-id for the top action
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
readonly dataAutomationId?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Enum for all the supported Top Actions field types.
|
|
52
|
+
*
|
|
53
|
+
* Names should be consistent with those in office-ui-fabric-react, be careful to get letter casing correct.
|
|
54
|
+
*
|
|
55
|
+
* @privateRemarks
|
|
56
|
+
* These mirror `PropertyPaneFieldType` in `sp-property-pane`. We use arbitrary values for those without a corresponding field in `PropertyPaneFieldType`.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export declare enum TopActionsFieldType {
|
|
61
|
+
/**
|
|
62
|
+
* Toggle field.
|
|
63
|
+
*
|
|
64
|
+
* @alpha
|
|
65
|
+
*/
|
|
66
|
+
Toggle = 5,
|
|
67
|
+
/**
|
|
68
|
+
* Choice Group field.
|
|
69
|
+
*/
|
|
70
|
+
Dropdown = 10,
|
|
71
|
+
/**
|
|
72
|
+
* Button field.
|
|
73
|
+
*/
|
|
74
|
+
Button = 11,
|
|
75
|
+
/**
|
|
76
|
+
* Split field.
|
|
77
|
+
*
|
|
78
|
+
* @alpha
|
|
79
|
+
*/
|
|
80
|
+
Split = 100,
|
|
81
|
+
/**
|
|
82
|
+
* Combobox field.
|
|
83
|
+
*
|
|
84
|
+
* @alpha
|
|
85
|
+
*/
|
|
86
|
+
Combobox = 101
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Common props for all top actions fields (except legacy button and dropdown).
|
|
90
|
+
*
|
|
91
|
+
* @alpha
|
|
92
|
+
*/
|
|
93
|
+
export interface ITopActionsFieldCommonProps extends Pick<IToolbarButtonBase, 'id' | 'tooltip' | 'label' | 'ariaLabel'>, Partial<Pick<IToolbarButtonBase, 'dataAutomationId' | 'engagementEventName'>> {
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=topActionsField.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IToolbarSplitButton } from '@msinternal/sp-toolbar';
|
|
2
|
+
import type { ITopActionsFieldCommonProps } from '../topActionsField/topActionsField';
|
|
3
|
+
/**
|
|
4
|
+
* TopActions split props.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export interface ITopActionsSplitProps extends Pick<IToolbarSplitButton, 'icon' | 'iconFillColor' | 'onClick' | 'secondaryButtonId' | 'secondaryButtonAriaLabel' | 'popover'>, Partial<Pick<IToolbarSplitButton, 'secondaryButtonDataAutomationId' | 'secondaryButtonEngagementEventName'>>, ITopActionsFieldCommonProps {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ITopActionsSplit.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IToolbarToggleButton } from '@msinternal/sp-toolbar';
|
|
2
|
+
import type { ITopActionsFieldCommonProps } from '../topActionsField/topActionsField';
|
|
3
|
+
/**
|
|
4
|
+
* TopActions toggle props.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export interface ITopActionsToggleProps extends Pick<IToolbarToggleButton, 'icon' | 'name' | 'onClick' | 'secondaryContent'>, ITopActionsFieldCommonProps {
|
|
9
|
+
/**
|
|
10
|
+
* Whether or not the toggle button is in an active state.
|
|
11
|
+
*
|
|
12
|
+
* @privateRemarks
|
|
13
|
+
* For top actions, we don't pass an object containing all the buttons' states to a toolbar
|
|
14
|
+
* component like `sp-rte-toolbars`. Instead, we pass each top action individually.
|
|
15
|
+
*/
|
|
16
|
+
checked?: boolean;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=ITopActionsToggle.d.ts.map
|
package/lib-esm/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* TopActions modules index
|
|
5
|
+
*/ export * from './ITopActions';
|
|
6
|
+
export * from './topActionsFields/topActionsField/topActionsField';
|
|
7
|
+
export * from './topActionsFields/topActionsButton/ITopActionsButton';
|
|
8
|
+
export * from './topActionsFields/topActionsButton/ITopActionsButtonV2';
|
|
9
|
+
export * from './topActionsFields/topActionsCombobox/ITopActionsCombobox';
|
|
10
|
+
export * from './topActionsFields/topActionsDropdown/ITopActionsDropdown';
|
|
11
|
+
export * from './topActionsFields/topActionsDropdown/ITopActionsDropdownV2';
|
|
12
|
+
export * from './topActionsFields/topActionsSplit/ITopActionsSplit';
|
|
13
|
+
export * from './topActionsFields/topActionsToggle/ITopActionsToggle';
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=./index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-component-manifest.schema.json",
|
|
3
|
+
|
|
4
|
+
"manifestVersion": 2,
|
|
5
|
+
|
|
6
|
+
"id": "d5c7f2a5-a8e2-431c-9161-70d4d6396f79", // <-- Generate a GUID using https://www.guidgen.com/
|
|
7
|
+
"alias": "SpTopActions", // <-- [YOUR NAME HERE]
|
|
8
|
+
"componentType": "Library",
|
|
9
|
+
|
|
10
|
+
// The "*" instructs the tools take the version from package.json when generating the output manifest.
|
|
11
|
+
// For a first party web part that is deployed with sp-client, this version is not very meaningful.
|
|
12
|
+
// We recommend to put "1.0.0" in your package.json and not worry about incrementing it.
|
|
13
|
+
"version": "*"
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom props to add a coachmark to a topActions button
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
* @deprecated Use `IMultiStepCoachmark` from sp-coachmark-utility instead. TopActions now uses multi-step coachmarks from sp-coachmark-utility.
|
|
6
|
+
*/ export { };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=./ITopActionsCoachmark.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright (c) Microsoft. All rights reserved.
|
|
2
|
+
export var TopActionsFieldType;
|
|
3
|
+
(function(TopActionsFieldType) {
|
|
4
|
+
/**
|
|
5
|
+
* Toggle field.
|
|
6
|
+
*
|
|
7
|
+
* @alpha
|
|
8
|
+
*/ TopActionsFieldType[TopActionsFieldType["Toggle"] = 5] = "Toggle";
|
|
9
|
+
/**
|
|
10
|
+
* Choice Group field.
|
|
11
|
+
*/ TopActionsFieldType[TopActionsFieldType["Dropdown"] = 10] = "Dropdown";
|
|
12
|
+
/**
|
|
13
|
+
* Button field.
|
|
14
|
+
*/ TopActionsFieldType[TopActionsFieldType["Button"] = 11] = "Button";
|
|
15
|
+
/**
|
|
16
|
+
* Split field.
|
|
17
|
+
*
|
|
18
|
+
* @alpha
|
|
19
|
+
*/ TopActionsFieldType[TopActionsFieldType["Split"] = 100] = "Split";
|
|
20
|
+
/**
|
|
21
|
+
* Combobox field.
|
|
22
|
+
*
|
|
23
|
+
* @alpha
|
|
24
|
+
*/ TopActionsFieldType[TopActionsFieldType["Combobox"] = 101] = "Combobox";
|
|
25
|
+
})(TopActionsFieldType || (TopActionsFieldType = {}));
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=./topActionsField.js.map
|
package/package.json
CHANGED
|
@@ -1,19 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-top-actions",
|
|
3
|
-
"version": "1.22.0-beta.
|
|
3
|
+
"version": "1.22.0-beta.3",
|
|
4
4
|
"description": "SharePoint Framework support for the web part top actions user interface.",
|
|
5
5
|
"license": "https://aka.ms/spfx/license",
|
|
6
6
|
"homepage": "http://aka.ms/spfx",
|
|
7
7
|
"main": "lib-commonjs/index.js",
|
|
8
|
-
"module": "lib/index.js",
|
|
9
|
-
"typings": "
|
|
8
|
+
"module": "lib-esm/index.js",
|
|
9
|
+
"typings": "lib-dts/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./lib-esm/index.js",
|
|
13
|
+
"require": "./lib-commonjs/index.js",
|
|
14
|
+
"types": "./lib-dts/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./lib/*.resx": "./lib-esm/*.resx.json",
|
|
17
|
+
"./lib/*": {
|
|
18
|
+
"import": "./lib-esm/*.js",
|
|
19
|
+
"require": "./lib-commonjs/*.js",
|
|
20
|
+
"types": "./lib-dts/*.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./lib-commonjs/*.resx": "./lib-esm/*.resx.json",
|
|
23
|
+
"./lib-commonjs/*": {
|
|
24
|
+
"import": "./lib-esm/*.js",
|
|
25
|
+
"require": "./lib-commonjs/*.js",
|
|
26
|
+
"types": "./lib-dts/*.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
"typesVersions": {
|
|
31
|
+
"*": {
|
|
32
|
+
"lib/*": [
|
|
33
|
+
"lib-dts/*"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@swc/helpers": "0.5.12"
|
|
39
|
+
},
|
|
10
40
|
"devDependencies": {
|
|
11
|
-
"@rushstack/heft": "0.
|
|
41
|
+
"@rushstack/heft": "0.74.3",
|
|
12
42
|
"@types/react": "17.0.45",
|
|
13
43
|
"@types/react-dom": "17.0.17",
|
|
14
44
|
"eslint": "8.57.1",
|
|
15
45
|
"@msinternal/sp-coachmark-utility": "0.1.0",
|
|
16
|
-
"@msinternal/spfx-internal-web-build-rig": "0.1.0"
|
|
46
|
+
"@msinternal/spfx-internal-web-build-rig": "0.1.0",
|
|
47
|
+
"@msinternal/sp-toolbar": "0.1.0"
|
|
17
48
|
},
|
|
18
49
|
"scripts": {
|
|
19
50
|
"build": "heft build --clean",
|
|
File without changes
|