magick-ui 0.2.3 → 0.2.5
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/index.cjs +74 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +86 -49
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +6 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +10 -0
- package/dist/schema.d.ts +10 -0
- package/dist/schema.js +6 -1
- package/dist/schema.js.map +1 -1
- package/dist/ui/index.cjs +68 -36
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +2 -1
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +80 -48
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
- package/schema/component-schema.json +4 -0
package/dist/schema.d.cts
CHANGED
|
@@ -1888,6 +1888,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1888
1888
|
width: z.ZodOptional<z.ZodString>;
|
|
1889
1889
|
gestureHandling: z.ZodOptional<z.ZodEnum<["cooperative", "greedy", "none", "auto"]>>;
|
|
1890
1890
|
disableDefaultUI: z.ZodOptional<z.ZodBoolean>;
|
|
1891
|
+
showCurrentLocation: z.ZodOptional<z.ZodBoolean>;
|
|
1891
1892
|
}, "strip", z.ZodTypeAny, {
|
|
1892
1893
|
center?: {
|
|
1893
1894
|
lat: number;
|
|
@@ -1905,6 +1906,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1905
1906
|
width?: string | undefined;
|
|
1906
1907
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1907
1908
|
disableDefaultUI?: boolean | undefined;
|
|
1909
|
+
showCurrentLocation?: boolean | undefined;
|
|
1908
1910
|
}, {
|
|
1909
1911
|
center?: {
|
|
1910
1912
|
lat: number;
|
|
@@ -1922,6 +1924,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1922
1924
|
width?: string | undefined;
|
|
1923
1925
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1924
1926
|
disableDefaultUI?: boolean | undefined;
|
|
1927
|
+
showCurrentLocation?: boolean | undefined;
|
|
1925
1928
|
}>;
|
|
1926
1929
|
}, "strip", z.ZodTypeAny, {
|
|
1927
1930
|
type: "google-map";
|
|
@@ -1942,6 +1945,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1942
1945
|
width?: string | undefined;
|
|
1943
1946
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1944
1947
|
disableDefaultUI?: boolean | undefined;
|
|
1948
|
+
showCurrentLocation?: boolean | undefined;
|
|
1945
1949
|
};
|
|
1946
1950
|
}, {
|
|
1947
1951
|
type: "google-map";
|
|
@@ -1962,6 +1966,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1962
1966
|
width?: string | undefined;
|
|
1963
1967
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1964
1968
|
disableDefaultUI?: boolean | undefined;
|
|
1969
|
+
showCurrentLocation?: boolean | undefined;
|
|
1965
1970
|
};
|
|
1966
1971
|
}>;
|
|
1967
1972
|
|
|
@@ -4444,6 +4449,7 @@ declare const componentSchemas: {
|
|
|
4444
4449
|
width: zod.ZodOptional<zod.ZodString>;
|
|
4445
4450
|
gestureHandling: zod.ZodOptional<zod.ZodEnum<["cooperative", "greedy", "none", "auto"]>>;
|
|
4446
4451
|
disableDefaultUI: zod.ZodOptional<zod.ZodBoolean>;
|
|
4452
|
+
showCurrentLocation: zod.ZodOptional<zod.ZodBoolean>;
|
|
4447
4453
|
}, "strip", zod.ZodTypeAny, {
|
|
4448
4454
|
center?: {
|
|
4449
4455
|
lat: number;
|
|
@@ -4461,6 +4467,7 @@ declare const componentSchemas: {
|
|
|
4461
4467
|
width?: string | undefined;
|
|
4462
4468
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4463
4469
|
disableDefaultUI?: boolean | undefined;
|
|
4470
|
+
showCurrentLocation?: boolean | undefined;
|
|
4464
4471
|
}, {
|
|
4465
4472
|
center?: {
|
|
4466
4473
|
lat: number;
|
|
@@ -4478,6 +4485,7 @@ declare const componentSchemas: {
|
|
|
4478
4485
|
width?: string | undefined;
|
|
4479
4486
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4480
4487
|
disableDefaultUI?: boolean | undefined;
|
|
4488
|
+
showCurrentLocation?: boolean | undefined;
|
|
4481
4489
|
}>;
|
|
4482
4490
|
}, "strip", zod.ZodTypeAny, {
|
|
4483
4491
|
type: "google-map";
|
|
@@ -4498,6 +4506,7 @@ declare const componentSchemas: {
|
|
|
4498
4506
|
width?: string | undefined;
|
|
4499
4507
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4500
4508
|
disableDefaultUI?: boolean | undefined;
|
|
4509
|
+
showCurrentLocation?: boolean | undefined;
|
|
4501
4510
|
};
|
|
4502
4511
|
}, {
|
|
4503
4512
|
type: "google-map";
|
|
@@ -4518,6 +4527,7 @@ declare const componentSchemas: {
|
|
|
4518
4527
|
width?: string | undefined;
|
|
4519
4528
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4520
4529
|
disableDefaultUI?: boolean | undefined;
|
|
4530
|
+
showCurrentLocation?: boolean | undefined;
|
|
4521
4531
|
};
|
|
4522
4532
|
}>;
|
|
4523
4533
|
readonly calendar: zod.ZodObject<{
|
package/dist/schema.d.ts
CHANGED
|
@@ -1888,6 +1888,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1888
1888
|
width: z.ZodOptional<z.ZodString>;
|
|
1889
1889
|
gestureHandling: z.ZodOptional<z.ZodEnum<["cooperative", "greedy", "none", "auto"]>>;
|
|
1890
1890
|
disableDefaultUI: z.ZodOptional<z.ZodBoolean>;
|
|
1891
|
+
showCurrentLocation: z.ZodOptional<z.ZodBoolean>;
|
|
1891
1892
|
}, "strip", z.ZodTypeAny, {
|
|
1892
1893
|
center?: {
|
|
1893
1894
|
lat: number;
|
|
@@ -1905,6 +1906,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1905
1906
|
width?: string | undefined;
|
|
1906
1907
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1907
1908
|
disableDefaultUI?: boolean | undefined;
|
|
1909
|
+
showCurrentLocation?: boolean | undefined;
|
|
1908
1910
|
}, {
|
|
1909
1911
|
center?: {
|
|
1910
1912
|
lat: number;
|
|
@@ -1922,6 +1924,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1922
1924
|
width?: string | undefined;
|
|
1923
1925
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1924
1926
|
disableDefaultUI?: boolean | undefined;
|
|
1927
|
+
showCurrentLocation?: boolean | undefined;
|
|
1925
1928
|
}>;
|
|
1926
1929
|
}, "strip", z.ZodTypeAny, {
|
|
1927
1930
|
type: "google-map";
|
|
@@ -1942,6 +1945,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1942
1945
|
width?: string | undefined;
|
|
1943
1946
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1944
1947
|
disableDefaultUI?: boolean | undefined;
|
|
1948
|
+
showCurrentLocation?: boolean | undefined;
|
|
1945
1949
|
};
|
|
1946
1950
|
}, {
|
|
1947
1951
|
type: "google-map";
|
|
@@ -1962,6 +1966,7 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1962
1966
|
width?: string | undefined;
|
|
1963
1967
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1964
1968
|
disableDefaultUI?: boolean | undefined;
|
|
1969
|
+
showCurrentLocation?: boolean | undefined;
|
|
1965
1970
|
};
|
|
1966
1971
|
}>;
|
|
1967
1972
|
|
|
@@ -4444,6 +4449,7 @@ declare const componentSchemas: {
|
|
|
4444
4449
|
width: zod.ZodOptional<zod.ZodString>;
|
|
4445
4450
|
gestureHandling: zod.ZodOptional<zod.ZodEnum<["cooperative", "greedy", "none", "auto"]>>;
|
|
4446
4451
|
disableDefaultUI: zod.ZodOptional<zod.ZodBoolean>;
|
|
4452
|
+
showCurrentLocation: zod.ZodOptional<zod.ZodBoolean>;
|
|
4447
4453
|
}, "strip", zod.ZodTypeAny, {
|
|
4448
4454
|
center?: {
|
|
4449
4455
|
lat: number;
|
|
@@ -4461,6 +4467,7 @@ declare const componentSchemas: {
|
|
|
4461
4467
|
width?: string | undefined;
|
|
4462
4468
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4463
4469
|
disableDefaultUI?: boolean | undefined;
|
|
4470
|
+
showCurrentLocation?: boolean | undefined;
|
|
4464
4471
|
}, {
|
|
4465
4472
|
center?: {
|
|
4466
4473
|
lat: number;
|
|
@@ -4478,6 +4485,7 @@ declare const componentSchemas: {
|
|
|
4478
4485
|
width?: string | undefined;
|
|
4479
4486
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4480
4487
|
disableDefaultUI?: boolean | undefined;
|
|
4488
|
+
showCurrentLocation?: boolean | undefined;
|
|
4481
4489
|
}>;
|
|
4482
4490
|
}, "strip", zod.ZodTypeAny, {
|
|
4483
4491
|
type: "google-map";
|
|
@@ -4498,6 +4506,7 @@ declare const componentSchemas: {
|
|
|
4498
4506
|
width?: string | undefined;
|
|
4499
4507
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4500
4508
|
disableDefaultUI?: boolean | undefined;
|
|
4509
|
+
showCurrentLocation?: boolean | undefined;
|
|
4501
4510
|
};
|
|
4502
4511
|
}, {
|
|
4503
4512
|
type: "google-map";
|
|
@@ -4518,6 +4527,7 @@ declare const componentSchemas: {
|
|
|
4518
4527
|
width?: string | undefined;
|
|
4519
4528
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4520
4529
|
disableDefaultUI?: boolean | undefined;
|
|
4530
|
+
showCurrentLocation?: boolean | undefined;
|
|
4521
4531
|
};
|
|
4522
4532
|
}>;
|
|
4523
4533
|
readonly calendar: zod.ZodObject<{
|
package/dist/schema.js
CHANGED
|
@@ -3312,6 +3312,10 @@ var component_schema_default = {
|
|
|
3312
3312
|
disableDefaultUI: {
|
|
3313
3313
|
type: "boolean",
|
|
3314
3314
|
description: "Hide default map controls"
|
|
3315
|
+
},
|
|
3316
|
+
showCurrentLocation: {
|
|
3317
|
+
type: "boolean",
|
|
3318
|
+
description: "Show a blue dot for the user's current location"
|
|
3315
3319
|
}
|
|
3316
3320
|
},
|
|
3317
3321
|
additionalProperties: false
|
|
@@ -5523,7 +5527,8 @@ var googleMapSchema = z46.object({
|
|
|
5523
5527
|
height: z46.string().optional().describe("Map height CSS value. Defaults to '400px'"),
|
|
5524
5528
|
width: z46.string().optional().describe("Map width CSS value. Defaults to '100%'"),
|
|
5525
5529
|
gestureHandling: z46.enum(["cooperative", "greedy", "none", "auto"]).optional().describe("How the map handles touch/scroll gestures. Defaults to 'cooperative'"),
|
|
5526
|
-
disableDefaultUI: z46.boolean().optional().describe("Hide default map controls")
|
|
5530
|
+
disableDefaultUI: z46.boolean().optional().describe("Hide default map controls"),
|
|
5531
|
+
showCurrentLocation: z46.boolean().optional().describe("Show a blue dot for the user's current location")
|
|
5527
5532
|
})
|
|
5528
5533
|
}).describe("An interactive Google Map with optional markers and info windows");
|
|
5529
5534
|
|