magick-ui 0.2.4 → 0.2.6
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 +103 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +108 -33
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +11 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +20 -0
- package/dist/schema.d.ts +20 -0
- package/dist/schema.js +11 -1
- package/dist/schema.js.map +1 -1
- package/dist/ui/index.cjs +92 -28
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +9 -1
- package/dist/ui/index.d.ts +9 -1
- package/dist/ui/index.js +97 -32
- package/dist/ui/index.js.map +1 -1
- package/package.json +2 -1
- package/schema/component-schema.json +8 -0
package/dist/schema.d.cts
CHANGED
|
@@ -1889,6 +1889,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1889
1889
|
gestureHandling: z.ZodOptional<z.ZodEnum<["cooperative", "greedy", "none", "auto"]>>;
|
|
1890
1890
|
disableDefaultUI: z.ZodOptional<z.ZodBoolean>;
|
|
1891
1891
|
showCurrentLocation: z.ZodOptional<z.ZodBoolean>;
|
|
1892
|
+
showSearch: z.ZodOptional<z.ZodBoolean>;
|
|
1893
|
+
searchPlaceholder: z.ZodOptional<z.ZodString>;
|
|
1892
1894
|
}, "strip", z.ZodTypeAny, {
|
|
1893
1895
|
center?: {
|
|
1894
1896
|
lat: number;
|
|
@@ -1907,6 +1909,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1907
1909
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1908
1910
|
disableDefaultUI?: boolean | undefined;
|
|
1909
1911
|
showCurrentLocation?: boolean | undefined;
|
|
1912
|
+
showSearch?: boolean | undefined;
|
|
1913
|
+
searchPlaceholder?: string | undefined;
|
|
1910
1914
|
}, {
|
|
1911
1915
|
center?: {
|
|
1912
1916
|
lat: number;
|
|
@@ -1925,6 +1929,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1925
1929
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1926
1930
|
disableDefaultUI?: boolean | undefined;
|
|
1927
1931
|
showCurrentLocation?: boolean | undefined;
|
|
1932
|
+
showSearch?: boolean | undefined;
|
|
1933
|
+
searchPlaceholder?: string | undefined;
|
|
1928
1934
|
}>;
|
|
1929
1935
|
}, "strip", z.ZodTypeAny, {
|
|
1930
1936
|
type: "google-map";
|
|
@@ -1946,6 +1952,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1946
1952
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1947
1953
|
disableDefaultUI?: boolean | undefined;
|
|
1948
1954
|
showCurrentLocation?: boolean | undefined;
|
|
1955
|
+
showSearch?: boolean | undefined;
|
|
1956
|
+
searchPlaceholder?: string | undefined;
|
|
1949
1957
|
};
|
|
1950
1958
|
}, {
|
|
1951
1959
|
type: "google-map";
|
|
@@ -1967,6 +1975,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1967
1975
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1968
1976
|
disableDefaultUI?: boolean | undefined;
|
|
1969
1977
|
showCurrentLocation?: boolean | undefined;
|
|
1978
|
+
showSearch?: boolean | undefined;
|
|
1979
|
+
searchPlaceholder?: string | undefined;
|
|
1970
1980
|
};
|
|
1971
1981
|
}>;
|
|
1972
1982
|
|
|
@@ -4450,6 +4460,8 @@ declare const componentSchemas: {
|
|
|
4450
4460
|
gestureHandling: zod.ZodOptional<zod.ZodEnum<["cooperative", "greedy", "none", "auto"]>>;
|
|
4451
4461
|
disableDefaultUI: zod.ZodOptional<zod.ZodBoolean>;
|
|
4452
4462
|
showCurrentLocation: zod.ZodOptional<zod.ZodBoolean>;
|
|
4463
|
+
showSearch: zod.ZodOptional<zod.ZodBoolean>;
|
|
4464
|
+
searchPlaceholder: zod.ZodOptional<zod.ZodString>;
|
|
4453
4465
|
}, "strip", zod.ZodTypeAny, {
|
|
4454
4466
|
center?: {
|
|
4455
4467
|
lat: number;
|
|
@@ -4468,6 +4480,8 @@ declare const componentSchemas: {
|
|
|
4468
4480
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4469
4481
|
disableDefaultUI?: boolean | undefined;
|
|
4470
4482
|
showCurrentLocation?: boolean | undefined;
|
|
4483
|
+
showSearch?: boolean | undefined;
|
|
4484
|
+
searchPlaceholder?: string | undefined;
|
|
4471
4485
|
}, {
|
|
4472
4486
|
center?: {
|
|
4473
4487
|
lat: number;
|
|
@@ -4486,6 +4500,8 @@ declare const componentSchemas: {
|
|
|
4486
4500
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4487
4501
|
disableDefaultUI?: boolean | undefined;
|
|
4488
4502
|
showCurrentLocation?: boolean | undefined;
|
|
4503
|
+
showSearch?: boolean | undefined;
|
|
4504
|
+
searchPlaceholder?: string | undefined;
|
|
4489
4505
|
}>;
|
|
4490
4506
|
}, "strip", zod.ZodTypeAny, {
|
|
4491
4507
|
type: "google-map";
|
|
@@ -4507,6 +4523,8 @@ declare const componentSchemas: {
|
|
|
4507
4523
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4508
4524
|
disableDefaultUI?: boolean | undefined;
|
|
4509
4525
|
showCurrentLocation?: boolean | undefined;
|
|
4526
|
+
showSearch?: boolean | undefined;
|
|
4527
|
+
searchPlaceholder?: string | undefined;
|
|
4510
4528
|
};
|
|
4511
4529
|
}, {
|
|
4512
4530
|
type: "google-map";
|
|
@@ -4528,6 +4546,8 @@ declare const componentSchemas: {
|
|
|
4528
4546
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4529
4547
|
disableDefaultUI?: boolean | undefined;
|
|
4530
4548
|
showCurrentLocation?: boolean | undefined;
|
|
4549
|
+
showSearch?: boolean | undefined;
|
|
4550
|
+
searchPlaceholder?: string | undefined;
|
|
4531
4551
|
};
|
|
4532
4552
|
}>;
|
|
4533
4553
|
readonly calendar: zod.ZodObject<{
|
package/dist/schema.d.ts
CHANGED
|
@@ -1889,6 +1889,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1889
1889
|
gestureHandling: z.ZodOptional<z.ZodEnum<["cooperative", "greedy", "none", "auto"]>>;
|
|
1890
1890
|
disableDefaultUI: z.ZodOptional<z.ZodBoolean>;
|
|
1891
1891
|
showCurrentLocation: z.ZodOptional<z.ZodBoolean>;
|
|
1892
|
+
showSearch: z.ZodOptional<z.ZodBoolean>;
|
|
1893
|
+
searchPlaceholder: z.ZodOptional<z.ZodString>;
|
|
1892
1894
|
}, "strip", z.ZodTypeAny, {
|
|
1893
1895
|
center?: {
|
|
1894
1896
|
lat: number;
|
|
@@ -1907,6 +1909,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1907
1909
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1908
1910
|
disableDefaultUI?: boolean | undefined;
|
|
1909
1911
|
showCurrentLocation?: boolean | undefined;
|
|
1912
|
+
showSearch?: boolean | undefined;
|
|
1913
|
+
searchPlaceholder?: string | undefined;
|
|
1910
1914
|
}, {
|
|
1911
1915
|
center?: {
|
|
1912
1916
|
lat: number;
|
|
@@ -1925,6 +1929,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1925
1929
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1926
1930
|
disableDefaultUI?: boolean | undefined;
|
|
1927
1931
|
showCurrentLocation?: boolean | undefined;
|
|
1932
|
+
showSearch?: boolean | undefined;
|
|
1933
|
+
searchPlaceholder?: string | undefined;
|
|
1928
1934
|
}>;
|
|
1929
1935
|
}, "strip", z.ZodTypeAny, {
|
|
1930
1936
|
type: "google-map";
|
|
@@ -1946,6 +1952,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1946
1952
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1947
1953
|
disableDefaultUI?: boolean | undefined;
|
|
1948
1954
|
showCurrentLocation?: boolean | undefined;
|
|
1955
|
+
showSearch?: boolean | undefined;
|
|
1956
|
+
searchPlaceholder?: string | undefined;
|
|
1949
1957
|
};
|
|
1950
1958
|
}, {
|
|
1951
1959
|
type: "google-map";
|
|
@@ -1967,6 +1975,8 @@ declare const googleMapSchema: z.ZodObject<{
|
|
|
1967
1975
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
1968
1976
|
disableDefaultUI?: boolean | undefined;
|
|
1969
1977
|
showCurrentLocation?: boolean | undefined;
|
|
1978
|
+
showSearch?: boolean | undefined;
|
|
1979
|
+
searchPlaceholder?: string | undefined;
|
|
1970
1980
|
};
|
|
1971
1981
|
}>;
|
|
1972
1982
|
|
|
@@ -4450,6 +4460,8 @@ declare const componentSchemas: {
|
|
|
4450
4460
|
gestureHandling: zod.ZodOptional<zod.ZodEnum<["cooperative", "greedy", "none", "auto"]>>;
|
|
4451
4461
|
disableDefaultUI: zod.ZodOptional<zod.ZodBoolean>;
|
|
4452
4462
|
showCurrentLocation: zod.ZodOptional<zod.ZodBoolean>;
|
|
4463
|
+
showSearch: zod.ZodOptional<zod.ZodBoolean>;
|
|
4464
|
+
searchPlaceholder: zod.ZodOptional<zod.ZodString>;
|
|
4453
4465
|
}, "strip", zod.ZodTypeAny, {
|
|
4454
4466
|
center?: {
|
|
4455
4467
|
lat: number;
|
|
@@ -4468,6 +4480,8 @@ declare const componentSchemas: {
|
|
|
4468
4480
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4469
4481
|
disableDefaultUI?: boolean | undefined;
|
|
4470
4482
|
showCurrentLocation?: boolean | undefined;
|
|
4483
|
+
showSearch?: boolean | undefined;
|
|
4484
|
+
searchPlaceholder?: string | undefined;
|
|
4471
4485
|
}, {
|
|
4472
4486
|
center?: {
|
|
4473
4487
|
lat: number;
|
|
@@ -4486,6 +4500,8 @@ declare const componentSchemas: {
|
|
|
4486
4500
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4487
4501
|
disableDefaultUI?: boolean | undefined;
|
|
4488
4502
|
showCurrentLocation?: boolean | undefined;
|
|
4503
|
+
showSearch?: boolean | undefined;
|
|
4504
|
+
searchPlaceholder?: string | undefined;
|
|
4489
4505
|
}>;
|
|
4490
4506
|
}, "strip", zod.ZodTypeAny, {
|
|
4491
4507
|
type: "google-map";
|
|
@@ -4507,6 +4523,8 @@ declare const componentSchemas: {
|
|
|
4507
4523
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4508
4524
|
disableDefaultUI?: boolean | undefined;
|
|
4509
4525
|
showCurrentLocation?: boolean | undefined;
|
|
4526
|
+
showSearch?: boolean | undefined;
|
|
4527
|
+
searchPlaceholder?: string | undefined;
|
|
4510
4528
|
};
|
|
4511
4529
|
}, {
|
|
4512
4530
|
type: "google-map";
|
|
@@ -4528,6 +4546,8 @@ declare const componentSchemas: {
|
|
|
4528
4546
|
gestureHandling?: "none" | "cooperative" | "greedy" | "auto" | undefined;
|
|
4529
4547
|
disableDefaultUI?: boolean | undefined;
|
|
4530
4548
|
showCurrentLocation?: boolean | undefined;
|
|
4549
|
+
showSearch?: boolean | undefined;
|
|
4550
|
+
searchPlaceholder?: string | undefined;
|
|
4531
4551
|
};
|
|
4532
4552
|
}>;
|
|
4533
4553
|
readonly calendar: zod.ZodObject<{
|
package/dist/schema.js
CHANGED
|
@@ -3316,6 +3316,14 @@ var component_schema_default = {
|
|
|
3316
3316
|
showCurrentLocation: {
|
|
3317
3317
|
type: "boolean",
|
|
3318
3318
|
description: "Show a blue dot for the user's current location"
|
|
3319
|
+
},
|
|
3320
|
+
showSearch: {
|
|
3321
|
+
type: "boolean",
|
|
3322
|
+
description: "Show a search box to find places on the map"
|
|
3323
|
+
},
|
|
3324
|
+
searchPlaceholder: {
|
|
3325
|
+
type: "string",
|
|
3326
|
+
description: "Placeholder text for the search box"
|
|
3319
3327
|
}
|
|
3320
3328
|
},
|
|
3321
3329
|
additionalProperties: false
|
|
@@ -5528,7 +5536,9 @@ var googleMapSchema = z46.object({
|
|
|
5528
5536
|
width: z46.string().optional().describe("Map width CSS value. Defaults to '100%'"),
|
|
5529
5537
|
gestureHandling: z46.enum(["cooperative", "greedy", "none", "auto"]).optional().describe("How the map handles touch/scroll gestures. Defaults to 'cooperative'"),
|
|
5530
5538
|
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")
|
|
5539
|
+
showCurrentLocation: z46.boolean().optional().describe("Show a blue dot for the user's current location"),
|
|
5540
|
+
showSearch: z46.boolean().optional().describe("Show a search box to find places on the map"),
|
|
5541
|
+
searchPlaceholder: z46.string().optional().describe("Placeholder text for the search box")
|
|
5532
5542
|
})
|
|
5533
5543
|
}).describe("An interactive Google Map with optional markers and info windows");
|
|
5534
5544
|
|