@wix/himalaya-cli 0.1200.0 → 0.1202.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/authoring-runtime/node_modules/@wix/himalaya/dist/core/validation.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/state.mjs +1 -1
- package/dist/cli.mjs +31 -21
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
|
@@ -193,7 +193,7 @@ function errorMessageFor(args) {
|
|
|
193
193
|
if (worker) return worker;
|
|
194
194
|
const failure = validate(args.rule, args.value);
|
|
195
195
|
if (!failure) return null;
|
|
196
|
-
if (args.rule?.message) return args.rule.message;
|
|
196
|
+
if (typeof args.rule?.message === "string" && args.rule.message.trim()) return args.rule.message;
|
|
197
197
|
return defaultMessage(failure, args.catalog);
|
|
198
198
|
}
|
|
199
199
|
function shouldRevealError(args) {
|
|
@@ -9251,7 +9251,7 @@ function errorMessageFor(args) {
|
|
|
9251
9251
|
if (worker) return worker;
|
|
9252
9252
|
const failure = validate(args.rule, args.value);
|
|
9253
9253
|
if (!failure) return null;
|
|
9254
|
-
if (args.rule?.message) return args.rule.message;
|
|
9254
|
+
if (typeof args.rule?.message === "string" && args.rule.message.trim()) return args.rule.message;
|
|
9255
9255
|
return defaultMessage(failure, args.catalog);
|
|
9256
9256
|
}
|
|
9257
9257
|
function shouldRevealError(args) {
|
|
@@ -155,7 +155,7 @@ function errorMessageFor(args) {
|
|
|
155
155
|
if (worker) return worker;
|
|
156
156
|
const failure = validate(args.rule, args.value);
|
|
157
157
|
if (!failure) return null;
|
|
158
|
-
if (args.rule?.message) return args.rule.message;
|
|
158
|
+
if (typeof args.rule?.message === "string" && args.rule.message.trim()) return args.rule.message;
|
|
159
159
|
return defaultMessage(failure, args.catalog);
|
|
160
160
|
}
|
|
161
161
|
var nonEmpty = (type) => (v) => typeof v === "string" && v.length > 0 && isValid({ type }, v);
|
package/dist/cli.mjs
CHANGED
|
@@ -6818,6 +6818,7 @@ function walk(node, registry, path2, out2) {
|
|
|
6818
6818
|
var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS;
|
|
6819
6819
|
var init_tokens = __esm({
|
|
6820
6820
|
"../../core/ts/src/tokens.ts"() {
|
|
6821
|
+
"use strict";
|
|
6821
6822
|
SYSTEM_FONT_FAMILY = "$system";
|
|
6822
6823
|
TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
|
|
6823
6824
|
COLOR_TOKEN_PROPS = {
|
|
@@ -25206,7 +25207,7 @@ function errorMessageFor(args) {
|
|
|
25206
25207
|
if (worker) return worker;
|
|
25207
25208
|
const failure = validate(args.rule, args.value);
|
|
25208
25209
|
if (!failure) return null;
|
|
25209
|
-
if (args.rule?.message) return args.rule.message;
|
|
25210
|
+
if (typeof args.rule?.message === "string" && args.rule.message.trim()) return args.rule.message;
|
|
25210
25211
|
return defaultMessage(failure, args.catalog);
|
|
25211
25212
|
}
|
|
25212
25213
|
function shouldRevealError(args) {
|
|
@@ -36215,7 +36216,7 @@ function renderInner(node, ctx) {
|
|
|
36215
36216
|
}
|
|
36216
36217
|
}
|
|
36217
36218
|
}
|
|
36218
|
-
var useIsomorphicLayoutEffect, ResponsiveGrid, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, ABSOLUTE_URL_RE, appearKeyframesInjected, pressStylesInjected, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, vectorAnimStylesInjected, scrollProgressRuntimeInjected, confettiRuntimeInjected, lottieRuntimeInjected, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, hAlignItems, bodyFont, kids2, rowKidCtx, rowKids, staggeredKids, asTextL10n, asBoundText, useBoundString, InterpolatedTextView, txt, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, WorkerSubtreeNode, RichContentNode, resolveItemDeep2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, ReactiveDirectScalars, HiddenGate, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOGROW_CEILING, EditableField, MenuNode, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, ButtonNode, OtpInputNode, ProgressBarNode, ACTIVITY_DEFAULT_NAME, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, PRESENTED_OVERLAY_ATTR, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, LegendMarker, LegendNode, cellAlign, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, TimelineNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CollapsingHeaderNode, UnsupportedOnSurface, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, WebRenderer;
|
|
36219
|
+
var useIsomorphicLayoutEffect, ResponsiveGrid, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, ABSOLUTE_URL_RE, appearKeyframesInjected, pressStylesInjected, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, vectorAnimStylesInjected, scrollProgressRuntimeInjected, confettiRuntimeInjected, lottieRuntimeInjected, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, hAlignItems, bodyFont, kids2, rowKidCtx, rowKids, staggeredKids, asTextL10n, asFinalTextL10n, asBoundText, useBoundString, InterpolatedTextView, txt, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, WorkerSubtreeNode, RichContentNode, resolveItemDeep2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, ReactiveDirectScalars, HiddenGate, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOGROW_CEILING, EditableField, MenuNode, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, ButtonNode, OtpInputNode, ProgressBarNode, ACTIVITY_DEFAULT_NAME, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, PRESENTED_OVERLAY_ATTR, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, LegendMarker, LegendNode, cellAlign, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, TimelineNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CollapsingHeaderNode, UnsupportedOnSurface, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, WebRenderer;
|
|
36219
36220
|
var init_renderNode = __esm({
|
|
36220
36221
|
"../../core/web-renderer/src/renderNode.tsx"() {
|
|
36221
36222
|
"use strict";
|
|
@@ -36370,6 +36371,7 @@ var init_renderNode = __esm({
|
|
|
36370
36371
|
return React7.cloneElement(el, { key: n?.id ?? i, style: { ...prev, animationDelay: `${i * staggerMs}ms` } });
|
|
36371
36372
|
}) : null;
|
|
36372
36373
|
asTextL10n = (v, ctx) => typeof v === "string" && v.startsWith(TRANSLATION_PREFIX) ? asText2(resolveTranslation(v, ctx.catalog)) : asText2(v);
|
|
36374
|
+
asFinalTextL10n = (v, ctx) => typeof v === "string" ? v.startsWith(TRANSLATION_PREFIX) ? asText2(resolveTranslation(v, ctx.catalog)) : v : asText2(v);
|
|
36373
36375
|
asBoundText = (v, ctx) => isBinding(v) ? asTextL10n(resolveScalarStatic(v, ctx) ?? "", ctx) : asText2(v);
|
|
36374
36376
|
useBoundString = (v, ctx) => {
|
|
36375
36377
|
const resolved2 = useResolvedScalar(v, ctx);
|
|
@@ -36691,12 +36693,20 @@ var init_renderNode = __esm({
|
|
|
36691
36693
|
() => ctx.catalog ? new Proxy({}, { get: (_t, k) => typeof k === "string" ? ctx.catalog.get(k) : void 0 }) : void 0,
|
|
36692
36694
|
[ctx.catalog]
|
|
36693
36695
|
);
|
|
36694
|
-
const
|
|
36695
|
-
const
|
|
36696
|
-
const
|
|
36696
|
+
const translateOnly = (v) => asFinalTextL10n(v, ctx);
|
|
36697
|
+
const ruleMessageRaw = typeof rule?.message === "string" || rule?.message !== null && typeof rule?.message === "object" ? rule?.message : void 0;
|
|
36698
|
+
const ruleMessageBound = typeof ruleMessageRaw === "string" && isBinding(ruleMessageRaw) && !ruleMessageRaw.startsWith(TRANSLATION_PREFIX);
|
|
36699
|
+
const ruleMessageResolved = useResolvedScalar(ruleMessageBound ? ruleMessageRaw : void 0, ctx);
|
|
36700
|
+
const ruleMessageText = ruleMessageRaw == null ? "" : ruleMessageBound ? ruleMessageResolved == null ? "" : translateOnly(ruleMessageResolved) : translateOnly(ruleMessageRaw);
|
|
36701
|
+
const ruleMessagePending = ruleMessageBound && !ruleMessageText.trim() && ruleMessageRaw.startsWith("$service:") && !!ctx.provider && !(formBag?.submitAttempted ?? false);
|
|
36702
|
+
const effectiveRule = !rule || ruleMessageRaw == null ? rule : { ...rule, message: ruleMessageText };
|
|
36703
|
+
const rawMessage = errorMessageFor({ rule: effectiveRule, value: local, workerError, catalog: validationCatalog });
|
|
36704
|
+
const hasWorkerError = Boolean(workerError && workerError.trim());
|
|
36705
|
+
const painted2 = rawMessage === null ? "" : translateOnly(rawMessage);
|
|
36706
|
+
const message = !painted2.trim() || ruleMessagePending && !hasWorkerError ? null : painted2;
|
|
36697
36707
|
const revealed = message !== null && shouldRevealError({
|
|
36698
36708
|
rule,
|
|
36699
|
-
hasWorkerError
|
|
36709
|
+
hasWorkerError,
|
|
36700
36710
|
touched,
|
|
36701
36711
|
focused: isFocused,
|
|
36702
36712
|
submitAttempted: formBag?.submitAttempted ?? false
|
|
@@ -61369,21 +61379,21 @@ var init_preview_assets_generated = __esm({
|
|
|
61369
61379
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
61370
61380
|
init_preview_assets_format();
|
|
61371
61381
|
PREVIEW_ASSET_MANIFEST = [
|
|
61372
|
-
{ key: "assets/index-
|
|
61373
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
61374
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
61375
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
61376
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
61377
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
61378
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
61379
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
61380
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
61381
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
61382
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
61383
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
61384
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
61385
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
61386
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
61382
|
+
{ key: "assets/index-Dnfi8Z9o.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1140774, sha256: "17f61baee3403aa43a02eb96478020fc613470cb1ffb34f478f86b06e372d53d" },
|
|
61383
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 1140782, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
61384
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 1145392, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
61385
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 1633976, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
61386
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 1724900, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
61387
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 1815884, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
61388
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 1906864, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
61389
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 1997736, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
61390
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 2088716, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
61391
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 2197352, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
61392
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 2306436, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
61393
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 2415484, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
61394
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 2523184, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
61395
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 2611292, length: 4947, sha256: "84ce6a90be7860f722a94c7487f508ab25106307cd651fe3681fe8affeb4c0d7" },
|
|
61396
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 2616239, length: 17344, sha256: "d057298d75e7373e5e2c4d11b7d1bcbea88e03af555ba63d97641c78509c58e4" }
|
|
61387
61397
|
];
|
|
61388
61398
|
}
|
|
61389
61399
|
});
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1202.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"artifactId": "himalaya-cli"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"falconPackageHash": "
|
|
70
|
+
"falconPackageHash": "0358221fa026c5f06155e13f57b57e07462f6895fb72a420ad6aff9a"
|
|
71
71
|
}
|