@yahoo/uds-create-config 5.53.1 → 5.55.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.
- package/dist/capture/node-ops.js +1 -1
- package/dist/configs/system.js +2 -0
- package/dist/entities/canvas/node-gestures.js +1 -1
- package/dist/entities/canvas/node-patches.js +1 -1
- package/dist/entities/system/Component.d.ts +5 -2
- package/dist/entities/system/Component.js +121 -8
- package/dist/entities/system/LinkedSystem.js +2 -2
- package/dist/entities/system/Operation.js +1 -1
- package/dist/entities/system/StyleProperty.js +5 -0
- package/dist/entities/system/component-forwards.js +1 -1
- package/dist/entities/system/component-source-fields.js +1 -1
- package/dist/entities/system/component-style-set.js +1 -1
- package/dist/entities/system/conditional-defaults.d.ts +45 -0
- package/dist/entities/system/conditional-defaults.js +142 -0
- package/dist/entities/system/copy-plan.js +1 -1
- package/dist/entities/system/css-motion-reach.js +1 -1
- package/dist/entities/system/defineComponent.d.ts +11 -2
- package/dist/entities/system/defineComponent.js +3 -0
- package/dist/entities/system/drawn-motion.d.ts +2 -1
- package/dist/entities/system/drawn-motion.js +23 -16
- package/dist/entities/system/link-plan.js +1 -1
- package/dist/entities/system/motion-convert.js +1 -1
- package/dist/entities/system/motion-variants.js +2 -2
- package/dist/framework/Config.d.ts +1 -1
- package/dist/framework/Config.js +13 -4
- package/dist/framework/class-names.d.ts +14 -9
- package/dist/framework/class-names.js +37 -22
- package/dist/framework/default-conditions.d.ts +26 -0
- package/dist/framework/default-conditions.js +35 -0
- package/dist/framework/defineEntity.js +1 -1
- package/dist/framework/inline-sources.js +1 -1
- package/dist/framework/layer-styles.js +7 -2
- package/dist/framework/module-views.d.ts +9 -10
- package/dist/framework/plan.js +1 -1
- package/dist/framework/projections.d.ts +36 -4
- package/dist/framework/projections.js +97 -24
- package/dist/framework/render-spec.js +10 -2
- package/dist/framework/schema-version.d.ts +1 -1
- package/dist/framework/schema-version.js +5 -5
- package/dist/framework/schemas.js +2 -2
- package/dist/framework/source-integrity.js +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +7 -4
- package/dist/migrations/20261023152030_conditional_defaults.d.ts +6 -0
- package/dist/migrations/20261023152030_conditional_defaults.js +8 -0
- package/dist/spec/bake.js +14 -6
- package/dist/spec/cell.d.ts +2 -1
- package/dist/spec/cell.js +14 -6
- package/dist/spec/detach.js +5 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/spec/detach.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isRef, kindOf, pathOf, refLeaf } from "../framework/utils/refs.js";
|
|
2
|
+
import { defaultsFor } from "../framework/default-conditions.js";
|
|
2
3
|
import { rootLayerOf } from "../entities/system/element.js";
|
|
3
4
|
import { authoredValue, declaredPropDefaults } from "../framework/projections.js";
|
|
4
5
|
import { forwardRoutes, isValueSlot } from "../framework/prop-surface.js";
|
|
@@ -106,7 +107,10 @@ function bakeInstance({ config, source, instanceProps, layerProps, filled }) {
|
|
|
106
107
|
const sourceAnatomy = anatomyOf(sourceBody);
|
|
107
108
|
const state = {
|
|
108
109
|
...declaredPropDefaults(sourceBody.props),
|
|
109
|
-
...
|
|
110
|
+
...defaultsFor({
|
|
111
|
+
body: sourceBody,
|
|
112
|
+
given: instanceProps
|
|
113
|
+
}),
|
|
110
114
|
...instanceProps
|
|
111
115
|
};
|
|
112
116
|
for (const from of filled) if (state[from] === void 0) state[from] = true;
|