b88a2370b3
Removes `propsForNextShape` and replaces it with the new styles API. Changes in here: - New custom style example - `setProp` is now `setStyle` and takes a `StyleProp` instead of a string - `Editor.props` and `Editor.opacity` are now `Editor.sharedStyles` and `Editor.sharedOpacity` - They return an object that flags mixed vs shared types instead of using null to signal mixed types - `Editor.styles` returns a `SharedStyleMap` - keyed on `StyleProp` instead of `string` - `StateNode.shapeType` is now the shape util rather than just a string. This lets us pull the styles from the shape type directly. - `color` is no longer a core part of the editor set on the shape parent. Individual child shapes have to use color directly. - `propsForNextShape` is now `stylesForNextShape` - `InstanceRecordType` is created at runtime in the same way `ShapeRecordType` is. This is so it can pull style validators out of shape defs for `stylesForNextShape` - Shape type are now defined by their props rather than having separate validators & type defs ### Change Type - [x] `major` — Breaking change ### Test Plan 1. Big time regression testing around styles! 2. Check UI works as intended for all shape/style/tool combos - [x] Unit Tests - [ ] End to end tests ### Release Notes - --------- Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
13 lines
785 B
Diff
13 lines
785 B
Diff
diff --git a/lib/api/ExtractorConfig.js b/lib/api/ExtractorConfig.js
|
|
index 31b46f8b51a2a93c2e538d67cd340e3c6897e242..d2cab369fc53cbd35bcb0c465783f851f1fd5f42 100644
|
|
--- a/lib/api/ExtractorConfig.js
|
|
+++ b/lib/api/ExtractorConfig.js
|
|
@@ -668,6 +668,6 @@ ExtractorConfig.FILENAME = 'api-extractor.json';
|
|
*/
|
|
ExtractorConfig._tsdocBaseFilePath = path.resolve(__dirname, '../../extends/tsdoc-base.json');
|
|
ExtractorConfig._defaultConfig = node_core_library_1.JsonFile.load(path.join(__dirname, '../schemas/api-extractor-defaults.json'));
|
|
-ExtractorConfig._declarationFileExtensionRegExp = /\.d\.ts$/i;
|
|
+ExtractorConfig._declarationFileExtensionRegExp = /\.d\.(m|c)?ts$/i;
|
|
exports.ExtractorConfig = ExtractorConfig;
|
|
//# sourceMappingURL=ExtractorConfig.js.map
|
|
\ No newline at end of file
|