@mikezimm/fps-library-v2 2.0.59 → 2.0.60

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.
Files changed (115) hide show
  1. package/lib/components/molecules/FPSTiles/functions/HubsSubs/buildFPSTileItems.d.ts +1 -1
  2. package/lib/components/molecules/FPSTiles/functions/HubsSubs/buildFPSTileItems.d.ts.map +1 -1
  3. package/lib/components/molecules/FPSTiles/functions/HubsSubs/makeFPSSubHubTiles.d.ts +1 -1
  4. package/lib/components/molecules/FPSTiles/functions/HubsSubs/makeFPSSubHubTiles.d.ts.map +1 -1
  5. package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.d.ts +2 -2
  6. package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.d.ts.map +1 -1
  7. package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.js +2 -2
  8. package/lib/components/molecules/FPSTiles/functions/getFPSHubTiles.js.map +1 -1
  9. package/lib/components/molecules/FPSTiles/functions/getFPSItemTiles.d.ts +1 -1
  10. package/lib/components/molecules/FPSTiles/functions/getFPSItemTiles.d.ts.map +1 -1
  11. package/lib/components/molecules/FPSTiles/functions/getFPSItemTiles.js +4 -3
  12. package/lib/components/molecules/FPSTiles/functions/getFPSItemTiles.js.map +1 -1
  13. package/lib/components/molecules/FPSTiles/functions/getFPSLinkList.d.ts +1 -1
  14. package/lib/components/molecules/FPSTiles/functions/getFPSLinkList.d.ts.map +1 -1
  15. package/lib/components/molecules/FPSTiles/functions/getFPSLinkList.js +4 -3
  16. package/lib/components/molecules/FPSTiles/functions/getFPSLinkList.js.map +1 -1
  17. package/lib/components/molecules/FPSTiles/functions/getFPSLinkListMultiple.js +2 -2
  18. package/lib/components/molecules/FPSTiles/functions/getFPSLinkListMultiple.js.map +1 -1
  19. package/lib/components/molecules/FPSTiles/functions/getFPSListTiles.d.ts +1 -1
  20. package/lib/components/molecules/FPSTiles/functions/getFPSListTiles.d.ts.map +1 -1
  21. package/lib/components/molecules/FPSTiles/functions/getFPSListTiles.js +7 -3
  22. package/lib/components/molecules/FPSTiles/functions/getFPSListTiles.js.map +1 -1
  23. package/lib/components/molecules/FPSTiles/functions/getFPSWebTiles.d.ts +1 -1
  24. package/lib/components/molecules/FPSTiles/functions/getFPSWebTiles.d.ts.map +1 -1
  25. package/lib/components/molecules/FPSTiles/functions/getFPSWebTiles.js +2 -2
  26. package/lib/components/molecules/FPSTiles/functions/getFPSWebTiles.js.map +1 -1
  27. package/lib/components/molecules/FieldPanel/components/fetch/funcions.d.ts.map +1 -1
  28. package/lib/components/molecules/FieldPanel/components/fetch/funcions.js.map +1 -1
  29. package/lib/components/molecules/ModernPages/ModernPages.js +5 -5
  30. package/lib/components/molecules/ModernPages/ModernPages.js.map +1 -1
  31. package/lib/components/molecules/ModernPages/SinglePage/SingleModernPage.js +3 -3
  32. package/lib/components/molecules/ModernPages/SinglePage/SingleModernPage.js.map +1 -1
  33. package/lib/components/molecules/ModernPages/SinglePage/getModernContent.d.ts +13 -1
  34. package/lib/components/molecules/ModernPages/SinglePage/getModernContent.d.ts.map +1 -1
  35. package/lib/components/molecules/ModernPages/SinglePage/getModernContent.js +18 -6
  36. package/lib/components/molecules/ModernPages/SinglePage/getModernContent.js.map +1 -1
  37. package/lib/components/molecules/ModernPages/SinglePage/processModernContent.d.ts +0 -29
  38. package/lib/components/molecules/ModernPages/SinglePage/processModernContent.d.ts.map +1 -1
  39. package/lib/components/molecules/ModernPages/SinglePage/processModernContent.js +194 -204
  40. package/lib/components/molecules/ModernPages/SinglePage/processModernContent.js.map +1 -1
  41. package/lib/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.d.ts +7 -5
  42. package/lib/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.d.ts.map +1 -1
  43. package/lib/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.js +3 -1
  44. package/lib/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.js.map +1 -1
  45. package/lib/components/molecules/SpHttp/HubSiteData/interface.d.ts +17 -6
  46. package/lib/components/molecules/SpHttp/HubSiteData/interface.d.ts.map +1 -1
  47. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.d.ts +10 -13
  48. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.d.ts.map +1 -1
  49. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.js +64 -39
  50. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsSubs.js.map +1 -1
  51. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.d.ts +23 -15
  52. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.d.ts.map +1 -1
  53. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.js +81 -63
  54. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMyHubsites.js.map +1 -1
  55. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.d.ts +25 -3
  56. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.d.ts.map +1 -1
  57. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.js +58 -44
  58. package/lib/components/molecules/SpHttp/HubsSubs/fetches/fetchMySubsites.js.map +1 -1
  59. package/lib/components/molecules/SpHttp/HubsSubs/functions/cleanSearchedWebs.d.ts +11 -6
  60. package/lib/components/molecules/SpHttp/HubsSubs/functions/cleanSearchedWebs.d.ts.map +1 -1
  61. package/lib/components/molecules/SpHttp/HubsSubs/functions/cleanSearchedWebs.js +44 -38
  62. package/lib/components/molecules/SpHttp/HubsSubs/functions/cleanSearchedWebs.js.map +1 -1
  63. package/lib/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.d.ts +13 -3
  64. package/lib/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.d.ts.map +1 -1
  65. package/lib/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.js +56 -41
  66. package/lib/components/molecules/SpHttp/HubsSubs/functions/createHubSubSourceProps.js.map +1 -1
  67. package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.d.ts +27 -13
  68. package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.d.ts.map +1 -1
  69. package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.js +82 -73
  70. package/lib/components/molecules/SpHttp/HubsSubs/functions/processHubSubResults.js.map +1 -1
  71. package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.d.ts +11 -30
  72. package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.d.ts.map +1 -1
  73. package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.js +56 -19
  74. package/lib/components/molecules/SpHttp/HubsSubs/getHubAssocSites.js.map +1 -1
  75. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.d.ts +11 -20
  76. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.d.ts.map +1 -1
  77. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.js +35 -5
  78. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSHubSiteDataDocsApi.js.map +1 -1
  79. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSHubSitesApi.d.ts +13 -18
  80. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSHubSitesApi.d.ts.map +1 -1
  81. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSHubSitesApi.js +31 -1
  82. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSHubSitesApi.js.map +1 -1
  83. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSSubsFilteredItem.d.ts +13 -13
  84. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSSubsFilteredItem.d.ts.map +1 -1
  85. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSSubsFilteredItem.js +31 -1
  86. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSSubsFilteredItem.js.map +1 -1
  87. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSSubsSearchCleanItem.d.ts +13 -22
  88. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSSubsSearchCleanItem.d.ts.map +1 -1
  89. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSSubsSearchCleanItem.js +40 -1
  90. package/lib/components/molecules/SpHttp/HubsSubs/interfaces/IFPSSubsSearchCleanItem.js.map +1 -1
  91. package/lib/components/molecules/SpHttp/functions/findNavNodes.d.ts +1 -1
  92. package/lib/components/molecules/SpHttp/functions/findNavNodes.d.ts.map +1 -1
  93. package/lib/components/molecules/SpHttp/functions/findNavNodes.js +1 -1
  94. package/lib/components/molecules/SpHttp/functions/findNavNodes.js.map +1 -1
  95. package/lib/pnpjs/FieldAsXML/FetchItem.d.ts +5 -1
  96. package/lib/pnpjs/FieldAsXML/FetchItem.d.ts.map +1 -1
  97. package/lib/pnpjs/FieldAsXML/FetchItem.js +5 -1
  98. package/lib/pnpjs/FieldAsXML/FetchItem.js.map +1 -1
  99. package/lib/pnpjs/FieldAsXML/FetchPage.d.ts +5 -1
  100. package/lib/pnpjs/FieldAsXML/FetchPage.d.ts.map +1 -1
  101. package/lib/pnpjs/FieldAsXML/FetchPage.js +7 -3
  102. package/lib/pnpjs/FieldAsXML/FetchPage.js.map +1 -1
  103. package/lib/pnpjs/Lists/getList/getSourceList.js.map +1 -1
  104. package/lib/pnpjs/Lists/getList/getWebLists.d.ts +3 -0
  105. package/lib/pnpjs/Lists/getList/getWebLists.d.ts.map +1 -1
  106. package/lib/pnpjs/Lists/getList/getWebLists.js.map +1 -1
  107. package/lib/pnpjs/Navigation/addWebNav.d.ts +5 -1
  108. package/lib/pnpjs/Navigation/addWebNav.d.ts.map +1 -1
  109. package/lib/pnpjs/Navigation/addWebNav.js +5 -1
  110. package/lib/pnpjs/Navigation/addWebNav.js.map +1 -1
  111. package/lib/pnpjs/Navigation/getWebNav.d.ts +9 -5
  112. package/lib/pnpjs/Navigation/getWebNav.d.ts.map +1 -1
  113. package/lib/pnpjs/Navigation/getWebNav.js +5 -1
  114. package/lib/pnpjs/Navigation/getWebNav.js.map +1 -1
  115. package/package.json +2 -2
@@ -3,11 +3,20 @@
3
3
  * Update:: import { ICanvasContentOptions } to '@mikezimm/fps-core-v7/lib/components/molecules/ModernPages/Interfaces/IModernPage;'
4
4
 
5
5
  */
6
- import { fetchFpsPageAsXML } from "../../../../pnpjs/FieldAsXML/FetchPage";
7
- // import { IPagesContent } from '@mikezimm/fps-core-v7/lib/components/molecules/source-props/SitePages/IPagesContent'; // ./../../fpsReferences";
8
- // import { ICanvasContentOptions } from "../../INTERFACES/IModernPage";
9
- // import { ISourcePropsFM, } from '../../DataInterface';
10
- export function getDocWiki(item, source, canvasOptions, showCanvasContent1, callBack) {
6
+ import { fetchFpsPageAsXMLD } from "../../../../pnpjs/FieldAsXML/FetchPage";
7
+ /**
8
+ * 2024-12-31: This was migrated to fps-core-v7 here:
9
+ *
10
+ * import { getDocWikiAPI } from "@mikezimm/fps-core-v7/lib/components/molecules/ModernPages/functions/getDocWikiAPI";
11
+ *
12
+ *
13
+ * @param item
14
+ * @param source
15
+ * @param canvasOptions
16
+ * @param showCanvasContent1
17
+ * @param callBack
18
+ */
19
+ export function getDocWikiD(item, source, canvasOptions, showCanvasContent1, callBack) {
11
20
  if (!item || !item.ID) {
12
21
  console.log('Error getting item wiki');
13
22
  const result = {
@@ -20,7 +29,10 @@ export function getDocWiki(item, source, canvasOptions, showCanvasContent1, call
20
29
  const { webUrl, listTitle, selectThese, expandThese, isModern } = source;
21
30
  const { ID, } = item;
22
31
  // const result: IFpsPageAsXMLReturn = await fetchFpsPageAsXML( webUrl, listTitle, typeof ID === 'string' ? parseInt(ID): ID, selectThese, expandThese, [], isModern, true, true );
23
- fetchFpsPageAsXML(source.fpsSpService, webUrl, listTitle, typeof ID === 'string' ? parseInt(ID) : ID, selectThese, expandThese, [], isModern, true, true).then(result => {
32
+ // fetchFpsPageAsXML( source.fpsSpService, webUrl, listTitle, typeof ID === 'string' ? parseInt(ID): ID, selectThese, expandThese, [], isModern, true, true ).then( result => {
33
+ // getSourceItemsAPI( source, false, true, true, [''])
34
+ fetchFpsPageAsXMLD(source.fpsSpService, webUrl, listTitle, typeof ID === 'string' ? parseInt(ID) : ID, selectThese, expandThese, [], isModern, true, true).then(result => {
35
+ const useItem = result.item ? result.item : result[`items`] ? result[`items`] : null;
24
36
  if (result.status === 'Success' && result.item) {
25
37
  const fetchedItem = result.item;
26
38
  //Added this to fit images into the current width or else the image is full size
@@ -1 +1 @@
1
- {"version":3,"file":"getModernContent.js","sourceRoot":"","sources":["../../../../../src/components/molecules/ModernPages/SinglePage/getModernContent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAeH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAI3E,kJAAkJ;AAClJ,wEAAwE;AAExE,0DAA0D;AAE1D,MAAM,UAAU,UAAU,CAAE,IAAmB,EAAE,MAAoB,EAAE,aAAoC,EAAG,kBAA2B,EAAE,QAAa;IAEtJ,IAAK,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,EAAG;QACvB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG;YACb,UAAU,EAAE,0BAA0B;YACtC,cAAc,EAAE,2CAA2C;SAC5D,CAAC;QAEF,QAAQ,CAAE,MAAM,EAAE,kBAAkB,CAAE,CAAC;KAExC;SAAM;QACL,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QACzE,MAAM,EAAE,EAAE,GAAI,GAAG,IAAI,CAAC;QAEtB,mLAAmL;QACnL,iBAAiB,CAAE,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,S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gBAEH,QAAQ,CAAE,WAAW,EAAE,kBAAkB,CAAE,CAAE;aAE9C;iBAAM;gBACL,IAAI,CAAC,UAAU,GAAG,yBAAyB,CAAC;gBAC5C,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;gBACvC,QAAQ,CAAE,IAAI,EAAE,kBAAkB,CAAE,CAAE;aACvC;QACH,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACb,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAA;QACjD,CAAC,CAAC,CAAC;KACJ;AACH,CAAC"}
1
+ {"version":3,"file":"getModernContent.js","sourceRoot":"","sources":["../../../../../src/components/molecules/ModernPages/SinglePage/getModernContent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAK5E;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,WAAW,CAAE,IAAmB,EAAE,MAAoB,EAAE,aAAoC,EAAG,kBAA2B,EAAE,QAAa;IAEvJ,IAAK,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,EAAG;QACvB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG;YACb,UAAU,EAAE,0BAA0B;YACtC,cAAc,EAAE,2CAA2C;SAC5D,CAAC;QAEF,QAAQ,CAAE,MAAM,EAAE,kBAAkB,CAAE,CAAC;KAExC;SAAM;QACL,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QACzE,MAAM,EAAE,EAAE,GAAI,GAAG,IAAI,CAAC;QAEtB,mLAAmL;QAGnL,+KAA+K;QAC7K,sDAAsD;QACxD,kBAAkB,CAAE,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,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E,OAAO,CAAE,CAAC;qBAAE;yBACxI;wBAAE,WAAW,CAAE,OAAO,CAAE,GAAG,IAAI,CAAE,OAAO,CAAE,CAAC;qBAAE;gBACpD,CAAC,CAAC,CAAC;gBAEH,QAAQ,CAAE,WAAW,EAAE,kBAAkB,CAAE,CAAE;aAE9C;iBAAM;gBACL,IAAI,CAAC,UAAU,GAAG,yBAAyB,CAAC;gBAC5C,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;gBACvC,QAAQ,CAAE,IAAI,EAAE,kBAAkB,CAAE,CAAE;aACvC;QACH,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACb,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAA;QACjD,CAAC,CAAC,CAAC;KACJ;AACH,CAAC"}
@@ -1,30 +1 @@
1
- export declare const imgSrcRegex: RegExp;
2
- /**
3
- * reverseStylesStringQuotes will take the WebPart Styles css and fix all the double quotes so it can actually be parsed.
4
- * Without this, you can not parse the html.
5
- *
6
- * Looks for strings like this:
7
- * "pageInfoStyle":""paddingBottom":"20px","backgroundColor":"#dcdcdc";"borderLeft":"solid 3px #c4c4c4"","bannerStyleChoice":
8
- *
9
- * and converts to strings like this:
10
- * "pageInfoStyle":"'paddingBottom':'20px','backgroundColor':'#dcdcdc';'borderLeft':'solid 3px #c4c4c4'","bannerStyleChoice":
11
- * @param str
12
- * @returns
13
- */
14
- export declare function reverseStylesStringQuotes(str: string): string;
15
- /**
16
- * This will take Modern Page and convert CanvasContent1 into more human readable version.
17
- * The goal is to make it easier to debug and see what is in the HTML replacing all special characters and entites with actual characters.
18
- *
19
- * Example of CanvaseCotnent1: Contents","tocExpanded":true,"minHeadingToShow":"h3","pageInfoStyle":"
20
- * \"paddingBottom\":\"20px\",\"backgroundColor\":\"#dcdcdc\";\"borderLeft\":\"solid 3px #c4c4c4\"",&qu
21
- *
22
- * TO:
23
- * "tocExpanded":true,"minHeadingToShow":"h3","pageInfoStyle":""paddingBottom":"20px","backgroundColor":"#dcdcdc";"borderLeft":"solid 3px #c4c4c4"","bannerStyleChoice":"corpDark1","bannerStyle":"{"color":"white","backgroundColor":"#005495",
24
- *
25
- * @param result
26
- * @returns
27
- */
28
- export declare function getModernHumanReadable(result: any): any;
29
- export declare function getCanvaseWebPartsFromContent(part: string): string;
30
1
  //# sourceMappingURL=processModernContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"processModernContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/ModernPages/SinglePage/processModernContent.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,QAAsB,CAAC;AAc/C;;;;;;;;;;;GAWG;AAEH,wBAAgB,yBAAyB,CAAE,GAAG,EAAE,MAAM,GAAK,MAAM,CA+ChE;AAOD;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAE,MAAM,EAAE,GAAG,GAAI,GAAG,CA8CzD;AAED,wBAAgB,6BAA6B,CAAE,IAAI,EAAE,MAAM,GAAI,MAAM,CA4FpE"}
1
+ {"version":3,"file":"processModernContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/ModernPages/SinglePage/processModernContent.ts"],"names":[],"mappings":""}
@@ -1,205 +1,195 @@
1
- // import { replaceHTMLEntities } from '../../../fpsReferences';
2
- import { replaceHTMLEntitiesv1 } from "@mikezimm/fps-core-v7/lib/logic/Strings/html";
3
- export const imgSrcRegex = /<iframe[\s\S]*>/gi;
4
- /**
5
- *
6
- Need to do special parsing on custom webparts:
7
- */
8
- const specialWebPartIDs = [
9
- '37b649bc-f846-4718-863d-9487d8fffb23',
10
- '92b4cb98-3aa1-4ece-9149-a591a572aced',
11
- '2762fd19-106f-4fcc-9949-0c58c512be4e',
12
- '44f426eb-86a2-41d0-bf5d-3db469b93ab6', // FPS Easy Contents Webpart
13
- ];
14
- /**
15
- * reverseStylesStringQuotes will take the WebPart Styles css and fix all the double quotes so it can actually be parsed.
16
- * Without this, you can not parse the html.
17
- *
18
- * Looks for strings like this:
19
- * "pageInfoStyle":""paddingBottom":"20px","backgroundColor":"#dcdcdc";"borderLeft":"solid 3px #c4c4c4"","bannerStyleChoice":
20
- *
21
- * and converts to strings like this:
22
- * "pageInfoStyle":"'paddingBottom':'20px','backgroundColor':'#dcdcdc';'borderLeft':'solid 3px #c4c4c4'","bannerStyleChoice":
23
- * @param str
24
- * @returns
25
- */
26
- export function reverseStylesStringQuotes(str) {
27
- let newString = '';
28
- // part = part.replace(/:\"\"(?!,)/g, ':\"\''); //Replace instances of :"" that do not have a comma after it
29
- // part = part.replace(/(?<!:)\"\",/g, '\'\",'); //Replace instances of "", that do not have a colon in front it
30
- str = str.replace(/:"{"/g, ':{"');
31
- str = str.replace(/"}"/g, '"}');
32
- // str = str.replace(/:\"{\"/g, ':{\"');
33
- // str = str.replace(/\"}\"/g, '\"}');
34
- const styleColons = str.split(/:""(?!,)/g); // Split by :"" strings
35
- const newParts = [];
36
- console.log('reversStyle: styleColons', styleColons);
37
- styleColons.map((part, idx1) => {
38
- if (idx1 === 0) {
39
- newParts.push(part); //The first one never has to be fixed.
40
- }
41
- else { //All other items need to be fixed
42
- //Step 1: Find where to stop .... 250px"", --- basically where you find /(?<!:)\"\",/g
43
- const portions = part.split(/(?<!:)"",/g); // Split by "", strings
44
- console.log(`reversStyle: portions1 /(?<!:)"",/g`, portions);
45
- if (portions.length > 2)
46
- alert('Whoa, wasnt expecting this.ToggleJSONCmd.key.toLocaleString.~ 342');
47
- if (portions.length > 1)
48
- portions[0] = portions[0].replace(/"/g, "'"); //Replace all double quotes with single quotes only if there is a second half
49
- if (portions.length > 1)
50
- portions[1] = reverseStylesStringQuotes(portions[1]); //Replace all double quotes with single quotes only if there is a second half
51
- console.log('reversStyle: portions2', portions);
52
- newParts.push(portions.join(`'",`));
53
- console.log('reversStyle: newParts1', newParts);
54
- //Step 2: From start to stop, replace double quotes " with single quotes '
55
- //Step 3: Push to newParts
56
- }
57
- });
58
- console.log('reversStyle: newPartsz', newParts);
59
- newString = newParts.join(':"\'');
60
- // let typeDivs = newString.split('{"type":"div"');
61
- // let result = typeDivs[0];
62
- // if ( typeDivs.length > 0 ) {
63
- // newString = result + '""';
64
- // }
65
- return newString;
66
- }
67
- //String constants used to parse W
68
- const errCanvasWebParts = 'Unable to parse HumanJSON_ContentWebparts';
69
- const CanvasWebPartsTag = '<div data-sp-canvascontrol="" data-sp-canvasdataversion="1.0" data-sp-controldata="';
70
- const WebPartDataTag = 'data-sp-webpartdata="';
71
- /**
72
- * This will take Modern Page and convert CanvasContent1 into more human readable version.
73
- * The goal is to make it easier to debug and see what is in the HTML replacing all special characters and entites with actual characters.
74
- *
75
- * Example of CanvaseCotnent1: Contents&quot;,&quot;tocExpanded&quot;&#58;true,&quot;minHeadingToShow&quot;&#58;&quot;h3&quot;,&quot;pageInfoStyle&quot;&#58;&quot;
76
- * \&quot;paddingBottom\&quot;&#58;\&quot;20px\&quot;,\&quot;backgroundColor\&quot;&#58;\&quot;#dcdcdc\&quot;;\&quot;borderLeft\&quot;&#58;\&quot;solid 3px #c4c4c4\&quot;&quot;,&qu
77
- *
78
- * TO:
79
- * "tocExpanded":true,"minHeadingToShow":"h3","pageInfoStyle":""paddingBottom":"20px","backgroundColor":"#dcdcdc";"borderLeft":"solid 3px #c4c4c4"","bannerStyleChoice":"corpDark1","bannerStyle":"{"color":"white","backgroundColor":"#005495",
80
- *
81
- * @param result
82
- * @returns
83
- */
84
- export function getModernHumanReadable(result) {
85
- const startParsing = new Date();
86
- //Added this for debug option to be able to read CanvasContent1 better
87
- if (!result.HumanReadable_Canvas1)
88
- result.HumanReadable_Canvas1 = result.CanvasContent1 ? replaceHTMLEntitiesv1(result.CanvasContent1) : '';
89
- if (result.HumanReadable_Canvas1) { //Look for any web part properties and add to JSON object
90
- const webparts = result.HumanReadable_Canvas1.split(CanvasWebPartsTag);
91
- if (webparts.length > 0) {
92
- webparts.map((part, idx1) => {
93
- if (idx1 > 0) {
94
- if (idx1 === 1)
95
- result.HumanJSON_ContentWebparts = [];
96
- result.HumanJSON_ContentWebparts.push(getCanvaseWebPartsFromContent(part));
97
- }
98
- });
99
- }
100
- }
101
- /**
102
- * Convert LayoutWebpartsContent portion from html entities to more human readable
103
- */
104
- if (!result.HumanReadable_LayoutWebpartsContent)
105
- result.HumanReadable_LayoutWebpartsContent = result.LayoutWebpartsContent ? replaceHTMLEntitiesv1(result.LayoutWebpartsContent) : ''; // eslint-disable-line dot-notation
106
- const LayoutWebpartsTag = '<div><div data-sp-canvascontrol="" data-sp-canvasdataversion="1.4" data-sp-controldata="';
107
- if (result.HumanReadable_LayoutWebpartsContent.indexOf(LayoutWebpartsTag) === 0) {
108
- try {
109
- result.HumanJSON_LayoutWebpartsContent = JSON.parse(result.HumanReadable_LayoutWebpartsContent.replace(LayoutWebpartsTag, '').replace('"></div></div>', ''));
110
- }
111
- catch (e) {
112
- result.HumanJSON_LayoutWebpartsContent = 'Unable to parse LayoutWebpartsContent' + JSON.stringify(e);
113
- }
114
- }
115
- //Gets page HTML for Author and Editor
116
- if (!result.HumanReadableOData_Author)
117
- result.HumanReadableOData_Author = result.Author ? replaceHTMLEntitiesv1(result.Author) : ''; // eslint-disable-line dot-notation
118
- if (!result.HumanReadableOData_Editor)
119
- result.HumanReadableOData_Editor = result.Editor ? replaceHTMLEntitiesv1(result.Editor) : ''; // eslint-disable-line dot-notation
120
- const endParsing = new Date();
121
- result.parsingTime = (endParsing.getTime() - startParsing.getTime());
122
- console.log('parse time: ', result.parsingTime);
123
- return result;
124
- }
125
- export function getCanvaseWebPartsFromContent(part) {
126
- let HumanJSON_ContentWebpart = {};
127
- const startWebPartData = part.indexOf(WebPartDataTag);
128
- const parseThisPart = startWebPartData < 0 ? part : part.substring(startWebPartData).replace(WebPartDataTag, '');
129
- let parseMe = parseThisPart.substring(0, parseThisPart.indexOf('"><'));
130
- try {
131
- const doubleQuotes = parseMe.split(/(?<!:)""(?!,)/g);
132
- if (doubleQuotes.length > 0) {
133
- let cleanParseMe = '';
134
- const newDoubleQuotes = [];
135
- doubleQuotes.map((doubleQt, idx2) => {
136
- if (doubleQuotes.length === 0) {
137
- //Do nothing, there are no elements with double quotes
138
- }
139
- else if (idx2 === 0) {
140
- //Do nothing, this is the first element that does not have quotes
141
- // console.log(' doubleQuotes1:' , doubleQt );
142
- }
143
- else if (idx2 !== doubleQuotes.length - 1) { //This is the last item so this should not need to change quotes
144
- doubleQt = `"'${doubleQt.replace(/"/g, "'")}'"`;
145
- // console.log(' doubleQuotes2:' , doubleQt );
146
- }
147
- newDoubleQuotes.push(doubleQt);
148
- });
149
- cleanParseMe = newDoubleQuotes.join('');
150
- // console.log('cleanParseMe', cleanParseMe );
151
- parseMe = cleanParseMe;
152
- let isSpecial = false;
153
- specialWebPartIDs.map(id => {
154
- if (parseMe.indexOf(id) > -1) {
155
- isSpecial = true;
156
- }
157
- });
158
- if (isSpecial === true) { //This is a web part with known complex props that need special code
159
- parseMe = reverseStylesStringQuotes(parseMe);
160
- const typeDivs = parseMe.split('{"type":"div"');
161
- parseMe = typeDivs[0];
162
- if (typeDivs.length > 1) {
163
- parseMe += '""}}';
164
- }
165
- }
166
- }
167
- /**
168
- * You Tube Web Part
169
- */
170
- let parseThisObject = null;
171
- if (parseMe.indexOf('544dd15b-cf3c-441b-96da-004d5a8cea1d') > -1) {
172
- const iframes = parseMe.match(imgSrcRegex);
173
- //This is the youtube video... add some things manually
174
- if (iframes.length > 0) {
175
- parseMe = parseMe.replace(iframes[0], '');
176
- }
177
- parseThisObject = JSON.parse(parseMe);
178
- parseThisObject.properties.cachedEmbedCode = iframes[0];
179
- }
180
- else {
181
- parseThisObject = JSON.parse(parseMe);
182
- }
183
- /**
184
- * OOTB Text Web Part
185
- */
186
- const startContent = part.indexOf('"><') + 2;
187
- const endContent = part.lastIndexOf('</div>');
188
- let thisContent = part.substring(startContent, endContent);
189
- if (thisContent.indexOf('<div data-sp-rte="">') > -1) {
190
- //This is common Text WebPart
191
- parseThisObject.title = 'OOTB Text Web Part';
192
- }
193
- else {
194
- //This is not OOTB Text Web Part so trim props from beginning of string
195
- thisContent = thisContent.substring(thisContent.indexOf('"><') + 2);
196
- }
197
- parseThisObject.content = thisContent;
198
- HumanJSON_ContentWebpart = parseThisObject;
199
- }
200
- catch (e) {
201
- HumanJSON_ContentWebpart = { part: part, errorText: errCanvasWebParts, parseMe: parseMe, error: e };
202
- }
203
- return HumanJSON_ContentWebpart;
204
- }
1
+ // // import { replaceHTMLEntities } from '../../../fpsReferences';
2
+ // import { replaceHTMLEntitiesv1 } from "@mikezimm/fps-core-v7/lib/logic/Strings/html";
3
+ // export const imgSrcRegex = /<iframe[\s\S]*>/gi;
4
+ // /**
5
+ // *
6
+ // Need to do special parsing on custom webparts:
7
+ // */
8
+ // const specialWebPartIDs: string[] = [
9
+ // '37b649bc-f846-4718-863d-9487d8fffb23', // FPS Page Info - TOC & Props
10
+ // '92b4cb98-3aa1-4ece-9149-a591a572aced', // Pivot Tiles-TEAM
11
+ // '2762fd19-106f-4fcc-9949-0c58c512be4e', // ALVFinMan
12
+ // '44f426eb-86a2-41d0-bf5d-3db469b93ab6', // FPS Easy Contents Webpart
13
+ // ];
14
+ // /**
15
+ // * 2024-12-31: Migrated from fps-library-v2:
16
+ // *
17
+ // * import { reverseStylesStringQuotesm, getModernHumanReadable, getCanvaseWebPartsFromContent } from "@mikezimm/fps-core-v7/lib/components/molecules/ModernPages/functions/processModernContent";
18
+ // *
19
+ // *
20
+ // * reverseStylesStringQuotes will take the WebPart Styles css and fix all the double quotes so it can actually be parsed.
21
+ // * Without this, you can not parse the html.
22
+ // *
23
+ // * Looks for strings like this:
24
+ // * "pageInfoStyle":""paddingBottom":"20px","backgroundColor":"#dcdcdc";"borderLeft":"solid 3px #c4c4c4"","bannerStyleChoice":
25
+ // *
26
+ // * and converts to strings like this:
27
+ // * "pageInfoStyle":"'paddingBottom':'20px','backgroundColor':'#dcdcdc';'borderLeft':'solid 3px #c4c4c4'","bannerStyleChoice":
28
+ // * @param str
29
+ // * @returns
30
+ // */
31
+ // export function reverseStylesStringQuotesD( str: string ) : string {
32
+ // let newString = '';
33
+ // // part = part.replace(/:\"\"(?!,)/g, ':\"\''); //Replace instances of :"" that do not have a comma after it
34
+ // // part = part.replace(/(?<!:)\"\",/g, '\'\",'); //Replace instances of "", that do not have a colon in front it
35
+ // str = str.replace(/:"{"/g, ':{"');
36
+ // str = str.replace(/"}"/g, '"}');
37
+ // // str = str.replace(/:\"{\"/g, ':{\"');
38
+ // // str = str.replace(/\"}\"/g, '\"}');
39
+ // const styleColons = str.split(/:""(?!,)/g); // Split by :"" strings
40
+ // const newParts: string[] = [];
41
+ // console.log('reversStyle: styleColons', styleColons );
42
+ // styleColons.map( ( part, idx1 ) => {
43
+ // if ( idx1 === 0 ) {
44
+ // newParts.push( part ); //The first one never has to be fixed.
45
+ // } else { //All other items need to be fixed
46
+ // //Step 1: Find where to stop .... 250px"", --- basically where you find /(?<!:)\"\",/g
47
+ // const portions = part.split(/(?<!:)"",/g); // Split by "", strings
48
+ // console.log(`reversStyle: portions1 /(?<!:)"",/g`, portions );
49
+ // if ( portions.length > 2 ) alert('Whoa, wasnt expecting this.ToggleJSONCmd.key.toLocaleString.~ 342' );
50
+ // if ( portions.length > 1 ) portions[0] = portions[0].replace(/"/g, "'" ); //Replace all double quotes with single quotes only if there is a second half
51
+ // if ( portions.length > 1 ) portions[1] = reverseStylesStringQuotesD(portions[1]); //Replace all double quotes with single quotes only if there is a second half
52
+ // console.log('reversStyle: portions2', portions );
53
+ // newParts.push( portions.join( `'",`) );
54
+ // console.log('reversStyle: newParts1', newParts );
55
+ // //Step 2: From start to stop, replace double quotes " with single quotes '
56
+ // //Step 3: Push to newParts
57
+ // }
58
+ // });
59
+ // console.log('reversStyle: newPartsz', newParts );
60
+ // newString = newParts.join(':"\'' );
61
+ // // let typeDivs = newString.split('{"type":"div"');
62
+ // // let result = typeDivs[0];
63
+ // // if ( typeDivs.length > 0 ) {
64
+ // // newString = result + '""';
65
+ // // }
66
+ // return newString;
67
+ // }
68
+ // //String constants used to parse W
69
+ // const errCanvasWebParts = 'Unable to parse HumanJSON_ContentWebparts';
70
+ // const CanvasWebPartsTag = '<div data-sp-canvascontrol="" data-sp-canvasdataversion="1.0" data-sp-controldata="';
71
+ // const WebPartDataTag = 'data-sp-webpartdata="';
72
+ // /**
73
+ // * This will take Modern Page and convert CanvasContent1 into more human readable version.
74
+ // * The goal is to make it easier to debug and see what is in the HTML replacing all special characters and entites with actual characters.
75
+ // *
76
+ // * Example of CanvaseCotnent1: Contents&quot;,&quot;tocExpanded&quot;&#58;true,&quot;minHeadingToShow&quot;&#58;&quot;h3&quot;,&quot;pageInfoStyle&quot;&#58;&quot;
77
+ // * \&quot;paddingBottom\&quot;&#58;\&quot;20px\&quot;,\&quot;backgroundColor\&quot;&#58;\&quot;#dcdcdc\&quot;;\&quot;borderLeft\&quot;&#58;\&quot;solid 3px #c4c4c4\&quot;&quot;,&qu
78
+ // *
79
+ // * TO:
80
+ // * "tocExpanded":true,"minHeadingToShow":"h3","pageInfoStyle":""paddingBottom":"20px","backgroundColor":"#dcdcdc";"borderLeft":"solid 3px #c4c4c4"","bannerStyleChoice":"corpDark1","bannerStyle":"{"color":"white","backgroundColor":"#005495",
81
+ // *
82
+ // * @param result
83
+ // * @returns
84
+ // */
85
+ // export function getModernHumanReadableD( result: any ): any {
86
+ // const startParsing = new Date();
87
+ // //Added this for debug option to be able to read CanvasContent1 better
88
+ // if ( !result.HumanReadable_Canvas1 ) result.HumanReadable_Canvas1 = result.CanvasContent1 ? replaceHTMLEntitiesv1( result.CanvasContent1 ) : '';
89
+ // if ( result.HumanReadable_Canvas1 ) { //Look for any web part properties and add to JSON object
90
+ // const webparts = result.HumanReadable_Canvas1.split(CanvasWebPartsTag);
91
+ // if ( webparts.length > 0 ) {
92
+ // webparts.map ( ( part: string, idx1: number ) => {
93
+ // if ( idx1 > 0 ) {
94
+ // if ( idx1 === 1 ) result.HumanJSON_ContentWebparts = [];
95
+ // result.HumanJSON_ContentWebparts.push( getCanvaseWebPartsFromContentD( part ) );
96
+ // }
97
+ // });
98
+ // }
99
+ // }
100
+ // /**
101
+ // * Convert LayoutWebpartsContent portion from html entities to more human readable
102
+ // */
103
+ // if ( !result.HumanReadable_LayoutWebpartsContent ) result.HumanReadable_LayoutWebpartsContent = result.LayoutWebpartsContent ? replaceHTMLEntitiesv1( result.LayoutWebpartsContent ) : ''; // eslint-disable-line dot-notation
104
+ // const LayoutWebpartsTag = '<div><div data-sp-canvascontrol="" data-sp-canvasdataversion="1.4" data-sp-controldata="';
105
+ // if ( result.HumanReadable_LayoutWebpartsContent.indexOf( LayoutWebpartsTag ) === 0 ) {
106
+ // try {
107
+ // result.HumanJSON_LayoutWebpartsContent = JSON.parse(result.HumanReadable_LayoutWebpartsContent.replace(LayoutWebpartsTag,'').replace('"></div></div>',''));
108
+ // } catch (e) {
109
+ // result.HumanJSON_LayoutWebpartsContent = 'Unable to parse LayoutWebpartsContent' + JSON.stringify(e);
110
+ // }
111
+ // }
112
+ // //Gets page HTML for Author and Editor
113
+ // if ( !result.HumanReadableOData_Author ) result.HumanReadableOData_Author = result.Author ? replaceHTMLEntitiesv1( result.Author ) : ''; // eslint-disable-line dot-notation
114
+ // if ( !result.HumanReadableOData_Editor ) result.HumanReadableOData_Editor = result.Editor ? replaceHTMLEntitiesv1( result.Editor ) : ''; // eslint-disable-line dot-notation
115
+ // const endParsing = new Date();
116
+ // result.parsingTime = ( endParsing.getTime() - startParsing.getTime() ) ;
117
+ // console.log('parse time: ', result.parsingTime );
118
+ // return result;
119
+ // }
120
+ // export function getCanvaseWebPartsFromContentD( part: string ): string {
121
+ // let HumanJSON_ContentWebpart: any = {};
122
+ // const startWebPartData = part.indexOf( WebPartDataTag );
123
+ // const parseThisPart = startWebPartData < 0 ? part : part.substring( startWebPartData ).replace( WebPartDataTag,'');
124
+ // let parseMe = parseThisPart.substring(0, parseThisPart.indexOf( '"><' ) );
125
+ // try {
126
+ // const doubleQuotes = parseMe.split(/(?<!:)""(?!,)/g);
127
+ // if ( doubleQuotes.length > 0 ) {
128
+ // let cleanParseMe = '';
129
+ // const newDoubleQuotes: string[] = [];
130
+ // doubleQuotes.map( ( doubleQt, idx2 ) => {
131
+ // if ( doubleQuotes.length === 0 ) {
132
+ // //Do nothing, there are no elements with double quotes
133
+ // } else if ( idx2 === 0 ) {
134
+ // //Do nothing, this is the first element that does not have quotes
135
+ // // console.log(' doubleQuotes1:' , doubleQt );
136
+ // } else if ( idx2 !== doubleQuotes.length -1 ) {//This is the last item so this should not need to change quotes
137
+ // doubleQt = `"'${doubleQt.replace(/"/g, "'" )}'"`;
138
+ // // console.log(' doubleQuotes2:' , doubleQt );
139
+ // }
140
+ // newDoubleQuotes.push( doubleQt );
141
+ // });
142
+ // cleanParseMe = newDoubleQuotes.join('');
143
+ // // console.log('cleanParseMe', cleanParseMe );
144
+ // parseMe = cleanParseMe;
145
+ // let isSpecial: any = false;
146
+ // specialWebPartIDs.map( id => {
147
+ // if ( parseMe.indexOf( id ) > -1 ) {
148
+ // isSpecial = true;
149
+ // }
150
+ // });
151
+ // if ( isSpecial === true ) { //This is a web part with known complex props that need special code
152
+ // parseMe = reverseStylesStringQuotesD( parseMe );
153
+ // const typeDivs = parseMe.split('{"type":"div"');
154
+ // parseMe = typeDivs[0];
155
+ // if ( typeDivs.length > 1 ) {
156
+ // parseMe += '""}}';
157
+ // }
158
+ // }
159
+ // }
160
+ // /**
161
+ // * You Tube Web Part
162
+ // */
163
+ // let parseThisObject = null;
164
+ // if ( parseMe.indexOf('544dd15b-cf3c-441b-96da-004d5a8cea1d') > -1 ) {
165
+ // const iframes = parseMe.match(imgSrcRegex);
166
+ // //This is the youtube video... add some things manually
167
+ // if ( iframes.length > 0 ) {
168
+ // parseMe = parseMe.replace( iframes[0], '' );
169
+ // }
170
+ // parseThisObject = JSON.parse( parseMe );
171
+ // parseThisObject.properties.cachedEmbedCode = iframes[0];
172
+ // } else {
173
+ // parseThisObject = JSON.parse( parseMe );
174
+ // }
175
+ // /**
176
+ // * OOTB Text Web Part
177
+ // */
178
+ // const startContent = part.indexOf( '"><' ) + 2;
179
+ // const endContent = part.lastIndexOf('</div>');
180
+ // let thisContent = part.substring(startContent,endContent);
181
+ // if ( thisContent.indexOf('<div data-sp-rte="">') > -1 ) {
182
+ // //This is common Text WebPart
183
+ // parseThisObject.title = 'OOTB Text Web Part';
184
+ // } else {
185
+ // //This is not OOTB Text Web Part so trim props from beginning of string
186
+ // thisContent = thisContent.substring( thisContent.indexOf( '"><' ) + 2) ;
187
+ // }
188
+ // parseThisObject.content = thisContent;
189
+ // HumanJSON_ContentWebpart = parseThisObject;
190
+ // } catch (e) {
191
+ // HumanJSON_ContentWebpart = { part: part, errorText: errCanvasWebParts, parseMe: parseMe, error: e };
192
+ // }
193
+ // return HumanJSON_ContentWebpart;
194
+ // }
205
195
  //# sourceMappingURL=processModernContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"processModernContent.js","sourceRoot":"","sources":["../../../../../src/components/molecules/ModernPages/SinglePage/processModernContent.ts"],"names":[],"mappings":"AACA,gEAAgE;AAEhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAErF,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAE/C;;;EAGE;AACF,MAAM,iBAAiB,GAAa;IAChC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC,EAAE,4BAA4B;CAErE,CAAC;AAEJ;;;;;;;;;;;GAWG;AAEH,MAAM,UAAU,yBAAyB,CAAE,GAAW;IAElD,IAAI,SAAS,GAAG,EAAE,CAAC;IACnB,4GAA4G;IAC5G,gHAAgH;IAEhH,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAClC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAEhC,wCAAwC;IACxC,sCAAsC;IAE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AQ,CAAC,CAAC;QAC9C,IAAI,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,EAAC,UAAU,CAAC,CAAC;QAC1D,IAAK,WAAW,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,EAAG;YACpD,6BAA6B;YAC7B,eAAe,CAAC,KAAK,GAAG,oBAAoB,CAAC;SAChD;aAAM;YACH,uEAAuE;YACvE,WAAW,GAAG,WAAW,CAAC,SAAS,CAAE,WAAW,CAAC,OAAO,CAAE,KAAK,CAAE,GAAG,CAAC,CAAC,CAAE;SAC3E;QAED,eAAe,CAAC,OAAO,GAAG,WAAW,CAAC;QACtC,wBAAwB,GAAI,eAAe,CAAC;KAG7C;IAAC,OAAO,CAAC,EAAE;QAEV,wBAAwB,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KACrG;IAED,OAAO,wBAAwB,CAAC;AAElC,CAAC"}
1
+ {"version":3,"file":"processModernContent.js","sourceRoot":"","sources":["../../../../../src/components/molecules/ModernPages/SinglePage/processModernContent.ts"],"names":[],"mappings":"AACA,mEAAmE;AAEnE,wFAAwF;AAExF,kDAAkD;AAElD,MAAM;AACN,KAAK;AACL,mDAAmD;AACnD,KAAK;AACL,wCAAwC;AACxC,6EAA6E;AAC7E,kEAAkE;AAClE,2DAA2D;AAC3D,2EAA2E;AAE3E,OAAO;AAEP,MAAM;AACN,gDAAgD;AAChD,KAAK;AACL,qMAAqM;AACrM,KAAK;AACL,KAAK;AACL,4HAA4H;AAC5H,+CAA+C;AAC/C,KAAK;AACL,kCAAkC;AAClC,gIAAgI;AAChI,KAAK;AACL,wCAAwC;AACxC,gIAAgI;AAChI,gBAAgB;AAChB,cAAc;AACd,MAAM;AAEN,uEAAuE;AAEvE,0BAA0B;AAC1B,mHAAmH;AACnH,uHAAuH;AAEvH,yCAAyC;AACzC,uCAAu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C7D,wHAAwH;AACxH,+EAA+E;AAC/E,UAAU;AACV,4DAA4D;AAC5D,yCAAyC;AACzC,+BAA+B;AAC/B,8CAA8C;AAC9C,kDAAkD;AAElD,+CAA+C;AAC/C,mEAAmE;AAEnE,uCAAuC;AACvC,8EAA8E;AAC9E,2DAA2D;AAE3D,4HAA4H;AAC5H,kEAAkE;AAClE,+DAA+D;AAC/D,cAAc;AACd,8CAA8C;AAC9C,YAAY;AAEZ,iDAAiD;AACjD,uDAAuD;AACvD,gCAAgC;AAChC,oCAAoC;AACpC,uCAAuC;AACvC,gDAAgD;AAChD,8BAA8B;AAC9B,cAAc;AACd,YAAY;AAEZ,yGAAyG;AACzG,6DAA6D;AAE7D,6DAA6D;AAC7D,mCAAmC;AACnC,yCAAyC;AACzC,+BAA+B;AAC/B,cAAc;AACd,UAAU;AACV,QAAQ;AAGR,UAAU;AACV,2BAA2B;AAC3B,UAAU;AACV,kCAAkC;AAElC,4EAA4E;AAC5E,oDAAoD;AACpD,kEAAkE;AAClE,sCAAsC;AACtC,2DAA2D;AAC3D,YAAY;AACZ,mDAAmD;AACnD,mEAAmE;AAEnE,eAAe;AACf,mDAAmD;AACnD,QAAQ;AAER,UAAU;AACV,4BAA4B;AAC5B,UAAU;AACV,sDAAsD;AACtD,qDAAqD;AACrD,iEAAiE;AACjE,gEAAgE;AAChE,wCAAwC;AACxC,wDAAwD;AACxD,eAAe;AACf,kFAAkF;AAClF,mFAAmF;AACnF,QAAQ;AAER,6CAA6C;AAC7C,mDAAmD;AAGnD,kBAAkB;AAElB,2GAA2G;AAC3G,MAAM;AAEN,qCAAqC;AAErC,IAAI"}
@@ -7,20 +7,22 @@
7
7
  * Update:: import { doSpJsFetch } to '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/doSpJsFetch;'
8
8
 
9
9
  */
10
- import { IFPSHubNavigationItem, IHubSiteDataResultAPI } from './interface';
10
+ import { IFPSHubNavigationItem_D, IHubSiteDataResultAPI_D } from './interface';
11
11
  import { IJSFetchReturn } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/IJSFetchReturn';
12
12
  import { IFpsSpHttpServiceMIN } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/Sp/IFpsSpHttpServiceMIN';
13
13
  export interface IFPSHubNav extends IJSFetchReturn {
14
- 'nav.navigation': IFPSHubNavigationItem[];
15
- nav: IHubSiteDataResultAPI;
16
- itemsN?: IFPSHubNavigationItem[];
14
+ 'nav.navigation': IFPSHubNavigationItem_D[];
15
+ nav: IHubSiteDataResultAPI_D;
16
+ itemsN?: IFPSHubNavigationItem_D[];
17
17
  metaN?: string[];
18
18
  }
19
19
  /**
20
20
  * fetchMyHubNav should be given the Url of a Hub Site and it should return that hubsite's navigation.
21
21
  * - useful in Hub Connections or where you want to get navigation elements of a site.
22
+ *
23
+ * 2024-12-31: MIGRATED THIS TO import { getHubSiteDataAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/sites/nav/getHubSiteDataAPI';
22
24
  * @param webUrl
23
25
  * @returns
24
26
  */
25
- export declare function fetchMyHubNav(fpsSpService: IFpsSpHttpServiceMIN, webUrl: string): Promise<IFPSHubNav>;
27
+ export declare function fetchMyHubNavD(fpsSpService: IFpsSpHttpServiceMIN, webUrl: string): Promise<IFPSHubNav>;
26
28
  //# sourceMappingURL=fetchMyHubNav.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchMyHubNav.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAsBH,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,sEAAsE,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,+EAA+E,CAAC;AAIrH,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD,gBAAgB,EAAE,qBAAqB,EAAE,CAAC;IAC1C,GAAG,EAAE,qBAAqB,CAAC;IAC3B,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAK,OAAO,CAAC,UAAU,CAAC,CAwC9G"}
1
+ {"version":3,"file":"fetchMyHubNav.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SpHttp/HubSiteData/fetchMyHubNav.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAsBH,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,sEAAsE,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,+EAA+E,CAAC;AAIrH,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD,gBAAgB,EAAE,uBAAuB,EAAE,CAAC;IAC5C,GAAG,EAAE,uBAAuB,CAAC;IAC7B,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAK,OAAO,CAAC,UAAU,CAAC,CAwC/G"}
@@ -25,10 +25,12 @@ import { doSpHttpFetchOrPostAndCheck } from '@mikezimm/fps-core-v7/lib/component
25
25
  /**
26
26
  * fetchMyHubNav should be given the Url of a Hub Site and it should return that hubsite's navigation.
27
27
  * - useful in Hub Connections or where you want to get navigation elements of a site.
28
+ *
29
+ * 2024-12-31: MIGRATED THIS TO import { getHubSiteDataAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/sites/nav/getHubSiteDataAPI';
28
30
  * @param webUrl
29
31
  * @returns
30
32
  */
31
- export async function fetchMyHubNav(fpsSpService, webUrl) {
33
+ export async function fetchMyHubNavD(fpsSpService, webUrl) {
32
34
  let performanceSettings = { label: 'hubNav', updateMiliseconds: true, includeMsStr: true, op: 'fetch' };
33
35
  const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
34
36
  // api from chatGPT