sunpeak 0.5.36 → 0.5.41
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/chatgpt/mock-openai.d.ts +2 -2
- package/dist/chatgpt/simple-sidebar.d.ts +2 -1
- package/dist/hooks/use-max-height.d.ts +1 -1
- package/dist/index.cjs +176 -121
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +176 -121
- package/dist/index.js.map +1 -1
- package/dist/providers/openai/types.d.ts +1 -1
- package/dist/providers/types.d.ts +1 -1
- package/dist/style.css +155 -36
- package/package.json +1 -1
- package/template/dist/chatgpt/albums.js +10 -10
- package/template/dist/chatgpt/carousel.js +2 -2
- package/template/dist/chatgpt/counter.js +7 -7
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js +3 -3
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js +4 -4
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +19 -19
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Textarea.js +3 -3
- package/template/node_modules/.vite/deps/_metadata.json +30 -30
- package/template/node_modules/.vite/deps/{chunk-675LFNY2.js → chunk-EVJ3DVH5.js} +8 -8
- package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/template/src/components/album/albums.test.tsx +7 -2
- package/template/src/components/album/albums.tsx +1 -1
- package/template/src/components/album/fullscreen-viewer.test.tsx +12 -24
- package/template/src/components/album/fullscreen-viewer.tsx +55 -34
- package/template/src/components/carousel/carousel.tsx +1 -1
- package/template/src/components/resources/albums-resource.tsx +1 -0
- package/template/src/components/resources/counter-resource.tsx +8 -0
- package/template/src/simulations/albums-simulation.ts +5 -1
- package/template/src/simulations/carousel-simulation.ts +5 -1
- package/template/src/simulations/counter-simulation.ts +6 -1
- package/template/src/simulations/widget-config.ts +42 -0
- /package/template/node_modules/.vite/deps/{chunk-675LFNY2.js.map → chunk-EVJ3DVH5.js.map} +0 -0
|
@@ -9,7 +9,7 @@ export type OpenAiGlobals<ToolInput = UnknownObject, ToolOutput = UnknownObject,
|
|
|
9
9
|
theme: Theme;
|
|
10
10
|
userAgent: UserAgent;
|
|
11
11
|
locale: string;
|
|
12
|
-
maxHeight: number;
|
|
12
|
+
maxHeight: number | undefined;
|
|
13
13
|
displayMode: DisplayMode;
|
|
14
14
|
safeArea: SafeArea;
|
|
15
15
|
view: View | null;
|
|
@@ -12,7 +12,7 @@ export type WidgetGlobals<ToolInput = UnknownObject, ToolOutput = UnknownObject,
|
|
|
12
12
|
theme: Theme;
|
|
13
13
|
userAgent: UserAgent;
|
|
14
14
|
locale: string;
|
|
15
|
-
maxHeight: number;
|
|
15
|
+
maxHeight: number | undefined;
|
|
16
16
|
displayMode: DisplayMode;
|
|
17
17
|
safeArea: SafeArea;
|
|
18
18
|
view: View | null;
|
package/dist/style.css
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
--tw-translate-x: 0;
|
|
6
6
|
--tw-translate-y: 0;
|
|
7
7
|
--tw-translate-z: 0;
|
|
8
|
+
--tw-rotate-x: initial;
|
|
9
|
+
--tw-rotate-y: initial;
|
|
10
|
+
--tw-rotate-z: initial;
|
|
11
|
+
--tw-skew-x: initial;
|
|
12
|
+
--tw-skew-y: initial;
|
|
8
13
|
--tw-pan-x: initial;
|
|
9
14
|
--tw-pan-y: initial;
|
|
10
15
|
--tw-pinch-zoom: initial;
|
|
@@ -49,6 +54,15 @@
|
|
|
49
54
|
--tw-drop-shadow-color: initial;
|
|
50
55
|
--tw-drop-shadow-alpha: 100%;
|
|
51
56
|
--tw-drop-shadow-size: initial;
|
|
57
|
+
--tw-backdrop-blur: initial;
|
|
58
|
+
--tw-backdrop-brightness: initial;
|
|
59
|
+
--tw-backdrop-contrast: initial;
|
|
60
|
+
--tw-backdrop-grayscale: initial;
|
|
61
|
+
--tw-backdrop-hue-rotate: initial;
|
|
62
|
+
--tw-backdrop-invert: initial;
|
|
63
|
+
--tw-backdrop-opacity: initial;
|
|
64
|
+
--tw-backdrop-saturate: initial;
|
|
65
|
+
--tw-backdrop-sepia: initial;
|
|
52
66
|
--tw-duration: initial;
|
|
53
67
|
}
|
|
54
68
|
}
|
|
@@ -67,6 +81,7 @@
|
|
|
67
81
|
--container-md: 28rem;
|
|
68
82
|
--leading-tight: 1.25;
|
|
69
83
|
--leading-normal: 1.5;
|
|
84
|
+
--blur-sm: 8px;
|
|
70
85
|
--default-transition-duration: .15s;
|
|
71
86
|
--default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
72
87
|
--default-font-family: var(--font-sans);
|
|
@@ -3109,18 +3124,22 @@
|
|
|
3109
3124
|
position: sticky;
|
|
3110
3125
|
}
|
|
3111
3126
|
|
|
3112
|
-
.inset-0 {
|
|
3113
|
-
inset: calc(var(--spacing) * 0);
|
|
3114
|
-
}
|
|
3115
|
-
|
|
3116
3127
|
.-start-2 {
|
|
3117
3128
|
inset-inline-start: calc(var(--spacing) * -2);
|
|
3118
3129
|
}
|
|
3119
3130
|
|
|
3131
|
+
.start-0 {
|
|
3132
|
+
inset-inline-start: calc(var(--spacing) * 0);
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3120
3135
|
.start-4 {
|
|
3121
3136
|
inset-inline-start: calc(var(--spacing) * 4);
|
|
3122
3137
|
}
|
|
3123
3138
|
|
|
3139
|
+
.end-0 {
|
|
3140
|
+
inset-inline-end: calc(var(--spacing) * 0);
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3124
3143
|
.end-4 {
|
|
3125
3144
|
inset-inline-end: calc(var(--spacing) * 4);
|
|
3126
3145
|
}
|
|
@@ -3137,8 +3156,8 @@
|
|
|
3137
3156
|
top: 50%;
|
|
3138
3157
|
}
|
|
3139
3158
|
|
|
3140
|
-
.top-
|
|
3141
|
-
top: calc(var(--spacing) *
|
|
3159
|
+
.top-4 {
|
|
3160
|
+
top: calc(var(--spacing) * 4);
|
|
3142
3161
|
}
|
|
3143
3162
|
|
|
3144
3163
|
.right-0 {
|
|
@@ -3217,8 +3236,8 @@
|
|
|
3217
3236
|
}
|
|
3218
3237
|
}
|
|
3219
3238
|
|
|
3220
|
-
.
|
|
3221
|
-
margin:
|
|
3239
|
+
.mx-0 {
|
|
3240
|
+
margin-inline: calc(var(--spacing) * 0);
|
|
3222
3241
|
}
|
|
3223
3242
|
|
|
3224
3243
|
.mx-auto {
|
|
@@ -3313,6 +3332,10 @@
|
|
|
3313
3332
|
height: calc(var(--spacing) * 12);
|
|
3314
3333
|
}
|
|
3315
3334
|
|
|
3335
|
+
.h-\[3\.25rem\] {
|
|
3336
|
+
height: 3.25rem;
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3316
3339
|
.h-auto {
|
|
3317
3340
|
height: auto;
|
|
3318
3341
|
}
|
|
@@ -3361,10 +3384,18 @@
|
|
|
3361
3384
|
width: calc(var(--spacing) * 56);
|
|
3362
3385
|
}
|
|
3363
3386
|
|
|
3387
|
+
.w-auto {
|
|
3388
|
+
width: auto;
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3364
3391
|
.w-full {
|
|
3365
3392
|
width: 100%;
|
|
3366
3393
|
}
|
|
3367
3394
|
|
|
3395
|
+
.max-w-\[40rem\] {
|
|
3396
|
+
max-width: 40rem;
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3368
3399
|
.max-w-\[48rem\] {
|
|
3369
3400
|
max-width: 48rem;
|
|
3370
3401
|
}
|
|
@@ -3410,6 +3441,10 @@
|
|
|
3410
3441
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
3411
3442
|
}
|
|
3412
3443
|
|
|
3444
|
+
.transform {
|
|
3445
|
+
transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3413
3448
|
.cursor-pointer {
|
|
3414
3449
|
cursor: pointer;
|
|
3415
3450
|
}
|
|
@@ -3533,10 +3568,6 @@
|
|
|
3533
3568
|
overflow: visible;
|
|
3534
3569
|
}
|
|
3535
3570
|
|
|
3536
|
-
.overflow-x-auto {
|
|
3537
|
-
overflow-x: auto;
|
|
3538
|
-
}
|
|
3539
|
-
|
|
3540
3571
|
.overflow-x-hidden {
|
|
3541
3572
|
overflow-x: hidden;
|
|
3542
3573
|
}
|
|
@@ -3617,8 +3648,8 @@
|
|
|
3617
3648
|
background-color: #3a3a3a;
|
|
3618
3649
|
}
|
|
3619
3650
|
|
|
3620
|
-
.bg-\[
|
|
3621
|
-
background-color:
|
|
3651
|
+
.bg-\[\#212121\] {
|
|
3652
|
+
background-color: #212121;
|
|
3622
3653
|
}
|
|
3623
3654
|
|
|
3624
3655
|
.bg-\[var\(--color-background-primary-soft\)\] {
|
|
@@ -3708,10 +3739,6 @@
|
|
|
3708
3739
|
padding-inline: calc(var(--spacing) * 5);
|
|
3709
3740
|
}
|
|
3710
3741
|
|
|
3711
|
-
.px-40 {
|
|
3712
|
-
padding-inline: calc(var(--spacing) * 40);
|
|
3713
|
-
}
|
|
3714
|
-
|
|
3715
3742
|
.py-0\.5 {
|
|
3716
3743
|
padding-block: calc(var(--spacing) * .5);
|
|
3717
3744
|
}
|
|
@@ -3732,10 +3759,6 @@
|
|
|
3732
3759
|
padding-block: calc(var(--spacing) * 4);
|
|
3733
3760
|
}
|
|
3734
3761
|
|
|
3735
|
-
.py-10 {
|
|
3736
|
-
padding-block: calc(var(--spacing) * 10);
|
|
3737
|
-
}
|
|
3738
|
-
|
|
3739
3762
|
.pt-0 {
|
|
3740
3763
|
padding-top: calc(var(--spacing) * 0);
|
|
3741
3764
|
}
|
|
@@ -3896,13 +3919,13 @@
|
|
|
3896
3919
|
opacity: .6;
|
|
3897
3920
|
}
|
|
3898
3921
|
|
|
3899
|
-
.shadow-\[
|
|
3900
|
-
--tw-shadow: 0px 0px 0px 1px var(--tw-shadow-color,
|
|
3922
|
+
.shadow-\[0px_0px_0px_1px_\#fff3\,0px_4px_12px_rgba\(0\,0\,0\,0\.12\)\] {
|
|
3923
|
+
--tw-shadow: 0px 0px 0px 1px var(--tw-shadow-color, #fff3), 0px 4px 12px var(--tw-shadow-color, #0000001f);
|
|
3901
3924
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3902
3925
|
}
|
|
3903
3926
|
|
|
3904
|
-
.shadow-\[
|
|
3905
|
-
--tw-shadow: 0px 0px 0px 1px var(--tw-shadow-color,
|
|
3927
|
+
.shadow-\[0px_0px_0px_1px_\#fff3\,0px_6px_20px_rgba\(0\,0\,0\,0\.1\)\] {
|
|
3928
|
+
--tw-shadow: 0px 0px 0px 1px var(--tw-shadow-color, #fff3), 0px 6px 20px var(--tw-shadow-color, #0000001a);
|
|
3906
3929
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3907
3930
|
}
|
|
3908
3931
|
|
|
@@ -3935,6 +3958,12 @@
|
|
|
3935
3958
|
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
3936
3959
|
}
|
|
3937
3960
|
|
|
3961
|
+
.backdrop-blur-sm {
|
|
3962
|
+
--tw-backdrop-blur: blur(var(--blur-sm));
|
|
3963
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
3964
|
+
backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3938
3967
|
.transition-all {
|
|
3939
3968
|
transition-property: all;
|
|
3940
3969
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -3990,6 +4019,20 @@
|
|
|
3990
4019
|
}
|
|
3991
4020
|
}
|
|
3992
4021
|
|
|
4022
|
+
@media not all and (min-width: 576px) {
|
|
4023
|
+
.max-sm\:-mx-\[1rem\] {
|
|
4024
|
+
margin-inline: -1rem;
|
|
4025
|
+
}
|
|
4026
|
+
|
|
4027
|
+
.max-sm\:w-\[100cqw\] {
|
|
4028
|
+
width: 100cqw;
|
|
4029
|
+
}
|
|
4030
|
+
|
|
4031
|
+
.max-sm\:overflow-hidden {
|
|
4032
|
+
overflow: hidden;
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
|
|
3993
4036
|
@media (min-width: 576px) {
|
|
3994
4037
|
.sm\:start-0 {
|
|
3995
4038
|
inset-inline-start: calc(var(--spacing) * 0);
|
|
@@ -3999,6 +4042,10 @@
|
|
|
3999
4042
|
inset-inline-end: calc(var(--spacing) * 0);
|
|
4000
4043
|
}
|
|
4001
4044
|
|
|
4045
|
+
.sm\:top-\[3\.25rem\] {
|
|
4046
|
+
top: 3.25rem;
|
|
4047
|
+
}
|
|
4048
|
+
|
|
4002
4049
|
.sm\:w-full {
|
|
4003
4050
|
width: 100%;
|
|
4004
4051
|
}
|
|
@@ -4009,24 +4056,26 @@
|
|
|
4009
4056
|
}
|
|
4010
4057
|
|
|
4011
4058
|
@media (min-width: 768px) {
|
|
4012
|
-
.md
|
|
4013
|
-
|
|
4059
|
+
.md\:-mx-4 {
|
|
4060
|
+
margin-inline: calc(var(--spacing) * -4);
|
|
4014
4061
|
}
|
|
4015
4062
|
|
|
4016
|
-
.md\:
|
|
4017
|
-
|
|
4063
|
+
.md\:flex {
|
|
4064
|
+
display: flex;
|
|
4018
4065
|
}
|
|
4019
4066
|
|
|
4020
|
-
.md\:
|
|
4021
|
-
|
|
4067
|
+
.md\:p-10 {
|
|
4068
|
+
padding: calc(var(--spacing) * 10);
|
|
4022
4069
|
}
|
|
4023
4070
|
|
|
4024
|
-
.md\:
|
|
4025
|
-
|
|
4071
|
+
.md\:pt-8 {
|
|
4072
|
+
padding-top: calc(var(--spacing) * 8);
|
|
4026
4073
|
}
|
|
4074
|
+
}
|
|
4027
4075
|
|
|
4028
|
-
|
|
4029
|
-
|
|
4076
|
+
@media (min-width: 1024px) {
|
|
4077
|
+
.lg\:max-w-\[48rem\] {
|
|
4078
|
+
max-width: 48rem;
|
|
4030
4079
|
}
|
|
4031
4080
|
}
|
|
4032
4081
|
|
|
@@ -4062,6 +4111,31 @@
|
|
|
4062
4111
|
initial-value: 0;
|
|
4063
4112
|
}
|
|
4064
4113
|
|
|
4114
|
+
@property --tw-rotate-x {
|
|
4115
|
+
syntax: "*";
|
|
4116
|
+
inherits: false
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
@property --tw-rotate-y {
|
|
4120
|
+
syntax: "*";
|
|
4121
|
+
inherits: false
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
@property --tw-rotate-z {
|
|
4125
|
+
syntax: "*";
|
|
4126
|
+
inherits: false
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
@property --tw-skew-x {
|
|
4130
|
+
syntax: "*";
|
|
4131
|
+
inherits: false
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
@property --tw-skew-y {
|
|
4135
|
+
syntax: "*";
|
|
4136
|
+
inherits: false
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4065
4139
|
@property --tw-pan-x {
|
|
4066
4140
|
syntax: "*";
|
|
4067
4141
|
inherits: false
|
|
@@ -4301,6 +4375,51 @@
|
|
|
4301
4375
|
inherits: false
|
|
4302
4376
|
}
|
|
4303
4377
|
|
|
4378
|
+
@property --tw-backdrop-blur {
|
|
4379
|
+
syntax: "*";
|
|
4380
|
+
inherits: false
|
|
4381
|
+
}
|
|
4382
|
+
|
|
4383
|
+
@property --tw-backdrop-brightness {
|
|
4384
|
+
syntax: "*";
|
|
4385
|
+
inherits: false
|
|
4386
|
+
}
|
|
4387
|
+
|
|
4388
|
+
@property --tw-backdrop-contrast {
|
|
4389
|
+
syntax: "*";
|
|
4390
|
+
inherits: false
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
@property --tw-backdrop-grayscale {
|
|
4394
|
+
syntax: "*";
|
|
4395
|
+
inherits: false
|
|
4396
|
+
}
|
|
4397
|
+
|
|
4398
|
+
@property --tw-backdrop-hue-rotate {
|
|
4399
|
+
syntax: "*";
|
|
4400
|
+
inherits: false
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4403
|
+
@property --tw-backdrop-invert {
|
|
4404
|
+
syntax: "*";
|
|
4405
|
+
inherits: false
|
|
4406
|
+
}
|
|
4407
|
+
|
|
4408
|
+
@property --tw-backdrop-opacity {
|
|
4409
|
+
syntax: "*";
|
|
4410
|
+
inherits: false
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
@property --tw-backdrop-saturate {
|
|
4414
|
+
syntax: "*";
|
|
4415
|
+
inherits: false
|
|
4416
|
+
}
|
|
4417
|
+
|
|
4418
|
+
@property --tw-backdrop-sepia {
|
|
4419
|
+
syntax: "*";
|
|
4420
|
+
inherits: false
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4304
4423
|
@property --tw-duration {
|
|
4305
4424
|
syntax: "*";
|
|
4306
4425
|
inherits: false
|