@microsoft/sp-component-base 1.15.2 → 1.16.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/467dc675-7cc5-4709-8aac-78e3b71bd2f6.manifest.json +72 -72
- package/dist/chunk.legacy-third-party-fabric-core-localfont_none_85ad8a843c3d40a967bd.js +1 -0
- package/dist/index-internal-beta.d.ts +6 -6
- package/dist/index-internal-public.d.ts +6 -6
- package/dist/index-internal.d.ts +6 -6
- package/dist/sp-component-base_default_d4446bf0123164fe451d.js +1 -0
- package/dist/sp-component-base_en-us_d4446bf0123164fe451d.js +1 -0
- package/dist/sp-component-base_qps-ploc_d4446bf0123164fe451d.js +1 -0
- package/dist/sp-component-base_qps-ploca_d4446bf0123164fe451d.js +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/ISerializedServerProcessedData.js +27 -0
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/FabricLocalFont.js +2 -2
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/fabric-core-sass/_Icon.Definitions.scss +3 -3
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/fabric-core-sass/variables/_BrandIcon.Variables.scss +2 -2
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/fabric-core-sass/variables/_Font.Variables.scss +1 -1
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/iconDefinitions.css +3 -3
- package/lib-commonjs/dataCollector/IWebPartLoadData.js +37 -0
- package/lib-commonjs/dataCollector/WebPartLoadDataCollector.js +12 -11
- package/lib-commonjs/index.js +5 -1
- package/lib-commonjs/loc/Strings.resx +1 -1
- package/package.json +11 -10
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Basque.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Bulgarian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Catalan.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Chinese (Simplified).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Chinese (Traditional).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Croatian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Czech.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Danish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Dutch.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Estonian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Finnish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - French.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Galician.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - German.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Greek.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Hindi.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Hungarian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Indonesian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Italian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Japanese.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Kazakh.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Korean.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Latvian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Lithuanian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Malaysian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Norwegian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Polish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Portuguese (Brazil).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Portuguese (Portugal).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Romanian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Russian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Serbian (Cyrillic).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Serbian (Latin).docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Slovak.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Slovenian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Spanish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Swedish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Thai.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Turkish.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Ukrainian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Valencian.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Vietnamese.docx +0 -0
- package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms.docx +0 -0
- package/dist/chunk.legacy-third-party-fabric-core-localfont_none_473fa7b889ba42ae1d09.js +0 -1
- package/dist/sp-component-base_default_772e454bd8708b5399d8.js +0 -1
- package/dist/sp-component-base_en-us_772e454bd8708b5399d8.js +0 -1
- package/dist/sp-component-base_qps-ploc_772e454bd8708b5399d8.js +0 -1
- package/dist/sp-component-base_qps-ploca_772e454bd8708b5399d8.js +0 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.WebPartLoadDataCollector = void 0;
|
|
5
5
|
var sp_telemetry_1 = require("@ms/sp-telemetry");
|
|
6
|
+
var IWebPartLoadData_1 = require("./IWebPartLoadData");
|
|
6
7
|
var sp_core_library_1 = require("@microsoft/sp-core-library");
|
|
7
8
|
var NOT_AVAILABLE = 'N/A';
|
|
8
9
|
/**
|
|
@@ -26,8 +27,8 @@ var WebPartLoadDataCollector = /** @class */ (function () {
|
|
|
26
27
|
var isMultiGeo = Boolean(pageContext && pageContext.legacyPageContext && pageContext.legacyPageContext.isMultiGeoTenant);
|
|
27
28
|
var dataProvider = NOT_AVAILABLE;
|
|
28
29
|
var layoutID = NOT_AVAILABLE;
|
|
29
|
-
var webPartCacheHit =
|
|
30
|
-
var cacheMissReason =
|
|
30
|
+
var webPartCacheHit = IWebPartLoadData_1.CacheStatus.NotAvailable;
|
|
31
|
+
var cacheMissReason = IWebPartLoadData_1.CacheMissReason.NotApplicable;
|
|
31
32
|
// Collect data for first-party web parts only. This ideally should be done outside of spfx.
|
|
32
33
|
// VSO#855246 Refactor WebPartLoadDataCollector to move out first-party only logging logic.
|
|
33
34
|
if (manifest.isInternal) {
|
|
@@ -37,9 +38,9 @@ var WebPartLoadDataCollector = /** @class */ (function () {
|
|
|
37
38
|
var isCacheApplicable = Boolean(cacheHit || cacheMiss);
|
|
38
39
|
webPartCacheHit = isCacheApplicable
|
|
39
40
|
? cacheHit
|
|
40
|
-
?
|
|
41
|
-
:
|
|
42
|
-
:
|
|
41
|
+
? IWebPartLoadData_1.CacheStatus.True
|
|
42
|
+
: IWebPartLoadData_1.CacheStatus.False
|
|
43
|
+
: IWebPartLoadData_1.CacheStatus.NotAvailable;
|
|
43
44
|
cacheMissReason = WebPartLoadDataCollector._getCacheMissReason(cacheHit, getTime);
|
|
44
45
|
var dataProviderTime_1 = sp_telemetry_1._PerformanceLogger.now();
|
|
45
46
|
var layoutKey_1 = sp_telemetry_1._PerformanceDataDimensions.Layout;
|
|
@@ -112,24 +113,24 @@ var WebPartLoadDataCollector = /** @class */ (function () {
|
|
|
112
113
|
};
|
|
113
114
|
WebPartLoadDataCollector._getCacheMissReason = function (cacheHit, getTime) {
|
|
114
115
|
if (cacheHit) {
|
|
115
|
-
return
|
|
116
|
+
return IWebPartLoadData_1.CacheMissReason.NotApplicable;
|
|
116
117
|
}
|
|
117
118
|
var mySiteCacheMissOnConfgMismatch = !!getTime('CacheMissConfigMismatch');
|
|
118
119
|
var mySiteCacheMissOnLateFlush = !!getTime('LateFlush');
|
|
119
120
|
var cachedWebPartNotFound = !!getTime('CachedWebPartNotFound');
|
|
120
121
|
var cacheExpired = !!getTime('CacheExpired');
|
|
121
|
-
var cacheMissReason =
|
|
122
|
+
var cacheMissReason = IWebPartLoadData_1.CacheMissReason.NotSpecified;
|
|
122
123
|
if (mySiteCacheMissOnConfgMismatch) {
|
|
123
|
-
cacheMissReason =
|
|
124
|
+
cacheMissReason = IWebPartLoadData_1.CacheMissReason.CacheConfigMissmatch;
|
|
124
125
|
}
|
|
125
126
|
else if (mySiteCacheMissOnLateFlush) {
|
|
126
|
-
cacheMissReason =
|
|
127
|
+
cacheMissReason = IWebPartLoadData_1.CacheMissReason.LateFlush;
|
|
127
128
|
}
|
|
128
129
|
else if (cachedWebPartNotFound) {
|
|
129
|
-
cacheMissReason =
|
|
130
|
+
cacheMissReason = IWebPartLoadData_1.CacheMissReason.CachedItemNotFound;
|
|
130
131
|
}
|
|
131
132
|
else if (cacheExpired) {
|
|
132
|
-
cacheMissReason =
|
|
133
|
+
cacheMissReason = IWebPartLoadData_1.CacheMissReason.CacheExpired;
|
|
133
134
|
}
|
|
134
135
|
return cacheMissReason;
|
|
135
136
|
};
|
package/lib-commonjs/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports._WebPartLoadDataCollector = exports._ensureIsolatedDomainUrl = exports._ShimmerFactory = exports.ThemeProvider = exports.ThemeChangedEventArgs = exports._PropertyMetadataProcessor = exports._LegacyThirdPartyFabricCoreLoader = exports.DynamicProperty = exports.DynamicDataSourceManager = exports.DynamicDataProvider = exports.BaseComponentContext = exports.BaseComponent = void 0;
|
|
17
|
+
exports._CacheMissReason = exports._WebPartLoadDataCollector = exports._ensureIsolatedDomainUrl = exports._ShimmerFactory = exports.ThemeProvider = exports.ThemeChangedEventArgs = exports.ServerProcessedDataType = exports._PropertyMetadataProcessor = exports._LegacyThirdPartyFabricCoreLoader = exports.DynamicProperty = exports.DynamicDataSourceManager = exports.DynamicDataProvider = exports.BaseComponentContext = exports.BaseComponent = void 0;
|
|
18
18
|
var BaseComponent_1 = require("./BaseComponent");
|
|
19
19
|
Object.defineProperty(exports, "BaseComponent", { enumerable: true, get: function () { return __importDefault(BaseComponent_1).default; } });
|
|
20
20
|
var BaseComponentContext_1 = require("./BaseComponentContext");
|
|
@@ -29,6 +29,8 @@ var LegacyThirdPartyFabricCoreLoader_1 = require("./LegacyThirdPartyFabricCoreLo
|
|
|
29
29
|
Object.defineProperty(exports, "_LegacyThirdPartyFabricCoreLoader", { enumerable: true, get: function () { return __importDefault(LegacyThirdPartyFabricCoreLoader_1).default; } });
|
|
30
30
|
var PropertyMetadataProcessor_1 = require("./PropertyMetadataProcessor");
|
|
31
31
|
Object.defineProperty(exports, "_PropertyMetadataProcessor", { enumerable: true, get: function () { return PropertyMetadataProcessor_1.PropertyMetadataProcessor; } });
|
|
32
|
+
var ISerializedServerProcessedData_1 = require("./ISerializedServerProcessedData");
|
|
33
|
+
Object.defineProperty(exports, "ServerProcessedDataType", { enumerable: true, get: function () { return ISerializedServerProcessedData_1.ServerProcessedDataType; } });
|
|
32
34
|
var ThemeProvider_1 = require("./themeProvider/ThemeProvider");
|
|
33
35
|
Object.defineProperty(exports, "ThemeChangedEventArgs", { enumerable: true, get: function () { return ThemeProvider_1.ThemeChangedEventArgs; } });
|
|
34
36
|
Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return ThemeProvider_1.ThemeProvider; } });
|
|
@@ -39,4 +41,6 @@ var EnsureIsolatedDomainUrl_1 = require("./EnsureIsolatedDomainUrl");
|
|
|
39
41
|
Object.defineProperty(exports, "_ensureIsolatedDomainUrl", { enumerable: true, get: function () { return EnsureIsolatedDomainUrl_1.ensureIsolatedDomainUrl; } });
|
|
40
42
|
var WebPartLoadDataCollector_1 = require("./dataCollector/WebPartLoadDataCollector");
|
|
41
43
|
Object.defineProperty(exports, "_WebPartLoadDataCollector", { enumerable: true, get: function () { return WebPartLoadDataCollector_1.WebPartLoadDataCollector; } });
|
|
44
|
+
var IWebPartLoadData_1 = require("./dataCollector/IWebPartLoadData");
|
|
45
|
+
Object.defineProperty(exports, "_CacheMissReason", { enumerable: true, get: function () { return IWebPartLoadData_1.CacheMissReason; } });
|
|
42
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<root>
|
|
3
3
|
<data name="$FILE_ID" xml:space="preserve">
|
|
4
|
-
<value>
|
|
4
|
+
<value>fc66e2cd-c90a-4cfc-aa4d-9f50b3b143d7</value>
|
|
5
5
|
<comment>{locked} This is the file ID for this localization file. This string value should not be used or translated.</comment>
|
|
6
6
|
</data>
|
|
7
7
|
<data name="SourceAlreadyInitialized">
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-component-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0-beta.2",
|
|
4
4
|
"description": "SharePoint Framework support for building client-side components",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "https://aka.ms/spfx/license",
|
|
6
6
|
"homepage": "http://aka.ms/spfx",
|
|
7
7
|
"main": "lib-commonjs/index.js",
|
|
8
8
|
"module": "lib/index.js",
|
|
@@ -11,14 +11,15 @@
|
|
|
11
11
|
"tsdocFlavor": "AEDoc"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@
|
|
15
|
-
"@microsoft/sp-core-library": "1.
|
|
16
|
-
"@microsoft/sp-diagnostics": "1.
|
|
17
|
-
"@microsoft/sp-dynamic-data": "1.
|
|
18
|
-
"@microsoft/sp-http": "1.
|
|
19
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
21
|
-
"@microsoft/sp-page-context": "1.
|
|
14
|
+
"@fluentui/react": "^7.199.1",
|
|
15
|
+
"@microsoft/sp-core-library": "1.16.0-beta.2",
|
|
16
|
+
"@microsoft/sp-diagnostics": "1.16.0-beta.2",
|
|
17
|
+
"@microsoft/sp-dynamic-data": "1.16.0-beta.2",
|
|
18
|
+
"@microsoft/sp-http": "1.16.0-beta.2",
|
|
19
|
+
"@microsoft/sp-lodash-subset": "1.16.0-beta.2",
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.16.0-beta.2",
|
|
21
|
+
"@microsoft/sp-page-context": "1.16.0-beta.2",
|
|
22
|
+
"office-ui-fabric-react": "^7.199.1",
|
|
22
23
|
"tslib": "2.3.1"
|
|
23
24
|
},
|
|
24
25
|
"scripts": {},
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Portuguese (Brazil).docx
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Serbian (Cyrillic).docx
DELETED
|
Binary file
|
package/EULA/Microsoft Sharepoint Framework - Standalone (free) Use Terms - Serbian (Latin).docx
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|