magick-ui 0.2.2 → 0.2.3
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 +626 -406
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +626 -401
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +292 -158
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +252 -25
- package/dist/schema.d.ts +252 -25
- package/dist/schema.js +291 -158
- package/dist/schema.js.map +1 -1
- package/dist/ui/index.cjs +337 -248
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +26 -1
- package/dist/ui/index.d.ts +26 -1
- package/dist/ui/index.js +337 -243
- package/dist/ui/index.js.map +1 -1
- package/package.json +2 -1
- package/schema/component-schema.json +106 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magick-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Generative UI primitives, renderer, design tokens, and schema for composing dynamic chat interfaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
64
64
|
"@tanstack/react-table": "^8.21.3",
|
|
65
65
|
"@uidotdev/usehooks": "^2.4.1",
|
|
66
|
+
"@vis.gl/react-google-maps": "^1.7.1",
|
|
66
67
|
"class-variance-authority": "^0.7.0",
|
|
67
68
|
"clsx": "^2.1.0",
|
|
68
69
|
"cmdk": "^1.1.1",
|
|
@@ -3220,6 +3220,112 @@
|
|
|
3220
3220
|
},
|
|
3221
3221
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3222
3222
|
},
|
|
3223
|
+
"google-map": {
|
|
3224
|
+
"$ref": "#/definitions/google-map",
|
|
3225
|
+
"definitions": {
|
|
3226
|
+
"google-map": {
|
|
3227
|
+
"type": "object",
|
|
3228
|
+
"properties": {
|
|
3229
|
+
"type": {
|
|
3230
|
+
"type": "string",
|
|
3231
|
+
"const": "google-map"
|
|
3232
|
+
},
|
|
3233
|
+
"props": {
|
|
3234
|
+
"type": "object",
|
|
3235
|
+
"properties": {
|
|
3236
|
+
"center": {
|
|
3237
|
+
"type": "object",
|
|
3238
|
+
"properties": {
|
|
3239
|
+
"lat": {
|
|
3240
|
+
"type": "number",
|
|
3241
|
+
"description": "Center latitude"
|
|
3242
|
+
},
|
|
3243
|
+
"lng": {
|
|
3244
|
+
"type": "number",
|
|
3245
|
+
"description": "Center longitude"
|
|
3246
|
+
}
|
|
3247
|
+
},
|
|
3248
|
+
"required": [
|
|
3249
|
+
"lat",
|
|
3250
|
+
"lng"
|
|
3251
|
+
],
|
|
3252
|
+
"additionalProperties": false,
|
|
3253
|
+
"description": "Map center coordinates"
|
|
3254
|
+
},
|
|
3255
|
+
"zoom": {
|
|
3256
|
+
"type": "number",
|
|
3257
|
+
"description": "Zoom level (1-20). Defaults to 12"
|
|
3258
|
+
},
|
|
3259
|
+
"markers": {
|
|
3260
|
+
"type": "array",
|
|
3261
|
+
"items": {
|
|
3262
|
+
"type": "object",
|
|
3263
|
+
"properties": {
|
|
3264
|
+
"lat": {
|
|
3265
|
+
"type": "number",
|
|
3266
|
+
"description": "Latitude"
|
|
3267
|
+
},
|
|
3268
|
+
"lng": {
|
|
3269
|
+
"type": "number",
|
|
3270
|
+
"description": "Longitude"
|
|
3271
|
+
},
|
|
3272
|
+
"title": {
|
|
3273
|
+
"type": "string",
|
|
3274
|
+
"description": "Marker title shown in info window"
|
|
3275
|
+
},
|
|
3276
|
+
"description": {
|
|
3277
|
+
"type": "string",
|
|
3278
|
+
"description": "Marker description shown in info window"
|
|
3279
|
+
},
|
|
3280
|
+
"color": {
|
|
3281
|
+
"type": "string",
|
|
3282
|
+
"description": "Marker pin color (hex or CSS color)"
|
|
3283
|
+
}
|
|
3284
|
+
},
|
|
3285
|
+
"required": [
|
|
3286
|
+
"lat",
|
|
3287
|
+
"lng"
|
|
3288
|
+
],
|
|
3289
|
+
"additionalProperties": false
|
|
3290
|
+
},
|
|
3291
|
+
"description": "Array of map markers with lat/lng and optional info"
|
|
3292
|
+
},
|
|
3293
|
+
"height": {
|
|
3294
|
+
"type": "string",
|
|
3295
|
+
"description": "Map height CSS value. Defaults to '400px'"
|
|
3296
|
+
},
|
|
3297
|
+
"width": {
|
|
3298
|
+
"type": "string",
|
|
3299
|
+
"description": "Map width CSS value. Defaults to '100%'"
|
|
3300
|
+
},
|
|
3301
|
+
"gestureHandling": {
|
|
3302
|
+
"type": "string",
|
|
3303
|
+
"enum": [
|
|
3304
|
+
"cooperative",
|
|
3305
|
+
"greedy",
|
|
3306
|
+
"none",
|
|
3307
|
+
"auto"
|
|
3308
|
+
],
|
|
3309
|
+
"description": "How the map handles touch/scroll gestures. Defaults to 'cooperative'"
|
|
3310
|
+
},
|
|
3311
|
+
"disableDefaultUI": {
|
|
3312
|
+
"type": "boolean",
|
|
3313
|
+
"description": "Hide default map controls"
|
|
3314
|
+
}
|
|
3315
|
+
},
|
|
3316
|
+
"additionalProperties": false
|
|
3317
|
+
}
|
|
3318
|
+
},
|
|
3319
|
+
"required": [
|
|
3320
|
+
"type",
|
|
3321
|
+
"props"
|
|
3322
|
+
],
|
|
3323
|
+
"additionalProperties": false,
|
|
3324
|
+
"description": "An interactive Google Map with optional markers and info windows"
|
|
3325
|
+
}
|
|
3326
|
+
},
|
|
3327
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3328
|
+
},
|
|
3223
3329
|
"calendar": {
|
|
3224
3330
|
"$ref": "#/definitions/calendar",
|
|
3225
3331
|
"definitions": {
|