@nullix/zod-mongoose-studio 3.3.2 → 3.3.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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{B7ScFmDB.js → 5ZXm4f56.js} +1 -1
- package/.output/public/_nuxt/{DbqvVYbv.js → B2fcLSyW.js} +1 -1
- package/.output/public/_nuxt/{DKK0Mrrg.js → BBN7l5Hn.js} +1 -1
- package/.output/public/_nuxt/BBTTtb8r.js +41 -0
- package/.output/public/_nuxt/{C8xmwXC2.js → BDbISGvP.js} +1 -1
- package/.output/public/_nuxt/{DJa7_7Hz.js → BijI4RNx.js} +1 -1
- package/.output/public/_nuxt/{BlZ0x31M.js → Bp9qkJ9m.js} +1 -1
- package/.output/public/_nuxt/{BcYnCaqL.js → Bu3-sqCf.js} +1 -1
- package/.output/public/_nuxt/{C919AVYR.js → C-FtTvwz.js} +1 -1
- package/.output/public/_nuxt/C02JV0Aj.js +1 -0
- package/.output/public/_nuxt/{Bbi9UBvi.js → C1UkIsDc.js} +1 -1
- package/.output/public/_nuxt/{PXBhK7S_.js → CJT28r6J.js} +1 -1
- package/.output/public/_nuxt/{BC9tFNFa.js → CL7qtgl2.js} +3 -3
- package/.output/public/_nuxt/{B6lqezyA.js → CRMd2YH2.js} +3 -3
- package/.output/public/_nuxt/{YC-RLggm.js → CRkdQgFz.js} +1 -1
- package/.output/public/_nuxt/{iKW_mt0p.js → Cw1XFOz5.js} +1 -1
- package/.output/public/_nuxt/{d1NBz903.js → D5yWk6Ly.js} +1 -1
- package/.output/public/_nuxt/{iGzUozbF.js → DA9GjKpR.js} +1 -1
- package/.output/public/_nuxt/{JkiDMdYG.js → DaWAlZhp.js} +1 -1
- package/.output/public/_nuxt/{OVQ3C2Ge.js → DafLMUHo.js} +1 -1
- package/.output/public/_nuxt/{Bw82IGM8.js → Dyaldc-t.js} +1 -1
- package/.output/public/_nuxt/{CsQL5F-l.js → UU9fpRNQ.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/717459d8-0da1-42ed-af0b-9ec5395e8fdc.json +1 -0
- package/.output/public/_nuxt/entry.CDPplHzk.css +1 -0
- package/.output/public/_nuxt/error-404.hPtlUQpd.css +1 -0
- package/.output/public/_nuxt/error-500.E-PXUb6B.css +1 -0
- package/.output/public/_nuxt/{DbUZZZZu.js → kFZJW2-u.js} +2 -2
- package/.output/public/_nuxt/{B8gqXD2U.js → u3DlT5Mh.js} +1 -1
- package/.output/server/chunks/_/error-500.mjs.map +1 -1
- package/.output/server/chunks/_/parse-request.mjs +29 -0
- package/.output/server/chunks/_/parse-request.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{error-404-KRkA0DPI.mjs → error-404-aQ5PiVuX.mjs} +6 -12
- package/.output/server/chunks/build/error-404-aQ5PiVuX.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs.map +1 -0
- package/.output/server/chunks/build/{error-500-DIIFf55p.mjs → error-500-BY6ZAZZ2.mjs} +6 -12
- package/.output/server/chunks/build/error-500-BY6ZAZZ2.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs.map +1 -0
- package/.output/server/chunks/build/index-57_mtIua.mjs +235 -0
- package/.output/server/chunks/build/index-57_mtIua.mjs.map +1 -0
- package/.output/server/chunks/build/{index-CB1N4gax.mjs → index-Qa-4KqCB.mjs} +7 -13
- package/.output/server/chunks/build/index-Qa-4KqCB.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +3913 -3378
- package/.output/server/chunks/build/server.mjs.map +1 -1
- package/.output/server/chunks/build/styles.mjs +4 -4
- package/.output/server/chunks/nitro/nitro.mjs +562 -2188
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/editor-types.get.mjs +0 -6
- package/.output/server/chunks/routes/api/editor-types.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/parse.post.mjs +1599 -7
- package/.output/server/chunks/routes/api/parse.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/resolve.get.mjs +0 -6
- package/.output/server/chunks/routes/api/resolve.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/studio/run.post.mjs +41 -8
- package/.output/server/chunks/routes/api/studio/run.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +21 -44
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/index.mjs +1 -7
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/package.json +58 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/package.json +57 -0
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/dist/reactivity.cjs.prod.js +1905 -0
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/package.json +55 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/dist/runtime-core.cjs.prod.js +7006 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/package.json +52 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/dist/runtime-dom.cjs.prod.js +1867 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/package.json +60 -0
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/dist/shared.cjs.prod.js +655 -0
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/package.json +47 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/array-set.js +121 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64.js +67 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/binary-search.js +111 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/quick-sort.js +141 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-consumer.js +1236 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-generator.js +446 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-node.js +420 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/util.js +594 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/package.json +71 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/source-map.js +8 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/index.js +7 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/index.mjs +1 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/package.json +112 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +55 -21
- package/.output/server/node_modules/@babel/parser/package.json +7 -7
- package/.output/server/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/.output/server/node_modules/@esbuild/linux-x64/package.json +1 -1
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +19 -16
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +16 -16
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +11 -14
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +13 -16
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +2 -5
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +4 -5
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +9 -11
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +12 -18
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +5 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +1 -8
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +11 -12
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +5 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +7 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +2 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +5 -9
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +2 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +7 -8
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +10 -15
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +21 -13
- package/.output/server/node_modules/@iconify/utils/lib/index.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +3 -3
- package/.output/server/node_modules/@iconify/utils/lib/loader/hmr-utils.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +22 -22
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +7 -22
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +60 -16
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +9 -11
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +5 -4
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +2 -3
- package/.output/server/node_modules/@iconify/utils/package.json +15 -13
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +8 -1
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +34 -13
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -6
- package/.output/server/node_modules/devalue/index.js +15 -2
- package/.output/server/node_modules/devalue/package.json +5 -3
- package/.output/server/node_modules/devalue/src/base64.js +46 -96
- package/.output/server/node_modules/devalue/src/constants.js +5 -0
- package/.output/server/node_modules/devalue/src/operations.js +221 -0
- package/.output/server/node_modules/devalue/src/parse.js +76 -62
- package/.output/server/node_modules/devalue/src/stringify.js +164 -81
- package/.output/server/node_modules/devalue/src/uneval.js +312 -104
- package/.output/server/node_modules/devalue/src/utils.js +61 -19
- package/.output/server/node_modules/esbuild/lib/main.js +12 -8
- package/.output/server/node_modules/esbuild/package.json +50 -50
- package/.output/server/node_modules/hookable/dist/index.mjs +2 -11
- package/.output/server/node_modules/hookable/package.json +23 -22
- package/.output/server/node_modules/ip-address/dist/ipv4.js +7 -0
- package/.output/server/node_modules/ip-address/package.json +1 -1
- package/.output/server/node_modules/zod/package.json +20 -8
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
- package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +44 -35
- package/.output/server/node_modules/zod/v4/classic/external.js +5 -8
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +375 -78
- package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
- package/.output/server/node_modules/zod/v4/classic/index.js +2 -2
- package/.output/server/node_modules/zod/v4/classic/iso.js +2 -17
- package/.output/server/node_modules/zod/v4/classic/package.json +2 -1
- package/.output/server/node_modules/zod/v4/classic/parse.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +601 -223
- package/.output/server/node_modules/zod/v4/core/api.js +51 -26
- package/.output/server/node_modules/zod/v4/core/checks.js +68 -127
- package/.output/server/node_modules/zod/v4/core/compile.js +1858 -0
- package/.output/server/node_modules/zod/v4/core/core.js +87 -22
- package/.output/server/node_modules/zod/v4/core/doc.js +12 -9
- package/.output/server/node_modules/zod/v4/core/errors.js +127 -42
- package/.output/server/node_modules/zod/v4/core/index.js +3 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +413 -175
- package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
- package/.output/server/node_modules/zod/v4/core/package.json +2 -1
- package/.output/server/node_modules/zod/v4/core/parse.js +130 -48
- package/.output/server/node_modules/zod/v4/core/regexes.js +39 -16
- package/.output/server/node_modules/zod/v4/core/registries.js +2 -2
- package/.output/server/node_modules/zod/v4/core/schemas.js +895 -382
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +253 -39
- package/.output/server/node_modules/zod/v4/core/util.js +383 -175
- package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
- package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
- package/.output/server/node_modules/zod/v4/index.js +3 -2
- package/.output/server/node_modules/zod/v4/locales/ar.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +12 -0
- package/.output/server/node_modules/zod/v4/locales/bg.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/da.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/de.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +20 -4
- package/.output/server/node_modules/zod/v4/locales/eo.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +38 -17
- package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +7 -0
- package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/hy.js +11 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +14 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +6 -1
- package/.output/server/node_modules/zod/v4/locales/ja.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ka.js +13 -8
- package/.output/server/node_modules/zod/v4/locales/km.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/lt.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/ota.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/package.json +2 -1
- package/.output/server/node_modules/zod/v4/locales/pl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +89 -55
- package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +12 -0
- package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/ta.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uk.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uz.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/yo.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +5 -0
- package/.output/server/node_modules/zod/v4/package.json +2 -1
- package/.output/server/package.json +18 -18
- package/README.md +9 -0
- package/package.json +8 -8
- package/.output/public/_nuxt/Czp4_2o-.js +0 -33
- package/.output/public/_nuxt/builds/meta/46174b5e-cab6-4a73-95f8-66a1c9b1be2b.json +0 -1
- package/.output/public/_nuxt/entry.DaqrxXuH.css +0 -1
- package/.output/public/_nuxt/error-404.CTSXlFYa.css +0 -1
- package/.output/public/_nuxt/error-500.DqEfQnVZ.css +0 -1
- package/.output/server/chunks/build/error-404-KRkA0DPI.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs +0 -8
- package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-DIIFf55p.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs +0 -8
- package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs.map +0 -1
- package/.output/server/chunks/build/index-CB1N4gax.mjs.map +0 -1
- /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/dist/compiler-core.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/dist/compiler-dom.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/dist/reactivity.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/dist/runtime-core.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/dist/runtime-dom.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/dist/shared.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/array-set.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64-vlq.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/binary-search.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/mapping-list.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/quick-sort.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-consumer.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-generator.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-node.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/util.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/package.json +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/source-map.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.mjs +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.43}/server-renderer/index.mjs +0 -0
|
@@ -3,16 +3,16 @@ import { calculateSize } from "../svg/size.js";
|
|
|
3
3
|
import { iconToSVG } from "../svg/build.js";
|
|
4
4
|
import { svgToURL } from "../svg/url.js";
|
|
5
5
|
import { iconToHTML } from "../svg/html.js";
|
|
6
|
-
|
|
7
6
|
/**
|
|
8
7
|
* Generates common CSS rules for multiple icons, rendered as background/mask
|
|
9
8
|
*/
|
|
10
9
|
function getCommonCSSRules(options) {
|
|
11
|
-
const result =
|
|
10
|
+
const result = Object.create(null);
|
|
11
|
+
Object.assign(result, {
|
|
12
12
|
display: "inline-block",
|
|
13
13
|
width: "1em",
|
|
14
14
|
height: "1em"
|
|
15
|
-
};
|
|
15
|
+
});
|
|
16
16
|
const varName = options.varName;
|
|
17
17
|
if (options.pseudoSelector) result["content"] = "''";
|
|
18
18
|
switch (options.mode) {
|
|
@@ -26,7 +26,6 @@ function getCommonCSSRules(options) {
|
|
|
26
26
|
if (varName) result["mask-image"] = result["-webkit-mask-image"] = "var(--" + varName + ")";
|
|
27
27
|
result["mask-repeat"] = result["-webkit-mask-repeat"] = "no-repeat";
|
|
28
28
|
result["mask-size"] = result["-webkit-mask-size"] = "100% 100%";
|
|
29
|
-
break;
|
|
30
29
|
}
|
|
31
30
|
return result;
|
|
32
31
|
}
|
|
@@ -36,25 +35,26 @@ function getCommonCSSRules(options) {
|
|
|
36
35
|
* This function excludes common rules
|
|
37
36
|
*/
|
|
38
37
|
function generateItemCSSRules(icon, options) {
|
|
39
|
-
const result =
|
|
38
|
+
const result = Object.create(null);
|
|
40
39
|
const varName = options.varName;
|
|
41
40
|
const buildResult = iconToSVG(icon);
|
|
42
41
|
let viewBox = buildResult.viewBox;
|
|
43
|
-
if (viewBox[2] !== viewBox[3])
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
if (viewBox[2] !== viewBox[3]) {
|
|
43
|
+
if (options.forceSquare) viewBox = makeViewBoxSquare(viewBox);
|
|
44
|
+
else result["width"] = calculateSize("1em", viewBox[2] / viewBox[3]);
|
|
45
|
+
}
|
|
46
|
+
const svg = iconToHTML(buildResult.body.replace(/currentColor/g, options.color || "black"), {
|
|
46
47
|
viewBox: `${viewBox[0]} ${viewBox[1]} ${viewBox[2]} ${viewBox[3]}`,
|
|
47
48
|
width: `${viewBox[2]}`,
|
|
48
49
|
height: `${viewBox[3]}`
|
|
49
|
-
})
|
|
50
|
+
});
|
|
51
|
+
const url = svgToURL(svg);
|
|
50
52
|
if (varName) result["--" + varName] = url;
|
|
51
53
|
else switch (options.mode) {
|
|
52
54
|
case "background":
|
|
53
55
|
result["background-image"] = url;
|
|
54
56
|
break;
|
|
55
|
-
case "mask":
|
|
56
|
-
result["mask-image"] = result["-webkit-mask-image"] = url;
|
|
57
|
-
break;
|
|
57
|
+
case "mask": result["mask-image"] = result["-webkit-mask-image"] = url;
|
|
58
58
|
}
|
|
59
59
|
return result;
|
|
60
60
|
}
|
|
@@ -66,11 +66,11 @@ function generateItemContent(icon, options) {
|
|
|
66
66
|
const viewBox = buildResult.viewBox;
|
|
67
67
|
const height = options.height;
|
|
68
68
|
const width = options.width ?? calculateSize(height, viewBox[2] / viewBox[3]);
|
|
69
|
-
|
|
69
|
+
const svg = iconToHTML(buildResult.body.replace(/currentColor/g, options.color || "black"), {
|
|
70
70
|
viewBox: `${viewBox[0]} ${viewBox[1]} ${viewBox[2]} ${viewBox[3]}`,
|
|
71
71
|
width: width.toString(),
|
|
72
72
|
height: height.toString()
|
|
73
|
-
})
|
|
73
|
+
});
|
|
74
|
+
return svgToURL(svg);
|
|
74
75
|
}
|
|
75
|
-
|
|
76
|
-
export { generateItemCSSRules, generateItemContent, getCommonCSSRules };
|
|
76
|
+
export { generateItemCSSRules, generateItemContent, getCommonCSSRules };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defaultIconProps } from "../icon/defaults.js";
|
|
2
2
|
import { generateItemCSSRules, generateItemContent, getCommonCSSRules } from "./common.js";
|
|
3
3
|
import { formatCSS } from "./format.js";
|
|
4
|
-
|
|
5
4
|
/**
|
|
6
5
|
* Get CSS for icon, rendered as background or mask
|
|
7
6
|
*/
|
|
@@ -16,17 +15,15 @@ function getIconCSS(icon, options = {}) {
|
|
|
16
15
|
varName
|
|
17
16
|
};
|
|
18
17
|
if (mode === "background") delete newOptions.varName;
|
|
19
|
-
const rules =
|
|
20
|
-
|
|
21
|
-
...
|
|
22
|
-
...
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, newOptions)
|
|
27
|
-
};
|
|
18
|
+
const rules = Object.create(null);
|
|
19
|
+
Object.assign(rules, options.rules, getCommonCSSRules(newOptions), generateItemCSSRules({
|
|
20
|
+
...defaultIconProps,
|
|
21
|
+
...icon,
|
|
22
|
+
body
|
|
23
|
+
}, newOptions));
|
|
24
|
+
const selector = options.iconSelector || ".icon";
|
|
28
25
|
return formatCSS([{
|
|
29
|
-
selector
|
|
26
|
+
selector,
|
|
30
27
|
rules
|
|
31
28
|
}], newOptions.format);
|
|
32
29
|
}
|
|
@@ -40,13 +37,13 @@ function getIconContentCSS(icon, options) {
|
|
|
40
37
|
...icon,
|
|
41
38
|
body
|
|
42
39
|
}, options);
|
|
40
|
+
const selector = options.iconSelector || ".icon::after";
|
|
43
41
|
return formatCSS([{
|
|
44
|
-
selector
|
|
42
|
+
selector,
|
|
45
43
|
rules: {
|
|
46
44
|
...options.rules,
|
|
47
45
|
content
|
|
48
46
|
}
|
|
49
47
|
}], options.format);
|
|
50
48
|
}
|
|
51
|
-
|
|
52
|
-
export { getIconCSS, getIconContentCSS };
|
|
49
|
+
export { getIconCSS, getIconContentCSS };
|
|
@@ -2,7 +2,6 @@ import { defaultIconProps } from "../icon/defaults.js";
|
|
|
2
2
|
import { getIconData } from "../icon-set/get-icon.js";
|
|
3
3
|
import { generateItemCSSRules, generateItemContent, getCommonCSSRules } from "./common.js";
|
|
4
4
|
import { formatCSS } from "./format.js";
|
|
5
|
-
|
|
6
5
|
const commonSelector = ".icon--{prefix}";
|
|
7
6
|
const iconSelector = ".icon--{prefix}--{name}";
|
|
8
7
|
const contentSelector = ".icon--{prefix}--{name}::after";
|
|
@@ -40,16 +39,13 @@ function getIconsCSSData(iconSet, names, options = {}) {
|
|
|
40
39
|
mode,
|
|
41
40
|
varName
|
|
42
41
|
};
|
|
43
|
-
const { commonSelector
|
|
44
|
-
const iconSelectorWithPrefix = iconSelector
|
|
45
|
-
const commonRules =
|
|
46
|
-
|
|
47
|
-
...getCommonCSSRules(newOptions)
|
|
48
|
-
};
|
|
49
|
-
const hasCommonRules = commonSelector$1 && commonSelector$1 !== iconSelector$1;
|
|
42
|
+
const { commonSelector, iconSelector, overrideSelector } = newOptions.iconSelector ? newOptions : defaultSelectors;
|
|
43
|
+
const iconSelectorWithPrefix = iconSelector.replace(/{prefix}/g, iconSet.prefix);
|
|
44
|
+
const commonRules = Object.assign(Object.create(null), options.rules, getCommonCSSRules(newOptions));
|
|
45
|
+
const hasCommonRules = commonSelector && commonSelector !== iconSelector;
|
|
50
46
|
const commonSelectors = /* @__PURE__ */ new Set();
|
|
51
47
|
if (hasCommonRules) css.push({
|
|
52
|
-
selector: commonSelector
|
|
48
|
+
selector: commonSelector.replace(/{prefix}/g, iconSet.prefix),
|
|
53
49
|
rules: commonRules
|
|
54
50
|
});
|
|
55
51
|
for (let i = 0; i < names.length; i++) {
|
|
@@ -91,11 +87,13 @@ function getIconsCSSData(iconSet, names, options = {}) {
|
|
|
91
87
|
*/
|
|
92
88
|
function getIconsCSS(iconSet, names, options = {}) {
|
|
93
89
|
const { css, errors, common } = getIconsCSSData(iconSet, names, options);
|
|
94
|
-
if (common)
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
if (common) {
|
|
91
|
+
if (css.length === 1 && css[0].selector === common.selector) css[0].rules = {
|
|
92
|
+
...common.rules,
|
|
93
|
+
...css[0].rules
|
|
94
|
+
};
|
|
95
|
+
else css.unshift(common);
|
|
96
|
+
}
|
|
99
97
|
return formatCSS(css, options.format) + (errors.length ? "\n" + errors.join("\n") + "\n" : "");
|
|
100
98
|
}
|
|
101
99
|
/**
|
|
@@ -129,5 +127,4 @@ function getIconsContentCSS(iconSet, names, options) {
|
|
|
129
127
|
}
|
|
130
128
|
return formatCSS(css, options.format) + (errors.length ? "\n" + errors.join("\n") + "\n" : "");
|
|
131
129
|
}
|
|
132
|
-
|
|
133
|
-
export { getIconsCSS, getIconsCSSData, getIconsContentCSS };
|
|
130
|
+
export { getIconsCSS, getIconsCSSData, getIconsContentCSS };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defaultIconTransformations } from "../icon/defaults.js";
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Default icon customisations values
|
|
5
4
|
*/
|
|
@@ -11,5 +10,4 @@ const defaultIconCustomisations = Object.freeze({
|
|
|
11
10
|
...defaultIconSizeCustomisations,
|
|
12
11
|
...defaultIconTransformations
|
|
13
12
|
});
|
|
14
|
-
|
|
15
|
-
export { defaultIconCustomisations, defaultIconSizeCustomisations };
|
|
13
|
+
export { defaultIconCustomisations, defaultIconSizeCustomisations };
|
|
@@ -8,11 +8,8 @@ function flipFromString(custom, flip) {
|
|
|
8
8
|
case "horizontal":
|
|
9
9
|
custom.hFlip = true;
|
|
10
10
|
break;
|
|
11
|
-
case "vertical":
|
|
12
|
-
custom.vFlip = true;
|
|
13
|
-
break;
|
|
11
|
+
case "vertical": custom.vFlip = true;
|
|
14
12
|
}
|
|
15
13
|
});
|
|
16
14
|
}
|
|
17
|
-
|
|
18
|
-
export { flipFromString };
|
|
15
|
+
export { flipFromString };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defaultIconSizeCustomisations } from "./defaults.js";
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Convert IconifyIconCustomisations to FullIconCustomisations, checking value types
|
|
5
4
|
*/
|
|
@@ -14,5 +13,4 @@ function mergeCustomisations(defaults, item) {
|
|
|
14
13
|
}
|
|
15
14
|
return result;
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
export { mergeCustomisations };
|
|
16
|
+
export { mergeCustomisations };
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
function rotateFromString(value, defaultValue = 0) {
|
|
5
5
|
const units = value.replace(/^-?[0-9.]*/, "");
|
|
6
|
-
function cleanup(value
|
|
7
|
-
while (value
|
|
8
|
-
return value
|
|
6
|
+
function cleanup(value) {
|
|
7
|
+
while (value < 0) value += 4;
|
|
8
|
+
return value % 4;
|
|
9
9
|
}
|
|
10
10
|
if (units === "") {
|
|
11
11
|
const num = parseInt(value);
|
|
@@ -27,5 +27,4 @@ function rotateFromString(value, defaultValue = 0) {
|
|
|
27
27
|
}
|
|
28
28
|
return defaultValue;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
export { rotateFromString };
|
|
30
|
+
export { rotateFromString };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { joinerEmoji, vs16Emoji } from "./data.js";
|
|
2
2
|
import { getEmojiCodePoint } from "./convert.js";
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* Get emoji sequence from string
|
|
6
5
|
*
|
|
@@ -76,5 +75,4 @@ function joinEmojiSequences(sequences, separator = joinerEmoji) {
|
|
|
76
75
|
function getUnqualifiedEmojiSequence(sequence) {
|
|
77
76
|
return sequence.filter((num) => num !== vs16Emoji);
|
|
78
77
|
}
|
|
79
|
-
|
|
80
|
-
export { getEmojiSequenceFromString, getSequenceFromEmojiStringOrKeyword, getUnqualifiedEmojiSequence, joinEmojiSequences, splitEmojiSequences };
|
|
78
|
+
export { getEmojiSequenceFromString, getSequenceFromEmojiStringOrKeyword, getUnqualifiedEmojiSequence, joinEmojiSequences, splitEmojiSequences };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { minUTF32, startUTF32Pair1, startUTF32Pair2 } from "./data.js";
|
|
3
2
|
/**
|
|
4
3
|
* Convert string to number
|
|
5
4
|
*/
|
|
@@ -22,7 +21,7 @@ function utf32SecondNum(code) {
|
|
|
22
21
|
* Get UTF-32 as UTF-16 sequence
|
|
23
22
|
*/
|
|
24
23
|
function splitUTF32Number(code) {
|
|
25
|
-
if (code >=
|
|
24
|
+
if (code >= 65536) return [utf32FirstNum(code), utf32SecondNum(code)];
|
|
26
25
|
}
|
|
27
26
|
/**
|
|
28
27
|
* Check if number is UTF-32 split as UTF-16
|
|
@@ -33,9 +32,9 @@ function splitUTF32Number(code) {
|
|
|
33
32
|
* - false on failure
|
|
34
33
|
*/
|
|
35
34
|
function isUTF32SplitNumber(value) {
|
|
36
|
-
if (value >=
|
|
37
|
-
if (value <
|
|
38
|
-
if (value <
|
|
35
|
+
if (value >= 55296) {
|
|
36
|
+
if (value < 56320) return 1;
|
|
37
|
+
if (value < 57344) return 2;
|
|
39
38
|
}
|
|
40
39
|
return false;
|
|
41
40
|
}
|
|
@@ -43,7 +42,7 @@ function isUTF32SplitNumber(value) {
|
|
|
43
42
|
* Get UTF-16 sequence as UTF-32
|
|
44
43
|
*/
|
|
45
44
|
function mergeUTF32Numbers(part1, part2) {
|
|
46
|
-
if (part1 <
|
|
45
|
+
if (part1 < 55296 || part1 >= 56320 || part2 < 56320 || part2 >= 57344) return;
|
|
47
46
|
return (part1 - startUTF32Pair1 << 10) + (part2 - startUTF32Pair2) + minUTF32;
|
|
48
47
|
}
|
|
49
48
|
/**
|
|
@@ -59,7 +58,7 @@ function convertEmojiSequenceToUTF16(numbers) {
|
|
|
59
58
|
const results = [];
|
|
60
59
|
for (let i = 0; i < numbers.length; i++) {
|
|
61
60
|
const code = numbers[i];
|
|
62
|
-
if (code >=
|
|
61
|
+
if (code >= 65536) {
|
|
63
62
|
results.push(utf32FirstNum(code));
|
|
64
63
|
results.push(utf32SecondNum(code));
|
|
65
64
|
} else results.push(code);
|
|
@@ -73,7 +72,7 @@ function convertEmojiSequenceToUTF32(numbers, throwOnError = true) {
|
|
|
73
72
|
const results = [];
|
|
74
73
|
for (let i = 0; i < numbers.length; i++) {
|
|
75
74
|
const code = numbers[i];
|
|
76
|
-
if (code >=
|
|
75
|
+
if (code >= 65536) {
|
|
77
76
|
results.push(code);
|
|
78
77
|
continue;
|
|
79
78
|
}
|
|
@@ -98,5 +97,4 @@ function convertEmojiSequenceToUTF32(numbers, throwOnError = true) {
|
|
|
98
97
|
}
|
|
99
98
|
return results;
|
|
100
99
|
}
|
|
101
|
-
|
|
102
|
-
export { convertEmojiSequenceToUTF16, convertEmojiSequenceToUTF32, getEmojiCodePoint, getEmojiUnicode, isUTF32SplitNumber, mergeUTF32Numbers, splitUTF32Number };
|
|
100
|
+
export { convertEmojiSequenceToUTF16, convertEmojiSequenceToUTF32, getEmojiCodePoint, getEmojiUnicode, isUTF32SplitNumber, mergeUTF32Numbers, splitUTF32Number };
|
|
@@ -25,5 +25,4 @@ const endUTF32Pair = 57344;
|
|
|
25
25
|
* Emoji version as string
|
|
26
26
|
*/
|
|
27
27
|
const emojiVersion = "17.0";
|
|
28
|
-
|
|
29
|
-
export { emojiComponents, emojiVersion, endUTF32Pair, joinerEmoji, keycapEmoji, minUTF32, startUTF32Pair1, startUTF32Pair2, vs16Emoji };
|
|
28
|
+
export { emojiComponents, emojiVersion, endUTF32Pair, joinerEmoji, keycapEmoji, minUTF32, startUTF32Pair1, startUTF32Pair2, vs16Emoji };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { convertEmojiSequenceToUTF16, convertEmojiSequenceToUTF32 } from "./convert.js";
|
|
2
|
-
|
|
3
2
|
const defaultUnicodeOptions = {
|
|
4
3
|
prefix: "",
|
|
5
4
|
separator: "",
|
|
@@ -56,5 +55,4 @@ function getEmojiSequenceString(sequence, options = {}) {
|
|
|
56
55
|
function getEmojiSequenceKeyword(sequence) {
|
|
57
56
|
return sequence.map((code) => code.toString(16)).join("-");
|
|
58
57
|
}
|
|
59
|
-
|
|
60
|
-
export { getEmojiSequenceKeyword, getEmojiSequenceString, getEmojiUnicodeString };
|
|
58
|
+
export { getEmojiSequenceKeyword, getEmojiSequenceString, getEmojiUnicodeString };
|
|
@@ -6,7 +6,6 @@ import { findMissingEmojis } from "./test/missing.js";
|
|
|
6
6
|
import { createOptimisedRegexForEmojiSequences } from "./regex/create.js";
|
|
7
7
|
import { combineSimilarEmojiTestData } from "./test/similar.js";
|
|
8
8
|
import { getEmojiTestDataTree } from "./test/tree.js";
|
|
9
|
-
|
|
10
9
|
/**
|
|
11
10
|
* Prepare emoji for icons list
|
|
12
11
|
*
|
|
@@ -46,5 +45,4 @@ function prepareEmojiForIconsList(icons, rawTestData) {
|
|
|
46
45
|
function prepareEmojiForIconSet(iconSet, rawTestData) {
|
|
47
46
|
return prepareEmojiForIconsList(iconSet.chars || {}, rawTestData);
|
|
48
47
|
}
|
|
49
|
-
|
|
50
|
-
export { prepareEmojiForIconSet, prepareEmojiForIconsList };
|
|
48
|
+
export { prepareEmojiForIconSet, prepareEmojiForIconsList };
|
|
@@ -13,10 +13,6 @@ function toString(number) {
|
|
|
13
13
|
return "\\u" + number.toString(16).toUpperCase();
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Typescript stuff
|
|
17
|
-
*/
|
|
18
|
-
function assertNever(v) {}
|
|
19
|
-
/**
|
|
20
16
|
* Wrap regex in group
|
|
21
17
|
*/
|
|
22
18
|
function wrapRegexInGroup(regex) {
|
|
@@ -36,10 +32,10 @@ function updateUTF16EmojiRegexItem(item) {
|
|
|
36
32
|
let range = null;
|
|
37
33
|
const addRange = () => {
|
|
38
34
|
if (range) {
|
|
39
|
-
const { start, last, numbers
|
|
35
|
+
const { start, last, numbers } = range;
|
|
40
36
|
range = null;
|
|
41
37
|
if (last > start + 1) chars.push(toString(start) + "-" + toString(last));
|
|
42
|
-
else for (let i = 0; i < numbers
|
|
38
|
+
else for (let i = 0; i < numbers.length; i++) chars.push(toString(numbers[i]));
|
|
43
39
|
}
|
|
44
40
|
};
|
|
45
41
|
for (let i = 0; i < numbers.length; i++) {
|
|
@@ -107,8 +103,8 @@ function createSequenceEmojiRegexItem(sequence, numbers) {
|
|
|
107
103
|
const firstItem = sequence[0];
|
|
108
104
|
result.group = firstItem.group;
|
|
109
105
|
if (firstItem.type !== "optional") {
|
|
110
|
-
const numbers
|
|
111
|
-
if (numbers
|
|
106
|
+
const numbers = firstItem.numbers;
|
|
107
|
+
if (numbers) result.numbers = numbers;
|
|
112
108
|
}
|
|
113
109
|
}
|
|
114
110
|
if (numbers) result.numbers = numbers;
|
|
@@ -136,8 +132,10 @@ function createSetEmojiRegexItem(set) {
|
|
|
136
132
|
set.forEach((item) => {
|
|
137
133
|
if (item.type === "set") sets = sets.concat(item.sets);
|
|
138
134
|
else sets.push(item);
|
|
139
|
-
if (numbers)
|
|
140
|
-
|
|
135
|
+
if (numbers) {
|
|
136
|
+
if (item.type === "optional" || !item.numbers) numbers = null;
|
|
137
|
+
else numbers = [...numbers, ...item.numbers];
|
|
138
|
+
}
|
|
141
139
|
});
|
|
142
140
|
sets.sort((a, b) => {
|
|
143
141
|
if (a.length === b.length) return a.regex.localeCompare(b.regex);
|
|
@@ -187,18 +185,14 @@ function cloneEmojiRegexItem(item, shallow = false) {
|
|
|
187
185
|
case "utf16": break;
|
|
188
186
|
case "sequence":
|
|
189
187
|
if (shallow) result.items = [...result.items];
|
|
190
|
-
else result.items = result.items.map((item
|
|
188
|
+
else result.items = result.items.map((item) => cloneEmojiRegexItem(item, false));
|
|
191
189
|
break;
|
|
192
190
|
case "set":
|
|
193
191
|
if (shallow) result.sets = [...result.sets];
|
|
194
|
-
else result.sets = result.sets.map((item
|
|
195
|
-
break;
|
|
196
|
-
case "optional":
|
|
197
|
-
if (!shallow) result.item = cloneEmojiRegexItem(result.item, false);
|
|
192
|
+
else result.sets = result.sets.map((item) => cloneEmojiRegexItem(item, false));
|
|
198
193
|
break;
|
|
199
|
-
|
|
194
|
+
case "optional": if (!shallow) result.item = cloneEmojiRegexItem(result.item, false);
|
|
200
195
|
}
|
|
201
196
|
return result;
|
|
202
197
|
}
|
|
203
|
-
|
|
204
|
-
export { cloneEmojiRegexItem, createOptionalEmojiRegexItem, createSequenceEmojiRegexItem, createSetEmojiRegexItem, createUTF16EmojiRegexItem, updateOptionalEmojiRegexItem, updateSequenceEmojiRegexItem, updateSetEmojiRegexItem, updateUTF16EmojiRegexItem, wrapRegexInGroup };
|
|
198
|
+
export { cloneEmojiRegexItem, createOptionalEmojiRegexItem, createSequenceEmojiRegexItem, createSetEmojiRegexItem, createUTF16EmojiRegexItem, updateOptionalEmojiRegexItem, updateSequenceEmojiRegexItem, updateSetEmojiRegexItem, updateUTF16EmojiRegexItem, wrapRegexInGroup };
|
|
@@ -2,13 +2,13 @@ import { convertEmojiSequenceToUTF32 } from "../convert.js";
|
|
|
2
2
|
import { getSequenceFromEmojiStringOrKeyword } from "../cleanup.js";
|
|
3
3
|
import { getQualifiedEmojiVariations } from "../test/variations.js";
|
|
4
4
|
import { createEmojisTree, parseEmojiTree } from "./tree.js";
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Create optimised regex
|
|
8
7
|
*/
|
|
9
8
|
function createOptimisedRegexForEmojiSequences(sequences) {
|
|
10
9
|
sequences = sequences.map((item) => convertEmojiSequenceToUTF32(item));
|
|
11
|
-
|
|
10
|
+
const tree = createEmojisTree(sequences);
|
|
11
|
+
return parseEmojiTree(tree).regex;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Create optimised regex for emojis
|
|
@@ -31,5 +31,4 @@ function createOptimisedRegex(emojis) {
|
|
|
31
31
|
})).map((item) => item.sequence);
|
|
32
32
|
return createOptimisedRegexForEmojiSequences(sequences);
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
export { createOptimisedRegex, createOptimisedRegexForEmojiSequences };
|
|
34
|
+
export { createOptimisedRegex, createOptimisedRegexForEmojiSequences };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../data.js";
|
|
2
2
|
import { splitUTF32Number } from "../convert.js";
|
|
3
3
|
import { createOptionalEmojiRegexItem, createSequenceEmojiRegexItem, createSetEmojiRegexItem, createUTF16EmojiRegexItem } from "./base.js";
|
|
4
|
-
|
|
5
4
|
/**
|
|
6
5
|
* Create regex item for set of numbers
|
|
7
6
|
*/
|
|
@@ -20,7 +19,7 @@ function createEmojiRegexItemForNumbers(numbers) {
|
|
|
20
19
|
continue;
|
|
21
20
|
}
|
|
22
21
|
const [first, second] = split;
|
|
23
|
-
const item = utf32.find((item
|
|
22
|
+
const item = utf32.find((item) => item.first === first);
|
|
24
23
|
if (item) {
|
|
25
24
|
item.second.push(second);
|
|
26
25
|
item.numbers.push(number);
|
|
@@ -37,7 +36,7 @@ function createEmojiRegexItemForNumbers(numbers) {
|
|
|
37
36
|
for (let i = 0; i < utf32.length; i++) {
|
|
38
37
|
const item = utf32[i];
|
|
39
38
|
const secondRegex = createUTF16EmojiRegexItem(item.second);
|
|
40
|
-
const listItem = utf32Set.find((item
|
|
39
|
+
const listItem = utf32Set.find((item) => item.second.regex === secondRegex.regex);
|
|
41
40
|
if (listItem) {
|
|
42
41
|
listItem.first.push(item.first);
|
|
43
42
|
listItem.numbers = [...listItem.numbers, ...item.numbers];
|
|
@@ -66,7 +65,7 @@ function createRegexForNumbersSequence(numbers, optionalVariations = true) {
|
|
|
66
65
|
const split = splitUTF32Number(num);
|
|
67
66
|
if (!split) {
|
|
68
67
|
const item = createUTF16EmojiRegexItem([num]);
|
|
69
|
-
if (optionalVariations && num ===
|
|
68
|
+
if (optionalVariations && num === 65039) items.push(createOptionalEmojiRegexItem(item));
|
|
70
69
|
else items.push(item);
|
|
71
70
|
} else {
|
|
72
71
|
items.push(createUTF16EmojiRegexItem([split[0]]));
|
|
@@ -130,5 +129,4 @@ function optimiseNumbersSet(set) {
|
|
|
130
129
|
}
|
|
131
130
|
return filteredItems.length === 1 ? filteredItems[0] : createSetEmojiRegexItem(filteredItems);
|
|
132
131
|
}
|
|
133
|
-
|
|
134
|
-
export { createEmojiRegexItemForNumbers, createRegexForNumbersSequence, optimiseNumbersSet };
|
|
132
|
+
export { createEmojiRegexItemForNumbers, createRegexForNumbersSequence, optimiseNumbersSet };
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { cloneEmojiRegexItem, createOptionalEmojiRegexItem, createSequenceEmojiRegexItem, createSetEmojiRegexItem } from "./base.js";
|
|
2
2
|
import { optimiseNumbersSet } from "./numbers.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Typescript stuff
|
|
6
|
-
*/
|
|
7
|
-
function assertNever(v) {}
|
|
8
3
|
/**
|
|
9
4
|
* Find similar item sequences
|
|
10
5
|
*
|
|
@@ -57,7 +52,6 @@ function findSimilarRegexItemSequences(items) {
|
|
|
57
52
|
break;
|
|
58
53
|
}
|
|
59
54
|
case "set": throw new Error("Unexpected set within a set");
|
|
60
|
-
default: assertNever(baseItem);
|
|
61
55
|
}
|
|
62
56
|
}
|
|
63
57
|
let result;
|
|
@@ -163,5 +157,4 @@ function mergeSimilarItemsInSet(set) {
|
|
|
163
157
|
}
|
|
164
158
|
return set;
|
|
165
159
|
}
|
|
166
|
-
|
|
167
|
-
export { findSimilarRegexItemSequences, mergeSimilarItemsInSet, mergeSimilarRegexItemSequences };
|
|
160
|
+
export { findSimilarRegexItemSequences, mergeSimilarItemsInSet, mergeSimilarRegexItemSequences };
|
|
@@ -4,7 +4,6 @@ import { splitEmojiSequences } from "../cleanup.js";
|
|
|
4
4
|
import { createOptionalEmojiRegexItem, createSequenceEmojiRegexItem, createSetEmojiRegexItem, createUTF16EmojiRegexItem } from "./base.js";
|
|
5
5
|
import { createRegexForNumbersSequence } from "./numbers.js";
|
|
6
6
|
import { mergeSimilarItemsInSet } from "./similar.js";
|
|
7
|
-
|
|
8
7
|
/**
|
|
9
8
|
* Create tree
|
|
10
9
|
*/
|
|
@@ -16,7 +15,7 @@ function createEmojisTree(sequences) {
|
|
|
16
15
|
for (let j = 0; j < split.length; j++) {
|
|
17
16
|
const regex = createRegexForNumbersSequence(split[j]);
|
|
18
17
|
let item;
|
|
19
|
-
const match = parent.find((item
|
|
18
|
+
const match = parent.find((item) => item.regex.regex === regex.regex);
|
|
20
19
|
if (!match) {
|
|
21
20
|
item = { regex };
|
|
22
21
|
parent.push(item);
|
|
@@ -34,12 +33,12 @@ function createEmojisTree(sequences) {
|
|
|
34
33
|
* Parse tree
|
|
35
34
|
*/
|
|
36
35
|
function parseEmojiTree(items) {
|
|
37
|
-
function mergeParsedChildren(items
|
|
36
|
+
function mergeParsedChildren(items) {
|
|
38
37
|
const parsedItems = [];
|
|
39
38
|
const mapWithoutEnd = Object.create(null);
|
|
40
39
|
const mapWithEnd = Object.create(null);
|
|
41
|
-
for (let i = 0; i < items
|
|
42
|
-
const item = items
|
|
40
|
+
for (let i = 0; i < items.length; i++) {
|
|
41
|
+
const item = items[i];
|
|
43
42
|
const children = item.children;
|
|
44
43
|
if (children) {
|
|
45
44
|
const fullItem = item;
|
|
@@ -51,19 +50,20 @@ function parseEmojiTree(items) {
|
|
|
51
50
|
}
|
|
52
51
|
[mapWithEnd, mapWithoutEnd].forEach((source) => {
|
|
53
52
|
for (const regex in source) {
|
|
54
|
-
const items
|
|
55
|
-
const firstItem = items
|
|
53
|
+
const items = source[regex];
|
|
54
|
+
const firstItem = items[0];
|
|
56
55
|
let childSequence = [createUTF16EmojiRegexItem([joinerEmoji]), firstItem.children];
|
|
57
56
|
if (firstItem.end) childSequence = [createOptionalEmojiRegexItem(createSequenceEmojiRegexItem(childSequence))];
|
|
58
57
|
let mergedRegex;
|
|
59
|
-
if (items
|
|
60
|
-
else mergedRegex = mergeSimilarItemsInSet(createSetEmojiRegexItem(items
|
|
58
|
+
if (items.length === 1) mergedRegex = firstItem.regex;
|
|
59
|
+
else mergedRegex = mergeSimilarItemsInSet(createSetEmojiRegexItem(items.map((item) => item.regex)));
|
|
61
60
|
const sequence = createSequenceEmojiRegexItem([mergedRegex, ...childSequence]);
|
|
62
61
|
parsedItems.push(sequence);
|
|
63
62
|
}
|
|
64
63
|
});
|
|
65
64
|
if (parsedItems.length === 1) return parsedItems[0];
|
|
66
|
-
|
|
65
|
+
const set = createSetEmojiRegexItem(parsedItems);
|
|
66
|
+
return mergeSimilarItemsInSet(set);
|
|
67
67
|
}
|
|
68
68
|
function parseItemChildren(item) {
|
|
69
69
|
const result = {
|
|
@@ -77,5 +77,4 @@ function parseEmojiTree(items) {
|
|
|
77
77
|
}
|
|
78
78
|
return mergeParsedChildren(items.map(parseItemChildren));
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
export { createEmojisTree, parseEmojiTree };
|
|
80
|
+
export { createEmojisTree, parseEmojiTree };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../data.js";
|
|
2
2
|
import { convertEmojiSequenceToUTF32 } from "../convert.js";
|
|
3
3
|
import { getEmojiSequenceKeyword } from "../format.js";
|
|
4
|
-
|
|
5
4
|
/**
|
|
6
5
|
* Create regular expression instance
|
|
7
6
|
*/
|
|
@@ -16,8 +15,8 @@ function createEmojiRegExp(regexp) {
|
|
|
16
15
|
function getEmojiMatchesInText(regexp, content) {
|
|
17
16
|
const results = [];
|
|
18
17
|
const found = /* @__PURE__ */ new Set();
|
|
19
|
-
(regexp instanceof Array ? regexp : [regexp]).forEach((regexp
|
|
20
|
-
const matches = content.match(typeof regexp
|
|
18
|
+
(regexp instanceof Array ? regexp : [regexp]).forEach((regexp, index) => {
|
|
19
|
+
const matches = content.match(typeof regexp === "string" ? createEmojiRegExp(regexp) : regexp);
|
|
21
20
|
if (matches) for (let i = 0; i < matches.length; i++) {
|
|
22
21
|
const match = matches[i];
|
|
23
22
|
if (found.has(match)) continue;
|
|
@@ -25,7 +24,7 @@ function getEmojiMatchesInText(regexp, content) {
|
|
|
25
24
|
const sequence = [];
|
|
26
25
|
for (const codePoint of match) {
|
|
27
26
|
const num = codePoint.codePointAt(0);
|
|
28
|
-
if (num !==
|
|
27
|
+
if (num !== 65039) sequence.push(num);
|
|
29
28
|
}
|
|
30
29
|
results.push({
|
|
31
30
|
match,
|
|
@@ -90,5 +89,4 @@ function sortEmojiMatchesInText(content, matches) {
|
|
|
90
89
|
};
|
|
91
90
|
});
|
|
92
91
|
}
|
|
93
|
-
|
|
94
|
-
export { createEmojiRegExp, getEmojiMatchesInText, sortEmojiMatchesInText };
|
|
92
|
+
export { createEmojiRegExp, getEmojiMatchesInText, sortEmojiMatchesInText };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { getEmojiMatchesInText, sortEmojiMatchesInText } from "./find.js";
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Find and replace emojis in text
|
|
5
4
|
*
|
|
@@ -24,5 +23,4 @@ function findAndReplaceEmojisInText(regexp, content, callback) {
|
|
|
24
23
|
result += sortedMatches[sortedMatches.length - 1].next;
|
|
25
24
|
return replaced ? result : null;
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
export { findAndReplaceEmojisInText };
|
|
26
|
+
export { findAndReplaceEmojisInText };
|