@mikezimm/fps-library-v2 1.0.122 → 1.0.123
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/CHANGELOG.md +7 -1
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.d.ts +1 -0
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.d.ts.map +1 -1
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.js +2 -1
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.js.map +1 -1
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.d.ts +2 -1
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.d.ts.map +1 -1
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.js +32 -16
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.js.map +1 -1
- package/lib/components/atoms/TeachBubble/component.d.ts.map +1 -1
- package/lib/components/atoms/TeachBubble/component.js +5 -1
- package/lib/components/atoms/TeachBubble/component.js.map +1 -1
- package/lib/components/atoms/TeachBubble/getTeacher.d.ts +10 -0
- package/lib/components/atoms/TeachBubble/getTeacher.d.ts.map +1 -0
- package/lib/components/atoms/TeachBubble/getTeacher.js +17 -0
- package/lib/components/atoms/TeachBubble/getTeacher.js.map +1 -0
- package/lib/components/molecules/Performance/IPerformanceSettings.d.ts +2 -1
- package/lib/components/molecules/Performance/IPerformanceSettings.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,12 +5,18 @@ npm run build
|
|
|
5
5
|
npm version major/minor/patch
|
|
6
6
|
npm publish --access=public
|
|
7
7
|
|
|
8
|
-
npm install @mikezimm/fps-library-v2@1.0.
|
|
8
|
+
npm install @mikezimm/fps-library-v2@1.0.123
|
|
9
9
|
|
|
10
10
|
# Changelog
|
|
11
11
|
|
|
12
12
|
NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
|
|
13
13
|
|
|
14
|
+
## 1.0.123 - 2023-Feb-09: build performance right into getSourceItems
|
|
15
|
+
- add getTeachBubbles for Teaching Bubbles
|
|
16
|
+
- update AllTeachBubbles sample
|
|
17
|
+
- update makeBubbleElementFromBubbles to not error out when TeachBubbleArray.length === 0
|
|
18
|
+
- add op?: ILoadPerformanceOps; to IPerformanceSettings which is used to trigger the updates in 1.0.122
|
|
19
|
+
|
|
14
20
|
## 1.0.122 - 2023-Feb-09: build performance right into getSourceItems
|
|
15
21
|
- create IPerformanceSettings in src/components/molecules/Performance/IPerformanceSettings.tsx
|
|
16
22
|
- add performanceSettings: IPerformanceSettings; to IMinSourceFetchProps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMinTeachBubble.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/IMinTeachBubble.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"IMinTeachBubble.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/IMinTeachBubble.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAE7C,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CAEvB;AAED;;;;;;;;;GASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMinTeachBubble.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/IMinTeachBubble.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"IMinTeachBubble.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/IMinTeachBubble.tsx"],"names":[],"mappings":"AACA,6DAA6D;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAa7C;;;;;;;;;GASG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { IMinTeachBubble } from "./IMinTeachBubble";
|
|
2
|
-
export
|
|
2
|
+
export type ITeachGroups = 'MainPivot' | 'Contacts' | 'Site';
|
|
3
|
+
export declare const AllTeachBubbles: IMinTeachBubble[];
|
|
3
4
|
//# sourceMappingURL=SampleTeachBubbles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleTeachBubbles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/SampleTeachBubbles.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SampleTeachBubbles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/SampleTeachBubbles.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAe,MAAM,mBAAmB,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAO7D,eAAO,MAAM,eAAe,EAAE,eAAe,EA0B5C,CAAA"}
|
|
@@ -1,17 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
// import { IMinTeachBubble } from "@mikezimm/fps-library-v2/lib/components/atoms/TeachBubble/IMinTeachBubble";
|
|
2
|
+
import { ReplaceWpId } from "./IMinTeachBubble";
|
|
3
|
+
const MainPivot = 'MainPivot';
|
|
4
|
+
const Contacts = 'Contacts';
|
|
5
|
+
const defaultMessage = `Click for more information`;
|
|
6
|
+
export const AllTeachBubbles = [
|
|
7
|
+
{
|
|
8
|
+
// step: 0,
|
|
9
|
+
// target: `#ComplHomeBanner${wpId}`,
|
|
10
|
+
target: `#${MainPivot}Home${ReplaceWpId}`,
|
|
11
|
+
headline: `Quick summary of your site`,
|
|
12
|
+
message: `This provides a quick overview of what a recent audit found on your site.`,
|
|
13
|
+
}, {
|
|
14
|
+
// step: 0,
|
|
15
|
+
target: `#${Contacts}Committee${ReplaceWpId}`,
|
|
16
|
+
headline: `'Committee' tab`,
|
|
17
|
+
message: ``,
|
|
18
|
+
// message: `${defaultMessage}`,
|
|
19
|
+
}, {
|
|
20
|
+
// step: 1,
|
|
21
|
+
target: `#${Contacts}Coordinators${ReplaceWpId}`,
|
|
22
|
+
headline: `'Coordinators' tab`,
|
|
23
|
+
message: ``,
|
|
24
|
+
// message: `${defaultMessage}`,
|
|
25
|
+
}, {
|
|
26
|
+
// step: 0,
|
|
27
|
+
target: `#${MainPivot}Details${ReplaceWpId}`,
|
|
28
|
+
headline: `'Details' Tab`,
|
|
29
|
+
message: ``,
|
|
30
|
+
// message: `${defaultMessage}`,
|
|
31
|
+
},
|
|
32
|
+
];
|
|
17
33
|
//# sourceMappingURL=SampleTeachBubbles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleTeachBubbles.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/SampleTeachBubbles.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SampleTeachBubbles.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/SampleTeachBubbles.tsx"],"names":[],"mappings":"AAEA,+GAA+G;AAC/G,OAAO,EAAmB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIjE,MAAM,SAAS,GAAiB,WAAW,CAAC;AAC5C,MAAM,QAAQ,GAAiB,UAAU,CAAC;AAE1C,MAAM,cAAc,GAAW,4BAA4B,CAAC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAA0B;IACpD;QACE,WAAW;QACX,qCAAqC;QACrC,MAAM,EAAE,IAAI,SAAS,OAAO,WAAW,EAAE;QACzC,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE,2EAA2E;KACrF,EAAE;QACD,WAAW;QACX,MAAM,EAAE,IAAI,QAAQ,YAAY,WAAW,EAAE;QAC7C,QAAQ,EAAE,iBAAiB;QAC3B,OAAO,EAAE,EAAE;QACX,gCAAgC;KACjC,EAAE;QACD,WAAW;QACX,MAAM,EAAE,IAAI,QAAQ,eAAe,WAAW,EAAE;QAChD,QAAQ,EAAE,oBAAoB;QAC9B,OAAO,EAAE,EAAE;QACX,gCAAgC;KACjC,EAAC;QACA,WAAW;QACX,MAAM,EAAE,IAAI,SAAS,UAAU,WAAW,EAAE;QAC5C,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,EAAE;QACX,gCAAgC;KACjC;CACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/component.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/component.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,wBAAgB,4BAA4B,CAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAC,eAAe,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAK,GAAG,CAAC,OAAO,CA4BzJ"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TeachingBubble } from 'office-ui-fabric-react/lib/TeachingBubble';
|
|
3
|
+
import { check4Gulp } from '@mikezimm/fps-pnp2/lib/services/sp/CheckGulping';
|
|
3
4
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
5
|
export function makeBubbleElementFromBubbles(teachBubble, TeachBubbleArray, setTeachBubble, closeTour) {
|
|
5
|
-
if (teachBubble === null)
|
|
6
|
+
if (teachBubble === null || TeachBubbleArray.length === 0) {
|
|
7
|
+
if (check4Gulp() === true)
|
|
8
|
+
console.log('makeBubbleElementFromBubbles not started', teachBubble, TeachBubbleArray);
|
|
6
9
|
return null;
|
|
10
|
+
}
|
|
7
11
|
const theBubble = TeachBubbleArray[teachBubble];
|
|
8
12
|
const nextBubble = teachBubble === TeachBubbleArray.length - 1 ? 0 : teachBubble + 1;
|
|
9
13
|
const prevBubble = teachBubble === 0 ? TeachBubbleArray.length - 1 : teachBubble - 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAE7E,8DAA8D;AAC9D,MAAM,UAAU,4BAA4B,CAAE,WAAmB,EAAE,gBAAkC,EAAE,cAAmB,EAAE,SAAc;IAExI,IAAK,WAAW,KAAK,IAAI,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAI;QAC5D,IAAK,UAAU,EAAE,KAAK,IAAI;YAAG,OAAO,CAAC,GAAG,CAAE,0CAA0C,EAAE,WAAW,EAAE,gBAAgB,CAAE,CAAC;QACtH,OAAO,IAAI,CAAC;KACb;IAED,MAAM,SAAS,GAAoB,gBAAgB,CAAE,WAAW,CAAE,CAAC;IACnE,MAAM,UAAU,GAAW,WAAW,KAAK,gBAAgB,CAAC,MAAM,GAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC;IAC5F,MAAM,UAAU,GAAW,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,GAAE,CAAC,CAAC,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC;IAC5F,gFAAgF;IAChF,MAAM,MAAM,GAAgB;QACxB,oBAAC,cAAc,IACb,MAAM,EAAG,SAAS,CAAC,MAAM,EACzB,cAAc,EAAE,IAAI,EACpB,QAAQ,EAAG,SAAS,CAAC,QAAQ,EAC7B,SAAS,EAAG,GAAG,EAAE,GAAG,SAAS,EAAG,CAAA,CAAC,CAAC,EAClC,kBAAkB,EAAG,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAE,UAAU,CAAE,EAAE,EACvF,oBAAoB,EAAG,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAE,UAAU,CAAE,EAAE,EAC7F,aAAa,EAAG,GAAI,WAAW,GAAG,CAAE,OAAQ,gBAAgB,CAAC,MAAO,EAAE;YAEpE,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iCAAO,GAAI,SAAS,CAAC,OAAQ,EAAE,CAAQ;YACnE,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iCAAO,GAAI,SAAS,CAAC,OAAQ,EAAE,CAAQ,CACtD,CACf,CAAA;IAEN,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IMinTeachBubble } from "./IMinTeachBubble";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param AllTeachBubbles
|
|
5
|
+
* @param wpId
|
|
6
|
+
* @param teach - Beginning of Ids ( LESS # symbol which is automatically added )
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function getTeachBubbles(AllTeachBubbles: IMinTeachBubble[], wpId: string, teach: string): IMinTeachBubble[];
|
|
10
|
+
//# sourceMappingURL=getTeacher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTeacher.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/getTeacher.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAe,MAAM,mBAAmB,CAAC;AAEjE;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAE,eAAe,EAAE,eAAe,EAAE,EAAG,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAI,eAAe,EAAE,CAKrH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { check4Gulp } from "@mikezimm/fps-pnp2/lib/services/sp/CheckGulping";
|
|
2
|
+
import { ReplaceWpId } from "./IMinTeachBubble";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param AllTeachBubbles
|
|
6
|
+
* @param wpId
|
|
7
|
+
* @param teach - Beginning of Ids ( LESS # symbol which is automatically added )
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export function getTeachBubbles(AllTeachBubbles, wpId, teach) {
|
|
11
|
+
const theseBubbles = AllTeachBubbles.filter(bubble => { return bubble.target.indexOf(`#${teach}`) === 0; });
|
|
12
|
+
theseBubbles.map(bubble => { bubble.target.replace(ReplaceWpId, wpId); });
|
|
13
|
+
if (check4Gulp() === true)
|
|
14
|
+
console.log(console.log('getTeachBubbles', theseBubbles));
|
|
15
|
+
return theseBubbles;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=getTeacher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTeacher.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/getTeacher.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAmB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAE,eAAkC,EAAG,IAAY,EAAE,KAAa;IAC/F,MAAM,YAAY,GAAsB,eAAe,CAAC,MAAM,CAAE,MAAM,CAAC,EAAE,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAE,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAA,CAAC,CAAC,CAAE,CAAC;IACjI,YAAY,CAAC,GAAG,CAAE,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAE,WAAW,EAAE,IAAI,CAAE,CAAA,CAAA,CAAC,CAAC,CAAC;IAC3E,IAAK,UAAU,EAAE,KAAK,IAAI;QAAG,OAAO,CAAC,GAAG,CAAE,OAAO,CAAC,GAAG,CAAE,iBAAiB,EAAE,YAAY,CAAE,CAAE,CAAC;IAC3F,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DisplayMode } from '../../../common/interfaces/@msft/1.15.2/displayMode';
|
|
2
|
-
import { IPerformanceOp } from './IPerformance';
|
|
2
|
+
import { ILoadPerformanceOps, IPerformanceOp } from './IPerformance';
|
|
3
3
|
/**
|
|
4
4
|
* Add this to ISource Props and performance will automatically be added to the return object
|
|
5
5
|
*/
|
|
6
6
|
export interface IPerformanceSettings extends IStartPerformOp {
|
|
7
7
|
updateMiliseconds: boolean;
|
|
8
|
+
op?: ILoadPerformanceOps;
|
|
8
9
|
}
|
|
9
10
|
export interface IStartPerformOp {
|
|
10
11
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPerformanceSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Performance/IPerformanceSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"IPerformanceSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Performance/IPerformanceSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,iBAAiB,EAAE,OAAO,CAAC;IAC3B,EAAE,CAAC,EAAE,mBAAmB,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,cAAc,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
|