qrdx 0.0.50 → 0.0.52
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/README.md +212 -8
- package/dist/angular.js +252 -0
- package/dist/angular.js.map +1 -0
- package/dist/angular.mjs +226 -0
- package/dist/angular.mjs.map +1 -0
- package/dist/core.js +31 -0
- package/dist/core.js.map +1 -0
- package/dist/core.mjs +31 -0
- package/dist/core.mjs.map +1 -0
- package/dist/element-define.browser.mjs +2 -0
- package/dist/element-define.browser.mjs.map +1 -0
- package/dist/element-define.js +2 -0
- package/dist/element-define.js.map +1 -0
- package/dist/element-define.mjs +2 -0
- package/dist/element-define.mjs.map +1 -0
- package/dist/element.browser.mjs +91 -0
- package/dist/element.browser.mjs.map +1 -0
- package/dist/element.js +2 -0
- package/dist/element.js.map +1 -0
- package/dist/element.mjs +2 -0
- package/dist/element.mjs.map +1 -0
- package/dist/frames-index.js +1 -1
- package/dist/frames-index.js.map +1 -1
- package/dist/frames-index.mjs +1 -1
- package/dist/frames-index.mjs.map +1 -1
- package/dist/frames-official.js +1 -1
- package/dist/frames-official.js.map +1 -1
- package/dist/frames-official.mjs +1 -1
- package/dist/frames-official.mjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/node.js +2 -5
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +2 -5
- package/dist/node.mjs.map +1 -1
- package/dist/preact.js +2 -0
- package/dist/preact.js.map +1 -0
- package/dist/preact.mjs +2 -0
- package/dist/preact.mjs.map +1 -0
- package/dist/qr-code-canvas.js +1 -1
- package/dist/qr-code-canvas.js.map +1 -1
- package/dist/qr-code-canvas.mjs +1 -1
- package/dist/qr-code-canvas.mjs.map +1 -1
- package/dist/solid.js +2 -0
- package/dist/solid.js.map +1 -0
- package/dist/solid.mjs +2 -0
- package/dist/solid.mjs.map +1 -0
- package/dist/src/angular.d.ts +94 -0
- package/dist/src/api.d.ts +8 -2
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/art.d.ts +4 -3
- package/dist/src/art.d.ts.map +1 -1
- package/dist/src/body-patterns.d.ts +3 -2
- package/dist/src/body-patterns.d.ts.map +1 -1
- package/dist/src/core.d.ts +5 -0
- package/dist/src/core.d.ts.map +1 -0
- package/dist/src/corner-dot.d.ts +3 -2
- package/dist/src/corner-dot.d.ts.map +1 -1
- package/dist/src/element-define.d.ts +3 -0
- package/dist/src/element-define.d.ts.map +1 -0
- package/dist/src/element.d.ts +150 -0
- package/dist/src/element.d.ts.map +1 -0
- package/dist/src/engine.d.ts +44 -0
- package/dist/src/engine.d.ts.map +1 -0
- package/dist/src/export.d.ts +5 -0
- package/dist/src/export.d.ts.map +1 -0
- package/dist/src/frame-spec.d.ts +22 -4
- package/dist/src/frame-spec.d.ts.map +1 -1
- package/dist/src/frame-text.d.ts +19 -0
- package/dist/src/frame-text.d.ts.map +1 -0
- package/dist/src/frame.d.ts +18 -11
- package/dist/src/frame.d.ts.map +1 -1
- package/dist/src/frames/builtin.d.ts +53 -5
- package/dist/src/frames/builtin.d.ts.map +1 -1
- package/dist/src/frames/catalogue/all.d.ts.map +1 -1
- package/dist/src/frames/catalogue/automotive.d.ts +5 -0
- package/dist/src/frames/catalogue/automotive.d.ts.map +1 -0
- package/dist/src/frames/catalogue/beauty-wellness.d.ts +5 -0
- package/dist/src/frames/catalogue/beauty-wellness.d.ts.map +1 -0
- package/dist/src/frames/catalogue/business.d.ts.map +1 -1
- package/dist/src/frames/catalogue/call-to-action.d.ts.map +1 -1
- package/dist/src/frames/catalogue/counts.d.ts +15 -10
- package/dist/src/frames/catalogue/counts.d.ts.map +1 -1
- package/dist/src/frames/catalogue/events.d.ts.map +1 -1
- package/dist/src/frames/catalogue/food-drink.d.ts.map +1 -1
- package/dist/src/frames/catalogue/health-learning.d.ts.map +1 -1
- package/dist/src/frames/catalogue/holidays.d.ts.map +1 -1
- package/dist/src/frames/catalogue/index.d.ts.map +1 -1
- package/dist/src/frames/catalogue/nonprofit.d.ts +5 -0
- package/dist/src/frames/catalogue/nonprofit.d.ts.map +1 -0
- package/dist/src/frames/catalogue/places.d.ts.map +1 -1
- package/dist/src/frames/catalogue/real-estate.d.ts +5 -0
- package/dist/src/frames/catalogue/real-estate.d.ts.map +1 -0
- package/dist/src/frames/catalogue/seasons.d.ts.map +1 -1
- package/dist/src/frames/catalogue/shopping.d.ts.map +1 -1
- package/dist/src/frames/catalogue/sports-fitness.d.ts +5 -0
- package/dist/src/frames/catalogue/sports-fitness.d.ts.map +1 -0
- package/dist/src/frames/catalogue/tags.d.ts.map +1 -1
- package/dist/src/frames/collections.d.ts.map +1 -1
- package/dist/src/frames/official-types.d.ts +1 -1
- package/dist/src/frames/official-types.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -38
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/jsx/index.d.ts +2 -0
- package/dist/src/jsx/index.d.ts.map +1 -0
- package/dist/src/jsx/jsx-dev-runtime.d.ts +5 -0
- package/dist/src/jsx/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/src/jsx/jsx-runtime.d.ts +30 -0
- package/dist/src/jsx/jsx-runtime.d.ts.map +1 -0
- package/dist/src/jsx/runtime.d.ts +73 -0
- package/dist/src/jsx/runtime.d.ts.map +1 -0
- package/dist/src/logo.d.ts +3 -2
- package/dist/src/logo.d.ts.map +1 -1
- package/dist/src/node.d.ts.map +1 -1
- package/dist/src/plain.d.ts +31 -0
- package/dist/src/plain.d.ts.map +1 -0
- package/dist/src/preact.d.ts +29 -0
- package/dist/src/preact.d.ts.map +1 -0
- package/dist/src/qr-code-canvas.d.ts +1 -1
- package/dist/src/qr-code-canvas.d.ts.map +1 -1
- package/dist/src/qr-code-props.d.ts +22 -0
- package/dist/src/qr-code-props.d.ts.map +1 -0
- package/dist/src/qr-code-svg.d.ts +10 -0
- package/dist/src/qr-code-svg.d.ts.map +1 -0
- package/dist/src/qr-code.d.ts +2 -10
- package/dist/src/qr-code.d.ts.map +1 -1
- package/dist/src/react-elements.d.ts +3 -0
- package/dist/src/react-elements.d.ts.map +1 -0
- package/dist/src/render/attributes.d.ts +33 -0
- package/dist/src/render/attributes.d.ts.map +1 -0
- package/dist/src/render/dom.d.ts +8 -0
- package/dist/src/render/dom.d.ts.map +1 -0
- package/dist/src/render/hyperscript.d.ts +10 -0
- package/dist/src/render/hyperscript.d.ts.map +1 -0
- package/dist/src/render/string.d.ts +8 -0
- package/dist/src/render/string.d.ts.map +1 -0
- package/dist/src/scan-score.d.ts +4 -3
- package/dist/src/scan-score.d.ts.map +1 -1
- package/dist/src/solid.d.ts +21 -0
- package/dist/src/solid.d.ts.map +1 -0
- package/dist/src/svg.d.ts +14 -0
- package/dist/src/svg.d.ts.map +1 -0
- package/dist/src/template/arrow.d.ts +1 -0
- package/dist/src/template/arrow.d.ts.map +1 -1
- package/dist/src/template/default.d.ts +1 -0
- package/dist/src/template/default.d.ts.map +1 -1
- package/dist/src/template/dot-ring-layout.d.ts +44 -0
- package/dist/src/template/dot-ring-layout.d.ts.map +1 -0
- package/dist/src/template/dot-ring.d.ts +41 -0
- package/dist/src/template/dot-ring.d.ts.map +1 -0
- package/dist/src/template/halloween.d.ts +1 -0
- package/dist/src/template/halloween.d.ts.map +1 -1
- package/dist/src/template/index.d.ts +1 -0
- package/dist/src/template/index.d.ts.map +1 -1
- package/dist/src/template/square-border.d.ts +1 -0
- package/dist/src/template/square-border.d.ts.map +1 -1
- package/dist/src/template/standard-box.d.ts +1 -0
- package/dist/src/template/standard-box.d.ts.map +1 -1
- package/dist/src/template/striked-box.d.ts +1 -0
- package/dist/src/template/striked-box.d.ts.map +1 -1
- package/dist/src/template-placement.d.ts +8 -0
- package/dist/src/template-placement.d.ts.map +1 -0
- package/dist/src/templates.d.ts.map +1 -1
- package/dist/src/utils.d.ts +9 -3
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/vanilla-api.d.ts +47 -0
- package/dist/src/vanilla-api.d.ts.map +1 -0
- package/dist/src/vanilla-browser.d.ts +4 -0
- package/dist/src/vanilla-browser.d.ts.map +1 -0
- package/dist/src/vanilla.d.ts +4 -0
- package/dist/src/vanilla.d.ts.map +1 -0
- package/dist/src/vue.d.ts +56 -0
- package/dist/src/vue.d.ts.map +1 -0
- package/dist/types/frame-spec.d.ts +149 -14
- package/dist/types/frame-spec.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +2 -2
- package/dist/types/index.mjs.map +1 -1
- package/dist/types/public.d.ts +3 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/qr.d.ts +43 -7
- package/dist/types/qr.d.ts.map +1 -1
- package/dist/types/react.d.ts +5 -0
- package/dist/types/react.d.ts.map +1 -0
- package/dist/types/template.d.ts +7 -1
- package/dist/types/template.d.ts.map +1 -1
- package/dist/vanilla.browser.mjs +92 -0
- package/dist/vanilla.browser.mjs.map +1 -0
- package/dist/vanilla.js +2 -0
- package/dist/vanilla.js.map +1 -0
- package/dist/vanilla.mjs +2 -0
- package/dist/vanilla.mjs.map +1 -0
- package/dist/vue.js +2 -0
- package/dist/vue.js.map +1 -0
- package/dist/vue.mjs +2 -0
- package/dist/vue.mjs.map +1 -0
- package/package.json +130 -8
- package/src/angular.ts +218 -0
- package/src/api.tsx +16 -140
- package/src/art.tsx +18 -16
- package/src/body-patterns.tsx +5 -3
- package/src/core.ts +13 -0
- package/src/corner-dot.tsx +4 -2
- package/src/download.tsx +1 -1
- package/src/element-define.ts +9 -0
- package/src/element.ts +608 -0
- package/src/engine.ts +181 -0
- package/src/export.ts +212 -0
- package/src/frame-spec.ts +314 -54
- package/src/frame-text.ts +111 -0
- package/src/frame.tsx +24 -286
- package/src/frames/builtin/badge.json +108 -0
- package/src/frames/builtin/banner-bottom.json +2 -1
- package/src/frames/builtin/banner-top-bottom.json +72 -0
- package/src/frames/builtin/banner-top.json +59 -0
- package/src/frames/builtin/border.json +62 -0
- package/src/frames/builtin/chat-bubble.json +54 -0
- package/src/frames/builtin/circle.json +2 -1
- package/src/frames/builtin/envelope.json +81 -0
- package/src/frames/builtin/focus.json +88 -0
- package/src/frames/builtin/gradient-border.json +76 -0
- package/src/frames/builtin/menu-card.json +108 -0
- package/src/frames/builtin/phone.json +75 -0
- package/src/frames/builtin/polaroid.json +56 -0
- package/src/frames/builtin/rounded-border.json +8 -4
- package/src/frames/builtin/speech-bubble-top.json +76 -0
- package/src/frames/builtin/speech-bubble.json +76 -0
- package/src/frames/builtin/sticker.json +78 -0
- package/src/frames/builtin/tag.json +55 -0
- package/src/frames/builtin.ts +181 -12
- package/src/frames/catalogue/all.ts +1190 -0
- package/src/frames/catalogue/automotive.ts +63 -0
- package/src/frames/catalogue/beauty-wellness.ts +61 -0
- package/src/frames/catalogue/business.ts +68 -0
- package/src/frames/catalogue/call-to-action.ts +60 -0
- package/src/frames/catalogue/counts.ts +15 -10
- package/src/frames/catalogue/events.ts +90 -0
- package/src/frames/catalogue/food-drink.ts +78 -0
- package/src/frames/catalogue/health-learning.ts +62 -14
- package/src/frames/catalogue/holidays.ts +336 -0
- package/src/frames/catalogue/index.ts +5173 -16
- package/src/frames/catalogue/nonprofit.ts +65 -0
- package/src/frames/catalogue/places.ts +92 -18
- package/src/frames/catalogue/real-estate.ts +79 -0
- package/src/frames/catalogue/seasons.ts +64 -0
- package/src/frames/catalogue/shopping.ts +68 -0
- package/src/frames/catalogue/sports-fitness.ts +81 -0
- package/src/frames/catalogue/tags.ts +738 -0
- package/src/frames/collections.ts +5 -0
- package/src/frames/official/add-engraving.json +90 -0
- package/src/frames/official/add-to-calendar.json +98 -0
- package/src/frames/official/adopt-me.json +72 -0
- package/src/frames/official/africa-day.json +110 -0
- package/src/frames/official/aftercare-guide.json +98 -0
- package/src/frames/official/alterations.json +142 -0
- package/src/frames/official/annual-report.json +85 -0
- package/src/frames/official/aquarium-feeding.json +113 -0
- package/src/frames/official/archery-lesson.json +106 -0
- package/src/frames/official/arrival-guide.json +71 -0
- package/src/frames/official/art-class.json +137 -0
- package/src/frames/official/ask-a-stylist.json +112 -0
- package/src/frames/official/assembly-guide.json +93 -0
- package/src/frames/official/autumn-apple-picking.json +81 -0
- package/src/frames/official/autumn-mushroom.json +72 -0
- package/src/frames/official/autumn-pumpkin-patch.json +83 -0
- package/src/frames/official/avurudu-pot.json +87 -0
- package/src/frames/official/badminton-session.json +104 -0
- package/src/frames/official/bake-sale.json +158 -0
- package/src/frames/official/bakery-board.json +80 -0
- package/src/frames/official/barber-booking.json +64 -0
- package/src/frames/official/bath-ritual.json +70 -0
- package/src/frames/official/bathroom-showroom.json +113 -0
- package/src/frames/official/battery-check.json +95 -0
- package/src/frames/official/beach-conditions.json +113 -0
- package/src/frames/official/beach-info-sticker.json +81 -0
- package/src/frames/official/beach-lifeguard.json +71 -0
- package/src/frames/official/beauty-rewards.json +81 -0
- package/src/frames/official/become-a-member.json +79 -0
- package/src/frames/official/bike-service.json +113 -0
- package/src/frames/official/blood-donor-drop.json +87 -0
- package/src/frames/official/blood-donor-sticker.json +94 -0
- package/src/frames/official/book-a-call.json +105 -0
- package/src/frames/official/book-a-cleaning.json +92 -0
- package/src/frames/official/book-a-consultation.json +101 -0
- package/src/frames/official/book-a-court.json +74 -0
- package/src/frames/official/book-a-facial.json +108 -0
- package/src/frames/official/book-a-massage.json +80 -0
- package/src/frames/official/book-a-vaccine.json +88 -0
- package/src/frames/official/book-day-arch.json +71 -0
- package/src/frames/official/book-day-list.json +114 -0
- package/src/frames/official/book-this-room.json +80 -0
- package/src/frames/official/boxing-class.json +81 -0
- package/src/frames/official/brewery-tour.json +89 -0
- package/src/frames/official/bridal-beauty.json +80 -0
- package/src/frames/official/brunch-menu.json +79 -0
- package/src/frames/official/bubble-tea.json +81 -0
- package/src/frames/official/bulk-orders.json +108 -0
- package/src/frames/official/burger-order.json +80 -0
- package/src/frames/official/call-a-server.json +115 -0
- package/src/frames/official/camp-check-in.json +74 -0
- package/src/frames/official/camp-fire-rules.json +114 -0
- package/src/frames/official/camp-map.json +85 -0
- package/src/frames/official/car-detailing.json +102 -0
- package/src/frames/official/car-details.json +90 -0
- package/src/frames/official/car-for-sale.json +74 -0
- package/src/frames/official/car-service.json +92 -0
- package/src/frames/official/carnival-mask.json +76 -0
- package/src/frames/official/carnival-pass.json +85 -0
- package/src/frames/official/carnival-plume.json +71 -0
- package/src/frames/official/carpool.json +79 -0
- package/src/frames/official/catering-order.json +79 -0
- package/src/frames/official/charging-prices.json +105 -0
- package/src/frames/official/charity-shop.json +75 -0
- package/src/frames/official/check-symptoms.json +80 -0
- package/src/frames/official/cheese-pairing.json +91 -0
- package/src/frames/official/chess-club.json +64 -0
- package/src/frames/official/chess-lessons.json +83 -0
- package/src/frames/official/childrens-day-carp.json +114 -0
- package/src/frames/official/childrens-day-sticker.json +88 -0
- package/src/frames/official/choose-your-plan.json +113 -0
- package/src/frames/official/choose-your-wash.json +86 -0
- package/src/frames/official/chuseok-gift-tag.json +59 -0
- package/src/frames/official/chuseok-moon.json +99 -0
- package/src/frames/official/chuseok-songpyeon.json +114 -0
- package/src/frames/official/clean-beauty.json +94 -0
- package/src/frames/official/click-and-collect.json +85 -0
- package/src/frames/official/clock-in.json +101 -0
- package/src/frames/official/club-fees.json +94 -0
- package/src/frames/official/coach-sign-up.json +108 -0
- package/src/frames/official/community-notices.json +107 -0
- package/src/frames/official/compare-specs.json +112 -0
- package/src/frames/official/consultation-form.json +120 -0
- package/src/frames/official/continued-online.json +81 -0
- package/src/frames/official/cookie-box.json +88 -0
- package/src/frames/official/cooking-class.json +89 -0
- package/src/frames/official/cowork-desk.json +82 -0
- package/src/frames/official/cowork-meeting-room.json +107 -0
- package/src/frames/official/coworking-pass.json +89 -0
- package/src/frames/official/cricket-club.json +158 -0
- package/src/frames/official/cupcake-order.json +108 -0
- package/src/frames/official/damage-report.json +114 -0
- package/src/frames/official/dashboard-lights.json +106 -0
- package/src/frames/official/delivery-instructions.json +98 -0
- package/src/frames/official/diy-how-to.json +87 -0
- package/src/frames/official/donate-coats.json +74 -0
- package/src/frames/official/donate-food.json +80 -0
- package/src/frames/official/donation-jar.json +101 -0
- package/src/frames/official/donut-shop.json +94 -0
- package/src/frames/official/dragon-boat-race.json +83 -0
- package/src/frames/official/dragon-boat-ticket.json +98 -0
- package/src/frames/official/dragon-boat-zongzi.json +81 -0
- package/src/frames/official/dress-fitting.json +64 -0
- package/src/frames/official/driving-lessons.json +110 -0
- package/src/frames/official/dumpling-house.json +82 -0
- package/src/frames/official/durga-puja-lotus.json +114 -0
- package/src/frames/official/dussehra-seal.json +187 -0
- package/src/frames/official/earth-day-globe.json +77 -0
- package/src/frames/official/earth-day-pledge.json +66 -0
- package/src/frames/official/earth-day-recycle.json +109 -0
- package/src/frames/official/enkutatash-daisy.json +87 -0
- package/src/frames/official/enkutatash-seal.json +179 -0
- package/src/frames/official/environment-day.json +83 -0
- package/src/frames/official/event-anniversary.json +107 -0
- package/src/frames/official/event-awards.json +93 -0
- package/src/frames/official/event-baby-gifts.json +113 -0
- package/src/frames/official/event-baby-shower.json +70 -0
- package/src/frames/official/event-birth-announcement.json +71 -0
- package/src/frames/official/event-book-fair.json +142 -0
- package/src/frames/official/event-booth.json +98 -0
- package/src/frames/official/event-craft-fair.json +96 -0
- package/src/frames/official/event-cupcake.json +81 -0
- package/src/frames/official/event-engagement.json +116 -0
- package/src/frames/official/event-film-festival.json +92 -0
- package/src/frames/official/event-food-festival.json +108 -0
- package/src/frames/official/event-fun-run.json +107 -0
- package/src/frames/official/event-gala.json +121 -0
- package/src/frames/official/event-game-night.json +97 -0
- package/src/frames/official/event-grad-diploma.json +126 -0
- package/src/frames/official/event-grad-party.json +108 -0
- package/src/frames/official/event-grad-seal.json +186 -0
- package/src/frames/official/event-grad-stream.json +94 -0
- package/src/frames/official/event-guest-book.json +121 -0
- package/src/frames/official/event-hackathon.json +82 -0
- package/src/frames/official/event-keynote.json +74 -0
- package/src/frames/official/event-match-lineup.json +66 -0
- package/src/frames/official/event-meetup.json +86 -0
- package/src/frames/official/event-memorial.json +124 -0
- package/src/frames/official/event-milestone.json +168 -0
- package/src/frames/official/event-night-market.json +88 -0
- package/src/frames/official/event-open-mic.json +94 -0
- package/src/frames/official/event-party-hat.json +74 -0
- package/src/frames/official/event-prom.json +82 -0
- package/src/frames/official/event-quince.json +70 -0
- package/src/frames/official/event-retirement.json +92 -0
- package/src/frames/official/event-reunion.json +98 -0
- package/src/frames/official/event-runner-tracker.json +101 -0
- package/src/frames/official/event-season-ticket.json +89 -0
- package/src/frames/official/event-session-feedback.json +89 -0
- package/src/frames/official/event-setlist.json +70 -0
- package/src/frames/official/event-short-films.json +113 -0
- package/src/frames/official/event-slides.json +85 -0
- package/src/frames/official/event-speaker-qa.json +112 -0
- package/src/frames/official/event-talent-show.json +130 -0
- package/src/frames/official/event-tour-merch.json +63 -0
- package/src/frames/official/event-tournament.json +98 -0
- package/src/frames/official/event-trivia.json +79 -0
- package/src/frames/official/event-workshop.json +127 -0
- package/src/frames/official/eye-exam.json +70 -0
- package/src/frames/official/eyewear-try-on.json +99 -0
- package/src/frames/official/fan-club.json +152 -0
- package/src/frames/official/farm-stand.json +109 -0
- package/src/frames/official/farmers-market.json +74 -0
- package/src/frames/official/festa-della-repubblica.json +100 -0
- package/src/frames/official/festa-junina-bonfire.json +81 -0
- package/src/frames/official/festa-junina-corn.json +72 -0
- package/src/frames/official/festa-junina-flags.json +110 -0
- package/src/frames/official/fiestas-patrias-chile.json +76 -0
- package/src/frames/official/find-a-charger.json +107 -0
- package/src/frames/official/find-a-doctor.json +85 -0
- package/src/frames/official/find-it-in-store.json +101 -0
- package/src/frames/official/find-our-office.json +80 -0
- package/src/frames/official/first-aid-guide.json +109 -0
- package/src/frames/official/fish-market.json +113 -0
- package/src/frames/official/fitness-challenge.json +1 -1
- package/src/frames/official/fitness-equipment.json +1 -1
- package/src/frames/official/fitness-kettlebell.json +1 -1
- package/src/frames/official/fitness-schedule.json +1 -1
- package/src/frames/official/fitness-test.json +94 -0
- package/src/frames/official/fitness-timer.json +1 -1
- package/src/frames/official/fitness-trial.json +1 -1
- package/src/frames/official/fitness-yoga.json +1 -1
- package/src/frames/official/food-day-wheat.json +109 -0
- package/src/frames/official/food-support.json +102 -0
- package/src/frames/official/food-truck-location.json +80 -0
- package/src/frames/official/freedom-day-south-africa.json +109 -0
- package/src/frames/official/furnished-rental.json +101 -0
- package/src/frames/official/game-night.json +79 -0
- package/src/frames/official/ganesh-marigold.json +71 -0
- package/src/frames/official/ganesh-modak.json +81 -0
- package/src/frames/official/ganesh-pandal.json +109 -0
- package/src/frames/official/garden-design.json +70 -0
- package/src/frames/official/garden-plant-label.json +98 -0
- package/src/frames/official/garden-plot.json +74 -0
- package/src/frames/official/german-unity-day.json +100 -0
- package/src/frames/official/get-a-quote.json +113 -0
- package/src/frames/official/get-it-delivered.json +82 -0
- package/src/frames/official/get-started-rocket.json +80 -0
- package/src/frames/official/get-the-brochure.json +116 -0
- package/src/frames/official/gift-ideas.json +86 -0
- package/src/frames/official/gift-message.json +85 -0
- package/src/frames/official/give-blood.json +88 -0
- package/src/frames/official/giving-jar.json +89 -0
- package/src/frames/official/golf-scorecard.json +120 -0
- package/src/frames/official/grand-opening.json +158 -0
- package/src/frames/official/green-ribbon.json +123 -0
- package/src/frames/official/grill-menu.json +92 -0
- package/src/frames/official/gudi-padwa.json +81 -0
- package/src/frames/official/hanami-arch.json +71 -0
- package/src/frames/official/hanami-picnic.json +90 -0
- package/src/frames/official/hanami-sakura.json +81 -0
- package/src/frames/official/hand-washing.json +106 -0
- package/src/frames/official/handyman.json +130 -0
- package/src/frames/official/hari-raya-haji.json +122 -0
- package/src/frames/official/hari-raya-ketupat.json +81 -0
- package/src/frames/official/hari-raya-open-house.json +114 -0
- package/src/frames/official/hari-raya-pelita.json +77 -0
- package/src/frames/official/harvest-basket.json +87 -0
- package/src/frames/official/harvest-corn.json +115 -0
- package/src/frames/official/harvest-hay.json +89 -0
- package/src/frames/official/harvest-market.json +109 -0
- package/src/frames/official/hear-it-spoken.json +86 -0
- package/src/frames/official/hijri-new-year-stamp.json +77 -0
- package/src/frames/official/hijri-new-year.json +122 -0
- package/src/frames/official/historic-marker.json +176 -0
- package/src/frames/official/home-valuation.json +87 -0
- package/src/frames/official/homework-help.json +79 -0
- package/src/frames/official/hostel-check-in.json +113 -0
- package/src/frames/official/hostel-house-rules.json +136 -0
- package/src/frames/official/hostel-local-tips.json +86 -0
- package/src/frames/official/hot-shave.json +121 -0
- package/src/frames/official/house-rules.json +121 -0
- package/src/frames/official/how-it-works.json +98 -0
- package/src/frames/official/how-to-apply.json +93 -0
- package/src/frames/official/impact-report.json +90 -0
- package/src/frames/official/independence-argentina.json +105 -0
- package/src/frames/official/independence-bangladesh.json +64 -0
- package/src/frames/official/independence-colombia.json +108 -0
- package/src/frames/official/independence-ghana.json +105 -0
- package/src/frames/official/independence-indonesia.json +92 -0
- package/src/frames/official/independence-nigeria.json +100 -0
- package/src/frames/official/independence-pakistan.json +95 -0
- package/src/frames/official/independence-peru.json +100 -0
- package/src/frames/official/independence-poland.json +92 -0
- package/src/frames/official/independence-ukraine.json +92 -0
- package/src/frames/official/intake-forms.json +114 -0
- package/src/frames/official/inti-raymi-sun.json +183 -0
- package/src/frames/official/jamhuri-day.json +116 -0
- package/src/frames/official/janmashtami-feather.json +77 -0
- package/src/frames/official/janmashtami-flute.json +81 -0
- package/src/frames/official/join-a-league.json +94 -0
- package/src/frames/official/join-the-cleanup.json +110 -0
- package/src/frames/official/join-the-waitlist.json +102 -0
- package/src/frames/official/join-the-webinar.json +108 -0
- package/src/frames/official/juice-bar.json +70 -0
- package/src/frames/official/juneteenth-seal.json +187 -0
- package/src/frames/official/juneteenth-star.json +81 -0
- package/src/frames/official/kids-haircuts.json +75 -0
- package/src/frames/official/kids-menu.json +107 -0
- package/src/frames/official/kindness-day.json +109 -0
- package/src/frames/official/kings-day-crown.json +88 -0
- package/src/frames/official/kwanzaa-bands.json +100 -0
- package/src/frames/official/kwanzaa-harvest.json +77 -0
- package/src/frames/official/kwanzaa-kinara.json +81 -0
- package/src/frames/official/lantern-festival-riddles.json +77 -0
- package/src/frames/official/lantern-festival-tangyuan.json +122 -0
- package/src/frames/official/large-print.json +80 -0
- package/src/frames/official/lash-bar.json +86 -0
- package/src/frames/official/last-chance.json +94 -0
- package/src/frames/official/late-night-menu.json +77 -0
- package/src/frames/official/learn-the-signs.json +107 -0
- package/src/frames/official/library-card.json +90 -0
- package/src/frames/official/library-catalog.json +120 -0
- package/src/frames/official/library-ebooks.json +107 -0
- package/src/frames/official/library-hours.json +107 -0
- package/src/frames/official/live-scores.json +101 -0
- package/src/frames/official/lohri-bonfire.json +81 -0
- package/src/frames/official/lohri-dhol.json +114 -0
- package/src/frames/official/lost-and-found.json +85 -0
- package/src/frames/official/lost-pet-tag.json +84 -0
- package/src/frames/official/loy-krathong-float.json +88 -0
- package/src/frames/official/loy-krathong-moon.json +96 -0
- package/src/frames/official/loy-krathong-program.json +128 -0
- package/src/frames/official/make-a-claim.json +74 -0
- package/src/frames/official/makeup-artist.json +94 -0
- package/src/frames/official/mardi-gras-seal.json +183 -0
- package/src/frames/official/marina-welcome.json +172 -0
- package/src/frames/official/maslenitsa-pancakes.json +81 -0
- package/src/frames/official/maslenitsa-sun.json +183 -0
- package/src/frames/official/math-practice.json +136 -0
- package/src/frames/official/meal-plan.json +121 -0
- package/src/frames/official/meet-the-maker.json +91 -0
- package/src/frames/official/meet-the-team.json +82 -0
- package/src/frames/official/membership-card.json +108 -0
- package/src/frames/official/mid-autumn-gift.json +105 -0
- package/src/frames/official/mid-autumn-lantern-walk.json +96 -0
- package/src/frames/official/mid-autumn-mooncake.json +81 -0
- package/src/frames/official/mid-autumn-rabbit.json +77 -0
- package/src/frames/official/mid-autumn-seal.json +178 -0
- package/src/frames/official/monsoon-boots.json +88 -0
- package/src/frames/official/monsoon-chai.json +82 -0
- package/src/frames/official/monsoon-cloud.json +114 -0
- package/src/frames/official/monsoon-paper-boat.json +71 -0
- package/src/frames/official/monsoon-umbrella.json +81 -0
- package/src/frames/official/mortgage-calculator.json +94 -0
- package/src/frames/official/moving-checklist.json +108 -0
- package/src/frames/official/muertos-marigold.json +87 -0
- package/src/frames/official/muertos-ofrenda.json +129 -0
- package/src/frames/official/muertos-pan.json +78 -0
- package/src/frames/official/muertos-papel-picado.json +120 -0
- package/src/frames/official/muertos-seal.json +185 -0
- package/src/frames/official/museum-artist-note.json +124 -0
- package/src/frames/official/museum-exhibit-label.json +106 -0
- package/src/frames/official/museum-gallery-map.json +99 -0
- package/src/frames/official/museum-ticket.json +86 -0
- package/src/frames/official/music-lessons.json +64 -0
- package/src/frames/official/nail-studio.json +70 -0
- package/src/frames/official/national-day-belgium.json +100 -0
- package/src/frames/official/national-day-singapore.json +120 -0
- package/src/frames/official/navratri-dandiya.json +88 -0
- package/src/frames/official/navratri-garba-pass.json +90 -0
- package/src/frames/official/navratri-lamp.json +72 -0
- package/src/frames/official/neighborhood-guide.json +98 -0
- package/src/frames/official/nowruz-goldfish.json +71 -0
- package/src/frames/official/nowruz-party.json +90 -0
- package/src/frames/official/nowruz-sabzeh.json +81 -0
- package/src/frames/official/nowruz-seal.json +187 -0
- package/src/frames/official/nutrition-facts.json +98 -0
- package/src/frames/official/obon-lantern.json +81 -0
- package/src/frames/official/obon-sign.json +109 -0
- package/src/frames/official/ocean-day-waves.json +114 -0
- package/src/frames/official/onam-boat-race.json +83 -0
- package/src/frames/official/onam-kasavu.json +122 -0
- package/src/frames/official/onam-pookalam.json +175 -0
- package/src/frames/official/onam-sadya.json +114 -0
- package/src/frames/official/online-class.json +82 -0
- package/src/frames/official/open-an-account.json +88 -0
- package/src/frames/official/open-house-sign-in.json +104 -0
- package/src/frames/official/orthodox-christmas-candle.json +71 -0
- package/src/frames/official/orthodox-christmas-star.json +76 -0
- package/src/frames/official/orthodox-easter-arch.json +77 -0
- package/src/frames/official/orthodox-easter-pysanka.json +87 -0
- package/src/frames/official/orthodox-easter-seal.json +185 -0
- package/src/frames/official/pancake-day.json +114 -0
- package/src/frames/official/parcel-room.json +98 -0
- package/src/frames/official/parent-meeting.json +108 -0
- package/src/frames/official/park-bench-walks.json +121 -0
- package/src/frames/official/park-dog-rules.json +88 -0
- package/src/frames/official/park-map.json +92 -0
- package/src/frames/official/park-playground.json +64 -0
- package/src/frames/official/park-report.json +118 -0
- package/src/frames/official/parking-find-car.json +89 -0
- package/src/frames/official/parking-permit.json +74 -0
- package/src/frames/official/pay-at-the-pump.json +108 -0
- package/src/frames/official/pay-for-parking.json +89 -0
- package/src/frames/official/pay-it-forward.json +102 -0
- package/src/frames/official/pay-your-rent.json +105 -0
- package/src/frames/official/peace-day-dove.json +66 -0
- package/src/frames/official/permission-form.json +120 -0
- package/src/frames/official/personal-trainer.json +76 -0
- package/src/frames/official/physio-exercises.json +86 -0
- package/src/frames/official/pick-your-own.json +158 -0
- package/src/frames/official/pink-ribbon-seal.json +180 -0
- package/src/frames/official/pink-ribbon.json +82 -0
- package/src/frames/official/plant-a-tree.json +88 -0
- package/src/frames/official/plant-based-menu.json +103 -0
- package/src/frames/official/plant-care.json +84 -0
- package/src/frames/official/podcast.json +107 -0
- package/src/frames/official/pohela-boishakh-mela.json +116 -0
- package/src/frames/official/pohela-boishakh.json +120 -0
- package/src/frames/official/polling-place.json +109 -0
- package/src/frames/official/pongal-offers.json +120 -0
- package/src/frames/official/pongal-pot.json +81 -0
- package/src/frames/official/pongal-sun.json +183 -0
- package/src/frames/official/pool-timetable.json +113 -0
- package/src/frames/official/portfolio-card.json +110 -0
- package/src/frames/official/posadas-candle.json +71 -0
- package/src/frames/official/posadas-pinata.json +114 -0
- package/src/frames/official/pre-order-bread.json +110 -0
- package/src/frames/official/press-kit.json +136 -0
- package/src/frames/official/price-list.json +111 -0
- package/src/frames/official/pride-flag.json +124 -0
- package/src/frames/official/pride-heart.json +83 -0
- package/src/frames/official/pride-rainbow.json +81 -0
- package/src/frames/official/privacy-notice.json +115 -0
- package/src/frames/official/property-floor-plan.json +1 -1
- package/src/frames/official/property-for-sale.json +1 -1
- package/src/frames/official/property-house-light.json +1 -1
- package/src/frames/official/property-house.json +1 -1
- package/src/frames/official/property-key.json +1 -1
- package/src/frames/official/property-open-house.json +1 -1
- package/src/frames/official/property-rent.json +1 -1
- package/src/frames/official/property-virtual-tour.json +1 -1
- package/src/frames/official/purim-mask.json +109 -0
- package/src/frames/official/purim-pastry.json +71 -0
- package/src/frames/official/puthandu-sun.json +101 -0
- package/src/frames/official/questions-cloud.json +65 -0
- package/src/frames/official/race-entry.json +90 -0
- package/src/frames/official/race-photos.json +93 -0
- package/src/frames/official/rakhi-envelope.json +75 -0
- package/src/frames/official/rakhi-gift-tag.json +59 -0
- package/src/frames/official/rakhi-thread.json +114 -0
- package/src/frames/official/ramadan-dates.json +81 -0
- package/src/frames/official/ramadan-suhoor.json +94 -0
- package/src/frames/official/rate-your-ride.json +103 -0
- package/src/frames/official/read-a-sample.json +108 -0
- package/src/frames/official/read-the-ebook.json +116 -0
- package/src/frames/official/read-the-faq.json +88 -0
- package/src/frames/official/read-the-reviews.json +110 -0
- package/src/frames/official/read-the-story.json +90 -0
- package/src/frames/official/read-the-transcript.json +142 -0
- package/src/frames/official/reading-challenge.json +97 -0
- package/src/frames/official/rebook-visit.json +86 -0
- package/src/frames/official/recipe-card.json +120 -0
- package/src/frames/official/red-ribbon.json +66 -0
- package/src/frames/official/refill-reminder.json +104 -0
- package/src/frames/official/register-interest.json +82 -0
- package/src/frames/official/register-to-vote.json +80 -0
- package/src/frames/official/renovation-quote.json +80 -0
- package/src/frames/official/rent-a-bike.json +95 -0
- package/src/frames/official/rent-this-item.json +95 -0
- package/src/frames/official/rental-car-guide.json +115 -0
- package/src/frames/official/report-a-problem.json +114 -0
- package/src/frames/official/report-a-repair.json +79 -0
- package/src/frames/official/report-a-street-issue.json +113 -0
- package/src/frames/official/republic-day-india-bands.json +120 -0
- package/src/frames/official/republic-day-india.json +182 -0
- package/src/frames/official/request-maintenance.json +74 -0
- package/src/frames/official/resident-portal.json +98 -0
- package/src/frames/official/restaurant-gift-card.json +94 -0
- package/src/frames/official/restock-alert.json +98 -0
- package/src/frames/official/restroom-feedback.json +86 -0
- package/src/frames/official/return-your-cup.json +130 -0
- package/src/frames/official/return-your-rental.json +113 -0
- package/src/frames/official/reyes-crown.json +78 -0
- package/src/frames/official/reyes-rosca.json +89 -0
- package/src/frames/official/ring-size.json +107 -0
- package/src/frames/official/roadside-help.json +92 -0
- package/src/frames/official/rosh-hashanah-apple.json +81 -0
- package/src/frames/official/rosh-hashanah-honey.json +71 -0
- package/src/frames/official/rosh-hashanah-shofar.json +128 -0
- package/src/frames/official/run-club.json +79 -0
- package/src/frames/official/safety-information.json +92 -0
- package/src/frames/official/salon-prices.json +92 -0
- package/src/frames/official/sankranti-kite.json +114 -0
- package/src/frames/official/sankranti-sky.json +98 -0
- package/src/frames/official/sankranti-sticker.json +90 -0
- package/src/frames/official/save-for-later.json +79 -0
- package/src/frames/official/scan-for-the-answer.json +86 -0
- package/src/frames/official/scan-for-the-checklist.json +108 -0
- package/src/frames/official/scan-for-the-latest.json +74 -0
- package/src/frames/official/scan-for-translations.json +108 -0
- package/src/frames/official/scan-here-arrow.json +76 -0
- package/src/frames/official/scan-here-post.json +89 -0
- package/src/frames/official/scan-me-banner.json +147 -0
- package/src/frames/official/scan-me-cloud.json +73 -0
- package/src/frames/official/scan-me-folded.json +74 -0
- package/src/frames/official/scan-me-stack.json +93 -0
- package/src/frames/official/scan-to-unlock.json +107 -0
- package/src/frames/official/scent-finder.json +94 -0
- package/src/frames/official/scholarships.json +108 -0
- package/src/frames/official/school-backpack.json +81 -0
- package/src/frames/official/school-bus-routes.json +83 -0
- package/src/frames/official/school-lunch-menu.json +81 -0
- package/src/frames/official/school-supply-list.json +80 -0
- package/src/frames/official/school-uniform.json +109 -0
- package/src/frames/official/school-welcome-apple.json +71 -0
- package/src/frames/official/science-fair.json +89 -0
- package/src/frames/official/season-schedule.json +66 -0
- package/src/frames/official/see-more-stack.json +91 -0
- package/src/frames/official/see-our-pitch.json +85 -0
- package/src/frames/official/see-the-full-list.json +107 -0
- package/src/frames/official/see-the-map.json +79 -0
- package/src/frames/official/send-flowers.json +93 -0
- package/src/frames/official/seollal-knot.json +122 -0
- package/src/frames/official/service-times.json +115 -0
- package/src/frames/official/shade-finder.json +113 -0
- package/src/frames/official/sham-el-nessim.json +81 -0
- package/src/frames/official/shoe-size-check.json +95 -0
- package/src/frames/official/shogatsu-kadomatsu.json +81 -0
- package/src/frames/official/sign-rider.json +1 -1
- package/src/frames/official/sign-the-agreement.json +120 -0
- package/src/frames/official/sign-the-petition.json +120 -0
- package/src/frames/official/site-hoarding.json +158 -0
- package/src/frames/official/site-induction.json +120 -0
- package/src/frames/official/size-guide.json +80 -0
- package/src/frames/official/skate-park-rules.json +109 -0
- package/src/frames/official/skincare-routine.json +85 -0
- package/src/frames/official/sofa-fabric.json +84 -0
- package/src/frames/official/songkran-bands.json +123 -0
- package/src/frames/official/songkran-bowl.json +81 -0
- package/src/frames/official/songkran-drop.json +90 -0
- package/src/frames/official/songkran-waves.json +96 -0
- package/src/frames/official/spa-gift.json +90 -0
- package/src/frames/official/spa-menu.json +124 -0
- package/src/frames/official/split-the-bill.json +77 -0
- package/src/frames/official/sponsor-a-pet.json +102 -0
- package/src/frames/official/sponsor-my-run.json +136 -0
- package/src/frames/official/sports-camp.json +142 -0
- package/src/frames/official/spring-cleaning.json +107 -0
- package/src/frames/official/spring-showers.json +71 -0
- package/src/frames/official/spring-watering-can.json +114 -0
- package/src/frames/official/staff-handbook.json +121 -0
- package/src/frames/official/staff-rota.json +112 -0
- package/src/frames/official/start-a-return.json +92 -0
- package/src/frames/official/start-charging.json +104 -0
- package/src/frames/official/start-here-arrow.json +79 -0
- package/src/frames/official/start-saving.json +74 -0
- package/src/frames/official/storage-units.json +79 -0
- package/src/frames/official/student-portal.json +80 -0
- package/src/frames/official/style-gallery.json +111 -0
- package/src/frames/official/summer-camp.json +90 -0
- package/src/frames/official/summer-pool.json +95 -0
- package/src/frames/official/summer-reading.json +81 -0
- package/src/frames/official/summer-sunglasses.json +114 -0
- package/src/frames/official/summer-watermelon.json +89 -0
- package/src/frames/official/sushi-menu.json +115 -0
- package/src/frames/official/swim-lessons.json +70 -0
- package/src/frames/official/tabaski.json +114 -0
- package/src/frames/official/table-tennis.json +116 -0
- package/src/frames/official/take-a-closer-look.json +94 -0
- package/src/frames/official/takeout-order.json +98 -0
- package/src/frames/official/talk-to-someone.json +115 -0
- package/src/frames/official/talk-to-the-agent.json +115 -0
- package/src/frames/official/tanabata-stars.json +170 -0
- package/src/frames/official/tanabata-wishes.json +114 -0
- package/src/frames/official/tea-menu.json +70 -0
- package/src/frames/official/tea-time.json +124 -0
- package/src/frames/official/teachers-day-apple.json +81 -0
- package/src/frames/official/teachers-day-note.json +109 -0
- package/src/frames/official/team-jersey.json +77 -0
- package/src/frames/official/team-kit.json +85 -0
- package/src/frames/official/tee-time.json +85 -0
- package/src/frames/official/tennis-court.json +94 -0
- package/src/frames/official/test-drive.json +88 -0
- package/src/frames/official/test-results.json +85 -0
- package/src/frames/official/tet-apricot.json +114 -0
- package/src/frames/official/tet-banh-chung.json +81 -0
- package/src/frames/official/tire-change.json +74 -0
- package/src/frames/official/town-hall.json +158 -0
- package/src/frames/official/toy-finder.json +81 -0
- package/src/frames/official/trace-your-coffee.json +87 -0
- package/src/frames/official/trade-it-in.json +97 -0
- package/src/frames/official/transit-bike-share.json +94 -0
- package/src/frames/official/transit-bus-arrivals.json +113 -0
- package/src/frames/official/transit-fare.json +97 -0
- package/src/frames/official/transit-ferry.json +88 -0
- package/src/frames/official/transit-next-trains.json +119 -0
- package/src/frames/official/transit-report.json +99 -0
- package/src/frames/official/transit-train-timetable.json +98 -0
- package/src/frames/official/try-the-demo.json +106 -0
- package/src/frames/official/ugadi-leaves.json +66 -0
- package/src/frames/official/unlock-this-car.json +82 -0
- package/src/frames/official/upload-receipts.json +108 -0
- package/src/frames/official/vaisakhi-bands.json +120 -0
- package/src/frames/official/vaisakhi-dhol.json +81 -0
- package/src/frames/official/vaisakhi-wheat.json +73 -0
- package/src/frames/official/validate-parking.json +91 -0
- package/src/frames/official/vehicle-history.json +106 -0
- package/src/frames/official/vesak-candle.json +122 -0
- package/src/frames/official/vesak-lantern.json +114 -0
- package/src/frames/official/vesak-lotus.json +71 -0
- package/src/frames/official/vesak-seal.json +179 -0
- package/src/frames/official/virtual-try-on.json +93 -0
- package/src/frames/official/visiting-hours.json +90 -0
- package/src/frames/official/visitor-info.json +78 -0
- package/src/frames/official/visitor-map.json +92 -0
- package/src/frames/official/visitor-sign-in.json +98 -0
- package/src/frames/official/visitor-town-map.json +108 -0
- package/src/frames/official/visitor-wildlife.json +70 -0
- package/src/frames/official/volunteer.json +74 -0
- package/src/frames/official/vote-for-us.json +103 -0
- package/src/frames/official/walk-in-queue.json +102 -0
- package/src/frames/official/wash-club.json +81 -0
- package/src/frames/official/watch-repair.json +115 -0
- package/src/frames/official/watch-the-experiment.json +93 -0
- package/src/frames/official/water-day-drop.json +81 -0
- package/src/frames/official/water-refill.json +95 -0
- package/src/frames/official/weekly-deals.json +107 -0
- package/src/frames/official/wellness-retreat.json +85 -0
- package/src/frames/official/whats-inside.json +91 -0
- package/src/frames/official/wholesale.json +85 -0
- package/src/frames/official/wifi-cafe-cup.json +81 -0
- package/src/frames/official/wifi-cowork.json +63 -0
- package/src/frames/official/wifi-hostel-board.json +80 -0
- package/src/frames/official/wifi-library.json +96 -0
- package/src/frames/official/wifi-reception.json +118 -0
- package/src/frames/official/wifi-rental.json +91 -0
- package/src/frames/official/wifi-venue.json +80 -0
- package/src/frames/official/wifi-waiting-room.json +89 -0
- package/src/frames/official/window-quote.json +121 -0
- package/src/frames/official/wine-pairings.json +142 -0
- package/src/frames/official/wine-staff-pick.json +100 -0
- package/src/frames/official/winery-tasting.json +94 -0
- package/src/frames/official/winter-lift-pass.json +90 -0
- package/src/frames/official/winter-sale.json +120 -0
- package/src/frames/official/winter-skating.json +71 -0
- package/src/frames/official/winter-snowman.json +81 -0
- package/src/frames/official/womens-day-mimosa.json +81 -0
- package/src/frames/official/womens-day-seal.json +179 -0
- package/src/frames/official/yalda-poem.json +122 -0
- package/src/frames/official/yalda-pomegranate.json +81 -0
- package/src/frames/official/yalda-watermelon.json +72 -0
- package/src/frames/official/yard-sign-coming-soon.json +115 -0
- package/src/frames/official/yard-sign-for-sale.json +150 -0
- package/src/frames/official/yard-sign-sold.json +162 -0
- package/src/frames/official/yard-sign-viewing.json +121 -0
- package/src/frames/official/yoga-day-lotus.json +81 -0
- package/src/frames/official/your-prescription.json +107 -0
- package/src/frames/official/youth-club.json +104 -0
- package/src/frames/official/zoo-animal-facts.json +109 -0
- package/src/frames/official-types.ts +6 -1
- package/src/frames/official.ts +4 -4
- package/src/index.tsx +6 -361
- package/src/jsx/index.ts +3 -0
- package/src/jsx/jsx-dev-runtime.ts +14 -0
- package/src/jsx/jsx-runtime.ts +34 -0
- package/src/jsx/runtime.ts +209 -0
- package/src/logo.tsx +5 -3
- package/src/node.ts +3 -3
- package/src/plain.tsx +194 -0
- package/src/preact.ts +80 -0
- package/src/qr-code-canvas.tsx +1 -1
- package/src/qr-code-props.ts +115 -0
- package/src/qr-code-svg.tsx +17 -0
- package/src/qr-code.tsx +34 -114
- package/src/react-elements.ts +13 -0
- package/src/render/attributes.ts +404 -0
- package/src/render/dom.ts +90 -0
- package/src/render/hyperscript.ts +66 -0
- package/src/render/string.ts +70 -0
- package/src/scan-score.ts +15 -8
- package/src/solid.ts +75 -0
- package/src/svg.ts +27 -0
- package/src/template/arrow.tsx +1 -0
- package/src/template/default.tsx +1 -0
- package/src/template/dot-ring-layout.ts +230 -0
- package/src/template/dot-ring.tsx +165 -0
- package/src/template/halloween.tsx +1 -0
- package/src/template/index.ts +1 -0
- package/src/template/square-border.tsx +1 -0
- package/src/template/standard-box.tsx +1 -0
- package/src/template/striked-box.tsx +1 -0
- package/src/template-placement.ts +149 -0
- package/src/templates.tsx +16 -1
- package/src/utils/print-shared.ts +1 -1
- package/src/utils.tsx +24 -23
- package/src/vanilla-api.ts +146 -0
- package/src/vanilla-browser.ts +11 -0
- package/src/vanilla.ts +10 -0
- package/src/vue.ts +220 -0
- package/types/frame-spec.ts +214 -10
- package/types/index.ts +4 -2
- package/types/public.ts +4 -0
- package/types/qr.ts +20 -6
- package/types/react.ts +8 -0
- package/types/template.ts +10 -3
- package/dist/src/frame-styles.d.ts +0 -50
- package/dist/src/frame-styles.d.ts.map +0 -1
- package/src/frame-styles.ts +0 -1095
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/** @jsxImportSource ../jsx */
|
|
2
|
+
// A round code: the code in a disc of decorative dots, inside a dark ring
|
|
3
|
+
// with a line of text set along it. Which dots a code gets comes from a hash
|
|
4
|
+
// of its content, so every link has a ring of its own and the same link
|
|
5
|
+
// always gets the same one (dot-ring-layout.ts).
|
|
6
|
+
import type { TemplateDefinition } from "../../types";
|
|
7
|
+
import { FRAME_FONT_FAMILY } from "../frame";
|
|
8
|
+
import { getSolidColor } from "../utils/color";
|
|
9
|
+
import { roundTo } from "../utils/fmt";
|
|
10
|
+
import {
|
|
11
|
+
BACKGROUND_RADIUS,
|
|
12
|
+
CENTER,
|
|
13
|
+
CODE_OFFSET,
|
|
14
|
+
DEFAULT_FONT_SIZE,
|
|
15
|
+
DEFAULT_LETTER_SPACING,
|
|
16
|
+
DEFAULT_TEXT,
|
|
17
|
+
dotRingDots,
|
|
18
|
+
dotRingLetters,
|
|
19
|
+
dotsClearOfCode,
|
|
20
|
+
RING_INNER_RADIUS,
|
|
21
|
+
RING_PATH,
|
|
22
|
+
VIEW,
|
|
23
|
+
} from "./dot-ring-layout";
|
|
24
|
+
|
|
25
|
+
/** Custom props of the dot ring template (`customProps`). */
|
|
26
|
+
export interface DotRingProps {
|
|
27
|
+
/**
|
|
28
|
+
* Text set along the ring. Defaults to "Scan the QR code" four times
|
|
29
|
+
* round; `""` leaves the ring empty. Letters that don't fit around the
|
|
30
|
+
* ring are left out.
|
|
31
|
+
*/
|
|
32
|
+
customText?: string;
|
|
33
|
+
/** "top" (default): centered over the top, reading clockwise. "bottom": centered along the bottom, reading left to right. */
|
|
34
|
+
textPosition?: "top" | "bottom";
|
|
35
|
+
/** Turns the text around the center, in degrees clockwise (default 0). */
|
|
36
|
+
textRotation?: number;
|
|
37
|
+
/** Text color (default white). */
|
|
38
|
+
textColor?: string;
|
|
39
|
+
/** CSS font family of the text (default: the system sans-serif stack frames use). */
|
|
40
|
+
fontFamily?: string;
|
|
41
|
+
/** Font weight (default 900). */
|
|
42
|
+
fontWeight?: number | string;
|
|
43
|
+
/** Font size in the template's 593-unit drawing, where the code is 300 across (default 32). */
|
|
44
|
+
fontSize?: number;
|
|
45
|
+
/** Extra space between letters, in the same units (default 3.5). */
|
|
46
|
+
fontLetterSpacing?: number;
|
|
47
|
+
/** Color of the ring (default: the code's `fgColor`). */
|
|
48
|
+
outerCircleColor?: string;
|
|
49
|
+
/** Width of a stroke along both edges of the ring (default 0: none). */
|
|
50
|
+
strokeWidth?: number;
|
|
51
|
+
/** Color of that stroke (default black). */
|
|
52
|
+
strokeColor?: string;
|
|
53
|
+
/** Stroke width along the ring's outer edge only (default `strokeWidth`). */
|
|
54
|
+
outerStrokeWidth?: number;
|
|
55
|
+
/** Stroke color along the outer edge (default `strokeColor`). */
|
|
56
|
+
outerStrokeColor?: string;
|
|
57
|
+
/** Stroke width along the ring's inner edge only (default `strokeWidth`). */
|
|
58
|
+
innerStrokeWidth?: number;
|
|
59
|
+
/** Stroke color along the inner edge (default `strokeColor`). */
|
|
60
|
+
innerStrokeColor?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const finite = (value: unknown, fallback: number) =>
|
|
64
|
+
typeof value === "number" && Number.isFinite(value) ? value : fallback;
|
|
65
|
+
|
|
66
|
+
export const DotRing: TemplateDefinition<DotRingProps> = {
|
|
67
|
+
id: "DotRing",
|
|
68
|
+
name: "Dot Ring",
|
|
69
|
+
description:
|
|
70
|
+
"A round code in a ring of dots of its own for every link, with text along the ring",
|
|
71
|
+
wrapper: (children, props, templateConfig) => {
|
|
72
|
+
const fg = getSolidColor(props?.fgColor, "#000000");
|
|
73
|
+
const bg = getSolidColor(props?.bgColor, "#ffffff");
|
|
74
|
+
const moduleSize = templateConfig?.pixelSize ?? 9;
|
|
75
|
+
const dotRadius = roundTo(moduleSize / 2);
|
|
76
|
+
const dots = dotsClearOfCode(
|
|
77
|
+
dotRingDots(templateConfig?.url ?? ""),
|
|
78
|
+
moduleSize
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
const requestedSize = finite(props?.fontSize, DEFAULT_FONT_SIZE);
|
|
82
|
+
const fontSize = requestedSize > 0 ? requestedSize : DEFAULT_FONT_SIZE;
|
|
83
|
+
const text =
|
|
84
|
+
typeof props?.customText === "string" ? props.customText : DEFAULT_TEXT;
|
|
85
|
+
const letters = dotRingLetters(text, {
|
|
86
|
+
fontSize,
|
|
87
|
+
letterSpacing: finite(props?.fontLetterSpacing, DEFAULT_LETTER_SPACING),
|
|
88
|
+
position: props?.textPosition === "bottom" ? "bottom" : "top",
|
|
89
|
+
rotation: finite(props?.textRotation, 0),
|
|
90
|
+
});
|
|
91
|
+
const textColor = props?.textColor || "#ffffff";
|
|
92
|
+
const fontFamily = props?.fontFamily || FRAME_FONT_FAMILY;
|
|
93
|
+
const fontWeight = props?.fontWeight ?? 900;
|
|
94
|
+
|
|
95
|
+
const strokeWidth = finite(props?.strokeWidth, 0);
|
|
96
|
+
const strokeColor = props?.strokeColor || "#000000";
|
|
97
|
+
const edges = [
|
|
98
|
+
{
|
|
99
|
+
radius: CENTER,
|
|
100
|
+
width: finite(props?.outerStrokeWidth, strokeWidth),
|
|
101
|
+
color: props?.outerStrokeColor || strokeColor,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
radius: RING_INNER_RADIUS,
|
|
105
|
+
width: finite(props?.innerStrokeWidth, strokeWidth),
|
|
106
|
+
color: props?.innerStrokeColor || strokeColor,
|
|
107
|
+
},
|
|
108
|
+
].filter((edge) => edge.width > 0);
|
|
109
|
+
|
|
110
|
+
return (
|
|
111
|
+
<svg
|
|
112
|
+
height={VIEW}
|
|
113
|
+
id="svgQrWrapper"
|
|
114
|
+
style={{
|
|
115
|
+
width: "100%",
|
|
116
|
+
height: "100%",
|
|
117
|
+
}}
|
|
118
|
+
viewBox={`0 0 ${VIEW} ${VIEW}`}
|
|
119
|
+
width={VIEW}
|
|
120
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
121
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
122
|
+
>
|
|
123
|
+
<circle cx={CENTER} cy={CENTER} fill={bg} r={BACKGROUND_RADIUS} />
|
|
124
|
+
<g fill={fg}>
|
|
125
|
+
{dots.map((dot, index) => (
|
|
126
|
+
<circle cx={dot.cx} cy={dot.cy} key={index} r={dotRadius} />
|
|
127
|
+
))}
|
|
128
|
+
</g>
|
|
129
|
+
<path d={RING_PATH} fill={props?.outerCircleColor || fg} />
|
|
130
|
+
{edges.map((edge, index) => (
|
|
131
|
+
<circle
|
|
132
|
+
cx={CENTER}
|
|
133
|
+
cy={CENTER}
|
|
134
|
+
fill="none"
|
|
135
|
+
key={index}
|
|
136
|
+
r={edge.radius}
|
|
137
|
+
stroke={edge.color}
|
|
138
|
+
strokeWidth={edge.width}
|
|
139
|
+
/>
|
|
140
|
+
))}
|
|
141
|
+
{/* One letter per <text>: read one by one they'd make no sense to a
|
|
142
|
+
screen reader, so they're hidden from it */}
|
|
143
|
+
{/* biome-ignore lint/a11y/noAriaHiddenOnFocusable: an SVG <g> can't take focus */}
|
|
144
|
+
<g aria-hidden="true">
|
|
145
|
+
{letters.map((letter, index) => (
|
|
146
|
+
<text
|
|
147
|
+
fill={textColor}
|
|
148
|
+
fontFamily={fontFamily}
|
|
149
|
+
fontSize={fontSize}
|
|
150
|
+
fontWeight={fontWeight}
|
|
151
|
+
key={index}
|
|
152
|
+
textAnchor="middle"
|
|
153
|
+
transform={`rotate(${letter.rotate} ${letter.x} ${letter.y})`}
|
|
154
|
+
x={letter.x}
|
|
155
|
+
y={letter.y}
|
|
156
|
+
>
|
|
157
|
+
{letter.char}
|
|
158
|
+
</text>
|
|
159
|
+
))}
|
|
160
|
+
</g>
|
|
161
|
+
<g transform={`translate(${CODE_OFFSET} ${CODE_OFFSET})`}>{children}</g>
|
|
162
|
+
</svg>
|
|
163
|
+
);
|
|
164
|
+
},
|
|
165
|
+
};
|
package/src/template/index.ts
CHANGED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// Where a template draws the code in its artwork. A template wraps the code
|
|
2
|
+
// (a 300 × 300 drawing) in artwork of its own and usually draws it smaller
|
|
3
|
+
// than the whole, so the scan score measures the code's share of the
|
|
4
|
+
// artwork to test the code at its real size.
|
|
5
|
+
import type { QRProps } from "../types";
|
|
6
|
+
import { getTemplate } from "./templates";
|
|
7
|
+
import {
|
|
8
|
+
applyMatrix,
|
|
9
|
+
IDENTITY,
|
|
10
|
+
type Matrix,
|
|
11
|
+
multiply,
|
|
12
|
+
parseNumbers,
|
|
13
|
+
parseTransform,
|
|
14
|
+
} from "./utils/svg-geometry";
|
|
15
|
+
|
|
16
|
+
/** The code's own drawing size inside a template (see utils.tsx). */
|
|
17
|
+
const TEMPLATE_CODE_SIZE = 300;
|
|
18
|
+
|
|
19
|
+
interface ElementLike {
|
|
20
|
+
type?: unknown;
|
|
21
|
+
props?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const toNumber = (value: unknown): number | undefined => {
|
|
25
|
+
const number =
|
|
26
|
+
typeof value === "number" ? value : Number.parseFloat(String(value));
|
|
27
|
+
return Number.isFinite(number) ? number : undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** A nested `<svg>`'s mapping from its viewBox into its parent's units. */
|
|
31
|
+
function viewportMatrix(props: Record<string, unknown>): Matrix {
|
|
32
|
+
const x = toNumber(props.x) ?? 0;
|
|
33
|
+
const y = toNumber(props.y) ?? 0;
|
|
34
|
+
const viewBox = parseNumbers(
|
|
35
|
+
typeof props.viewBox === "string" ? props.viewBox : undefined
|
|
36
|
+
);
|
|
37
|
+
const width = toNumber(props.width);
|
|
38
|
+
const height = toNumber(props.height);
|
|
39
|
+
if (viewBox.length !== 4 || !(viewBox[2] && viewBox[3] && width && height)) {
|
|
40
|
+
return [1, 0, 0, 1, x, y];
|
|
41
|
+
}
|
|
42
|
+
const [vbX, vbY, vbWidth, vbHeight] = viewBox as [
|
|
43
|
+
number,
|
|
44
|
+
number,
|
|
45
|
+
number,
|
|
46
|
+
number,
|
|
47
|
+
];
|
|
48
|
+
// preserveAspectRatio's default (xMidYMid meet)
|
|
49
|
+
const scale = Math.min(width / vbWidth, height / vbHeight);
|
|
50
|
+
return [
|
|
51
|
+
scale,
|
|
52
|
+
0,
|
|
53
|
+
0,
|
|
54
|
+
scale,
|
|
55
|
+
x + (width - vbWidth * scale) / 2 - vbX * scale,
|
|
56
|
+
y + (height - vbHeight * scale) / 2 - vbY * scale,
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** The transform from `target`'s parent into the root's units, or null. */
|
|
61
|
+
function locate(
|
|
62
|
+
node: unknown,
|
|
63
|
+
target: object,
|
|
64
|
+
matrix: Matrix,
|
|
65
|
+
isRoot: boolean
|
|
66
|
+
): Matrix | null {
|
|
67
|
+
if (node === target) {
|
|
68
|
+
return matrix;
|
|
69
|
+
}
|
|
70
|
+
if (Array.isArray(node)) {
|
|
71
|
+
for (const child of node) {
|
|
72
|
+
const found = locate(child, target, matrix, false);
|
|
73
|
+
if (found) {
|
|
74
|
+
return found;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
const element = node as ElementLike | null;
|
|
80
|
+
if (!element || typeof element !== "object" || !element.props) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
const { props } = element;
|
|
84
|
+
let inner = multiply(
|
|
85
|
+
matrix,
|
|
86
|
+
parseTransform(
|
|
87
|
+
typeof props.transform === "string" ? props.transform : undefined
|
|
88
|
+
)
|
|
89
|
+
);
|
|
90
|
+
if (element.type === "svg" && !isRoot) {
|
|
91
|
+
inner = multiply(inner, viewportMatrix(props));
|
|
92
|
+
}
|
|
93
|
+
return locate(props.children, target, inner, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The code's width as a share of the artwork `props` draws: below 1 when a
|
|
98
|
+
* template draws it smaller than its artwork, 1 without a template (or when
|
|
99
|
+
* the template's wrapper doesn't place the code it is given).
|
|
100
|
+
*/
|
|
101
|
+
export function getTemplateCodeShare(props: QRProps): number {
|
|
102
|
+
const template =
|
|
103
|
+
props.customTemplate ||
|
|
104
|
+
(props.templateId ? getTemplate(props.templateId) : undefined);
|
|
105
|
+
if (!template) {
|
|
106
|
+
return 1;
|
|
107
|
+
}
|
|
108
|
+
const marker = {
|
|
109
|
+
type: "svg",
|
|
110
|
+
props: {
|
|
111
|
+
height: TEMPLATE_CODE_SIZE,
|
|
112
|
+
viewBox: `0 0 ${TEMPLATE_CODE_SIZE} ${TEMPLATE_CODE_SIZE}`,
|
|
113
|
+
width: TEMPLATE_CODE_SIZE,
|
|
114
|
+
},
|
|
115
|
+
key: null,
|
|
116
|
+
};
|
|
117
|
+
let root: ElementLike | null;
|
|
118
|
+
try {
|
|
119
|
+
root = template.wrapper(
|
|
120
|
+
marker,
|
|
121
|
+
{
|
|
122
|
+
fgColor: typeof props.fgColor === "string" ? props.fgColor : undefined,
|
|
123
|
+
bgColor: typeof props.bgColor === "string" ? props.bgColor : undefined,
|
|
124
|
+
...(props.customProps ?? {}),
|
|
125
|
+
},
|
|
126
|
+
{ pixelSize: 10, url: props.value }
|
|
127
|
+
) as ElementLike | null;
|
|
128
|
+
} catch {
|
|
129
|
+
return 1;
|
|
130
|
+
}
|
|
131
|
+
const rootProps = root?.props;
|
|
132
|
+
if (!rootProps) {
|
|
133
|
+
return 1;
|
|
134
|
+
}
|
|
135
|
+
const viewBox = parseNumbers(
|
|
136
|
+
typeof rootProps.viewBox === "string" ? rootProps.viewBox : undefined
|
|
137
|
+
);
|
|
138
|
+
const artworkWidth =
|
|
139
|
+
viewBox.length === 4 ? viewBox[2] : toNumber(rootProps.width);
|
|
140
|
+
const matrix = locate(root, marker, IDENTITY, true);
|
|
141
|
+
if (!(matrix && artworkWidth)) {
|
|
142
|
+
return 1;
|
|
143
|
+
}
|
|
144
|
+
const [x0, y0] = applyMatrix(matrix, 0, 0);
|
|
145
|
+
const [x1, y1] = applyMatrix(matrix, TEMPLATE_CODE_SIZE, TEMPLATE_CODE_SIZE);
|
|
146
|
+
const width = Math.min(Math.abs(x1 - x0), Math.abs(y1 - y0));
|
|
147
|
+
const share = width / artworkWidth;
|
|
148
|
+
return share > 0 && share <= 1 ? share : 1;
|
|
149
|
+
}
|
package/src/templates.tsx
CHANGED
|
@@ -19,12 +19,27 @@ export const TEMPLATES: Record<string, TemplateDefinition<any>> = {
|
|
|
19
19
|
SquareBorder: templates.SquareBorder,
|
|
20
20
|
StrikedBox: templates.StrikedBox,
|
|
21
21
|
Halloween: templates.Halloween,
|
|
22
|
+
DotRing: templates.DotRing,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// Earlier ids that still draw their template, so designs saved with them keep
|
|
26
|
+
// working. getTemplateIds and getAllTemplates leave them out.
|
|
27
|
+
const TEMPLATE_ALIASES: Record<string, string> = {
|
|
28
|
+
FlamQR: "DotRing",
|
|
22
29
|
};
|
|
23
30
|
|
|
24
31
|
// Utility functions
|
|
25
32
|
export const getTemplate = (
|
|
26
33
|
templateId: string
|
|
27
|
-
): TemplateDefinition<any> | undefined =>
|
|
34
|
+
): TemplateDefinition<any> | undefined => {
|
|
35
|
+
if (Object.hasOwn(TEMPLATES, templateId)) {
|
|
36
|
+
return TEMPLATES[templateId];
|
|
37
|
+
}
|
|
38
|
+
const alias = Object.hasOwn(TEMPLATE_ALIASES, templateId)
|
|
39
|
+
? TEMPLATE_ALIASES[templateId]
|
|
40
|
+
: undefined;
|
|
41
|
+
return alias ? TEMPLATES[alias] : undefined;
|
|
42
|
+
};
|
|
28
43
|
|
|
29
44
|
export const getAllTemplates = (): TemplateDefinition<any>[] =>
|
|
30
45
|
Object.values(TEMPLATES);
|
|
@@ -2,8 +2,8 @@ import type { QRProps } from "../../types";
|
|
|
2
2
|
import { isGradient } from "../../types/color";
|
|
3
3
|
import { DEFAULT_BGCOLOR, DEFAULT_SIZE } from "../constants";
|
|
4
4
|
import { withQRSize } from "../download";
|
|
5
|
+
import { getQRAsSVGDataUri } from "../export";
|
|
5
6
|
import { getFrameLayout, isFrameActive } from "../frame";
|
|
6
|
-
import { getQRAsSVGDataUri } from "../index";
|
|
7
7
|
import { getSolidColor } from "./color";
|
|
8
8
|
import { flattenOver } from "./paint";
|
|
9
9
|
import { parseColor } from "./parse-color";
|
package/src/utils.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import React from "react";
|
|
1
|
+
/** @jsxImportSource ./jsx */
|
|
3
2
|
import type {
|
|
4
3
|
AngularGradient,
|
|
5
4
|
BodyPattern,
|
|
@@ -11,7 +10,7 @@ import type {
|
|
|
11
10
|
ImageSettings,
|
|
12
11
|
LinearGradient,
|
|
13
12
|
Modules,
|
|
14
|
-
|
|
13
|
+
QRSVGOptions,
|
|
15
14
|
RadialGradient,
|
|
16
15
|
TemplateConfig,
|
|
17
16
|
} from "../types";
|
|
@@ -41,6 +40,7 @@ import {
|
|
|
41
40
|
import { generateCornerDotPath } from "./corner-dot";
|
|
42
41
|
import { generateCornerSquarePath } from "./corner-eye";
|
|
43
42
|
import { isFrameActive, wrapWithFrame } from "./frame";
|
|
43
|
+
import { cloneElement, type QRNode } from "./jsx/runtime";
|
|
44
44
|
import { LOGO_PLATE_INSET, LOGO_ROUNDED_RADIUS, renderLogo } from "./logo";
|
|
45
45
|
import { capImageSettings } from "./logo-budget";
|
|
46
46
|
import { partMarker, type QRPart, type QRPartEye } from "./part-markers";
|
|
@@ -148,7 +148,7 @@ function generateDataCircles(
|
|
|
148
148
|
/** Decorative modules (a circle code's ring): no finders or alignment */
|
|
149
149
|
plain?: boolean;
|
|
150
150
|
}
|
|
151
|
-
):
|
|
151
|
+
): QRNode[] {
|
|
152
152
|
const { margin, pixelSize, pattern = "circle", plain = false } = options;
|
|
153
153
|
if (isShapedBodyPattern(pattern)) {
|
|
154
154
|
return renderShapedBody(modules, {
|
|
@@ -160,7 +160,7 @@ function generateDataCircles(
|
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
const scale = clampModuleScale(options.scale, pattern);
|
|
163
|
-
const shapes:
|
|
163
|
+
const shapes: QRNode[] = [];
|
|
164
164
|
const qrSize = modules.length;
|
|
165
165
|
const radius = pixelSize * 0.45; // radius for circles (≥0.45 needed for reliable scanning)
|
|
166
166
|
const isAlignmentModule = plain ? () => false : alignmentMask(qrSize);
|
|
@@ -350,7 +350,7 @@ function generateDataCircles(
|
|
|
350
350
|
|
|
351
351
|
// A smaller moduleScale shrinks the shape around its center
|
|
352
352
|
if (scale !== 1 && shapes.length > start) {
|
|
353
|
-
const shape = shapes.pop() as
|
|
353
|
+
const shape = shapes.pop() as QRNode;
|
|
354
354
|
shapes.push(
|
|
355
355
|
<g
|
|
356
356
|
key={key}
|
|
@@ -473,7 +473,7 @@ function renderConicPattern(
|
|
|
473
473
|
cy: number,
|
|
474
474
|
radius: number,
|
|
475
475
|
size: number
|
|
476
|
-
):
|
|
476
|
+
): QRNode {
|
|
477
477
|
const fan = conicWedges(gradient.stops, gradient.angle ?? 0, cx, cy, radius);
|
|
478
478
|
const wedges = fan.wedges.map((wedge, index) => (
|
|
479
479
|
<path
|
|
@@ -532,7 +532,7 @@ function renderImagePattern(
|
|
|
532
532
|
id: string,
|
|
533
533
|
paint: ImagePaint,
|
|
534
534
|
size: number
|
|
535
|
-
):
|
|
535
|
+
): QRNode {
|
|
536
536
|
const scale = paint.scale ?? 1;
|
|
537
537
|
const tile = paint.fit === "tile";
|
|
538
538
|
const side = tile ? (size / 4) * scale : size;
|
|
@@ -590,7 +590,7 @@ function generateCornerGradientDef(
|
|
|
590
590
|
cornerType: "top-left" | "top-right" | "bottom-left",
|
|
591
591
|
idPrefix: string,
|
|
592
592
|
size: number
|
|
593
|
-
): { id: string; element:
|
|
593
|
+
): { id: string; element: QRNode } | null {
|
|
594
594
|
const normalized = normalizeColorConfig(colorConfig);
|
|
595
595
|
|
|
596
596
|
if (normalized.type === "solid") {
|
|
@@ -690,7 +690,7 @@ function generateGradientDef(
|
|
|
690
690
|
colorConfig: ColorConfig,
|
|
691
691
|
size: number,
|
|
692
692
|
idPrefix: string
|
|
693
|
-
): { id: string; element:
|
|
693
|
+
): { id: string; element: QRNode } | null {
|
|
694
694
|
const normalized = normalizeColorConfig(colorConfig);
|
|
695
695
|
|
|
696
696
|
if (normalized.type === "solid") {
|
|
@@ -776,10 +776,10 @@ const hasPaintDef = (color: ColorConfig) =>
|
|
|
776
776
|
|
|
777
777
|
/** Definitions once each: image fills that share a picture share an id. */
|
|
778
778
|
function uniqueDefs(
|
|
779
|
-
defs: ({ id: string; element:
|
|
780
|
-
):
|
|
779
|
+
defs: ({ id: string; element: QRNode } | null | undefined)[]
|
|
780
|
+
): QRNode[] {
|
|
781
781
|
const seen = new Set<string>();
|
|
782
|
-
const out:
|
|
782
|
+
const out: QRNode[] = [];
|
|
783
783
|
for (const def of defs) {
|
|
784
784
|
if (def && !seen.has(def.id)) {
|
|
785
785
|
seen.add(def.id);
|
|
@@ -938,7 +938,12 @@ export function convertImageSettingsToPixels(
|
|
|
938
938
|
return { imgWidth, imgHeight, imgLeft, imgTop };
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
-
|
|
941
|
+
/**
|
|
942
|
+
* The code as a tree of plain nodes (`QRNode`): what `QRCodeSVG` draws, with
|
|
943
|
+
* no framework. `renderToString` turns it into the same markup React writes,
|
|
944
|
+
* `renderToDOM` into DOM nodes. Every styling option is supported.
|
|
945
|
+
*/
|
|
946
|
+
export function createQRCodeTree(props: QRSVGOptions): QRNode {
|
|
942
947
|
const {
|
|
943
948
|
value,
|
|
944
949
|
size = DEFAULT_SIZE,
|
|
@@ -975,7 +980,7 @@ export function QRCodeSVG(props: QRPropsSVG) {
|
|
|
975
980
|
// With a frame, the caller's SVG attributes belong on the outer frame <svg>.
|
|
976
981
|
const framed = isFrameActive(frame);
|
|
977
982
|
const rootProps: typeof otherProps = framed ? {} : otherProps;
|
|
978
|
-
const withFrame = (element:
|
|
983
|
+
const withFrame = (element: QRNode) =>
|
|
979
984
|
framed
|
|
980
985
|
? wrapWithFrame(element, {
|
|
981
986
|
size,
|
|
@@ -1046,7 +1051,7 @@ export function QRCodeSVG(props: QRPropsSVG) {
|
|
|
1046
1051
|
imageSettings
|
|
1047
1052
|
);
|
|
1048
1053
|
|
|
1049
|
-
let image: null |
|
|
1054
|
+
let image: null | QRNode = null;
|
|
1050
1055
|
if (imageSettings != null && calculatedImageSettings != null) {
|
|
1051
1056
|
if (calculatedImageSettings.excavation != null) {
|
|
1052
1057
|
cells = excavateModules(cells, calculatedImageSettings.excavation);
|
|
@@ -1096,7 +1101,7 @@ export function QRCodeSVG(props: QRPropsSVG) {
|
|
|
1096
1101
|
h: imgHeight,
|
|
1097
1102
|
});
|
|
1098
1103
|
if (partMarkers) {
|
|
1099
|
-
image =
|
|
1104
|
+
image = cloneElement(image, part("logo"));
|
|
1100
1105
|
}
|
|
1101
1106
|
}
|
|
1102
1107
|
}
|
|
@@ -1131,9 +1136,7 @@ export function QRCodeSVG(props: QRPropsSVG) {
|
|
|
1131
1136
|
})
|
|
1132
1137
|
: null;
|
|
1133
1138
|
const markedArtLayer =
|
|
1134
|
-
artLayer && partMarkers
|
|
1135
|
-
? React.cloneElement(artLayer, part("body"))
|
|
1136
|
-
: artLayer;
|
|
1139
|
+
artLayer && partMarkers ? cloneElement(artLayer, part("body")) : artLayer;
|
|
1137
1140
|
const artEyes =
|
|
1138
1141
|
artLayer && art
|
|
1139
1142
|
? getQRArtEyeColors({ art, version: qrCode.version, ...artColors })
|
|
@@ -1558,7 +1561,6 @@ export function QRCodeSVG(props: QRPropsSVG) {
|
|
|
1558
1561
|
// Clone the wrapped SVG element and override width/height to match requested size
|
|
1559
1562
|
// This ensures downloads get the proper size while keeping viewBox for scaling
|
|
1560
1563
|
// Remove percentage-based styles that would interfere with absolute sizing
|
|
1561
|
-
// @ts-expect-error
|
|
1562
1564
|
const originalStyle = wrappedSvg?.props?.style || {};
|
|
1563
1565
|
const newStyle = {
|
|
1564
1566
|
...originalStyle,
|
|
@@ -1570,8 +1572,7 @@ export function QRCodeSVG(props: QRPropsSVG) {
|
|
|
1570
1572
|
// Forward the caller's SVG attributes (className, aria-*, etc.) to the
|
|
1571
1573
|
// root element, same as the non-template path below.
|
|
1572
1574
|
return withFrame(
|
|
1573
|
-
|
|
1574
|
-
React.cloneElement(wrappedSvg, {
|
|
1575
|
+
cloneElement(wrappedSvg, {
|
|
1575
1576
|
...rootProps,
|
|
1576
1577
|
width: size,
|
|
1577
1578
|
height: size,
|