@wix/himalaya-cli 0.1262.0 → 0.1263.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/_types/core/dev-server/src/builder.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/tokens.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +26 -0
- package/dist/cli.mjs +155 -38
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +2 -0
- package/package.json +2 -2
- package/templates/beauty-salon-owner/dev/index.ts +256 -87
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/community-club-owner/dev/index.ts +192 -71
- package/templates/community-club-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/events-meetups-owner/dev/index.ts +96 -47
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/gym-fitness-owner/dev/index.ts +288 -95
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/nonprofit-cause-owner/dev/index.ts +192 -71
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/owner-lite/dev/index.ts +288 -95
- package/templates/owner-lite/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/podcast-creator-owner/dev/index.ts +192 -71
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/portfolio-creative-owner/dev/index.ts +256 -87
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/restaurant-owner/dev/index.ts +288 -95
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/retail-store-owner/dev/index.ts +160 -63
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/yoga-studio-owner/dev/index.ts +192 -71
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
|
@@ -74,6 +74,8 @@ interface AskState {
|
|
|
74
74
|
noRecents: boolean;
|
|
75
75
|
hasAnswer: boolean;
|
|
76
76
|
noAnswer: boolean;
|
|
77
|
+
/** Hide the authored answer controls when neither an answer nor recents exist. */
|
|
78
|
+
noAfterAnswer: boolean;
|
|
77
79
|
|
|
78
80
|
// --- Proposed write (Phase 6) -------------------------------------------
|
|
79
81
|
// A generated row can PROPOSE a change; it can never make one. `proposeWrite`
|
|
@@ -145,6 +147,7 @@ const initialState: AskState = {
|
|
|
145
147
|
noRecents: true,
|
|
146
148
|
hasAnswer: false,
|
|
147
149
|
noAnswer: true,
|
|
150
|
+
noAfterAnswer: true,
|
|
148
151
|
proposalVerb: "",
|
|
149
152
|
proposalEntity: "",
|
|
150
153
|
proposalId: "",
|
|
@@ -436,6 +439,7 @@ async function runTurn(state: AskState, rawIntent: string, options: TurnOptions
|
|
|
436
439
|
savedScreenId: options.remember ? savedScreenId(intent) : state.savedScreenId,
|
|
437
440
|
hasAnswer: true,
|
|
438
441
|
noAnswer: false,
|
|
442
|
+
noAfterAnswer: false,
|
|
439
443
|
...NO_PROPOSAL,
|
|
440
444
|
};
|
|
441
445
|
}
|
|
@@ -499,6 +503,7 @@ const ask = defineService<AskState, {
|
|
|
499
503
|
...state, recents,
|
|
500
504
|
hasRecents: recents.length > 0,
|
|
501
505
|
noRecents: recents.length === 0,
|
|
506
|
+
noAfterAnswer: state.noAnswer && recents.length === 0,
|
|
502
507
|
// A saved link whose question has aged out of the recents list can't
|
|
503
508
|
// be replayed — say so rather than opening a blank screen.
|
|
504
509
|
...(id ? { headline: "That saved answer is gone", note: "Ask the question again to bring it back." } : {}),
|
|
@@ -40,6 +40,8 @@ export interface DrawerCore {
|
|
|
40
40
|
|
|
41
41
|
export interface DrawerState extends DrawerCore {
|
|
42
42
|
siteInitials: string;
|
|
43
|
+
/** Hide the name completely when unavailable so the site row has no empty gap. */
|
|
44
|
+
noSiteName: boolean;
|
|
43
45
|
attentionTotal: number;
|
|
44
46
|
attentionLabel: string;
|
|
45
47
|
/** TRUE when there is nothing to chase. Feeds `hiddenPath`, which hides on a
|
|
@@ -85,6 +87,7 @@ export function withDerived(core: DrawerCore): DrawerState {
|
|
|
85
87
|
attention,
|
|
86
88
|
confirmingClear,
|
|
87
89
|
siteInitials: initialsOf(core.siteName),
|
|
90
|
+
noSiteName: core.siteName.trim().length === 0,
|
|
88
91
|
attentionTotal: total,
|
|
89
92
|
attentionLabel: total === 0
|
|
90
93
|
? "All caught up"
|
|
@@ -51713,7 +51713,7 @@ const SCREENS = runtimeSetting({
|
|
|
51713
51713
|
"package": "himalaya",
|
|
51714
51714
|
"type": "HStack",
|
|
51715
51715
|
"props": {
|
|
51716
|
-
"spacing":
|
|
51716
|
+
"spacing": 0,
|
|
51717
51717
|
"children": [
|
|
51718
51718
|
{
|
|
51719
51719
|
"id": "",
|
|
@@ -51725,6 +51725,11 @@ const SCREENS = runtimeSetting({
|
|
|
51725
51725
|
"style": "footnote",
|
|
51726
51726
|
"color": "textSecondary"
|
|
51727
51727
|
}
|
|
51728
|
+
},
|
|
51729
|
+
"modifiers": {
|
|
51730
|
+
"padding": {
|
|
51731
|
+
"trailing": 10
|
|
51732
|
+
}
|
|
51728
51733
|
}
|
|
51729
51734
|
},
|
|
51730
51735
|
{
|
|
@@ -51743,7 +51748,8 @@ const SCREENS = runtimeSetting({
|
|
|
51743
51748
|
"props": {
|
|
51744
51749
|
"text": "$service:himiOwnerLiteAccount.businessName",
|
|
51745
51750
|
"style": "bodyEmphasis",
|
|
51746
|
-
"maxLines": 1
|
|
51751
|
+
"maxLines": 1,
|
|
51752
|
+
"collapseWhenEmpty": true
|
|
51747
51753
|
}
|
|
51748
51754
|
}
|
|
51749
51755
|
}
|
|
@@ -51757,7 +51763,7 @@ const SCREENS = runtimeSetting({
|
|
|
51757
51763
|
"package": "himalaya",
|
|
51758
51764
|
"type": "HStack",
|
|
51759
51765
|
"props": {
|
|
51760
|
-
"spacing":
|
|
51766
|
+
"spacing": 0,
|
|
51761
51767
|
"children": [
|
|
51762
51768
|
{
|
|
51763
51769
|
"id": "",
|
|
@@ -51769,6 +51775,11 @@ const SCREENS = runtimeSetting({
|
|
|
51769
51775
|
"style": "footnote",
|
|
51770
51776
|
"color": "textSecondary"
|
|
51771
51777
|
}
|
|
51778
|
+
},
|
|
51779
|
+
"modifiers": {
|
|
51780
|
+
"padding": {
|
|
51781
|
+
"trailing": 10
|
|
51782
|
+
}
|
|
51772
51783
|
}
|
|
51773
51784
|
},
|
|
51774
51785
|
{
|
|
@@ -51787,7 +51798,8 @@ const SCREENS = runtimeSetting({
|
|
|
51787
51798
|
"props": {
|
|
51788
51799
|
"text": "Organiser",
|
|
51789
51800
|
"style": "bodyEmphasis",
|
|
51790
|
-
"maxLines": 1
|
|
51801
|
+
"maxLines": 1,
|
|
51802
|
+
"collapseWhenEmpty": true
|
|
51791
51803
|
}
|
|
51792
51804
|
}
|
|
51793
51805
|
}
|
|
@@ -51801,7 +51813,7 @@ const SCREENS = runtimeSetting({
|
|
|
51801
51813
|
"package": "himalaya",
|
|
51802
51814
|
"type": "HStack",
|
|
51803
51815
|
"props": {
|
|
51804
|
-
"spacing":
|
|
51816
|
+
"spacing": 0,
|
|
51805
51817
|
"children": [
|
|
51806
51818
|
{
|
|
51807
51819
|
"id": "",
|
|
@@ -51813,6 +51825,11 @@ const SCREENS = runtimeSetting({
|
|
|
51813
51825
|
"style": "footnote",
|
|
51814
51826
|
"color": "textSecondary"
|
|
51815
51827
|
}
|
|
51828
|
+
},
|
|
51829
|
+
"modifiers": {
|
|
51830
|
+
"padding": {
|
|
51831
|
+
"trailing": 10
|
|
51832
|
+
}
|
|
51816
51833
|
}
|
|
51817
51834
|
},
|
|
51818
51835
|
{
|
|
@@ -51831,7 +51848,8 @@ const SCREENS = runtimeSetting({
|
|
|
51831
51848
|
"props": {
|
|
51832
51849
|
"text": "Business",
|
|
51833
51850
|
"style": "bodyEmphasis",
|
|
51834
|
-
"maxLines": 1
|
|
51851
|
+
"maxLines": 1,
|
|
51852
|
+
"collapseWhenEmpty": true
|
|
51835
51853
|
}
|
|
51836
51854
|
}
|
|
51837
51855
|
}
|
|
@@ -52076,16 +52094,12 @@ const SCREENS = runtimeSetting({
|
|
|
52076
52094
|
"text": "$service:drawer.siteName",
|
|
52077
52095
|
"style": "title3",
|
|
52078
52096
|
"color": "textPrimary",
|
|
52079
|
-
"maxLines": 1
|
|
52097
|
+
"maxLines": 1,
|
|
52098
|
+
"collapseWhenEmpty": true
|
|
52080
52099
|
}
|
|
52081
|
-
}
|
|
52082
|
-
|
|
52083
|
-
|
|
52084
|
-
"id": "",
|
|
52085
|
-
"body": {
|
|
52086
|
-
"package": "himalaya",
|
|
52087
|
-
"type": "Spacer",
|
|
52088
|
-
"props": {}
|
|
52100
|
+
},
|
|
52101
|
+
"modifiers": {
|
|
52102
|
+
"hiddenPath": "$service:drawer.noSiteName"
|
|
52089
52103
|
}
|
|
52090
52104
|
}
|
|
52091
52105
|
]
|
|
@@ -52534,14 +52548,6 @@ const SCREENS = runtimeSetting({
|
|
|
52534
52548
|
"modifiers": {
|
|
52535
52549
|
"hiddenPath": "$service:drawer.noAttention"
|
|
52536
52550
|
}
|
|
52537
|
-
},
|
|
52538
|
-
{
|
|
52539
|
-
"id": "",
|
|
52540
|
-
"body": {
|
|
52541
|
-
"package": "himalaya",
|
|
52542
|
-
"type": "Spacer",
|
|
52543
|
-
"props": {}
|
|
52544
|
-
}
|
|
52545
52551
|
}
|
|
52546
52552
|
]
|
|
52547
52553
|
}
|
|
@@ -55706,6 +55712,9 @@ const SCREENS = runtimeSetting({
|
|
|
55706
55712
|
],
|
|
55707
55713
|
"defaultCase": "loading"
|
|
55708
55714
|
}
|
|
55715
|
+
},
|
|
55716
|
+
"modifiers": {
|
|
55717
|
+
"hiddenPath": "$service:ask.noAfterAnswer"
|
|
55709
55718
|
}
|
|
55710
55719
|
}
|
|
55711
55720
|
]
|
|
@@ -61194,14 +61203,6 @@ const SCREENS = runtimeSetting({
|
|
|
61194
61203
|
},
|
|
61195
61204
|
"accessibilityLabel": "Take a photo"
|
|
61196
61205
|
}
|
|
61197
|
-
},
|
|
61198
|
-
{
|
|
61199
|
-
"id": "",
|
|
61200
|
-
"body": {
|
|
61201
|
-
"package": "himalaya",
|
|
61202
|
-
"type": "Spacer",
|
|
61203
|
-
"props": {}
|
|
61204
|
-
}
|
|
61205
61206
|
}
|
|
61206
61207
|
]
|
|
61207
61208
|
}
|
|
@@ -69612,7 +69613,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69612
69613
|
"package": "himalaya",
|
|
69613
69614
|
"type": "HStack",
|
|
69614
69615
|
"props": {
|
|
69615
|
-
"spacing":
|
|
69616
|
+
"spacing": 0,
|
|
69616
69617
|
"children": [
|
|
69617
69618
|
{
|
|
69618
69619
|
"id": "",
|
|
@@ -69624,6 +69625,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69624
69625
|
"style": "footnote",
|
|
69625
69626
|
"color": "textSecondary"
|
|
69626
69627
|
}
|
|
69628
|
+
},
|
|
69629
|
+
"modifiers": {
|
|
69630
|
+
"padding": {
|
|
69631
|
+
"trailing": 10
|
|
69632
|
+
}
|
|
69627
69633
|
}
|
|
69628
69634
|
},
|
|
69629
69635
|
{
|
|
@@ -69642,7 +69648,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69642
69648
|
"props": {
|
|
69643
69649
|
"text": "$service:himiOwnerLiteEvent.dateLine",
|
|
69644
69650
|
"style": "bodyEmphasis",
|
|
69645
|
-
"maxLines": 1
|
|
69651
|
+
"maxLines": 1,
|
|
69652
|
+
"collapseWhenEmpty": true
|
|
69646
69653
|
}
|
|
69647
69654
|
}
|
|
69648
69655
|
}
|
|
@@ -69664,7 +69671,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69664
69671
|
"package": "himalaya",
|
|
69665
69672
|
"type": "HStack",
|
|
69666
69673
|
"props": {
|
|
69667
|
-
"spacing":
|
|
69674
|
+
"spacing": 0,
|
|
69668
69675
|
"children": [
|
|
69669
69676
|
{
|
|
69670
69677
|
"id": "",
|
|
@@ -69676,6 +69683,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69676
69683
|
"style": "footnote",
|
|
69677
69684
|
"color": "textSecondary"
|
|
69678
69685
|
}
|
|
69686
|
+
},
|
|
69687
|
+
"modifiers": {
|
|
69688
|
+
"padding": {
|
|
69689
|
+
"trailing": 10
|
|
69690
|
+
}
|
|
69679
69691
|
}
|
|
69680
69692
|
},
|
|
69681
69693
|
{
|
|
@@ -69694,7 +69706,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69694
69706
|
"props": {
|
|
69695
69707
|
"text": "$service:himiOwnerLiteEvent.location",
|
|
69696
69708
|
"style": "bodyEmphasis",
|
|
69697
|
-
"maxLines": 1
|
|
69709
|
+
"maxLines": 1,
|
|
69710
|
+
"collapseWhenEmpty": true
|
|
69698
69711
|
}
|
|
69699
69712
|
}
|
|
69700
69713
|
}
|
|
@@ -69716,7 +69729,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69716
69729
|
"package": "himalaya",
|
|
69717
69730
|
"type": "HStack",
|
|
69718
69731
|
"props": {
|
|
69719
|
-
"spacing":
|
|
69732
|
+
"spacing": 0,
|
|
69720
69733
|
"children": [
|
|
69721
69734
|
{
|
|
69722
69735
|
"id": "",
|
|
@@ -69728,6 +69741,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69728
69741
|
"style": "footnote",
|
|
69729
69742
|
"color": "textSecondary"
|
|
69730
69743
|
}
|
|
69744
|
+
},
|
|
69745
|
+
"modifiers": {
|
|
69746
|
+
"padding": {
|
|
69747
|
+
"trailing": 10
|
|
69748
|
+
}
|
|
69731
69749
|
}
|
|
69732
69750
|
},
|
|
69733
69751
|
{
|
|
@@ -69746,7 +69764,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69746
69764
|
"props": {
|
|
69747
69765
|
"text": "$service:himiOwnerLiteEvent.statusLabel",
|
|
69748
69766
|
"style": "bodyEmphasis",
|
|
69749
|
-
"maxLines": 1
|
|
69767
|
+
"maxLines": 1,
|
|
69768
|
+
"collapseWhenEmpty": true
|
|
69750
69769
|
}
|
|
69751
69770
|
}
|
|
69752
69771
|
}
|
|
@@ -69768,7 +69787,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69768
69787
|
"package": "himalaya",
|
|
69769
69788
|
"type": "HStack",
|
|
69770
69789
|
"props": {
|
|
69771
|
-
"spacing":
|
|
69790
|
+
"spacing": 0,
|
|
69772
69791
|
"children": [
|
|
69773
69792
|
{
|
|
69774
69793
|
"id": "",
|
|
@@ -69780,6 +69799,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69780
69799
|
"style": "footnote",
|
|
69781
69800
|
"color": "textSecondary"
|
|
69782
69801
|
}
|
|
69802
|
+
},
|
|
69803
|
+
"modifiers": {
|
|
69804
|
+
"padding": {
|
|
69805
|
+
"trailing": 10
|
|
69806
|
+
}
|
|
69783
69807
|
}
|
|
69784
69808
|
},
|
|
69785
69809
|
{
|
|
@@ -69798,7 +69822,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69798
69822
|
"props": {
|
|
69799
69823
|
"text": "$service:himiOwnerLiteEvent.registration",
|
|
69800
69824
|
"style": "bodyEmphasis",
|
|
69801
|
-
"maxLines": 1
|
|
69825
|
+
"maxLines": 1,
|
|
69826
|
+
"collapseWhenEmpty": true
|
|
69802
69827
|
}
|
|
69803
69828
|
}
|
|
69804
69829
|
}
|
|
@@ -70546,7 +70571,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70546
70571
|
"package": "himalaya",
|
|
70547
70572
|
"type": "HStack",
|
|
70548
70573
|
"props": {
|
|
70549
|
-
"spacing":
|
|
70574
|
+
"spacing": 0,
|
|
70550
70575
|
"children": [
|
|
70551
70576
|
{
|
|
70552
70577
|
"id": "",
|
|
@@ -70558,6 +70583,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70558
70583
|
"style": "footnote",
|
|
70559
70584
|
"color": "textSecondary"
|
|
70560
70585
|
}
|
|
70586
|
+
},
|
|
70587
|
+
"modifiers": {
|
|
70588
|
+
"padding": {
|
|
70589
|
+
"trailing": 10
|
|
70590
|
+
}
|
|
70561
70591
|
}
|
|
70562
70592
|
},
|
|
70563
70593
|
{
|
|
@@ -70576,7 +70606,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70576
70606
|
"props": {
|
|
70577
70607
|
"text": "$service:himiOwnerLitePost.postStatus",
|
|
70578
70608
|
"style": "bodyEmphasis",
|
|
70579
|
-
"maxLines": 1
|
|
70609
|
+
"maxLines": 1,
|
|
70610
|
+
"collapseWhenEmpty": true
|
|
70580
70611
|
}
|
|
70581
70612
|
}
|
|
70582
70613
|
}
|
|
@@ -70598,7 +70629,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70598
70629
|
"package": "himalaya",
|
|
70599
70630
|
"type": "HStack",
|
|
70600
70631
|
"props": {
|
|
70601
|
-
"spacing":
|
|
70632
|
+
"spacing": 0,
|
|
70602
70633
|
"children": [
|
|
70603
70634
|
{
|
|
70604
70635
|
"id": "",
|
|
@@ -70610,6 +70641,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70610
70641
|
"style": "footnote",
|
|
70611
70642
|
"color": "textSecondary"
|
|
70612
70643
|
}
|
|
70644
|
+
},
|
|
70645
|
+
"modifiers": {
|
|
70646
|
+
"padding": {
|
|
70647
|
+
"trailing": 10
|
|
70648
|
+
}
|
|
70613
70649
|
}
|
|
70614
70650
|
},
|
|
70615
70651
|
{
|
|
@@ -70628,7 +70664,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70628
70664
|
"props": {
|
|
70629
70665
|
"text": "$service:himiOwnerLitePost.category",
|
|
70630
70666
|
"style": "bodyEmphasis",
|
|
70631
|
-
"maxLines": 1
|
|
70667
|
+
"maxLines": 1,
|
|
70668
|
+
"collapseWhenEmpty": true
|
|
70632
70669
|
}
|
|
70633
70670
|
}
|
|
70634
70671
|
}
|
|
@@ -70650,7 +70687,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70650
70687
|
"package": "himalaya",
|
|
70651
70688
|
"type": "HStack",
|
|
70652
70689
|
"props": {
|
|
70653
|
-
"spacing":
|
|
70690
|
+
"spacing": 0,
|
|
70654
70691
|
"children": [
|
|
70655
70692
|
{
|
|
70656
70693
|
"id": "",
|
|
@@ -70662,6 +70699,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70662
70699
|
"style": "footnote",
|
|
70663
70700
|
"color": "textSecondary"
|
|
70664
70701
|
}
|
|
70702
|
+
},
|
|
70703
|
+
"modifiers": {
|
|
70704
|
+
"padding": {
|
|
70705
|
+
"trailing": 10
|
|
70706
|
+
}
|
|
70665
70707
|
}
|
|
70666
70708
|
},
|
|
70667
70709
|
{
|
|
@@ -70680,7 +70722,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70680
70722
|
"props": {
|
|
70681
70723
|
"text": "$service:himiOwnerLitePost.published",
|
|
70682
70724
|
"style": "bodyEmphasis",
|
|
70683
|
-
"maxLines": 1
|
|
70725
|
+
"maxLines": 1,
|
|
70726
|
+
"collapseWhenEmpty": true
|
|
70684
70727
|
}
|
|
70685
70728
|
}
|
|
70686
70729
|
}
|
|
@@ -70702,7 +70745,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70702
70745
|
"package": "himalaya",
|
|
70703
70746
|
"type": "HStack",
|
|
70704
70747
|
"props": {
|
|
70705
|
-
"spacing":
|
|
70748
|
+
"spacing": 0,
|
|
70706
70749
|
"children": [
|
|
70707
70750
|
{
|
|
70708
70751
|
"id": "",
|
|
@@ -70714,6 +70757,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70714
70757
|
"style": "footnote",
|
|
70715
70758
|
"color": "textSecondary"
|
|
70716
70759
|
}
|
|
70760
|
+
},
|
|
70761
|
+
"modifiers": {
|
|
70762
|
+
"padding": {
|
|
70763
|
+
"trailing": 10
|
|
70764
|
+
}
|
|
70717
70765
|
}
|
|
70718
70766
|
},
|
|
70719
70767
|
{
|
|
@@ -70732,7 +70780,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70732
70780
|
"props": {
|
|
70733
70781
|
"text": "$service:himiOwnerLitePost.updated",
|
|
70734
70782
|
"style": "bodyEmphasis",
|
|
70735
|
-
"maxLines": 1
|
|
70783
|
+
"maxLines": 1,
|
|
70784
|
+
"collapseWhenEmpty": true
|
|
70736
70785
|
}
|
|
70737
70786
|
}
|
|
70738
70787
|
}
|
|
@@ -74,6 +74,8 @@ interface AskState {
|
|
|
74
74
|
noRecents: boolean;
|
|
75
75
|
hasAnswer: boolean;
|
|
76
76
|
noAnswer: boolean;
|
|
77
|
+
/** Hide the authored answer controls when neither an answer nor recents exist. */
|
|
78
|
+
noAfterAnswer: boolean;
|
|
77
79
|
|
|
78
80
|
// --- Proposed write (Phase 6) -------------------------------------------
|
|
79
81
|
// A generated row can PROPOSE a change; it can never make one. `proposeWrite`
|
|
@@ -145,6 +147,7 @@ const initialState: AskState = {
|
|
|
145
147
|
noRecents: true,
|
|
146
148
|
hasAnswer: false,
|
|
147
149
|
noAnswer: true,
|
|
150
|
+
noAfterAnswer: true,
|
|
148
151
|
proposalVerb: "",
|
|
149
152
|
proposalEntity: "",
|
|
150
153
|
proposalId: "",
|
|
@@ -436,6 +439,7 @@ async function runTurn(state: AskState, rawIntent: string, options: TurnOptions
|
|
|
436
439
|
savedScreenId: options.remember ? savedScreenId(intent) : state.savedScreenId,
|
|
437
440
|
hasAnswer: true,
|
|
438
441
|
noAnswer: false,
|
|
442
|
+
noAfterAnswer: false,
|
|
439
443
|
...NO_PROPOSAL,
|
|
440
444
|
};
|
|
441
445
|
}
|
|
@@ -499,6 +503,7 @@ const ask = defineService<AskState, {
|
|
|
499
503
|
...state, recents,
|
|
500
504
|
hasRecents: recents.length > 0,
|
|
501
505
|
noRecents: recents.length === 0,
|
|
506
|
+
noAfterAnswer: state.noAnswer && recents.length === 0,
|
|
502
507
|
// A saved link whose question has aged out of the recents list can't
|
|
503
508
|
// be replayed — say so rather than opening a blank screen.
|
|
504
509
|
...(id ? { headline: "That saved answer is gone", note: "Ask the question again to bring it back." } : {}),
|
|
@@ -40,6 +40,8 @@ export interface DrawerCore {
|
|
|
40
40
|
|
|
41
41
|
export interface DrawerState extends DrawerCore {
|
|
42
42
|
siteInitials: string;
|
|
43
|
+
/** Hide the name completely when unavailable so the site row has no empty gap. */
|
|
44
|
+
noSiteName: boolean;
|
|
43
45
|
attentionTotal: number;
|
|
44
46
|
attentionLabel: string;
|
|
45
47
|
/** TRUE when there is nothing to chase. Feeds `hiddenPath`, which hides on a
|
|
@@ -85,6 +87,7 @@ export function withDerived(core: DrawerCore): DrawerState {
|
|
|
85
87
|
attention,
|
|
86
88
|
confirmingClear,
|
|
87
89
|
siteInitials: initialsOf(core.siteName),
|
|
90
|
+
noSiteName: core.siteName.trim().length === 0,
|
|
88
91
|
attentionTotal: total,
|
|
89
92
|
attentionLabel: total === 0
|
|
90
93
|
? "All caught up"
|