@vectoriox/iox-ui 5.49.0 → 5.51.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/fesm2022/vectoriox-iox-ui-generation-core.mjs +148 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +12 -2
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +212 -2
- package/harness-core/index.d.ts +18 -3
- package/package.json +1 -1
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-build-run.ts +263 -0
- package/src/harness-core/public-api.ts +1 -0
- package/src/harness-core/structure.ts +23 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MOOD_LABELS, STYLE_PRESETS, flavorPackById, parseFontFamilies, SPEC_AXES, parseHexColor, rgbToOklab, MOOD_IDS, presetChoices } from '@vectoriox/iox-ui/design-core';
|
|
2
|
-
import { shapeKeys, requiredShapeKeys, PathIssueCollector, isPlainObject, pathAt, FACT_KEYS, SPEC_SITE_LIBRARY, patternById, SITE_FACT_LABELS } from '@vectoriox/iox-ui/generation-core';
|
|
2
|
+
import { shapeKeys, requiredShapeKeys, PathIssueCollector, isPlainObject, pathAt, FACT_KEYS, SPEC_SITE_LIBRARY, patternById, SITE_FACT_LABELS, SITE_TEMPLATES, STUDIO_TEMPLATE } from '@vectoriox/iox-ui/generation-core';
|
|
3
3
|
|
|
4
4
|
// GENERATED from iox-ai-guidance flavor-spec.v1.json — do not edit; re-run scripts/gen-flavor-spec.mjs
|
|
5
5
|
// (npm run gen:flavor-spec). The JSON is itself generated by iox-ai-guidance
|
|
@@ -4173,6 +4173,16 @@ function withoutAddress(text, address) {
|
|
|
4173
4173
|
return out.replace(/[ \t]{2,}/g, ' ').replace(/ +([.,;:!?])/g, '$1').trim();
|
|
4174
4174
|
}
|
|
4175
4175
|
|
|
4176
|
+
/**
|
|
4177
|
+
* Which template the template path (and the plan stage) builds a kind of business from (AI plan rev 3 §3d,
|
|
4178
|
+
* N-D3): its structure's template when that one has shipped, else Studio — said, never silent. No type → Studio.
|
|
4179
|
+
*/
|
|
4180
|
+
function structureFor(typeId) {
|
|
4181
|
+
const structure = (businessTypeById(typeId)?.structure ?? 'studio');
|
|
4182
|
+
const own = STRUCTURES[structure]?.shipped ? SITE_TEMPLATES[structure] : undefined;
|
|
4183
|
+
return { structure, template: own ?? STUDIO_TEMPLATE, fallback: !own };
|
|
4184
|
+
}
|
|
4185
|
+
|
|
4176
4186
|
/**
|
|
4177
4187
|
* @vectoriox/iox-ui/harness-core — the design HARNESS (AI plan rev 3 §3f, decision N18), FRAMEWORK-FREE: the 30
|
|
4178
4188
|
* kinds of business and their rules (generated 1:1 from iox-ai-guidance `flavor-spec.v1.json` `harness`), the
|
|
@@ -4187,5 +4197,5 @@ function withoutAddress(text, address) {
|
|
|
4187
4197
|
* Generated bundle index. Do not edit.
|
|
4188
4198
|
*/
|
|
4189
4199
|
|
|
4190
|
-
export { ANIMATE_ADVICE_STEPS, AnalysisIssueCode, AnalysisLocale, AvoidCheck, BUSINESS_TYPES, BUSINESS_TYPE_IDS, BookingNeed, COPY_LENGTH_ORDER, CopyLength, HARNESS_SOURCE, LITTLE_MOVEMENT_AVOID, LITTLE_MOVEMENT_CAP, LintKind, MAX_ANALYSIS_MOODS, NEEDS, NEED_IDS, NeedSource, PresetFit, RANK_WEIGHTS, READ_ANIMATE, READ_WEIGHTS, RankReason, SPEC_ANALYSIS_SHAPE, SPEC_BUSINESS_TYPES, SPEC_HARNESS_EXAMPLES, SPEC_HARNESS_SOURCE, SPEC_NEEDS, SPEC_STRUCTURES, SPEC_USER_AVOIDS, STRUCTURES, StyleReadGround, StyleReadHeadings, StyleReadMotion, StyleReadSourceKind, USER_AVOID_IDS, VoiceFormality, VoicePerson, addressesIn, analysisPromptContext, businessTypeById, calmerChoice, inferNeeds, isLookRule, lintDesign, lookMatches, mapStyleRead, matchBusinessType, matchBusinessTypes, motionAdvice, motionFor, normalizeAddress, oklchHue, presetHasSerifHeadings, presetLook, rankStylePresets, rankWithReferences, userAvoidRule, validateSiteAnalysis, withoutAddress };
|
|
4200
|
+
export { ANIMATE_ADVICE_STEPS, AnalysisIssueCode, AnalysisLocale, AvoidCheck, BUSINESS_TYPES, BUSINESS_TYPE_IDS, BookingNeed, COPY_LENGTH_ORDER, CopyLength, HARNESS_SOURCE, LITTLE_MOVEMENT_AVOID, LITTLE_MOVEMENT_CAP, LintKind, MAX_ANALYSIS_MOODS, NEEDS, NEED_IDS, NeedSource, PresetFit, RANK_WEIGHTS, READ_ANIMATE, READ_WEIGHTS, RankReason, SPEC_ANALYSIS_SHAPE, SPEC_BUSINESS_TYPES, SPEC_HARNESS_EXAMPLES, SPEC_HARNESS_SOURCE, SPEC_NEEDS, SPEC_STRUCTURES, SPEC_USER_AVOIDS, STRUCTURES, StyleReadGround, StyleReadHeadings, StyleReadMotion, StyleReadSourceKind, USER_AVOID_IDS, VoiceFormality, VoicePerson, addressesIn, analysisPromptContext, businessTypeById, calmerChoice, inferNeeds, isLookRule, lintDesign, lookMatches, mapStyleRead, matchBusinessType, matchBusinessTypes, motionAdvice, motionFor, normalizeAddress, oklchHue, presetHasSerifHeadings, presetLook, rankStylePresets, rankWithReferences, structureFor, userAvoidRule, validateSiteAnalysis, withoutAddress };
|
|
4191
4201
|
//# sourceMappingURL=vectoriox-iox-ui-harness-core.mjs.map
|