@mikezimm/fps-core-v7 1.0.37 → 1.0.38
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/lib/banner/FPSWebPartClass/functions/updateUrlParam.d.ts.map +1 -1
- package/lib/banner/FPSWebPartClass/functions/updateUrlParam.js +2 -1
- package/lib/banner/FPSWebPartClass/functions/updateUrlParam.js.map +1 -1
- package/lib/banner/FPSWebPartClass/getCert.d.ts.map +1 -1
- package/lib/banner/FPSWebPartClass/getCert.js +2 -1
- package/lib/banner/FPSWebPartClass/getCert.js.map +1 -1
- package/lib/banner/bannerX/sendFeedback.d.ts.map +1 -1
- package/lib/banner/bannerX/sendFeedback.js +2 -1
- package/lib/banner/bannerX/sendFeedback.js.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js +2 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.js +2 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.js.map +1 -1
- package/lib/banner/features/FPSDOM/FPSEnviro.d.ts.map +1 -1
- package/lib/banner/features/FPSDOM/FPSEnviro.js +4 -3
- package/lib/banner/features/FPSDOM/FPSEnviro.js.map +1 -1
- package/lib/banner/features/FPSDOM/IFPSDigestValues.d.ts +1 -1
- package/lib/banner/features/FPSDOM/IFPSDigestValues.d.ts.map +1 -1
- package/lib/banner/features/Tricky/logfun.d.ts.map +1 -1
- package/lib/banner/features/Tricky/logfun.js +7 -6
- package/lib/banner/features/Tricky/logfun.js.map +1 -1
- package/lib/components/atoms/SharedItems/processSharedItems.d.ts.map +1 -1
- package/lib/components/atoms/SharedItems/processSharedItems.js +2 -1
- package/lib/components/atoms/SharedItems/processSharedItems.js.map +1 -1
- package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.js +2 -2
- package/lib/components/atoms/easy-analytics/functions/createAnalyticsSourceProps.js.map +1 -1
- package/lib/components/atoms/easy-analytics/interfaces/constants.js +1 -1
- package/lib/components/atoms/easy-analytics/interfaces/constants.js.map +1 -1
- package/lib/components/atoms/easy-icons/interfaces/EasyIconLocation.d.ts.map +1 -1
- package/lib/components/atoms/easy-icons/interfaces/EasyIconLocation.js +2 -1
- package/lib/components/atoms/easy-icons/interfaces/EasyIconLocation.js.map +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getThisFPSDigestValueFromContext.js +2 -2
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getThisFPSDigestValueFromContext.js.map +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/addFPSDigestToSourceProps.d.ts +3 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/addFPSDigestToSourceProps.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/addFPSDigestToSourceProps.js +16 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/addFPSDigestToSourceProps.js.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js +6 -2
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js.map +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.js +2 -2
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.js.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsBatchFetch.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsBatchFetch.js +4 -3
- package/lib/components/molecules/SpHttp/doSpJsBatchFetch.js.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch.js +4 -3
- package/lib/components/molecules/SpHttp/doSpJsFetch.js.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFileFetch.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFileFetch.js +4 -3
- package/lib/components/molecules/SpHttp/doSpJsFileFetch.js.map +1 -1
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.js +28 -5
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.js.map +1 -1
- package/lib/components/molecules/SpHttp/helpers/getCurrentFPSDigest.js +5 -5
- package/lib/components/molecules/SpHttp/helpers/getCurrentFPSDigest.js.map +1 -1
- package/lib/components/molecules/source-props/IMinSourceFetchProps.d.ts +0 -4
- package/lib/components/molecules/source-props/IMinSourceFetchProps.d.ts.map +1 -1
- package/lib/components/molecules/source-props/IMinSourceFetchProps.js +9 -7
- package/lib/components/molecules/source-props/IMinSourceFetchProps.js.map +1 -1
- package/lib/components/molecules/source-props/Lists/createListSource.d.ts +1 -0
- package/lib/components/molecules/source-props/Lists/createListSource.d.ts.map +1 -1
- package/lib/components/molecules/source-props/Lists/createListSource.js +12 -3
- package/lib/components/molecules/source-props/Lists/createListSource.js.map +1 -1
- package/lib/components/molecules/source-props/SitePages/NewsLinksSource.js +1 -1
- package/lib/components/molecules/source-props/SitePages/NewsLinksSource.js.map +1 -1
- package/lib/components/molecules/source-props/SitePages/NewsSource.js +1 -1
- package/lib/components/molecules/source-props/SitePages/NewsSource.js.map +1 -1
- package/lib/components/molecules/source-props/SitePages/SitePagesSource.js +1 -1
- package/lib/components/molecules/source-props/SitePages/SitePagesSource.js.map +1 -1
- package/lib/components/molecules/source-props/WindowLocationConstants.d.ts +34 -0
- package/lib/components/molecules/source-props/WindowLocationConstants.d.ts.map +1 -0
- package/lib/components/molecules/source-props/WindowLocationConstants.js +57 -0
- package/lib/components/molecules/source-props/WindowLocationConstants.js.map +1 -0
- package/lib/components/molecules/source-props/createGroupsSource.d.ts +14 -0
- package/lib/components/molecules/source-props/createGroupsSource.d.ts.map +1 -0
- package/lib/components/molecules/source-props/createGroupsSource.js +49 -0
- package/lib/components/molecules/source-props/createGroupsSource.js.map +1 -0
- package/lib/components/molecules/source-props/createLibrarySource.d.ts +1 -0
- package/lib/components/molecules/source-props/createLibrarySource.d.ts.map +1 -1
- package/lib/components/molecules/source-props/createLibrarySource.js +12 -3
- package/lib/components/molecules/source-props/createLibrarySource.js.map +1 -1
- package/lib/components/molecules/state-source/IStateSource.d.ts.map +1 -1
- package/lib/components/molecules/state-source/IStateSource.js +2 -2
- package/lib/components/molecules/state-source/IStateSource.js.map +1 -1
- package/lib/logic/Links/UrlFunctions.d.ts.map +1 -1
- package/lib/logic/Links/UrlFunctions.js +9 -8
- package/lib/logic/Links/UrlFunctions.js.map +1 -1
- package/lib/logic/Links/getAllDomainsFromUrls.d.ts.map +1 -1
- package/lib/logic/Links/getAllDomainsFromUrls.js +6 -5
- package/lib/logic/Links/getAllDomainsFromUrls.js.map +1 -1
- package/lib/logic/Links/getDomainTypeFromUrl.js +1 -1
- package/lib/logic/Links/getDomainTypeFromUrl.js.map +1 -1
- package/lib/logic/Links/getSPOUrl.d.ts +7 -0
- package/lib/logic/Links/getSPOUrl.d.ts.map +1 -1
- package/lib/logic/Links/getSPOUrl.js +7 -0
- package/lib/logic/Links/getSPOUrl.js.map +1 -1
- package/lib/logic/Strings/getAbssoluteWebUrlFromSourceProps.d.ts +0 -1
- package/lib/logic/Strings/getAbssoluteWebUrlFromSourceProps.d.ts.map +1 -1
- package/lib/logic/Strings/getAbssoluteWebUrlFromSourceProps.js +1 -6
- package/lib/logic/Strings/getAbssoluteWebUrlFromSourceProps.js.map +1 -1
- package/lib/logic/Strings/getFullUrlFromSlashSitesUrl.d.ts +0 -5
- package/lib/logic/Strings/getFullUrlFromSlashSitesUrl.d.ts.map +1 -1
- package/lib/logic/Strings/getFullUrlFromSlashSitesUrl.js +21 -23
- package/lib/logic/Strings/getFullUrlFromSlashSitesUrl.js.map +1 -1
- package/lib/logic/Strings/getSiteCollectionUrlFromLink.d.ts +18 -0
- package/lib/logic/Strings/getSiteCollectionUrlFromLink.d.ts.map +1 -1
- package/lib/logic/Strings/getSiteCollectionUrlFromLink.js +33 -3
- package/lib/logic/Strings/getSiteCollectionUrlFromLink.js.map +1 -1
- package/lib/logic/Strings/urlServices.d.ts +0 -1
- package/lib/logic/Strings/urlServices.d.ts.map +1 -1
- package/lib/logic/Strings/urlServices.js +2 -2
- package/lib/logic/Strings/urlServices.js.map +1 -1
- package/lib/restAPIs/lists/files/getFileEmbedUrl.js +1 -1
- package/lib/restAPIs/lists/files/getFileEmbedUrl.js.map +1 -1
- package/lib/restAPIs/logging/interfaces/constants.d.ts.map +1 -1
- package/lib/restAPIs/logging/interfaces/constants.js +11 -3
- package/lib/restAPIs/logging/interfaces/constants.js.map +1 -1
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.d.ts +4 -4
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js +7 -4
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.js +7 -6
- package/lib/restAPIs/sites/groups/getWebAssociatedGroupAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.d.ts +2 -2
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.js +3 -2
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.js.map +1 -1
- package/lib/restAPIs/sites/groups/getWebGroupInfoBatchAPI.d.ts +4 -0
- package/lib/restAPIs/sites/groups/getWebGroupInfoBatchAPI.d.ts.map +1 -0
- package/lib/restAPIs/sites/groups/getWebGroupInfoBatchAPI.js +28 -0
- package/lib/restAPIs/sites/groups/getWebGroupInfoBatchAPI.js.map +1 -0
- package/lib/restAPIs/sites/users/UserSelects.d.ts +5 -0
- package/lib/restAPIs/sites/users/UserSelects.d.ts.map +1 -0
- package/lib/restAPIs/sites/users/UserSelects.js +6 -0
- package/lib/restAPIs/sites/users/UserSelects.js.map +1 -0
- package/lib/restAPIs/sites/users/getSiteUsersAPI.d.ts.map +1 -1
- package/lib/restAPIs/sites/users/getSiteUsersAPI.js +9 -4
- package/lib/restAPIs/sites/users/getSiteUsersAPI.js.map +1 -1
- package/lib/restAPIs/sites/users/getSiteUsersBatchAPI.d.ts +4 -0
- package/lib/restAPIs/sites/users/getSiteUsersBatchAPI.d.ts.map +1 -0
- package/lib/restAPIs/sites/users/getSiteUsersBatchAPI.js +28 -0
- package/lib/restAPIs/sites/users/getSiteUsersBatchAPI.js.map +1 -0
- package/lib/types/@pnp/@2.14.0/sp/site-users.d.ts +1 -0
- package/lib/types/@pnp/@2.14.0/sp/site-users.d.ts.map +1 -1
- package/lib/types/fps-returns/sites/groups/IGroupResults.d.ts +3 -3
- package/lib/types/fps-returns/sites/groups/IGroupResults.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/restAPIs/sites/users/UserGroupSelects.d.ts +0 -3
- package/lib/restAPIs/sites/users/UserGroupSelects.d.ts.map +0 -1
- package/lib/restAPIs/sites/users/UserGroupSelects.js +0 -3
- package/lib/restAPIs/sites/users/UserGroupSelects.js.map +0 -1
package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AnalyticsWeb, SecureCDNalyticsWeb } from "../../../../../restAPIs/logging/interfaces/constants";
|
|
2
2
|
import { getCurrentFPSDigest } from "../../helpers/getCurrentFPSDigest";
|
|
3
|
-
import { getFullUrlFromSlashSitesUrl } from "../../../../../logic/Strings/getFullUrlFromSlashSitesUrl";
|
|
4
3
|
import { check4ThisFPSDigestValue } from "../../helpers/check4ThisFPSDigestValue";
|
|
5
4
|
import { startPerformOpV2, updatePerformanceEndV2 } from "../../../Performance/functions";
|
|
6
5
|
import { check4This } from "../../../../../logic/Links/CheckSearch";
|
|
7
6
|
import { getFormDigestValueNoContext } from "./getFormDigestValueNoContext";
|
|
7
|
+
import { CurrentSiteAbsolute } from "../../../source-props/WindowLocationConstants";
|
|
8
|
+
import { makeAbsoluteUrl } from "../../../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
8
9
|
/**
|
|
9
10
|
* DOES NOT REQUIRES Context - 2024-09-29: NEED TO TEST getFormDigestValueNoContext before widespread use
|
|
10
11
|
*
|
|
@@ -23,7 +24,7 @@ export async function getThisFPSDigestValueFromUrl(absoluteUrl) {
|
|
|
23
24
|
let thisPerformance = startPerformOpV2({ label: `Single-Digest`, includeMsStr: true });
|
|
24
25
|
const startTime = Date.now();
|
|
25
26
|
let fpsWindowProps = getCurrentFPSDigest();
|
|
26
|
-
absoluteUrl =
|
|
27
|
+
absoluteUrl = makeAbsoluteUrl(absoluteUrl);
|
|
27
28
|
let siteDigestValue = check4ThisFPSDigestValue(absoluteUrl);
|
|
28
29
|
if (!siteDigestValue) {
|
|
29
30
|
// Go get the digest value
|
|
@@ -35,6 +36,9 @@ export async function getThisFPSDigestValueFromUrl(absoluteUrl) {
|
|
|
35
36
|
else if (absoluteUrl === SecureCDNalyticsWeb) {
|
|
36
37
|
fpsWindowProps.SecureCDNAlyticsWeb = thisFPSDigest;
|
|
37
38
|
}
|
|
39
|
+
else if (absoluteUrl === CurrentSiteAbsolute) {
|
|
40
|
+
fpsWindowProps.CurrentSite = thisFPSDigest;
|
|
41
|
+
}
|
|
38
42
|
else {
|
|
39
43
|
fpsWindowProps.sites.push(thisFPSDigest);
|
|
40
44
|
}
|
package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThisFPSDigestValueFromUrl.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AACzG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getThisFPSDigestValueFromUrl.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AACzG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE1F,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAE5F;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAE,WAAmB;IAErE,IAAI,eAAe,GAAmB,gBAAgB,CAAE,EAAC,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,IAAI,EAAE,CAAoB,CAAC;IAE1H,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,IAAI,cAAc,GAAqB,mBAAmB,EAAE,CAAC;IAE7D,WAAW,GAAG,eAAe,CAAE,WAAW,CAAE,CAAC;IAE7C,IAAI,eAAe,GAAG,wBAAwB,CAAE,WAAW,CAAE,CAAC;IAE9D,IAAK,CAAC,eAAe,EAAG;QACtB,0BAA0B;QAE1B,eAAe,GAAG,MAAM,2BAA2B,CAAE,WAAW,CAAE,CAAC;QAEnE,MAAM,aAAa,GAAuB,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAE9G,IAAK,WAAW,KAAK,YAAY,EAAG;YAClC,cAAc,CAAC,YAAY,GAAG,aAAa,CAAC;SAE7C;aAAM,IAAK,WAAW,KAAK,mBAAmB,EAAG;YAChD,cAAc,CAAC,mBAAmB,GAAG,aAAa,CAAC;SAEpD;aAAM,IAAK,WAAW,KAAK,mBAAmB,EAAG;YAChD,cAAc,CAAC,WAAW,GAAG,aAAa,CAAC;SAE5C;aAAM;YACL,cAAc,CAAC,KAAK,CAAC,IAAI,CAAE,aAAa,CAAE,CAAC;SAC5C;KAEF;IAED,eAAe,GAAG,sBAAsB,CAAG,EAAE,EAAE,EAAE,eAAe,EAAE,iBAAiB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAoB,CAAC;IAC1H,IAAK,UAAU,CAAE,yBAAyB,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,yDAAyD,EAAE,eAAe,CAAE,CAAA;KAAE;IAAA,CAAC;IAEtJ,OAAO,eAAe,CAAC;AAEzB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AnalyticsWebAbsolute, SecureCDNalyticsWebAbsolute } from "../../../../../restAPIs/logging/interfaces/constants";
|
|
2
2
|
import { getCurrentFPSDigest } from "../../helpers/getCurrentFPSDigest";
|
|
3
3
|
import { getFormDigestValueNoContext } from "./getFormDigestValueNoContext";
|
|
4
|
-
import { getFullUrlFromSlashSitesUrl } from "../../../../../logic/Strings/getFullUrlFromSlashSitesUrl";
|
|
5
4
|
import { startPerformOpV2, updatePerformanceEndV2 } from "../../../Performance/functions";
|
|
6
5
|
import { check4This } from "../../../../../logic/Links/CheckSearch";
|
|
6
|
+
import { makeAbsoluteUrl } from "../../../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
7
7
|
/**
|
|
8
8
|
* If you need to use digestValues, such as in SE or certain calls,
|
|
9
9
|
* It's best to call this during the onInit because you have the context.
|
|
@@ -20,7 +20,7 @@ export async function setMultiFPSFormDigests(urls) {
|
|
|
20
20
|
let fpsWindowProps = getCurrentFPSDigest();
|
|
21
21
|
// Just make sure all the Urls are absolute urls
|
|
22
22
|
const absoluteUrls = [];
|
|
23
|
-
urls.map(url => { absoluteUrls.push(
|
|
23
|
+
urls.map(url => { absoluteUrls.push(makeAbsoluteUrl(url)); });
|
|
24
24
|
// NOTE: The vars in the array must be in same order they are called in the Promise.all
|
|
25
25
|
const allReturns = await Promise.all(absoluteUrls.map((absoluteUrl, idx) => { return getFormDigestValueNoContext(absoluteUrl); }));
|
|
26
26
|
absoluteUrls.map((url, idx) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setMultiFPSFormDigests.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACzH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"setMultiFPSFormDigests.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACzH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OA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AAK,GAAG,KAAK,2BAA2B,EAAG;YAChD,cAAc,CAAC,mBAAmB,GAAG,aAAa,CAAC;SAEpD;aAAM;YACL,cAAc,CAAC,KAAK,CAAC,IAAI,CAAE,aAAa,CAAE,CAAC;SAC5C;IAEH,CAAC,CAAC,CAAC;IAEH,eAAe,GAAG,sBAAsB,CAAG,EAAE,EAAE,EAAE,eAAe,EAAE,iBAAiB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAoB,CAAC;IAC1H,IAAK,UAAU,CAAE,yBAAyB,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,mDAAmD,EAAE,eAAe,CAAE,CAAA;KAAE;IAAA,CAAC;IAEhJ,OAAO,cAAc,CAAC;AAExB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doSpJsBatchFetch.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsBatchFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAWH,OAAO,EAAE,cAAc,EAA0B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"doSpJsBatchFetch.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsBatchFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAWH,OAAO,EAAE,cAAc,EAA0B,MAAM,kBAAkB,CAAC;AAE1E,MAAM,MAAM,oBAAoB,GAAI,gCAAgC,GAAG,mCAAmC,CAAC;AAK3G,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAUD,wBAAsB,sBAAsB,CAAE,cAAc,EAAE,gBAAgB,EAAE,EAAE,WAAW,EAAE,MAAM,GAAK,OAAO,CAAC,cAAc,EAAE,CAAC,CAwJlI;AAED;;GAEG;AAaH;;;;;GAKG;AAEH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,GAAG,CAAC;CACX"}
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
// import { IFPSResultStatus } from "@mikezimm/fps-pnp2/lib/services/sp/IFPSResultStatus";
|
|
7
7
|
// import { IFpsErrorObject } from "@mikezimm/fps-core-v7/lib/types/fps-returns/common/IFpsErrorObject"; //./../../pnpjs/Common/IFpsErrorObject";
|
|
8
8
|
import { check4This } from "../../../logic/Links/CheckSearch";
|
|
9
|
-
import {
|
|
9
|
+
import { makeAbsoluteUrl } from "../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
10
10
|
import { getSiteCollectionUrlFromLink } from "../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
11
|
+
import { CurrentHostName } from "../source-props/WindowLocationConstants";
|
|
11
12
|
import { check4ThisFPSDigestValue } from "./helpers/check4ThisFPSDigestValue";
|
|
12
13
|
import { createEmptyFetchReturn } from "./IJSFetchReturn";
|
|
13
14
|
const acceptVerbose = 'application/json;odata=verbose';
|
|
@@ -23,8 +24,8 @@ export async function doSpJsBatchFetchOrPost(batchFetchAPIs, digestValue) {
|
|
|
23
24
|
// Automatically added this because API's usually need full url.
|
|
24
25
|
const validFetchAPIs = batchFetchAPIs.map((batchItem) => {
|
|
25
26
|
// Always make sure this is an absolute url by running through this first. Note, if the previous line executes, it should be good then.
|
|
26
|
-
let thisAPI =
|
|
27
|
-
if (thisAPI.indexOf(
|
|
27
|
+
let thisAPI = makeAbsoluteUrl(batchItem.api);
|
|
28
|
+
if (thisAPI.indexOf(CurrentHostName) === 0)
|
|
28
29
|
thisAPI = `https://${thisAPI}`;
|
|
29
30
|
// Merge all defaults into the api object
|
|
30
31
|
return { ...EmptySpJsFetchObject, ...{ api: thisAPI } };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doSpJsBatchFetch.js","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsBatchFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAGH,kFAAkF;AAClF,0FAA0F;AAC1F,iJAAiJ;AACjJ,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"doSpJsBatchFetch.js","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsBatchFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAGH,kFAAkF;AAClF,0FAA0F;AAC1F,iJAAiJ;AACjJ,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAkB,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI1E,MAAM,aAAa,GAAyB,gCAAgC,CAAC;AAC7E,MAAM,YAAY,GAAyB,mCAAmC,CAAC;AAW/E,MAAM,oBAAoB,GAAqB;IAC7C,GAAG,EAAE,EAAE;IACP,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,gCAAgC;IACxC,KAAK,EAAE,gCAAgC;CACxC,CAAA;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAE,cAAkC,EAAE,WAAmB;IAEnG,gEAAgE;IAChE,MAAM,cAAc,GAAuB,cAAc,CAAC,GAAG,CAAE,CAAE,SAA2B,EAAE,EAAE;QAC9F,wIAAwI;QACxI,IAAI,OAAO,GAAG,eAAe,CAAE,SAAS,CAAC,GAAG,CAAG,CAAC;QAChD,IAAK,OAA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,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE;YACjF,IAAI;gBACA,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;aACrC;YAAC,OAAO,CAAC,EAAE;gBACR,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;aACzB;SACJ;aAAM;YACH,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;SACzB;QAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doSpJsFetch.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"doSpJsFetch.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAYH,OAAO,EAAE,cAAc,EAA0B,MAAM,kBAAkB,CAAC;AAG1E,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAK,OAAO,CAAC,cAAc,CAAC,CAG7H;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,4BAAwB,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAI,OAAO,CAAC,cAAc,CAAC,CAkE/K"}
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
// import { IFpsErrorObject } from "@mikezimm/fps-core-v7/lib/types/fps-returns/common/IFpsErrorObject"; //./../../pnpjs/Common/IFpsErrorObject";
|
|
8
8
|
import { check4This } from "../../../logic/Links/CheckSearch";
|
|
9
9
|
import { checkDeepProperty } from "../../../logic/Objects/deep";
|
|
10
|
-
import {
|
|
10
|
+
import { makeAbsoluteUrl } from "../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
11
11
|
import { getSiteCollectionUrlFromLink } from "../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
12
|
+
import { CurrentHostName } from "../source-props/WindowLocationConstants";
|
|
12
13
|
import { check4ThisFPSDigestValue } from "./helpers/check4ThisFPSDigestValue";
|
|
13
14
|
import { createEmptyFetchReturn } from "./IJSFetchReturn";
|
|
14
15
|
import { addCatchResponseError, addUnknownFetchError } from "./SpFetchCommon";
|
|
@@ -23,10 +24,10 @@ export async function doSpJsFetch(fetchAPI, digestValue, headerContentType) {
|
|
|
23
24
|
*/
|
|
24
25
|
export async function doSpJsFetchOrPost(fetchAPI, method = `GET`, digestValue, headerContentType, body) {
|
|
25
26
|
// Automatically added this because API's usually need full url.
|
|
26
|
-
if (fetchAPI.indexOf(
|
|
27
|
+
if (fetchAPI.indexOf(CurrentHostName) === 0)
|
|
27
28
|
fetchAPI = `https://${fetchAPI}`;
|
|
28
29
|
// Always make sure this is an absolute url by running through this first. Note, if the previous line executes, it should be good then.
|
|
29
|
-
fetchAPI =
|
|
30
|
+
fetchAPI = makeAbsoluteUrl(fetchAPI);
|
|
30
31
|
// Added to just check if digestValue exists and if so, use it here
|
|
31
32
|
if (!digestValue)
|
|
32
33
|
digestValue = check4ThisFPSDigestValue(getSiteCollectionUrlFromLink(fetchAPI));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doSpJsFetch.js","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAGH,kFAAkF;AAClF,0FAA0F;AAC1F,iJAAiJ;AACjJ,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE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AM,IAAK,QAAQ,CAAC,OAAO,CAAC,8BAA8B,CAAC,GAAG,CAAC,EAAG;aAElE;iBAAM;gBACL,IAAK,UAAU,KAAK,IAAI,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAG;oBACzE,qFAAqF;oBACrF,0FAA0F;iBAC3F;qBAAM;oBACL,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;iBAChD;aACF;YACD,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC;YAClB,OAAO,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;YACzC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;YACnC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;YAC3B,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI;gBAAG,OAAO,CAAC,GAAG,CAAE,sDAAsD,EAAE,OAAO,CAAE,CAAC;SAEzI;aAAM;YACL,OAAO,GAAG,MAAM,qBAAqB,CAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,CAAE,CAAC;SAEzE;QAED,OAAO,OAAO,CAAC;KAEhB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,oBAAoB,CAAE,OAAO,EAAE,CAAC,CAAE,CAAC;KAE3C;AAEH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doSpJsFileFetch.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsFileFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"doSpJsFileFetch.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsFileFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAiBH,OAAO,EAAE,cAAc,EAA0B,MAAM,kBAAkB,CAAC;AAG1E;;;;;;;GAOG;AAEH,wBAAsB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAI,OAAO,CAAC,cAAc,CAAC,CAG5I;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,4BAAwB,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAK,OAAO,CAAC,cAAc,CAAC,CAwEpL"}
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
// import { addCatchResponseError, addUnknownFetchError } from "./SpFetchCommon";
|
|
12
12
|
import { check4This } from "../../../logic/Links/CheckSearch";
|
|
13
13
|
import { checkDeepProperty } from "../../../logic/Objects/deep";
|
|
14
|
-
import {
|
|
14
|
+
import { makeAbsoluteUrl } from "../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
15
15
|
import { getSiteCollectionUrlFromLink } from "../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
16
|
+
import { CurrentHostName } from "../source-props/WindowLocationConstants";
|
|
16
17
|
import { check4ThisFPSDigestValue } from "./helpers/check4ThisFPSDigestValue";
|
|
17
18
|
import { createEmptyFetchReturn } from "./IJSFetchReturn";
|
|
18
19
|
import { addCatchResponseError, addUnknownFetchError } from "./SpFetchCommon";
|
|
@@ -36,10 +37,10 @@ export async function doSpJsFileFetch(fetchAPI, digestValue, headerContentType,
|
|
|
36
37
|
*/
|
|
37
38
|
export async function doSpJsFileFetchOrPost(fetchAPI, method = `GET`, digestValue, headerContentType, blob) {
|
|
38
39
|
// Automatically added this because API's usually need full url.
|
|
39
|
-
if (fetchAPI.indexOf(
|
|
40
|
+
if (fetchAPI.indexOf(CurrentHostName) === 0)
|
|
40
41
|
fetchAPI = `https://${fetchAPI}`;
|
|
41
42
|
// Always make sure this is an absolute url by running through this first. Note, if the previous line executes, it should be good then.
|
|
42
|
-
fetchAPI =
|
|
43
|
+
fetchAPI = makeAbsoluteUrl(fetchAPI);
|
|
43
44
|
// Added to just check if digestValue exists and if so, use it here
|
|
44
45
|
if (!digestValue)
|
|
45
46
|
digestValue = check4ThisFPSDigestValue(getSiteCollectionUrlFromLink(fetchAPI));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doSpJsFileFetch.js","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsFileFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAGH,kFAAkF;AAClF,oFAAoF;AACpF,qHAAqH;AACrH,uHAAuH;AACvH,qIAAqI;AACrI,6EAA6E;AAC7E,iFAAiF;AAEjF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"doSpJsFileFetch.js","sourceRoot":"","sources":["../../../../src/components/molecules/SpHttp/doSpJsFileFetch.ts"],"names":[],"mappings":"AACA;;;GAGG;AAGH,kFAAkF;AAClF,oFAAoF;AACpF,qHAAqH;AACrH,uHAAuH;AACvH,qIAAqI;AACrI,6EAA6E;AAC7E,iFAAiF;AAEjF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAkB,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE9E;;;;;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AAG,OAAO,CAAC,GAAG,CAAE,yDAAyD,EAAE,OAAO,CAAE,CAAC;SAE5I;aAAM;YACL,OAAO,GAAG,MAAM,qBAAqB,CAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,CAAE,CAAC;SAEzE;QAED,OAAO,OAAO,CAAC;KAEhB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,oBAAoB,CAAE,OAAO,EAAE,CAAC,CAAE,CAAC;KAE3C;AAEH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check4ThisFPSDigestValue.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check4ThisFPSDigestValue.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.ts"],"names":[],"mappings":"AASA;;;;;;;;;GASG;AAEH,wBAAgB,wBAAwB,CAAE,WAAW,EAAE,MAAM,GAAI,MAAM,CA8DtE"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AnalyticsWebAbsolute, SecureCDNalyticsWebAbsolute } from "../../../../restAPIs/logging/interfaces/constants";
|
|
2
2
|
import { getCurrentFPSDigest } from "./getCurrentFPSDigest";
|
|
3
3
|
import { msPer30Min, } from "../../../../logic/Time/constants";
|
|
4
|
-
import {
|
|
4
|
+
import { CurrentSiteAbsolute } from "../../source-props/WindowLocationConstants";
|
|
5
|
+
import { makeAbsoluteUrl } from "../../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
5
6
|
/**
|
|
6
7
|
* If you need to use digestValues, such as in SE or certain calls,
|
|
7
8
|
* It's best to call this during the onInit because you have the context.
|
|
@@ -16,19 +17,41 @@ export function check4ThisFPSDigestValue(absoluteUrl) {
|
|
|
16
17
|
const startTime = Date.now();
|
|
17
18
|
let fpsWindowProps = getCurrentFPSDigest();
|
|
18
19
|
let siteDigestValue = '';
|
|
19
|
-
absoluteUrl =
|
|
20
|
-
|
|
20
|
+
absoluteUrl = makeAbsoluteUrl(absoluteUrl);
|
|
21
|
+
/**
|
|
22
|
+
* CHANGE: https://github.com/mikezimm/pivottiles7/issues/421
|
|
23
|
+
* was if ( absoluteUrl === AnalyticsWebAbsolute ) {
|
|
24
|
+
* Original was not setting the main props on FPSDigest
|
|
25
|
+
*/
|
|
26
|
+
if (AnalyticsWebAbsolute.indexOf(absoluteUrl) > -1) {
|
|
21
27
|
if (fpsWindowProps.AnalyticsWeb)
|
|
22
28
|
siteDigestValue = fpsWindowProps.AnalyticsWeb.digestValue;
|
|
23
29
|
// clear and get again of > 30 minutes old
|
|
24
30
|
if (startTime - fpsWindowProps.AnalyticsWeb.time > msPer30Min)
|
|
25
31
|
siteDigestValue = '';
|
|
32
|
+
/**
|
|
33
|
+
* CHANGE: https://github.com/mikezimm/pivottiles7/issues/421
|
|
34
|
+
* was else if ( absoluteUrl === SecureCDNalyticsWebAbsolute ) {
|
|
35
|
+
* Original was not setting the main props on FPSDigest
|
|
36
|
+
*/
|
|
26
37
|
}
|
|
27
|
-
else if (absoluteUrl
|
|
38
|
+
else if (SecureCDNalyticsWebAbsolute.indexOf(absoluteUrl) > -1) {
|
|
28
39
|
if (fpsWindowProps.SecureCDNAlyticsWeb)
|
|
29
40
|
siteDigestValue = fpsWindowProps.SecureCDNAlyticsWeb.digestValue;
|
|
30
41
|
// clear and get again of > 30 minutes old
|
|
31
|
-
if (startTime - fpsWindowProps.
|
|
42
|
+
if (startTime - fpsWindowProps.SecureCDNAlyticsWeb.time > msPer30Min)
|
|
43
|
+
siteDigestValue = '';
|
|
44
|
+
/**
|
|
45
|
+
* CHANGE: https://github.com/mikezimm/pivottiles7/issues/421
|
|
46
|
+
* was else if ( absoluteUrl === CurrentSiteAbsolute ) {
|
|
47
|
+
* Original was not setting the main props on FPSDigest
|
|
48
|
+
*/
|
|
49
|
+
}
|
|
50
|
+
else if (CurrentSiteAbsolute.indexOf(absoluteUrl) > -1) {
|
|
51
|
+
if (fpsWindowProps.CurrentSite)
|
|
52
|
+
siteDigestValue = fpsWindowProps.CurrentSite.digestValue;
|
|
53
|
+
// clear and get again of > 30 minutes old
|
|
54
|
+
if (startTime - fpsWindowProps.CurrentSite.time > msPer30Min)
|
|
32
55
|
siteDigestValue = '';
|
|
33
56
|
}
|
|
34
57
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check4ThisFPSDigestValue.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"check4ThisFPSDigestValue.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACtH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,UAAU,GAAG,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AAGzF;;;;;;;;;GASG;AAEH,MAAM,UAAU,wBAAwB,CAAE,WAAmB;IAE3D,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,IAAI,cAAc,GAAqB,mBAAmB,EAAE,CAAC;IAC7D,IAAI,eAAe,GAAG,EAAE,CAAC;IAEzB,WAAW,GAAG,eAAe,CAAE,WAAW,CAAE,CAAC;IAE7C;;;;OAIG;IAEH,IAAK,oBAAoB,CAAC,OAAO,CAAE,WAAW,CAAE,GAAG,CAAC,CAAC,EAAG;QACtD,IAAK,cAAc,CAAC,YAAY;YAAG,eAAe,GAAG,cAAc,CAAC,YAAY,CAAC,WAAW,CAAC;QAE7F,0CAA0C;QAC1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c,CAAC,KAAK,CAAC,GAAG,CAAE,IAAI,CAAC,EAAE;gBAC/B,IAAK,CAAC,eAAe,IAAI,IAAI,CAAC,GAAG,KAAK,WAAW;oBAAG,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC;YACzF,CAAC,CAAC,CAAC;SACJ;KACF;IAED,OAAO,eAAe,CAAC;AAEzB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AnalyticsWebAbsolute, SecureCDNalyticsWebAbsolute } from "../../../../restAPIs/logging/interfaces/constants";
|
|
2
|
+
import { CurrentSiteAbsolute } from "../../source-props/WindowLocationConstants";
|
|
3
3
|
export function getCurrentFPSDigest() {
|
|
4
4
|
const thisWindow = window;
|
|
5
5
|
if (!thisWindow.FPSDigestValues) {
|
|
6
6
|
let fpsWindowProps = {
|
|
7
|
-
AnalyticsWeb: { url:
|
|
8
|
-
CurrentSite: { url:
|
|
9
|
-
SecureCDNAlyticsWeb: { url:
|
|
7
|
+
AnalyticsWeb: { url: AnalyticsWebAbsolute, digestValue: '', time: 0 },
|
|
8
|
+
CurrentSite: { url: CurrentSiteAbsolute, digestValue: '', time: 0 },
|
|
9
|
+
SecureCDNAlyticsWeb: { url: SecureCDNalyticsWebAbsolute, digestValue: '', time: 0 },
|
|
10
10
|
sites: [],
|
|
11
11
|
};
|
|
12
12
|
thisWindow.FPSDigestValues = fpsWindowProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentFPSDigest.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/getCurrentFPSDigest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getCurrentFPSDigest.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/helpers/getCurrentFPSDigest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACtH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEjF,MAAM,UAAU,mBAAmB;IAEjC,MAAM,UAAU,GAAe,MAAa,CAAC;IAC7C,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE;QAE/B,IAAI,cAAc,GAAqB;YACrC,YAAY,EAAE,EAAE,GAAG,EAAE,oBAAoB,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;YACrE,WAAW,EAAE,EAAE,GAAG,EAAE,mBAAmB,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;YACnE,mBAAmB,EAAE,EAAE,GAAG,EAAE,2BAA2B,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;YACnF,KAAK,EAAE,EAAE;SACV,CAAC;QAEF,UAAU,CAAC,eAAe,GAAG,cAAc,CAAC;KAE7C;IAED,OAAO,UAAU,CAAC,eAAe,CAAC;AACpC,CAAC"}
|
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { ISeriesSortObject } from "../../../logic/Arrays/sorting/Interfaces";
|
|
5
5
|
import { IPerformanceSettings } from "../Performance/IPerformanceSettings";
|
|
6
|
-
export declare const CurrentHost: string;
|
|
7
|
-
export declare const CurrentHostLC: string;
|
|
8
|
-
export declare const CurrentTenant: string;
|
|
9
|
-
export declare const TenantUrlOrigin: string;
|
|
10
6
|
export interface IMinSourceFetchProps {
|
|
11
7
|
refreshId: string;
|
|
12
8
|
tenant: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMinSourceFetchProps.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/IMinSourceFetchProps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IMinSourceFetchProps.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/IMinSourceFetchProps.ts"],"names":[],"mappings":"AAUA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAE5B,mBAAmB,CAAC,EAAE,oBAAoB,CAAC;CAE5C"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
// window.location properties
|
|
2
|
+
// host: "tenant.sharepoint.com"
|
|
3
|
+
// hostname: "tenant.sharepoint.com"
|
|
4
|
+
// href: "https://tenant.sharepoint.com/sites/WebPartDev/SitePages/ECStorage.aspx?debug=true&noredir=true&debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js&allowOtherSites=true&scenario=dev"
|
|
5
|
+
// origin: "https://tenant.sharepoint.com"
|
|
6
|
+
// pathname: "/sites/WebPartDev/SitePages/ECStorage.aspx"
|
|
7
|
+
// protocol: "https:"
|
|
8
|
+
// search: "?debug=true&noredir=true&debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js&allowOtherSites=true&scenario=dev"
|
|
9
|
+
export {};
|
|
8
10
|
//# sourceMappingURL=IMinSourceFetchProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMinSourceFetchProps.js","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/IMinSourceFetchProps.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"IMinSourceFetchProps.js","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/IMinSourceFetchProps.ts"],"names":[],"mappings":"AACA,6BAA6B;AAC7B,gCAAgC;AAChC,oCAAoC;AACpC,oNAAoN;AACpN,0CAA0C;AAC1C,yDAAyD;AACzD,qBAAqB;AACrB,+IAA+I"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* 2024-09-06: Migrated from same folder fps-library-v2\src\pnpjs\Lists/createItems/createListSource
|
|
3
3
|
*/
|
|
4
4
|
import { ISourceProps } from "../ISourceProps";
|
|
5
|
+
export declare function createListSourceWithDigest(webUrl: string, listTitle: string, webRelativeLink: string): Promise<ISourceProps>;
|
|
5
6
|
/**
|
|
6
7
|
* NOTE: Be sure to remove List from the EntityTypeName if using the ListPicker component:
|
|
7
8
|
* this.properties.listPickerValue.replace(/List([^L]*)$/, '');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createListSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/Lists/createListSource.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"createListSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/Lists/createListSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,wBAAsB,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAMlI;AACD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,YAAY,CAWzG;AAED,eAAO,MAAM,iBAAiB,EAAE,YAyB/B,CAAC"}
|
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
* 2024-09-06: Migrated from same folder fps-library-v2\src\pnpjs\Lists/createItems/createListSource
|
|
3
3
|
*/
|
|
4
4
|
import { makeid } from "../../../../logic/Strings/guids";
|
|
5
|
+
import { getThisFPSDigestValueFromUrl } from "../../SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl";
|
|
5
6
|
import { createSeriesSort } from "../createOrderBy";
|
|
6
|
-
import { CurrentTenant } from "../
|
|
7
|
+
import { CurrentTenant } from "../WindowLocationConstants";
|
|
7
8
|
import { updateSourcePerListPickerName } from "./updateSourcePerListPickerName";
|
|
9
|
+
import { getSiteCollectionUrlFromLink } from "../../../../logic/Strings/getSiteCollectionUrlFromLink";
|
|
10
|
+
export async function createListSourceWithDigest(webUrl, listTitle, webRelativeLink) {
|
|
11
|
+
const Source = createListSource(webUrl, listTitle, webRelativeLink);
|
|
12
|
+
Source.digestValue = await getThisFPSDigestValueFromUrl(this._webAbsoluteUrl);
|
|
13
|
+
// Opted against this option since it may cause other issues... just adding to FPSFetchStatus
|
|
14
|
+
// Source.webRelativeLink = webRelativeLink.indexOf('/') === 0 ? webRelativeLink : `/${webRelativeLink}`;
|
|
15
|
+
return Source;
|
|
16
|
+
}
|
|
8
17
|
/**
|
|
9
18
|
* NOTE: Be sure to remove List from the EntityTypeName if using the ListPicker component:
|
|
10
19
|
* this.properties.listPickerValue.replace(/List([^L]*)$/, '');
|
|
@@ -17,13 +26,13 @@ import { updateSourcePerListPickerName } from "./updateSourcePerListPickerName";
|
|
|
17
26
|
export function createListSource(webUrl, listTitle, webRelativeLink) {
|
|
18
27
|
const Source = DefaultListSource;
|
|
19
28
|
Source.webUrl = webUrl;
|
|
20
|
-
Source.absoluteWebUrl = webUrl
|
|
29
|
+
Source.absoluteWebUrl = getSiteCollectionUrlFromLink(webUrl);
|
|
21
30
|
Source.listTitle = listTitle;
|
|
22
31
|
Source.webRelativeLink = webRelativeLink;
|
|
23
32
|
updateSourcePerListPickerName(listTitle, webUrl, Source);
|
|
24
33
|
// Opted against this option since it may cause other issues... just adding to FPSFetchStatus
|
|
25
34
|
// Source.webRelativeLink = webRelativeLink.indexOf('/') === 0 ? webRelativeLink : `/${webRelativeLink}`;
|
|
26
|
-
return Source;
|
|
35
|
+
return JSON.parse(JSON.stringify(Source));
|
|
27
36
|
}
|
|
28
37
|
export const DefaultListSource = {
|
|
29
38
|
refreshId: makeid(5),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createListSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/Lists/createListSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"createListSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/Lists/createListSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gEAAgE,CAAC;AAC9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAiB,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AAEtG,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,MAAc,EAAE,SAAiB,EAAE,eAAuB;IACzG,MAAM,MAAM,GAAiB,gBAAgB,CAAE,MAAM,EAAE,SAAS,EAAE,eAAe,CAAE,CAAC;IACpF,MAAM,CAAC,WAAW,GAAG,MAAM,4BAA4B,CAAE,IAAI,CAAC,eAAe,CAAE,CAAC;IAChF,6FAA6F;IAC7F,yGAAyG;I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,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAG;CAEnG,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 2024-09-06: Migrated from same folder fps-library-v2\src\pnpjs\SourceItems
|
|
3
3
|
*/
|
|
4
4
|
import { makeid } from "../../../../logic/Strings/guids";
|
|
5
|
-
import { CurrentTenant } from "../
|
|
5
|
+
import { CurrentTenant } from "../WindowLocationConstants";
|
|
6
6
|
import { ModernSitePagesColumns, ModernSitePagesSearch, ExtraFetchModernPage } from "./ModernSitePagesColumns";
|
|
7
7
|
export const NewsLinksSource = {
|
|
8
8
|
refreshId: makeid(5),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewsLinksSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsLinksSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"NewsLinksSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsLinksSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAE/G,MAAM,CAAC,MAAM,eAAe,GAAiB;IAC3C,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IACpB,GAAG,EAAE,MAAM;IACX,OAAO,EAAE,MAAM;IACf,cAAc,EAAE,CAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAE;IAC1C,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,WAAW;IAC5B,YAAY,EAAE,EAAE;IAChB,gBAAgB,EAAE,EAAE;IACpB,OAAO,EAAE,sBAAsB;IAC/B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,CAAC,GAAG,sBAAsB,CAAC;IAExC,YAAY,EAAE,oBAAoB;IAClC,QAAQ,EAAE,IAAI;IACd,gDAAgD;IAChD,gHAAgH;IAChH,mGAAmG;IACnG,0FAA0F;IAC1F,UAAU,EAAE,qDAAqD;IACjE,UAAU,EAAE,EAAE;IACd,gBAAgB,EAAE,EAAE;IACpB,UAAU,EAAE,GAAG;IACf,yCAAyC;IACzC,OAAO,EAAE;QACP,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,KAAK;QACZ,GAAG,EAAE,IAAI;KACV;IACD,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,mBAAmB,EAAE,EAAG,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAG;CACxG,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 2024-09-06: Migrated from same folder fps-library-v2\src\pnpjs\SourceItems
|
|
3
3
|
*/
|
|
4
4
|
import { makeid } from "../../../../logic/Strings/guids";
|
|
5
|
-
import { CurrentTenant } from "../
|
|
5
|
+
import { CurrentTenant } from "../WindowLocationConstants";
|
|
6
6
|
import { ModernSitePagesColumns, ModernSitePagesSearch, ExtraFetchModernPage } from "./ModernSitePagesColumns";
|
|
7
7
|
export const NewsSource = {
|
|
8
8
|
refreshId: makeid(5),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewsSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"NewsSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/NewsSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAE/G,MAAM,CAAC,MAAM,UAAU,GAAiB;IACtC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IACpB,GAAG,EAAE,MAAM;IACX,OAAO,EAAE,MAAM;IACf,cAAc,EAAE,CAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAE;IAC1C,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,WAAW;IAC5B,YAAY,EAAE,EAAE;IAChB,gBAAgB,EAAE,EAAE;IACpB,OAAO,EAAE,sBAAsB;IAC/B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,CAAC,GAAG,sBAAsB,CAAC;IAExC,YAAY,EAAE,oBAAoB;IAClC,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,oBAAoB;IAChC,UAAU,EAAE,EAAE;IACd,gBAAgB,EAAE,EAAE;IACpB,UAAU,EAAE,GAAG;IACf,yCAAyC;IACzC,OAAO,EAAE;QACP,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,KAAK;QACZ,GAAG,EAAE,IAAI;KACV;IACD,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,mBAAmB,EAAE,EAAG,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAG;CACnG,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 2024-09-06: Migrated from same folder fps-library-v2\src\pnpjs\SourceItems
|
|
3
3
|
*/
|
|
4
4
|
import { StandardMetaViewProps } from "../ISourceProps";
|
|
5
|
-
import { CurrentTenant } from "../
|
|
5
|
+
import { CurrentTenant } from "../WindowLocationConstants";
|
|
6
6
|
import { ModernSitePagesColumns, ModernSitePagesSearch, ExtraFetchModernPage } from "./ModernSitePagesColumns";
|
|
7
7
|
import { makeid } from "../../../../logic/Strings/guids";
|
|
8
8
|
// Set webUrl and EasyPageOverflowTab string | undefined to solve lint errors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SitePagesSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/SitePagesSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAgB,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SitePagesSource.js","sourceRoot":"","sources":["../../../../../src/components/molecules/source-props/SitePages/SitePagesSource.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAgB,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC/G,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAEzD,6EAA6E;AAE7E,MAAM,CAAC,MAAM,eAAe,GAAiB;IAC3C,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IACpB,GAAG,EAAE,OAAO;IACZ,OAAO,EAAE,OAAO;IAChB,cAAc,EAAE,CAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAE;IAC1C,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,WAAW;IAC5B,YAAY,EAAE,EAAE;IAChB,gBAAgB,EAAE,EAAE;IAEpB,SAAS,EAAE,CAAE,OAAO,EAAG,aAAa,CAAE;IACtC,SAAS,EAAE,CAAE,GAAG,qBAAqB,EAAG;IAExC,OAAO,EAAE,sBAAsB;IAC/B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,CAAC,GAAG,sBAAsB,CAAC;IAExC,YAAY,EAAE,oBAAoB;IAClC,QAAQ,EAAE,IAAI;IACd,+GAA+G;IAC/G,UAAU,EAAE,2EAA2E;IACvF,UAAU,EAAE,EAAE;IACd,gBAAgB,EAAE,EAAE;IACpB,UAAU,EAAE,GAAG;IACf,OAAO,EAAE;QACP,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,KAAK;QACZ,GAAG,EAAE,IAAI;KACV;IACD,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,mBAAmB,EAAE,EAAG,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAG;CACxG,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const CurrentProtocol: string;
|
|
2
|
+
export declare const CurrentProtocolLC: string;
|
|
3
|
+
export declare const CurrentTenant: string;
|
|
4
|
+
export declare const CurrentTenantLC: string;
|
|
5
|
+
export declare const CurrentHost: string;
|
|
6
|
+
export declare const CurrentHostLC: string;
|
|
7
|
+
export declare const CurrentHostName: string;
|
|
8
|
+
export declare const CurrentHostNameLC: string;
|
|
9
|
+
export declare const CurrentOrigin: string;
|
|
10
|
+
export declare const CurrentOriginLC: string;
|
|
11
|
+
export declare const CurrentSiteAbsolute: string;
|
|
12
|
+
export declare const CurrentSiteAbsoluteLC: string;
|
|
13
|
+
export declare const CurrentPathname: string;
|
|
14
|
+
export declare const CurrentPathnameLC: string;
|
|
15
|
+
export declare const CurrentHref: string;
|
|
16
|
+
export declare const CurrentHrefLC: string;
|
|
17
|
+
/**
|
|
18
|
+
* Benefits of Centralizing window.location.XYZ ( Per ChatGPT )
|
|
19
|
+
1. Performance Optimization
|
|
20
|
+
Accessing window.location.origin involves a DOM interaction each time it's used.
|
|
21
|
+
By defining a const, you access a cached value, which is faster than repeatedly querying the DOM.
|
|
22
|
+
|
|
23
|
+
2. Consistency
|
|
24
|
+
If the origin is calculated once and reused across your app, you ensure all modules reference the same value,
|
|
25
|
+
preventing discrepancies caused by runtime changes.
|
|
26
|
+
|
|
27
|
+
3. Minification
|
|
28
|
+
During minification, a single const ensures the variable name is shortened across your app (e.g., CurrentOrigin might become a).
|
|
29
|
+
If you repeatedly inline window.location.origin, the minifier must keep the full property reference each time (e.g., window.location.origin).
|
|
30
|
+
|
|
31
|
+
4. Maintainability
|
|
32
|
+
Centralizing makes it easier to update the logic if your requirements change (e.g., including a fallback mechanism).
|
|
33
|
+
*/
|
|
34
|
+
//# sourceMappingURL=WindowLocationConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WindowLocationConstants.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/source-props/WindowLocationConstants.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,eAAe,EAAE,MAAsC,CAAC;AACrE,eAAO,MAAM,iBAAiB,EAAE,MAA4C,CAAC;AAG7E,eAAO,MAAM,aAAa,EAAE,MAAiE,CAAC;AAC9F,eAAO,MAAM,eAAe,EAAE,MAA+C,CAAC;AAG9E,eAAO,MAAM,WAAW,EAAE,MAAkC,CAAC;AAC7D,eAAO,MAAM,aAAa,EAAE,MAA6C,CAAC;AAG1E,eAAO,MAAM,eAAe,EAAE,MAAsC,CAAC;AACrE,eAAO,MAAM,iBAAiB,EAAE,MAAiD,CAAC;AAGlF,eAAO,MAAM,aAAa,EAAE,MAAoC,CAAC;AACjE,eAAO,MAAM,eAAe,EAAE,MAA0C,CAAC;AAGzE,eAAO,MAAM,mBAAmB,QAA0D,CAAC;AAC3F,eAAO,MAAM,qBAAqB,EAAE,MAAqD,CAAC;AAG1F,eAAO,MAAM,eAAe,EAAE,MAAsC,CAAC;AACrE,eAAO,MAAM,iBAAiB,EAAE,MAAiD,CAAC;AAGlF,eAAO,MAAM,WAAW,EAAE,MAAkC,CAAC;AAC7D,eAAO,MAAM,aAAa,EAAE,MAA6C,CAAC;AAE1E;;;;;;;;;;;;;;;;GAgBG"}
|