@wix/web5-core 1.56.0 → 1.57.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/cjs/client/wixAuthFetch.js +2 -2
- package/dist/cjs/client/wixAuthFetch.js.map +1 -1
- package/dist/cjs/component/componentDefinitions/HeroEntitySectionDefinition.js +20 -15
- package/dist/cjs/component/componentDefinitions/HeroEntitySectionDefinition.js.map +1 -1
- package/dist/cjs/component/componentDefinitions/HeroSectionDefinition.js +12 -4
- package/dist/cjs/component/componentDefinitions/HeroSectionDefinition.js.map +1 -1
- package/dist/cjs/component/componentDefinitions/listItemsSectionDefinition.js +24 -29
- package/dist/cjs/component/componentDefinitions/listItemsSectionDefinition.js.map +1 -1
- package/dist/cjs/component/componentParser.js +8 -1
- package/dist/cjs/component/componentParser.js.map +1 -1
- package/dist/cjs/component/types.js.map +1 -1
- package/dist/cjs/components/placement/PlacementResponseRenderer.css +0 -4
- package/dist/cjs/components/placement/PlacementResponseRenderer.js +11 -33
- package/dist/cjs/components/placement/PlacementResponseRenderer.js.map +1 -1
- package/dist/cjs/components/placement/buildPlacementDependencies.js.map +1 -1
- package/dist/cjs/components/ui/OptimizedImage.js +59 -14
- package/dist/cjs/components/ui/OptimizedImage.js.map +1 -1
- package/dist/cjs/components/ui/SectionSkeleton.css +19 -0
- package/dist/cjs/components/ui/SectionSkeleton.js +8 -4
- package/dist/cjs/components/ui/SectionSkeleton.js.map +1 -1
- package/dist/cjs/components/ui/UserQuery.css +72 -0
- package/dist/cjs/components/ui/UserQuery.js +131 -37
- package/dist/cjs/components/ui/UserQuery.js.map +1 -1
- package/dist/cjs/context/UserQueryContext.js +34 -0
- package/dist/cjs/context/UserQueryContext.js.map +1 -0
- package/dist/cjs/entity/defaultExtractor.js +9 -2
- package/dist/cjs/entity/defaultExtractor.js.map +1 -1
- package/dist/cjs/entity/fetchEntityListData.js +13 -26
- package/dist/cjs/entity/fetchEntityListData.js.map +1 -1
- package/dist/cjs/entity/index.js +5 -1
- package/dist/cjs/entity/index.js.map +1 -1
- package/dist/cjs/entity/listEntityItems.js +90 -0
- package/dist/cjs/entity/listEntityItems.js.map +1 -0
- package/dist/cjs/hostScope.js +63 -0
- package/dist/cjs/hostScope.js.map +1 -0
- package/dist/cjs/index.js +38 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/patternValidator/validator.test.js +61 -61
- package/dist/cjs/patternValidator/validator.test.js.map +1 -1
- package/dist/cjs/registry/ComponentRegistry.js +22 -2
- package/dist/cjs/registry/ComponentRegistry.js.map +1 -1
- package/dist/cjs/registry/index.js +1 -3
- package/dist/cjs/registry/index.js.map +1 -1
- package/dist/cjs/registry/types.js.map +1 -1
- package/dist/cjs/styles/base-utilities.css +35 -0
- package/dist/cjs/styles/components.css +1 -0
- package/dist/cjs/styles/host-reset.css +81 -0
- package/dist/cjs/styles/tailwind-theme.css +6 -6
- package/dist/cjs/utils/backendEnvironment.js +78 -0
- package/dist/cjs/utils/backendEnvironment.js.map +1 -0
- package/dist/cjs/utils/entityLinkParser.js +3 -1
- package/dist/cjs/utils/entityLinkParser.js.map +1 -1
- package/dist/cjs/utils/imageBackdrop.js +269 -0
- package/dist/cjs/utils/imageBackdrop.js.map +1 -0
- package/dist/cjs/utils/intentExtractor.js +20 -9
- package/dist/cjs/utils/intentExtractor.js.map +1 -1
- package/dist/cjs/utils/productBackHandoff.js +106 -0
- package/dist/cjs/utils/productBackHandoff.js.map +1 -0
- package/dist/cjs/utils/refreshPrompts.js +72 -0
- package/dist/cjs/utils/refreshPrompts.js.map +1 -0
- package/dist/esm/client/wixAuthFetch.js +2 -2
- package/dist/esm/client/wixAuthFetch.js.map +1 -1
- package/dist/esm/component/componentDefinitions/HeroEntitySectionDefinition.js +20 -15
- package/dist/esm/component/componentDefinitions/HeroEntitySectionDefinition.js.map +1 -1
- package/dist/esm/component/componentDefinitions/HeroSectionDefinition.js +12 -4
- package/dist/esm/component/componentDefinitions/HeroSectionDefinition.js.map +1 -1
- package/dist/esm/component/componentDefinitions/listItemsSectionDefinition.js +25 -30
- package/dist/esm/component/componentDefinitions/listItemsSectionDefinition.js.map +1 -1
- package/dist/esm/component/componentParser.js +8 -1
- package/dist/esm/component/componentParser.js.map +1 -1
- package/dist/esm/component/types.js.map +1 -1
- package/dist/esm/components/placement/PlacementResponseRenderer.css +0 -4
- package/dist/esm/components/placement/PlacementResponseRenderer.js +1 -16
- package/dist/esm/components/placement/PlacementResponseRenderer.js.map +1 -1
- package/dist/esm/components/placement/buildPlacementDependencies.js.map +1 -1
- package/dist/esm/components/ui/OptimizedImage.js +50 -5
- package/dist/esm/components/ui/OptimizedImage.js.map +1 -1
- package/dist/esm/components/ui/SectionSkeleton.css +19 -0
- package/dist/esm/components/ui/SectionSkeleton.js +5 -1
- package/dist/esm/components/ui/SectionSkeleton.js.map +1 -1
- package/dist/esm/components/ui/UserQuery.css +72 -0
- package/dist/esm/components/ui/UserQuery.js +52 -6
- package/dist/esm/components/ui/UserQuery.js.map +1 -1
- package/dist/esm/context/UserQueryContext.js +21 -0
- package/dist/esm/context/UserQueryContext.js.map +1 -0
- package/dist/esm/entity/defaultExtractor.js +9 -2
- package/dist/esm/entity/defaultExtractor.js.map +1 -1
- package/dist/esm/entity/fetchEntityListData.js +14 -26
- package/dist/esm/entity/fetchEntityListData.js.map +1 -1
- package/dist/esm/entity/index.js +1 -0
- package/dist/esm/entity/index.js.map +1 -1
- package/dist/esm/entity/listEntityItems.js +85 -0
- package/dist/esm/entity/listEntityItems.js.map +1 -0
- package/dist/esm/hostScope.js +59 -0
- package/dist/esm/hostScope.js.map +1 -0
- package/dist/esm/index.js +13 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/patternValidator/validator.test.js +61 -61
- package/dist/esm/patternValidator/validator.test.js.map +1 -1
- package/dist/esm/registry/ComponentRegistry.js +22 -2
- package/dist/esm/registry/ComponentRegistry.js.map +1 -1
- package/dist/esm/registry/index.js +0 -1
- package/dist/esm/registry/index.js.map +1 -1
- package/dist/esm/registry/types.js.map +1 -1
- package/dist/esm/styles/base-utilities.css +35 -0
- package/dist/esm/styles/components.css +1 -0
- package/dist/esm/styles/host-reset.css +81 -0
- package/dist/esm/styles/tailwind-theme.css +6 -6
- package/dist/esm/utils/backendEnvironment.js +71 -0
- package/dist/esm/utils/backendEnvironment.js.map +1 -0
- package/dist/esm/utils/entityLinkParser.js +3 -1
- package/dist/esm/utils/entityLinkParser.js.map +1 -1
- package/dist/esm/utils/imageBackdrop.js +262 -0
- package/dist/esm/utils/imageBackdrop.js.map +1 -0
- package/dist/esm/utils/intentExtractor.js +21 -12
- package/dist/esm/utils/intentExtractor.js.map +1 -1
- package/dist/esm/utils/productBackHandoff.js +100 -0
- package/dist/esm/utils/productBackHandoff.js.map +1 -0
- package/dist/esm/utils/refreshPrompts.js +67 -0
- package/dist/esm/utils/refreshPrompts.js.map +1 -0
- package/dist/types/component/componentDefinitions/HeroEntitySectionDefinition.d.ts.map +1 -1
- package/dist/types/component/componentDefinitions/HeroSectionDefinition.d.ts.map +1 -1
- package/dist/types/component/componentDefinitions/listItemsSectionDefinition.d.ts +2 -2
- package/dist/types/component/componentDefinitions/listItemsSectionDefinition.d.ts.map +1 -1
- package/dist/types/component/componentParser.d.ts.map +1 -1
- package/dist/types/component/types.d.ts +1 -5
- package/dist/types/component/types.d.ts.map +1 -1
- package/dist/types/components/placement/PlacementResponseRenderer.d.ts +1 -1
- package/dist/types/components/placement/PlacementResponseRenderer.d.ts.map +1 -1
- package/dist/types/components/placement/buildPlacementDependencies.d.ts +1 -2
- package/dist/types/components/placement/buildPlacementDependencies.d.ts.map +1 -1
- package/dist/types/components/ui/OptimizedImage.d.ts +9 -0
- package/dist/types/components/ui/OptimizedImage.d.ts.map +1 -1
- package/dist/types/components/ui/SectionSkeleton.d.ts.map +1 -1
- package/dist/types/components/ui/UserQuery.d.ts +21 -0
- package/dist/types/components/ui/UserQuery.d.ts.map +1 -1
- package/dist/types/context/UserQueryContext.d.ts +12 -0
- package/dist/types/context/UserQueryContext.d.ts.map +1 -0
- package/dist/types/entity/defaultExtractor.d.ts.map +1 -1
- package/dist/types/entity/fetchEntityListData.d.ts +0 -2
- package/dist/types/entity/fetchEntityListData.d.ts.map +1 -1
- package/dist/types/entity/index.d.ts +1 -0
- package/dist/types/entity/index.d.ts.map +1 -1
- package/dist/types/entity/listEntityItems.d.ts +40 -0
- package/dist/types/entity/listEntityItems.d.ts.map +1 -0
- package/dist/types/hostScope.d.ts +83 -0
- package/dist/types/hostScope.d.ts.map +1 -0
- package/dist/types/index.d.ts +11 -7
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/registry/ComponentRegistry.d.ts +8 -0
- package/dist/types/registry/ComponentRegistry.d.ts.map +1 -1
- package/dist/types/registry/index.d.ts +0 -1
- package/dist/types/registry/index.d.ts.map +1 -1
- package/dist/types/registry/types.d.ts +5 -6
- package/dist/types/registry/types.d.ts.map +1 -1
- package/dist/types/utils/backendEnvironment.d.ts +30 -0
- package/dist/types/utils/backendEnvironment.d.ts.map +1 -0
- package/dist/types/utils/entityLinkParser.d.ts.map +1 -1
- package/dist/types/utils/imageBackdrop.d.ts +102 -0
- package/dist/types/utils/imageBackdrop.d.ts.map +1 -0
- package/dist/types/utils/intentExtractor.d.ts +21 -4
- package/dist/types/utils/intentExtractor.d.ts.map +1 -1
- package/dist/types/utils/productBackHandoff.d.ts +43 -0
- package/dist/types/utils/productBackHandoff.d.ts.map +1 -0
- package/dist/types/utils/refreshPrompts.d.ts +32 -0
- package/dist/types/utils/refreshPrompts.d.ts.map +1 -0
- package/package.json +4 -3
- package/src/components/placement/PlacementResponseRenderer.css +265 -0
- package/src/components/ui/Disclaimer.css +35 -0
- package/src/components/ui/FeedbackBar.css +267 -0
- package/src/components/ui/PlacementLoader.css +101 -0
- package/src/components/ui/PromptEntryEmptyState.css +172 -0
- package/src/components/ui/SearchSection.css +538 -0
- package/src/components/ui/SectionSkeleton.css +128 -0
- package/src/components/ui/UserQuery.css +72 -0
- package/src/styles/base-utilities.css +35 -0
- package/src/styles/components.css +1 -0
- package/src/styles/host-reset.css +81 -0
- package/src/styles/tailwind-theme.css +6 -6
- package/dist/cjs/registry/Intent.js +0 -19
- package/dist/cjs/registry/Intent.js.map +0 -1
- package/dist/cjs/utils/conversationApi.js +0 -52
- package/dist/cjs/utils/conversationApi.js.map +0 -1
- package/dist/cjs/utils/conversationMode.js +0 -23
- package/dist/cjs/utils/conversationMode.js.map +0 -1
- package/dist/esm/registry/Intent.js +0 -15
- package/dist/esm/registry/Intent.js.map +0 -1
- package/dist/esm/utils/conversationApi.js +0 -45
- package/dist/esm/utils/conversationApi.js.map +0 -1
- package/dist/esm/utils/conversationMode.js +0 -18
- package/dist/esm/utils/conversationMode.js.map +0 -1
- package/dist/types/registry/Intent.d.ts +0 -12
- package/dist/types/registry/Intent.d.ts.map +0 -1
- package/dist/types/utils/conversationApi.d.ts +0 -26
- package/dist/types/utils/conversationApi.d.ts.map +0 -1
- package/dist/types/utils/conversationMode.d.ts +0 -16
- package/dist/types/utils/conversationMode.d.ts.map +0 -1
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
.web5-prompt-shell {
|
|
2
|
+
width: 100%;
|
|
3
|
+
pointer-events: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.web5-prompt-shell--collapsed {
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: flex-end;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.web5-prompt-shell__stage {
|
|
14
|
+
position: relative;
|
|
15
|
+
width: 100%;
|
|
16
|
+
min-height: calc(
|
|
17
|
+
var(--pi-field-min-h) + var(--pi-panel-padding-block-start) +
|
|
18
|
+
var(--pi-panel-padding-block-end)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.web5-prompt-shell__content {
|
|
23
|
+
position: relative;
|
|
24
|
+
z-index: 1;
|
|
25
|
+
width: 100%;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
transform-origin: right bottom;
|
|
28
|
+
transition: opacity 220ms ease, transform 260ms ease, filter 220ms ease;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.web5-prompt-shell--collapsed .web5-prompt-shell__content {
|
|
32
|
+
position: absolute;
|
|
33
|
+
right: 0;
|
|
34
|
+
bottom: 0;
|
|
35
|
+
width: min(100vw, var(--pi-content-max-w));
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transform: translate3d(160px, 30px, 0) scale(0.26, 0.72);
|
|
38
|
+
filter: blur(1px);
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.web5-prompt-shell--collapsed .web5-prompt-shell__stage {
|
|
43
|
+
width: max-content;
|
|
44
|
+
min-height: auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.web5-prompt-shell__collapsed-button {
|
|
48
|
+
position: absolute;
|
|
49
|
+
right: 24px;
|
|
50
|
+
bottom: 16px;
|
|
51
|
+
z-index: 2;
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
min-height: var(--pi-collapsed-btn-min-h);
|
|
56
|
+
padding: var(--pi-collapsed-btn-padding-y) var(--pi-collapsed-btn-padding-x);
|
|
57
|
+
border: 1px solid var(--pi-collapsed-btn-border);
|
|
58
|
+
border-radius: var(--pi-collapsed-btn-radius);
|
|
59
|
+
isolation: isolate;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
background: var(--pi-collapsed-btn-bg);
|
|
62
|
+
box-shadow: var(--pi-collapsed-btn-shadow);
|
|
63
|
+
color: var(--pi-collapsed-btn-fg);
|
|
64
|
+
font-family: var(--pi-field-font-family);
|
|
65
|
+
font-size: var(--pi-collapsed-btn-font-size);
|
|
66
|
+
font-weight: var(--pi-collapsed-btn-font-weight);
|
|
67
|
+
line-height: var(--pi-collapsed-btn-line-height);
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
transition: opacity 220ms ease, transform 260ms ease,
|
|
71
|
+
box-shadow var(--pi-transition-fast);
|
|
72
|
+
opacity: 0;
|
|
73
|
+
transform: translate3d(18px, 14px, 0) scale(0.92);
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.web5-prompt-shell__collapsed-button::before,
|
|
78
|
+
.web5-prompt-shell__collapsed-button::after {
|
|
79
|
+
content: '';
|
|
80
|
+
position: absolute;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.web5-prompt-shell__collapsed-button::before {
|
|
85
|
+
top: 50%;
|
|
86
|
+
left: 50%;
|
|
87
|
+
z-index: -2;
|
|
88
|
+
width: 240%;
|
|
89
|
+
height: 760%;
|
|
90
|
+
transform: translate(-50%, -50%) rotate(0deg);
|
|
91
|
+
transform-origin: center;
|
|
92
|
+
background-image: var(--pi-collapsed-btn-decoration);
|
|
93
|
+
opacity: var(--pi-collapsed-btn-decoration-opacity);
|
|
94
|
+
animation: web5-prompt-border-snake 3.4s linear infinite;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.web5-prompt-shell__collapsed-button::after {
|
|
98
|
+
inset: 1px;
|
|
99
|
+
z-index: -1;
|
|
100
|
+
border-radius: inherit;
|
|
101
|
+
background: var(--pi-collapsed-btn-inner-bg);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.web5-prompt-shell--collapsed .web5-prompt-shell__collapsed-button {
|
|
105
|
+
position: relative;
|
|
106
|
+
right: auto;
|
|
107
|
+
bottom: auto;
|
|
108
|
+
margin: 0 24px 16px 0;
|
|
109
|
+
opacity: 1;
|
|
110
|
+
transform: translate3d(0, 0, 0) scale(1);
|
|
111
|
+
pointer-events: auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.web5-prompt-shell__collapsed-button:hover {
|
|
115
|
+
box-shadow: var(--pi-collapsed-btn-hover-shadow);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.web5-prompt-shell--collapsed .web5-prompt-shell__collapsed-button:hover {
|
|
119
|
+
transform: translate3d(0, -1px, 0) scale(1);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.web5-prompt-shell__collapsed-button:focus-visible {
|
|
123
|
+
outline: 2px solid var(--pi-submit-active-bg);
|
|
124
|
+
outline-offset: 2px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@keyframes web5-prompt-border-snake {
|
|
128
|
+
100% {
|
|
129
|
+
transform: translate(-50%, -50%) rotate(1turn);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.web5-prompt-shell__panel {
|
|
134
|
+
width: 100%;
|
|
135
|
+
padding-block: var(--pi-panel-padding-y);
|
|
136
|
+
background: var(--pi-panel-bg);
|
|
137
|
+
box-shadow: var(--pi-panel-shadow);
|
|
138
|
+
backdrop-filter: blur(var(--pi-panel-blur));
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.web5-prompt-shell__stack {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.web5-prompt-shell__stack:has(.web5-prompt-shell__chips--visible) {
|
|
148
|
+
gap: var(--pi-stack-gap);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.web5-prompt-shell__stack--chips-top {
|
|
152
|
+
flex-direction: column-reverse;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.web5-prompt-shell__chips {
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-wrap: wrap;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
gap: var(--pi-chip-gap);
|
|
160
|
+
margin: 0 auto;
|
|
161
|
+
width: 100%;
|
|
162
|
+
max-width: 835px;
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
transition: transform var(--pi-transition-medium),
|
|
165
|
+
opacity var(--pi-transition-medium), max-height var(--pi-transition-medium);
|
|
166
|
+
pointer-events: auto;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.web5-prompt-shell__chips--visible {
|
|
170
|
+
transform: translateY(0);
|
|
171
|
+
opacity: 1;
|
|
172
|
+
max-height: 8rem;
|
|
173
|
+
overflow: visible;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.web5-prompt-shell__chips--hidden {
|
|
177
|
+
transform: translateY(1rem);
|
|
178
|
+
opacity: 0;
|
|
179
|
+
max-height: 0;
|
|
180
|
+
overflow: hidden;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.web5-prompt-chip {
|
|
184
|
+
display: inline-flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
justify-content: center;
|
|
187
|
+
gap: 6px;
|
|
188
|
+
padding: var(--pi-chip-padding-y) var(--pi-chip-padding-x);
|
|
189
|
+
border: 1px solid var(--pi-chip-border, transparent);
|
|
190
|
+
border-radius: var(--pi-chip-radius);
|
|
191
|
+
background: var(--pi-chip-bg);
|
|
192
|
+
box-shadow: var(--pi-chip-shadow);
|
|
193
|
+
color: var(--pi-chip-text);
|
|
194
|
+
font-family: var(--pi-field-font-family);
|
|
195
|
+
font-size: var(--pi-chip-font-size);
|
|
196
|
+
font-weight: 500;
|
|
197
|
+
line-height: var(--pi-chip-line-height);
|
|
198
|
+
text-decoration: none;
|
|
199
|
+
white-space: nowrap;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
text-overflow: ellipsis;
|
|
202
|
+
transition: background-color var(--pi-transition-fast);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.web5-prompt-chip:hover {
|
|
206
|
+
background: var(--pi-chip-hover-bg);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* Inset ring so the focus indicator isn't clipped by the chips container's overflow: hidden */
|
|
210
|
+
.web5-prompt-chip:focus-visible {
|
|
211
|
+
outline: none;
|
|
212
|
+
box-shadow: inset 0 0 0 2px rgba(128, 0, 177, 0.8), var(--pi-chip-shadow);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.web5-prompt-search {
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
justify-content: center;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.web5-prompt-search__inner {
|
|
222
|
+
position: relative;
|
|
223
|
+
width: min(100%, var(--pi-content-max-w));
|
|
224
|
+
min-width: min(100%, var(--pi-content-min-w));
|
|
225
|
+
margin-inline: auto;
|
|
226
|
+
pointer-events: auto;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.web5-prompt-field-wrap {
|
|
230
|
+
position: relative;
|
|
231
|
+
display: flex;
|
|
232
|
+
justify-content: center;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.web5-prompt-field {
|
|
236
|
+
position: relative;
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
width: 100%;
|
|
240
|
+
min-height: var(--pi-field-min-h);
|
|
241
|
+
padding: var(--pi-field-padding-top) var(--pi-field-padding-right)
|
|
242
|
+
var(--pi-field-padding-bottom) var(--pi-field-padding-left);
|
|
243
|
+
border: var(--pi-field-border-width) solid var(--pi-field-border);
|
|
244
|
+
border-radius: var(--pi-field-radius-pill);
|
|
245
|
+
background: var(--pi-field-bg);
|
|
246
|
+
box-shadow: var(--pi-field-shadow);
|
|
247
|
+
transition: min-height var(--pi-transition-medium),
|
|
248
|
+
border-radius var(--pi-transition-medium),
|
|
249
|
+
padding-top var(--pi-transition-medium),
|
|
250
|
+
padding-bottom var(--pi-transition-medium);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.web5-prompt-field--multiline {
|
|
254
|
+
align-items: flex-end;
|
|
255
|
+
padding-top: var(--pi-field-padding-top-multiline);
|
|
256
|
+
border-radius: var(--pi-field-radius-multiline);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.web5-prompt-input {
|
|
260
|
+
appearance: none;
|
|
261
|
+
display: block;
|
|
262
|
+
flex: 1;
|
|
263
|
+
width: 100%;
|
|
264
|
+
min-width: 0;
|
|
265
|
+
min-height: var(--pi-field-line-height);
|
|
266
|
+
max-height: calc(var(--pi-field-max-h) - var(--pi-field-line-height));
|
|
267
|
+
padding: 0 56px 0 0;
|
|
268
|
+
border: 0;
|
|
269
|
+
outline: none;
|
|
270
|
+
background: transparent;
|
|
271
|
+
color: var(--pi-field-text);
|
|
272
|
+
caret-color: var(--pi-field-caret);
|
|
273
|
+
font-family: var(--pi-field-font-family);
|
|
274
|
+
font-size: var(--pi-field-font-size);
|
|
275
|
+
line-height: var(--pi-field-line-height);
|
|
276
|
+
resize: none;
|
|
277
|
+
overflow-y: auto;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.web5-prompt-field--multiline .web5-prompt-input {
|
|
281
|
+
line-height: var(--pi-field-line-height-multiline);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.web5-prompt-input::placeholder {
|
|
285
|
+
color: var(--pi-field-placeholder);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.web5-prompt-input:focus {
|
|
289
|
+
outline: none !important;
|
|
290
|
+
box-shadow: none !important;
|
|
291
|
+
border-color: transparent;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.web5-prompt-input:focus-visible {
|
|
295
|
+
outline: none !important;
|
|
296
|
+
box-shadow: none !important;
|
|
297
|
+
border-color: transparent;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.web5-prompt-input::-webkit-scrollbar {
|
|
301
|
+
width: 6px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.web5-prompt-input::-webkit-scrollbar-thumb {
|
|
305
|
+
background: rgba(0, 0, 0, 0.18);
|
|
306
|
+
border-radius: 999px;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.web5-prompt-actions {
|
|
310
|
+
position: absolute;
|
|
311
|
+
right: var(--pi-field-padding-right);
|
|
312
|
+
top: 50%;
|
|
313
|
+
display: flex;
|
|
314
|
+
align-items: center;
|
|
315
|
+
gap: 8px;
|
|
316
|
+
transform: translateY(-50%);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.web5-prompt-hint {
|
|
320
|
+
display: inline-flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
gap: 4px;
|
|
323
|
+
margin-right: 4px;
|
|
324
|
+
color: var(--pi-field-placeholder);
|
|
325
|
+
font-family: var(--pi-field-font-family);
|
|
326
|
+
font-size: 12px;
|
|
327
|
+
line-height: 1;
|
|
328
|
+
white-space: nowrap;
|
|
329
|
+
pointer-events: none;
|
|
330
|
+
user-select: none;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.web5-prompt-hint__key {
|
|
334
|
+
display: inline-flex;
|
|
335
|
+
align-items: center;
|
|
336
|
+
justify-content: center;
|
|
337
|
+
min-width: 16px;
|
|
338
|
+
padding: 1px 4px;
|
|
339
|
+
border: 1px solid var(--pi-field-placeholder);
|
|
340
|
+
border-radius: 3px;
|
|
341
|
+
background: transparent;
|
|
342
|
+
font-family: inherit;
|
|
343
|
+
font-size: 11px;
|
|
344
|
+
line-height: 1;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
@media (pointer: coarse) {
|
|
348
|
+
.web5-prompt-hint {
|
|
349
|
+
display: none;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.web5-prompt-field--multiline .web5-prompt-actions {
|
|
354
|
+
top: auto;
|
|
355
|
+
bottom: var(--pi-submit-bottom);
|
|
356
|
+
transform: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.web5-prompt-voice {
|
|
360
|
+
display: inline-flex;
|
|
361
|
+
align-items: center;
|
|
362
|
+
justify-content: center;
|
|
363
|
+
width: 32px;
|
|
364
|
+
height: 32px;
|
|
365
|
+
padding: 0;
|
|
366
|
+
border: 0;
|
|
367
|
+
background: transparent;
|
|
368
|
+
color: #5f6368;
|
|
369
|
+
cursor: pointer;
|
|
370
|
+
transition: color var(--pi-transition-fast);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.web5-prompt-voice:hover {
|
|
374
|
+
color: #202124;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.web5-prompt-submit {
|
|
378
|
+
display: inline-flex;
|
|
379
|
+
align-items: center;
|
|
380
|
+
justify-content: center;
|
|
381
|
+
width: var(--pi-submit-size);
|
|
382
|
+
height: var(--pi-submit-size);
|
|
383
|
+
padding: 0;
|
|
384
|
+
border: 0;
|
|
385
|
+
border-radius: var(--pi-submit-radius);
|
|
386
|
+
background: var(--pi-submit-bg);
|
|
387
|
+
color: var(--pi-submit-fg);
|
|
388
|
+
cursor: pointer;
|
|
389
|
+
transition: background-color var(--pi-transition-fast),
|
|
390
|
+
color var(--pi-transition-fast), transform var(--pi-transition-fast);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.web5-prompt-submit:hover:not(:disabled) {
|
|
394
|
+
transform: scale(1.05);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.web5-prompt-submit:disabled {
|
|
398
|
+
cursor: default;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.web5-prompt-submit--active {
|
|
402
|
+
background: var(--pi-submit-active-bg);
|
|
403
|
+
color: var(--pi-submit-active-fg);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.web5-prompt-submit svg,
|
|
407
|
+
.web5-prompt-send-icon,
|
|
408
|
+
.web5-prompt-voice svg {
|
|
409
|
+
width: var(--pi-submit-icon-size);
|
|
410
|
+
height: var(--pi-submit-icon-size);
|
|
411
|
+
flex-shrink: 0;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.web5-prompt-submit--active:hover {
|
|
415
|
+
transform: translateY(-1px);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.web5-prompt-progress {
|
|
419
|
+
display: flex;
|
|
420
|
+
align-items: center;
|
|
421
|
+
justify-content: center;
|
|
422
|
+
padding-block: 2rem;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.web5-prompt-progress__indicator {
|
|
426
|
+
display: flex;
|
|
427
|
+
align-items: center;
|
|
428
|
+
justify-content: center;
|
|
429
|
+
width: 3rem;
|
|
430
|
+
height: 3rem;
|
|
431
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
432
|
+
border-radius: 999px;
|
|
433
|
+
background: #ffffff;
|
|
434
|
+
box-shadow: 0 10px 25px -15px rgba(0, 0, 0, 0.35);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.web5-prompt-progress__message {
|
|
438
|
+
margin-left: 0.75rem;
|
|
439
|
+
color: #4b5563;
|
|
440
|
+
font-size: 0.875rem;
|
|
441
|
+
line-height: 1.25rem;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
@media (max-width: 768px) {
|
|
445
|
+
.web5-prompt-shell__collapsed-button {
|
|
446
|
+
right: 12px;
|
|
447
|
+
bottom: 12px;
|
|
448
|
+
width: auto;
|
|
449
|
+
max-width: 100%;
|
|
450
|
+
min-height: 44px;
|
|
451
|
+
padding: 10px 20px;
|
|
452
|
+
line-height: 24px;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.web5-prompt-shell--collapsed .web5-prompt-shell__collapsed-button {
|
|
456
|
+
margin: 0 12px 12px 0;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.web5-prompt-shell--collapsed .web5-prompt-shell__content {
|
|
460
|
+
transform: translate3d(88px, 18px, 0) scale(0.3, 0.72);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.web5-prompt-shell__panel {
|
|
464
|
+
padding-inline: var(--pi-panel-mobile-padding-inline);
|
|
465
|
+
background: var(--pi-panel-mobile-bg);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.web5-prompt-shell__chips {
|
|
469
|
+
align-items: stretch;
|
|
470
|
+
justify-content: flex-start;
|
|
471
|
+
gap: var(--pi-chip-mobile-gap);
|
|
472
|
+
max-width: none;
|
|
473
|
+
overflow-y: var(--pi-chip-mobile-overflow-y);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.web5-prompt-field {
|
|
477
|
+
min-width: 0;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.web5-prompt-input {
|
|
481
|
+
font-size: max(16px, var(--pi-field-font-size));
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.web5-prompt-chip {
|
|
485
|
+
width: 100%;
|
|
486
|
+
justify-content: flex-start;
|
|
487
|
+
padding: 10px 18px;
|
|
488
|
+
background: transparent;
|
|
489
|
+
box-shadow: none;
|
|
490
|
+
font-size: 16px;
|
|
491
|
+
line-height: 20px;
|
|
492
|
+
white-space: normal;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.web5-prompt-chip .web5-prompt-send-icon {
|
|
496
|
+
display: none;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.web5-prompt-field--focused,
|
|
500
|
+
.web5-prompt-field--multiline {
|
|
501
|
+
min-height: 135px;
|
|
502
|
+
align-items: stretch;
|
|
503
|
+
padding-top: 14px;
|
|
504
|
+
padding-bottom: 12px;
|
|
505
|
+
border-radius: var(--pi-field-radius-multiline);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.web5-prompt-field--focused .web5-prompt-input,
|
|
509
|
+
.web5-prompt-field--multiline .web5-prompt-input {
|
|
510
|
+
padding-right: 72px;
|
|
511
|
+
line-height: 24px;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.web5-prompt-field--focused .web5-prompt-actions,
|
|
515
|
+
.web5-prompt-field--multiline .web5-prompt-actions {
|
|
516
|
+
top: auto;
|
|
517
|
+
bottom: 12px;
|
|
518
|
+
transform: none;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.web5-prompt-field--focused .web5-prompt-submit,
|
|
522
|
+
.web5-prompt-field--multiline .web5-prompt-submit {
|
|
523
|
+
width: 40px;
|
|
524
|
+
height: 40px;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.web5-prompt-field--focused .web5-prompt-submit svg,
|
|
528
|
+
.web5-prompt-field--focused .web5-prompt-send-icon,
|
|
529
|
+
.web5-prompt-field--multiline .web5-prompt-submit svg,
|
|
530
|
+
.web5-prompt-field--multiline .web5-prompt-send-icon {
|
|
531
|
+
width: 20px;
|
|
532
|
+
height: 20px;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.web5-prompt-hint {
|
|
536
|
+
display: none;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* SectionSkeleton — status-driven placeholder for a not-yet-streamed V3
|
|
2
|
+
section (DL #106). Self-contained: structure/sizing live here (NOT Tailwind
|
|
3
|
+
utilities) so the skeleton renders correctly regardless of whether the
|
|
4
|
+
consuming app's Tailwind scans this core package. Colors are tokenized; the
|
|
5
|
+
`shimmer` keyframe is defined globally in base-utilities.css. */
|
|
6
|
+
|
|
7
|
+
.w5-skeleton {
|
|
8
|
+
/* Decorative; never intercept clicks or text selection. */
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
user-select: none;
|
|
11
|
+
padding-block: 4rem;
|
|
12
|
+
/* `min-height` (per-shape, below) includes the block padding so the reserved
|
|
13
|
+
space matches the eventual section regardless of the consuming app's reset. */
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Per-section-type height reservation (DL #114 C) — approximate the eventual
|
|
18
|
+
section so the skeleton→content swap causes near-zero layout shift below it.
|
|
19
|
+
Erring slightly tall is preferable (content settles up, not down). */
|
|
20
|
+
.w5-skeleton--cards {
|
|
21
|
+
min-height: 28rem;
|
|
22
|
+
}
|
|
23
|
+
.w5-skeleton--tiles {
|
|
24
|
+
min-height: 14rem;
|
|
25
|
+
}
|
|
26
|
+
.w5-skeleton--rows {
|
|
27
|
+
min-height: 18rem;
|
|
28
|
+
}
|
|
29
|
+
.w5-skeleton--lines {
|
|
30
|
+
min-height: 10rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (min-width: 64rem) {
|
|
34
|
+
.w5-skeleton {
|
|
35
|
+
padding-block: 6rem;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.w5-skeleton__inner {
|
|
40
|
+
width: 100%;
|
|
41
|
+
max-width: var(--container-section, 1080px);
|
|
42
|
+
margin-inline: auto;
|
|
43
|
+
padding-inline: 1.5rem;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
gap: 1.5rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.w5-skeleton__grid {
|
|
50
|
+
display: grid;
|
|
51
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
52
|
+
gap: 1.5rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (min-width: 48rem) {
|
|
56
|
+
.w5-skeleton__grid {
|
|
57
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.w5-skeleton__card {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: 0.75rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.w5-skeleton__lines {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
gap: 0.75rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* --- bar sizes --------------------------------------------------------------- */
|
|
74
|
+
.w5-skeleton__title {
|
|
75
|
+
height: 1.75rem;
|
|
76
|
+
width: 33%;
|
|
77
|
+
border-radius: 6px;
|
|
78
|
+
}
|
|
79
|
+
.w5-skeleton__media {
|
|
80
|
+
width: 100%;
|
|
81
|
+
aspect-ratio: 1 / 1;
|
|
82
|
+
border-radius: 12px;
|
|
83
|
+
}
|
|
84
|
+
.w5-skeleton__tile {
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 6rem;
|
|
87
|
+
border-radius: 12px;
|
|
88
|
+
}
|
|
89
|
+
.w5-skeleton__row {
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 2.5rem;
|
|
92
|
+
border-radius: 6px;
|
|
93
|
+
}
|
|
94
|
+
.w5-skeleton__line {
|
|
95
|
+
height: 1rem;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
}
|
|
98
|
+
.w5-skeleton__line--lg {
|
|
99
|
+
width: 100%;
|
|
100
|
+
}
|
|
101
|
+
.w5-skeleton__line--md {
|
|
102
|
+
width: 80%;
|
|
103
|
+
}
|
|
104
|
+
.w5-skeleton__line--sm {
|
|
105
|
+
width: 60%;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* --- shimmer treatment ------------------------------------------------------- */
|
|
109
|
+
.w5-skeleton__bar {
|
|
110
|
+
display: block;
|
|
111
|
+
/* Grey base with a lighter sheen swept across by the global `shimmer`
|
|
112
|
+
keyframe (pans background-position -200% → 200%). Both tones are tokens. */
|
|
113
|
+
background-color: var(--color-border);
|
|
114
|
+
background-image: linear-gradient(
|
|
115
|
+
90deg,
|
|
116
|
+
var(--color-border) 25%,
|
|
117
|
+
var(--color-muted) 37%,
|
|
118
|
+
var(--color-border) 63%
|
|
119
|
+
);
|
|
120
|
+
background-size: 200% 100%;
|
|
121
|
+
animation: shimmer 1.4s ease-in-out infinite;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media (prefers-reduced-motion: reduce) {
|
|
125
|
+
.w5-skeleton__bar {
|
|
126
|
+
animation: none;
|
|
127
|
+
}
|
|
128
|
+
}
|