@microsoft/sp-module-interfaces 1.20.1 → 1.21.0-beta.0

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 (40) hide show
  1. package/dist/index-internal-beta.d.ts +47 -1
  2. package/dist/index-internal-public.d.ts +8 -1
  3. package/dist/index-internal.d.ts +748 -15
  4. package/dist/tsdoc-metadata.json +1 -1
  5. package/lib-commonjs/index.d.ts +1 -0
  6. package/lib-commonjs/index.d.ts.map +1 -1
  7. package/lib-commonjs/index.js +1 -0
  8. package/lib-commonjs/manifestSchemaValidator.d.ts +3 -0
  9. package/lib-commonjs/manifestSchemaValidator.d.ts.map +1 -1
  10. package/lib-commonjs/manifestSchemaValidator.js +52 -1
  11. package/lib-commonjs/manifestSchemas/IAdaptiveCardExtensionManifest.d.ts +6 -0
  12. package/lib-commonjs/manifestSchemas/IAdaptiveCardExtensionManifest.d.ts.map +1 -1
  13. package/lib-commonjs/manifestSchemas/IClientSideComponentLoaderConfiguration.d.ts +1 -1
  14. package/lib-commonjs/manifestSchemas/IClientSideComponentLoaderConfiguration.d.ts.map +1 -1
  15. package/lib-commonjs/manifestSchemas/IClientSideComponentManifest.d.ts +1 -1
  16. package/lib-commonjs/manifestSchemas/IClientSideComponentManifest.d.ts.map +1 -1
  17. package/lib-commonjs/manifestSchemas/IClientSideExtensionManifest.d.ts +1 -1
  18. package/lib-commonjs/manifestSchemas/IClientSideExtensionManifest.d.ts.map +1 -1
  19. package/lib-commonjs/manifestSchemas/IClientSideWebPartManifest.d.ts +35 -0
  20. package/lib-commonjs/manifestSchemas/IClientSideWebPartManifest.d.ts.map +1 -1
  21. package/lib-commonjs/manifestSchemas/IClientSideWebPartManifest.js +1 -1
  22. package/lib-commonjs/manifestSchemas/IPrefabAppManifest.d.ts +76 -0
  23. package/lib-commonjs/manifestSchemas/IPrefabAppManifest.d.ts.map +1 -0
  24. package/lib-commonjs/manifestSchemas/IPrefabAppManifest.js +3 -0
  25. package/lib-commonjs/manifestSchemas/ManifestType.js +1 -1
  26. package/lib-commonjs/manifestSchemas/examples/prefab_1.manifest.d.ts +4 -0
  27. package/lib-commonjs/manifestSchemas/examples/prefab_1.manifest.d.ts.map +1 -0
  28. package/lib-commonjs/manifestSchemas/examples/prefab_1.manifest.js +334 -0
  29. package/lib-commonjs/manifestSchemas/examples/prefab_2.manifest.d.ts +4 -0
  30. package/lib-commonjs/manifestSchemas/examples/prefab_2.manifest.d.ts.map +1 -0
  31. package/lib-commonjs/manifestSchemas/examples/prefab_2.manifest.js +339 -0
  32. package/lib-commonjs/manifestSchemas/examples/prefabapp.manifest.json +345 -0
  33. package/lib-commonjs/manifestSchemas/jsonSchemas/adaptive-card-extension-manifest.schema.json +8 -0
  34. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-component-manifest.schema.json +5 -2
  35. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-web-part-manifest.schema.json +23 -0
  36. package/lib-commonjs/manifestSchemas/jsonSchemas/localized-string.schema.json +6 -10
  37. package/lib-commonjs/manifestSchemas/jsonSchemas/prefab-app-manifest.schema.json +72 -0
  38. package/lib-commonjs/manifestSchemas/remote/draft-04.schema.json +137 -0
  39. package/lib-commonjs/manifestSchemas/remote/site-design-script-actions.schema.json +1158 -0
  40. package/package.json +9 -8
@@ -2,7 +2,7 @@
2
2
  * Type of client-side component.
3
3
  * @public
4
4
  */
5
- export declare type ComponentType = 'Application' | 'WebPart' | 'Library' | 'Extension' | 'AdaptiveCardExtension';
5
+ export declare type ComponentType = 'Application' | 'WebPart' | 'Library' | 'Extension' | 'AdaptiveCardExtension' | 'Prefab';
6
6
 
7
7
  /**
8
8
  * The type of client-side extension. Used by IClientSideExtensionManifest.extensionType.
@@ -55,6 +55,12 @@ export declare interface IAdaptiveCardExtensionManifest<TProperties> extends ICl
55
55
  */
56
56
  hiddenFromToolbox?: boolean;
57
57
  /* Excluded from this release type: isolationLevel */
58
+ /**
59
+ * The scope of the personalization on how an AdaptiveCardExtension can be personalized by an end user.
60
+ *
61
+ * @beta
62
+ */
63
+ personalization?: 'Disallow' | 'Allow';
58
64
  /**
59
65
  * Definition:
60
66
  * - If true, the AdaptiveCardExtension will be disposed and reloaded when the AdaptiveCardExtension data is updated by an external source.
@@ -728,6 +734,22 @@ export declare interface IClientSideWebPartManifest<TProperties> extends IClient
728
734
  * and will be hosted as a Teams application (supportedHosts contains any of Teams hosts).
729
735
  */
730
736
  supportsSelfFramingInTeams?: boolean;
737
+ /**
738
+ * Definition: Defines the default sizing of webpart in flexible sections, as well as if it supports dynamic resizing.
739
+ * Example:
740
+ * ```
741
+ * flexibleLayoutSizing: {
742
+ * supportsDynamicResizing: false,
743
+ * defaultColumnWidth: 22,
744
+ * defaultRowHeight: 21
745
+ * }
746
+ * ```
747
+ * @remarks
748
+ * Ensure this remains up to date with IFlexibleControlSizingData in FlexibleControl.types.ts
749
+ *
750
+ * @beta
751
+ */
752
+ flexibleLayoutSizing?: IFlexibleLayoutSizing;
731
753
  }
732
754
 
733
755
  /**
@@ -1030,6 +1052,26 @@ export declare interface IComponentModuleConfiguration extends IModuleConfigurat
1030
1052
  failoverPath?: string | IIntegrityPath;
1031
1053
  }
1032
1054
 
1055
+ /**
1056
+ * Flexible layout sizing data
1057
+ * @beta
1058
+ */
1059
+ export declare interface IFlexibleLayoutSizing {
1060
+ /**
1061
+ * If true webpart can resize to any width between minimum and 70 columns
1062
+ * Otherwise webpart is slot resized to 22, 34, 48, or 70 columns
1063
+ */
1064
+ supportsDynamicResizing?: boolean;
1065
+ /**
1066
+ * Default column width for the webpart, used by drop hint
1067
+ */
1068
+ defaultColumnWidth?: number;
1069
+ /**
1070
+ * Default row height for the webpart, used by drop hint
1071
+ */
1072
+ defaultRowHeight?: number;
1073
+ }
1074
+
1033
1075
  /**
1034
1076
  * A path with the subresource integrity hash of the resource.
1035
1077
  *
@@ -1256,8 +1298,12 @@ export declare interface IPathModuleConfiguration extends IModuleConfigurationBa
1256
1298
  globalDependencies?: string[];
1257
1299
  }
1258
1300
 
1301
+ /* Excluded from this release type: IPrefabAppManifest */
1302
+
1259
1303
  /* Excluded from this release type: IPreloadOptions */
1260
1304
 
1305
+ /* Excluded from this release type: ISiteScriptActionBase */
1306
+
1261
1307
  /* Excluded from this release type: ManifestType */
1262
1308
 
1263
1309
  /**
@@ -2,7 +2,7 @@
2
2
  * Type of client-side component.
3
3
  * @public
4
4
  */
5
- export declare type ComponentType = 'Application' | 'WebPart' | 'Library' | 'Extension' | 'AdaptiveCardExtension';
5
+ export declare type ComponentType = 'Application' | 'WebPart' | 'Library' | 'Extension' | 'AdaptiveCardExtension' | 'Prefab';
6
6
 
7
7
  /**
8
8
  * The type of client-side extension. Used by IClientSideExtensionManifest.extensionType.
@@ -359,6 +359,7 @@ export declare interface IClientSideWebPartManifest<TProperties> extends IClient
359
359
  * and will be hosted as a Teams application (supportedHosts contains any of Teams hosts).
360
360
  */
361
361
  supportsSelfFramingInTeams?: boolean;
362
+ /* Excluded from this release type: flexibleLayoutSizing */
362
363
  }
363
364
 
364
365
  /**
@@ -584,6 +585,8 @@ export declare interface ICommandSetExtensionManifest extends IClientSideExtensi
584
585
 
585
586
  /* Excluded from this release type: IComponentModuleConfiguration */
586
587
 
588
+ /* Excluded from this release type: IFlexibleLayoutSizing */
589
+
587
590
  /* Excluded from this release type: IIntegrityPath */
588
591
 
589
592
  /* Excluded from this release type: ILocalizedPathModuleConfiguration */
@@ -640,8 +643,12 @@ export declare interface ILocalizedString {
640
643
 
641
644
  /* Excluded from this release type: IPathModuleConfiguration */
642
645
 
646
+ /* Excluded from this release type: IPrefabAppManifest */
647
+
643
648
  /* Excluded from this release type: IPreloadOptions */
644
649
 
650
+ /* Excluded from this release type: ISiteScriptActionBase */
651
+
645
652
  /* Excluded from this release type: ManifestType */
646
653
 
647
654
  /* Excluded from this release type: PredefinedGroup */