@gtkx/codegen 0.21.0 → 1.0.0-rc.1
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 +173 -0
- package/dist/analysis/descriptor-render.d.ts +18 -0
- package/dist/analysis/descriptor-render.d.ts.map +1 -0
- package/dist/analysis/descriptor-render.js +297 -0
- package/dist/analysis/descriptor-render.js.map +1 -0
- package/dist/analysis/descriptor.d.ts +59 -0
- package/dist/analysis/descriptor.d.ts.map +1 -0
- package/dist/analysis/descriptor.js +123 -0
- package/dist/analysis/descriptor.js.map +1 -0
- package/dist/analysis/inheritance.d.ts +38 -0
- package/dist/analysis/inheritance.d.ts.map +1 -0
- package/dist/analysis/inheritance.js +193 -0
- package/dist/analysis/inheritance.js.map +1 -0
- package/dist/analysis/param-structure.d.ts +26 -0
- package/dist/analysis/param-structure.d.ts.map +1 -0
- package/dist/analysis/param-structure.js +107 -0
- package/dist/analysis/param-structure.js.map +1 -0
- package/dist/analysis/ts-type.d.ts +19 -0
- package/dist/analysis/ts-type.d.ts.map +1 -0
- package/dist/analysis/ts-type.js +65 -0
- package/dist/analysis/ts-type.js.map +1 -0
- package/dist/compile.d.ts +18 -0
- package/dist/compile.d.ts.map +1 -0
- package/dist/compile.js +123 -0
- package/dist/compile.js.map +1 -0
- package/dist/docs/api-reference.d.ts +66 -0
- package/dist/docs/api-reference.d.ts.map +1 -0
- package/dist/docs/api-reference.js +299 -0
- package/dist/docs/api-reference.js.map +1 -0
- package/dist/docs/element-page.d.ts +15 -0
- package/dist/docs/element-page.d.ts.map +1 -0
- package/dist/docs/element-page.js +221 -0
- package/dist/docs/element-page.js.map +1 -0
- package/dist/docs/pipeline.d.ts +25 -0
- package/dist/docs/pipeline.d.ts.map +1 -0
- package/dist/docs/pipeline.js +130 -0
- package/dist/docs/pipeline.js.map +1 -0
- package/dist/docs/render.d.ts +32 -0
- package/dist/docs/render.d.ts.map +1 -0
- package/dist/docs/render.js +134 -0
- package/dist/docs/render.js.map +1 -0
- package/dist/docs/symbol-page.d.ts +41 -0
- package/dist/docs/symbol-page.d.ts.map +1 -0
- package/dist/docs/symbol-page.js +338 -0
- package/dist/docs/symbol-page.js.map +1 -0
- package/dist/fingerprint.d.ts +6 -26
- package/dist/fingerprint.d.ts.map +1 -1
- package/dist/fingerprint.js +30 -18
- package/dist/fingerprint.js.map +1 -1
- package/dist/gir/ancestry.d.ts +9 -0
- package/dist/gir/ancestry.d.ts.map +1 -0
- package/dist/gir/ancestry.js +29 -0
- package/dist/gir/ancestry.js.map +1 -0
- package/dist/gir/callback.d.ts +9 -10
- package/dist/gir/callback.d.ts.map +1 -1
- package/dist/gir/callback.js +17 -16
- package/dist/gir/callback.js.map +1 -1
- package/dist/gir/class.d.ts +22 -43
- package/dist/gir/class.d.ts.map +1 -1
- package/dist/gir/class.js +11 -23
- package/dist/gir/class.js.map +1 -1
- package/dist/gir/enum.d.ts +13 -31
- package/dist/gir/enum.d.ts.map +1 -1
- package/dist/gir/enum.js +7 -14
- package/dist/gir/enum.js.map +1 -1
- package/dist/gir/field.d.ts +10 -23
- package/dist/gir/field.d.ts.map +1 -1
- package/dist/gir/field.js +12 -18
- package/dist/gir/field.js.map +1 -1
- package/dist/gir/function.d.ts +11 -42
- package/dist/gir/function.d.ts.map +1 -1
- package/dist/gir/function.js +7 -20
- package/dist/gir/function.js.map +1 -1
- package/dist/gir/gir-path.d.ts +2 -0
- package/dist/gir/gir-path.d.ts.map +1 -0
- package/dist/gir/gir-path.js +41 -0
- package/dist/gir/gir-path.js.map +1 -0
- package/dist/gir/libraries.d.ts +4 -0
- package/dist/gir/libraries.d.ts.map +1 -0
- package/dist/gir/libraries.js +62 -0
- package/dist/gir/libraries.js.map +1 -0
- package/dist/gir/library.d.ts +37 -0
- package/dist/gir/library.d.ts.map +1 -0
- package/dist/gir/library.js +218 -0
- package/dist/gir/library.js.map +1 -0
- package/dist/gir/namespace.d.ts +36 -50
- package/dist/gir/namespace.d.ts.map +1 -1
- package/dist/gir/namespace.js +46 -36
- package/dist/gir/namespace.js.map +1 -1
- package/dist/gir/parameter.d.ts +25 -69
- package/dist/gir/parameter.d.ts.map +1 -1
- package/dist/gir/parameter.js +36 -57
- package/dist/gir/parameter.js.map +1 -1
- package/dist/gir/parse.d.ts +6 -70
- package/dist/gir/parse.d.ts.map +1 -1
- package/dist/gir/parse.js +32 -80
- package/dist/gir/parse.js.map +1 -1
- package/dist/gir/primitives.d.ts +3 -34
- package/dist/gir/primitives.d.ts.map +1 -1
- package/dist/gir/primitives.js +19 -35
- package/dist/gir/primitives.js.map +1 -1
- package/dist/gir/property.d.ts +16 -25
- package/dist/gir/property.d.ts.map +1 -1
- package/dist/gir/property.js +12 -9
- package/dist/gir/property.js.map +1 -1
- package/dist/gir/record.d.ts +27 -0
- package/dist/gir/record.d.ts.map +1 -0
- package/dist/gir/record.js +25 -0
- package/dist/gir/record.js.map +1 -0
- package/dist/gir/size.d.ts +10 -57
- package/dist/gir/size.d.ts.map +1 -1
- package/dist/gir/size.js +0 -25
- package/dist/gir/size.js.map +1 -1
- package/dist/gir/type-id.d.ts +49 -0
- package/dist/gir/type-id.d.ts.map +1 -0
- package/dist/gir/type-id.js +8 -0
- package/dist/gir/type-id.js.map +1 -0
- package/dist/gir/type-ref.d.ts +3 -77
- package/dist/gir/type-ref.d.ts.map +1 -1
- package/dist/gir/type-ref.js +35 -65
- package/dist/gir/type-ref.js.map +1 -1
- package/dist/gir/type.d.ts +33 -0
- package/dist/gir/type.d.ts.map +1 -0
- package/dist/gir/type.js +2 -0
- package/dist/gir/type.js.map +1 -0
- package/dist/index.d.ts +5 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -11
- package/dist/index.js.map +1 -1
- package/dist/khronos/args.d.ts +30 -0
- package/dist/khronos/args.d.ts.map +1 -0
- package/dist/khronos/args.js +150 -0
- package/dist/khronos/args.js.map +1 -0
- package/dist/khronos/jsdoc.d.ts +21 -0
- package/dist/khronos/jsdoc.d.ts.map +1 -0
- package/dist/khronos/jsdoc.js +59 -0
- package/dist/khronos/jsdoc.js.map +1 -0
- package/dist/khronos/model.d.ts +37 -0
- package/dist/khronos/model.d.ts.map +1 -0
- package/dist/khronos/model.js +132 -0
- package/dist/khronos/model.js.map +1 -0
- package/dist/khronos/modules.d.ts +11 -0
- package/dist/khronos/modules.d.ts.map +1 -0
- package/dist/khronos/modules.js +58 -0
- package/dist/khronos/modules.js.map +1 -0
- package/dist/khronos/parse.d.ts +9 -0
- package/dist/khronos/parse.d.ts.map +1 -0
- package/dist/khronos/parse.js +61 -0
- package/dist/khronos/parse.js.map +1 -0
- package/dist/khronos/pipeline.d.ts +24 -0
- package/dist/khronos/pipeline.d.ts.map +1 -0
- package/dist/khronos/pipeline.js +182 -0
- package/dist/khronos/pipeline.js.map +1 -0
- package/dist/khronos/plan.d.ts +80 -0
- package/dist/khronos/plan.d.ts.map +1 -0
- package/dist/khronos/plan.js +136 -0
- package/dist/khronos/plan.js.map +1 -0
- package/dist/khronos/render.d.ts +16 -0
- package/dist/khronos/render.d.ts.map +1 -0
- package/dist/khronos/render.js +158 -0
- package/dist/khronos/render.js.map +1 -0
- package/dist/khronos/select.d.ts +15 -0
- package/dist/khronos/select.d.ts.map +1 -0
- package/dist/khronos/select.js +45 -0
- package/dist/khronos/select.js.map +1 -0
- package/dist/runner.d.ts +29 -47
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +78 -53
- package/dist/runner.js.map +1 -1
- package/dist/store/compile-store.d.ts +9 -0
- package/dist/store/compile-store.d.ts.map +1 -0
- package/dist/store/compile-store.js +38 -0
- package/dist/store/compile-store.js.map +1 -0
- package/dist/store/gi/async.d.ts +4 -0
- package/dist/store/gi/async.d.ts.map +1 -0
- package/dist/store/gi/async.js +41 -0
- package/dist/store/gi/async.js.map +1 -0
- package/dist/store/gi/callables.d.ts +36 -0
- package/dist/store/gi/callables.d.ts.map +1 -0
- package/dist/store/gi/callables.js +202 -0
- package/dist/store/gi/callables.js.map +1 -0
- package/dist/store/gi/callback.d.ts +4 -0
- package/dist/store/gi/callback.d.ts.map +1 -0
- package/dist/store/gi/callback.js +14 -0
- package/dist/store/gi/callback.js.map +1 -0
- package/dist/store/gi/class-struct-record.d.ts +9 -0
- package/dist/store/gi/class-struct-record.d.ts.map +1 -0
- package/dist/store/gi/class-struct-record.js +34 -0
- package/dist/store/gi/class-struct-record.js.map +1 -0
- package/dist/store/gi/class.d.ts +4 -0
- package/dist/store/gi/class.d.ts.map +1 -0
- package/dist/store/gi/class.js +169 -0
- package/dist/store/gi/class.js.map +1 -0
- package/dist/store/gi/companion.d.ts +4 -0
- package/dist/store/gi/companion.d.ts.map +1 -0
- package/dist/store/gi/companion.js +13 -0
- package/dist/store/gi/companion.js.map +1 -0
- package/dist/store/gi/constant.d.ts +5 -0
- package/dist/store/gi/constant.d.ts.map +1 -0
- package/dist/store/gi/constant.js +18 -0
- package/dist/store/gi/constant.js.map +1 -0
- package/dist/store/gi/constructor-props.d.ts +5 -0
- package/dist/store/gi/constructor-props.d.ts.map +1 -0
- package/dist/store/gi/constructor-props.js +64 -0
- package/dist/store/gi/constructor-props.js.map +1 -0
- package/dist/store/gi/enum.d.ts +5 -0
- package/dist/store/gi/enum.d.ts.map +1 -0
- package/dist/store/gi/enum.js +38 -0
- package/dist/store/gi/enum.js.map +1 -0
- package/dist/store/gi/function.d.ts +8 -0
- package/dist/store/gi/function.d.ts.map +1 -0
- package/dist/store/gi/function.js +87 -0
- package/dist/store/gi/function.js.map +1 -0
- package/dist/store/gi/gtype-binding.d.ts +10 -0
- package/dist/store/gi/gtype-binding.d.ts.map +1 -0
- package/dist/store/gi/gtype-binding.js +20 -0
- package/dist/store/gi/gtype-binding.js.map +1 -0
- package/dist/store/gi/interface.d.ts +4 -0
- package/dist/store/gi/interface.d.ts.map +1 -0
- package/dist/store/gi/interface.js +99 -0
- package/dist/store/gi/interface.js.map +1 -0
- package/dist/store/gi/item-comparators.d.ts +6 -0
- package/dist/store/gi/item-comparators.d.ts.map +1 -0
- package/dist/store/gi/item-comparators.js +76 -0
- package/dist/store/gi/item-comparators.js.map +1 -0
- package/dist/store/gi/method.d.ts +24 -0
- package/dist/store/gi/method.d.ts.map +1 -0
- package/dist/store/gi/method.js +279 -0
- package/dist/store/gi/method.js.map +1 -0
- package/dist/store/gi/param-marshal.d.ts +9 -0
- package/dist/store/gi/param-marshal.d.ts.map +1 -0
- package/dist/store/gi/param-marshal.js +37 -0
- package/dist/store/gi/param-marshal.js.map +1 -0
- package/dist/store/gi/pipeline.d.ts +4 -0
- package/dist/store/gi/pipeline.d.ts.map +1 -0
- package/dist/store/gi/pipeline.js +80 -0
- package/dist/store/gi/pipeline.js.map +1 -0
- package/dist/store/gi/properties.d.ts +5 -0
- package/dist/store/gi/properties.d.ts.map +1 -0
- package/dist/store/gi/properties.js +30 -0
- package/dist/store/gi/properties.js.map +1 -0
- package/dist/store/gi/property-accessor.d.ts +26 -0
- package/dist/store/gi/property-accessor.d.ts.map +1 -0
- package/dist/store/gi/property-accessor.js +132 -0
- package/dist/store/gi/property-accessor.js.map +1 -0
- package/dist/store/gi/record-constructor.d.ts +5 -0
- package/dist/store/gi/record-constructor.d.ts.map +1 -0
- package/dist/store/gi/record-constructor.js +65 -0
- package/dist/store/gi/record-constructor.js.map +1 -0
- package/dist/store/gi/record-field-accessor.d.ts +25 -0
- package/dist/store/gi/record-field-accessor.d.ts.map +1 -0
- package/dist/store/gi/record-field-accessor.js +288 -0
- package/dist/store/gi/record-field-accessor.js.map +1 -0
- package/dist/store/gi/record-layout.d.ts +14 -0
- package/dist/store/gi/record-layout.d.ts.map +1 -0
- package/dist/store/gi/record-layout.js +96 -0
- package/dist/store/gi/record-layout.js.map +1 -0
- package/dist/store/gi/record.d.ts +4 -0
- package/dist/store/gi/record.d.ts.map +1 -0
- package/dist/store/gi/record.js +59 -0
- package/dist/store/gi/record.js.map +1 -0
- package/dist/store/gi/registration.d.ts +16 -0
- package/dist/store/gi/registration.d.ts.map +1 -0
- package/dist/store/gi/registration.js +20 -0
- package/dist/store/gi/registration.js.map +1 -0
- package/dist/store/gi/return-wrap.d.ts +10 -0
- package/dist/store/gi/return-wrap.d.ts.map +1 -0
- package/dist/store/gi/return-wrap.js +46 -0
- package/dist/store/gi/return-wrap.js.map +1 -0
- package/dist/store/gi/runtime-override.d.ts +3 -0
- package/dist/store/gi/runtime-override.d.ts.map +1 -0
- package/dist/{writers → store/gi}/runtime-override.js +0 -15
- package/dist/store/gi/runtime-override.js.map +1 -0
- package/dist/store/gi/signal.d.ts +5 -0
- package/dist/store/gi/signal.d.ts.map +1 -0
- package/dist/store/gi/signal.js +233 -0
- package/dist/store/gi/signal.js.map +1 -0
- package/dist/store/gi/vtable.d.ts +4 -0
- package/dist/store/gi/vtable.d.ts.map +1 -0
- package/dist/store/gi/vtable.js +78 -0
- package/dist/store/gi/vtable.js.map +1 -0
- package/dist/store/gi-store.d.ts +9 -0
- package/dist/store/gi-store.d.ts.map +1 -0
- package/dist/store/gi-store.js +57 -0
- package/dist/store/gi-store.js.map +1 -0
- package/dist/store/jsx-store.d.ts +5 -0
- package/dist/store/jsx-store.d.ts.map +1 -0
- package/dist/store/jsx-store.js +23 -0
- package/dist/store/jsx-store.js.map +1 -0
- package/dist/store/react/built-ins.d.ts +9 -0
- package/dist/store/react/built-ins.d.ts.map +1 -0
- package/dist/store/react/built-ins.js +226 -0
- package/dist/store/react/built-ins.js.map +1 -0
- package/dist/store/react/element-components.d.ts +15 -0
- package/dist/store/react/element-components.d.ts.map +1 -0
- package/dist/store/react/element-components.js +92 -0
- package/dist/store/react/element-components.js.map +1 -0
- package/dist/store/react/element-prop-types.d.ts +19 -0
- package/dist/store/react/element-prop-types.d.ts.map +1 -0
- package/dist/store/react/element-prop-types.js +244 -0
- package/dist/store/react/element-prop-types.js.map +1 -0
- package/dist/store/react/element-props.d.ts +4 -0
- package/dist/store/react/element-props.d.ts.map +1 -0
- package/dist/store/react/element-props.js +178 -0
- package/dist/store/react/element-props.js.map +1 -0
- package/dist/store/react/gir-index.d.ts +25 -0
- package/dist/store/react/gir-index.d.ts.map +1 -0
- package/dist/store/react/gir-index.js +55 -0
- package/dist/store/react/gir-index.js.map +1 -0
- package/dist/store/react/intrinsic-elements.d.ts +26 -0
- package/dist/store/react/intrinsic-elements.d.ts.map +1 -0
- package/dist/store/react/intrinsic-elements.js +107 -0
- package/dist/store/react/intrinsic-elements.js.map +1 -0
- package/dist/store/react/jsx.d.ts +18 -0
- package/dist/store/react/jsx.d.ts.map +1 -0
- package/dist/store/react/jsx.js +203 -0
- package/dist/store/react/jsx.js.map +1 -0
- package/dist/store/react/metadata.d.ts +4 -0
- package/dist/store/react/metadata.d.ts.map +1 -0
- package/dist/store/react/metadata.js +174 -0
- package/dist/store/react/metadata.js.map +1 -0
- package/dist/store/react/pipeline.d.ts +14 -0
- package/dist/store/react/pipeline.d.ts.map +1 -0
- package/dist/store/react/pipeline.js +60 -0
- package/dist/store/react/pipeline.js.map +1 -0
- package/dist/store/react/props.d.ts +36 -0
- package/dist/store/react/props.d.ts.map +1 -0
- package/dist/store/react/props.js +133 -0
- package/dist/store/react/props.js.map +1 -0
- package/dist/store/store-fs.d.ts +41 -0
- package/dist/store/store-fs.d.ts.map +1 -0
- package/dist/store/store-fs.js +71 -0
- package/dist/store/store-fs.js.map +1 -0
- package/dist/writer/context.d.ts +16 -0
- package/dist/writer/context.d.ts.map +1 -0
- package/dist/writer/context.js +44 -0
- package/dist/writer/context.js.map +1 -0
- package/dist/writer/doc.d.ts +2 -0
- package/dist/writer/doc.d.ts.map +1 -0
- package/dist/writer/doc.js +12 -0
- package/dist/writer/doc.js.map +1 -0
- package/dist/writer/emit.d.ts +8 -0
- package/dist/writer/emit.d.ts.map +1 -0
- package/dist/writer/emit.js +21 -0
- package/dist/writer/emit.js.map +1 -0
- package/dist/writer/gtk-doc.d.ts +2 -0
- package/dist/writer/gtk-doc.d.ts.map +1 -0
- package/dist/writer/gtk-doc.js +67 -0
- package/dist/writer/gtk-doc.js.map +1 -0
- package/dist/writer/imports.d.ts +10 -0
- package/dist/writer/imports.d.ts.map +1 -0
- package/dist/writer/imports.js +50 -0
- package/dist/writer/imports.js.map +1 -0
- package/dist/writer/module.d.ts +15 -0
- package/dist/writer/module.d.ts.map +1 -0
- package/dist/writer/module.js +46 -0
- package/dist/writer/module.js.map +1 -0
- package/overrides/cairo/context.ts.ejs +1269 -0
- package/overrides/cairo/font-face.ts.ejs +151 -0
- package/overrides/cairo/font-options.ts.ejs +199 -0
- package/overrides/cairo/image-surface.ts.ejs +132 -0
- package/overrides/cairo/index.ts.ejs +22 -0
- package/overrides/cairo/matrix.ts.ejs +171 -0
- package/overrides/cairo/pattern.ts.ejs +476 -0
- package/overrides/cairo/recording-surface.ts.ejs +102 -0
- package/overrides/cairo/region.ts.ejs +237 -0
- package/overrides/cairo/scaled-font.ts.ejs +330 -0
- package/overrides/cairo/surface.ts.ejs +296 -0
- package/overrides/gdk/index.ts.ejs +2 -0
- package/overrides/gdk/rgba.ts.ejs +11 -0
- package/overrides/gobject/index.ts.ejs +29 -0
- package/overrides/gobject/object.ts.ejs +51 -0
- package/overrides/gobject/value.ts.ejs +17 -0
- package/overrides/graphene/index.ts.ejs +2 -0
- package/overrides/graphene/structs.ts.ejs +37 -0
- package/overrides/gtk/constants.ts.ejs +3 -0
- package/overrides/gtk/index.ts.ejs +2 -0
- package/package.json +15 -15
- package/src/analysis/descriptor-render.ts +407 -0
- package/src/analysis/descriptor.ts +263 -0
- package/src/analysis/inheritance.ts +242 -0
- package/src/analysis/param-structure.ts +127 -0
- package/src/analysis/ts-type.ts +88 -0
- package/src/compile.ts +152 -0
- package/src/docs/api-reference.ts +361 -0
- package/src/docs/element-page.ts +290 -0
- package/src/docs/pipeline.ts +182 -0
- package/src/docs/render.ts +191 -0
- package/src/docs/symbol-page.ts +444 -0
- package/src/fingerprint.ts +40 -29
- package/src/gir/ancestry.ts +41 -0
- package/src/gir/callback.ts +25 -22
- package/src/gir/class.ts +31 -57
- package/src/gir/enum.ts +20 -38
- package/src/gir/field.ts +21 -36
- package/src/gir/function.ts +17 -56
- package/src/gir/gir-path.ts +49 -0
- package/src/gir/libraries.ts +77 -0
- package/src/gir/library.ts +248 -0
- package/src/gir/namespace.ts +85 -80
- package/src/gir/parameter.ts +64 -93
- package/src/gir/parse.ts +43 -95
- package/src/gir/primitives.ts +23 -45
- package/src/gir/property.ts +27 -29
- package/src/gir/record.ts +53 -0
- package/src/gir/size.ts +9 -56
- package/src/gir/type-id.ts +49 -0
- package/src/gir/type-ref.ts +35 -140
- package/src/gir/type.ts +16 -0
- package/src/index.ts +20 -15
- package/src/khronos/args.ts +202 -0
- package/src/khronos/jsdoc.ts +76 -0
- package/src/khronos/model.ts +166 -0
- package/src/khronos/modules.ts +75 -0
- package/src/khronos/parse.ts +66 -0
- package/src/khronos/pipeline.ts +234 -0
- package/src/khronos/plan.ts +191 -0
- package/src/khronos/registry/LICENSE +202 -0
- package/src/khronos/registry/gl.xml +47748 -0
- package/src/khronos/render.ts +193 -0
- package/src/khronos/select.ts +67 -0
- package/src/runner.ts +112 -75
- package/src/store/compile-store.ts +49 -0
- package/src/store/gi/async.ts +42 -0
- package/src/store/gi/callables.ts +309 -0
- package/src/store/gi/callback.ts +15 -0
- package/src/store/gi/class-struct-record.ts +40 -0
- package/src/store/gi/class.ts +212 -0
- package/src/store/gi/companion.ts +13 -0
- package/src/store/gi/constant.ts +24 -0
- package/src/store/gi/constructor-props.ts +82 -0
- package/src/store/gi/enum.ts +49 -0
- package/src/store/gi/function.ts +107 -0
- package/src/store/gi/gtype-binding.ts +33 -0
- package/src/store/gi/interface.ts +157 -0
- package/src/store/gi/item-comparators.ts +90 -0
- package/src/store/gi/method.ts +417 -0
- package/src/store/gi/param-marshal.ts +48 -0
- package/src/store/gi/pipeline.ts +85 -0
- package/src/store/gi/properties.ts +39 -0
- package/src/store/gi/property-accessor.ts +194 -0
- package/src/store/gi/record-constructor.ts +87 -0
- package/src/store/gi/record-field-accessor.ts +394 -0
- package/src/store/gi/record-layout.ts +134 -0
- package/src/store/gi/record.ts +66 -0
- package/src/store/gi/registration.ts +38 -0
- package/src/store/gi/return-wrap.ts +52 -0
- package/src/store/gi/runtime-override.ts +36 -0
- package/src/store/gi/signal.ts +310 -0
- package/src/store/gi/vtable.ts +99 -0
- package/src/store/gi-store.ts +79 -0
- package/src/store/jsx-store.ts +27 -0
- package/src/store/react/built-ins.ts +260 -0
- package/src/store/react/element-components.ts +138 -0
- package/src/store/react/element-prop-types.ts +280 -0
- package/src/store/react/element-props.ts +204 -0
- package/src/store/react/gir-index.ts +85 -0
- package/src/store/react/intrinsic-elements.ts +161 -0
- package/src/store/react/jsx.ts +294 -0
- package/src/store/react/metadata.ts +197 -0
- package/src/store/react/pipeline.ts +90 -0
- package/src/store/react/props.ts +197 -0
- package/src/store/store-fs.ts +112 -0
- package/src/writer/context.ts +48 -0
- package/src/writer/doc.ts +11 -0
- package/src/writer/emit.ts +26 -0
- package/src/writer/gtk-doc.ts +74 -0
- package/src/writer/imports.ts +59 -0
- package/src/writer/module.ts +45 -0
- package/LICENSE +0 -373
- package/dist/dsl/context.d.ts +0 -104
- package/dist/dsl/context.d.ts.map +0 -1
- package/dist/dsl/context.js +0 -140
- package/dist/dsl/context.js.map +0 -1
- package/dist/dsl/emit.d.ts +0 -28
- package/dist/dsl/emit.d.ts.map +0 -1
- package/dist/dsl/emit.js +0 -41
- package/dist/dsl/emit.js.map +0 -1
- package/dist/dsl/identifier.d.ts +0 -28
- package/dist/dsl/identifier.d.ts.map +0 -1
- package/dist/dsl/identifier.js +0 -45
- package/dist/dsl/identifier.js.map +0 -1
- package/dist/dsl/imports.d.ts +0 -58
- package/dist/dsl/imports.d.ts.map +0 -1
- package/dist/dsl/imports.js +0 -107
- package/dist/dsl/imports.js.map +0 -1
- package/dist/dsl/module.d.ts +0 -53
- package/dist/dsl/module.d.ts.map +0 -1
- package/dist/dsl/module.js +0 -76
- package/dist/dsl/module.js.map +0 -1
- package/dist/ffi/pipeline.d.ts +0 -19
- package/dist/ffi/pipeline.d.ts.map +0 -1
- package/dist/ffi/pipeline.js +0 -107
- package/dist/ffi/pipeline.js.map +0 -1
- package/dist/gi-store.d.ts +0 -34
- package/dist/gi-store.d.ts.map +0 -1
- package/dist/gi-store.js +0 -154
- package/dist/gi-store.js.map +0 -1
- package/dist/gir/boxed.d.ts +0 -66
- package/dist/gir/boxed.d.ts.map +0 -1
- package/dist/gir/boxed.js +0 -49
- package/dist/gir/boxed.js.map +0 -1
- package/dist/gir/qualified-name.d.ts +0 -37
- package/dist/gir/qualified-name.d.ts.map +0 -1
- package/dist/gir/qualified-name.js +0 -39
- package/dist/gir/qualified-name.js.map +0 -1
- package/dist/gir/qualify.d.ts +0 -32
- package/dist/gir/qualify.d.ts.map +0 -1
- package/dist/gir/qualify.js +0 -60
- package/dist/gir/qualify.js.map +0 -1
- package/dist/gir/repository.d.ts +0 -82
- package/dist/gir/repository.d.ts.map +0 -1
- package/dist/gir/repository.js +0 -122
- package/dist/gir/repository.js.map +0 -1
- package/dist/gir/signal.d.ts +0 -22
- package/dist/gir/signal.d.ts.map +0 -1
- package/dist/gir/signal.js +0 -20
- package/dist/gir/signal.js.map +0 -1
- package/dist/jsx-store.d.ts +0 -22
- package/dist/jsx-store.d.ts.map +0 -1
- package/dist/jsx-store.js +0 -40
- package/dist/jsx-store.js.map +0 -1
- package/dist/react/compounds-meta.d.ts +0 -18
- package/dist/react/compounds-meta.d.ts.map +0 -1
- package/dist/react/compounds-meta.js +0 -93
- package/dist/react/compounds-meta.js.map +0 -1
- package/dist/react/compounds.d.ts +0 -27
- package/dist/react/compounds.d.ts.map +0 -1
- package/dist/react/compounds.js +0 -164
- package/dist/react/compounds.js.map +0 -1
- package/dist/react/internal.d.ts +0 -14
- package/dist/react/internal.d.ts.map +0 -1
- package/dist/react/internal.js +0 -79
- package/dist/react/internal.js.map +0 -1
- package/dist/react/jsx.d.ts +0 -22
- package/dist/react/jsx.d.ts.map +0 -1
- package/dist/react/jsx.js +0 -134
- package/dist/react/jsx.js.map +0 -1
- package/dist/react/pipeline.d.ts +0 -13
- package/dist/react/pipeline.d.ts.map +0 -1
- package/dist/react/pipeline.js +0 -25
- package/dist/react/pipeline.js.map +0 -1
- package/dist/react/props.d.ts +0 -38
- package/dist/react/props.d.ts.map +0 -1
- package/dist/react/props.js +0 -231
- package/dist/react/props.js.map +0 -1
- package/dist/react/slot-props.d.ts +0 -10
- package/dist/react/slot-props.d.ts.map +0 -1
- package/dist/react/slot-props.js +0 -56
- package/dist/react/slot-props.js.map +0 -1
- package/dist/react/widgets.d.ts +0 -83
- package/dist/react/widgets.d.ts.map +0 -1
- package/dist/react/widgets.js +0 -152
- package/dist/react/widgets.js.map +0 -1
- package/dist/store-fs.d.ts +0 -109
- package/dist/store-fs.d.ts.map +0 -1
- package/dist/store-fs.js +0 -98
- package/dist/store-fs.js.map +0 -1
- package/dist/transpile.d.ts +0 -32
- package/dist/transpile.d.ts.map +0 -1
- package/dist/transpile.js +0 -63
- package/dist/transpile.js.map +0 -1
- package/dist/typecheck-store.d.ts +0 -41
- package/dist/typecheck-store.d.ts.map +0 -1
- package/dist/typecheck-store.js +0 -102
- package/dist/typecheck-store.js.map +0 -1
- package/dist/writers/alias.d.ts +0 -13
- package/dist/writers/alias.d.ts.map +0 -1
- package/dist/writers/alias.js +0 -17
- package/dist/writers/alias.js.map +0 -1
- package/dist/writers/async.d.ts +0 -22
- package/dist/writers/async.d.ts.map +0 -1
- package/dist/writers/async.js +0 -48
- package/dist/writers/async.js.map +0 -1
- package/dist/writers/boxed-constructor.d.ts +0 -26
- package/dist/writers/boxed-constructor.d.ts.map +0 -1
- package/dist/writers/boxed-constructor.js +0 -85
- package/dist/writers/boxed-constructor.js.map +0 -1
- package/dist/writers/boxed-field-accessor.d.ts +0 -18
- package/dist/writers/boxed-field-accessor.d.ts.map +0 -1
- package/dist/writers/boxed-field-accessor.js +0 -260
- package/dist/writers/boxed-field-accessor.js.map +0 -1
- package/dist/writers/boxed-layout.d.ts +0 -27
- package/dist/writers/boxed-layout.d.ts.map +0 -1
- package/dist/writers/boxed-layout.js +0 -128
- package/dist/writers/boxed-layout.js.map +0 -1
- package/dist/writers/boxed.d.ts +0 -20
- package/dist/writers/boxed.d.ts.map +0 -1
- package/dist/writers/boxed.js +0 -71
- package/dist/writers/boxed.js.map +0 -1
- package/dist/writers/callables.d.ts +0 -124
- package/dist/writers/callables.d.ts.map +0 -1
- package/dist/writers/callables.js +0 -283
- package/dist/writers/callables.js.map +0 -1
- package/dist/writers/callback.d.ts +0 -16
- package/dist/writers/callback.d.ts.map +0 -1
- package/dist/writers/callback.js +0 -38
- package/dist/writers/callback.js.map +0 -1
- package/dist/writers/class-struct-record.d.ts +0 -31
- package/dist/writers/class-struct-record.d.ts.map +0 -1
- package/dist/writers/class-struct-record.js +0 -67
- package/dist/writers/class-struct-record.js.map +0 -1
- package/dist/writers/class-struct.d.ts +0 -22
- package/dist/writers/class-struct.d.ts.map +0 -1
- package/dist/writers/class-struct.js +0 -85
- package/dist/writers/class-struct.js.map +0 -1
- package/dist/writers/class.d.ts +0 -16
- package/dist/writers/class.d.ts.map +0 -1
- package/dist/writers/class.js +0 -307
- package/dist/writers/class.js.map +0 -1
- package/dist/writers/constant.d.ts +0 -15
- package/dist/writers/constant.d.ts.map +0 -1
- package/dist/writers/constant.js +0 -23
- package/dist/writers/constant.js.map +0 -1
- package/dist/writers/constants.d.ts +0 -15
- package/dist/writers/constants.d.ts.map +0 -1
- package/dist/writers/constants.js +0 -23
- package/dist/writers/constants.js.map +0 -1
- package/dist/writers/constructor-props.d.ts +0 -32
- package/dist/writers/constructor-props.d.ts.map +0 -1
- package/dist/writers/constructor-props.js +0 -110
- package/dist/writers/constructor-props.js.map +0 -1
- package/dist/writers/enum.d.ts +0 -21
- package/dist/writers/enum.d.ts.map +0 -1
- package/dist/writers/enum.js +0 -48
- package/dist/writers/enum.js.map +0 -1
- package/dist/writers/function.d.ts +0 -40
- package/dist/writers/function.d.ts.map +0 -1
- package/dist/writers/function.js +0 -127
- package/dist/writers/function.js.map +0 -1
- package/dist/writers/gtype-binding.d.ts +0 -19
- package/dist/writers/gtype-binding.d.ts.map +0 -1
- package/dist/writers/gtype-binding.js +0 -40
- package/dist/writers/gtype-binding.js.map +0 -1
- package/dist/writers/inheritance.d.ts +0 -48
- package/dist/writers/inheritance.d.ts.map +0 -1
- package/dist/writers/inheritance.js +0 -90
- package/dist/writers/inheritance.js.map +0 -1
- package/dist/writers/interface.d.ts +0 -16
- package/dist/writers/interface.d.ts.map +0 -1
- package/dist/writers/interface.js +0 -155
- package/dist/writers/interface.js.map +0 -1
- package/dist/writers/method.d.ts +0 -150
- package/dist/writers/method.d.ts.map +0 -1
- package/dist/writers/method.js +0 -510
- package/dist/writers/method.js.map +0 -1
- package/dist/writers/param-classify.d.ts +0 -93
- package/dist/writers/param-classify.d.ts.map +0 -1
- package/dist/writers/param-classify.js +0 -163
- package/dist/writers/param-classify.js.map +0 -1
- package/dist/writers/property-accessor.d.ts +0 -19
- package/dist/writers/property-accessor.d.ts.map +0 -1
- package/dist/writers/property-accessor.js +0 -117
- package/dist/writers/property-accessor.js.map +0 -1
- package/dist/writers/registration.d.ts +0 -27
- package/dist/writers/registration.d.ts.map +0 -1
- package/dist/writers/registration.js +0 -30
- package/dist/writers/registration.js.map +0 -1
- package/dist/writers/return-wrap.d.ts +0 -39
- package/dist/writers/return-wrap.d.ts.map +0 -1
- package/dist/writers/return-wrap.js +0 -152
- package/dist/writers/return-wrap.js.map +0 -1
- package/dist/writers/runtime-override.d.ts +0 -18
- package/dist/writers/runtime-override.d.ts.map +0 -1
- package/dist/writers/runtime-override.js.map +0 -1
- package/dist/writers/signal.d.ts +0 -21
- package/dist/writers/signal.d.ts.map +0 -1
- package/dist/writers/signal.js +0 -260
- package/dist/writers/signal.js.map +0 -1
- package/dist/writers/ts-type.d.ts +0 -50
- package/dist/writers/ts-type.d.ts.map +0 -1
- package/dist/writers/ts-type.js +0 -75
- package/dist/writers/ts-type.js.map +0 -1
- package/dist/writers/types-ts.d.ts +0 -27
- package/dist/writers/types-ts.d.ts.map +0 -1
- package/dist/writers/types-ts.js +0 -97
- package/dist/writers/types-ts.js.map +0 -1
- package/dist/writers/value.d.ts +0 -89
- package/dist/writers/value.d.ts.map +0 -1
- package/dist/writers/value.js +0 -402
- package/dist/writers/value.js.map +0 -1
- package/src/dsl/context.ts +0 -146
- package/src/dsl/emit.ts +0 -42
- package/src/dsl/identifier.ts +0 -52
- package/src/dsl/imports.ts +0 -109
- package/src/dsl/module.ts +0 -75
- package/src/ffi/pipeline.ts +0 -113
- package/src/gi-store.ts +0 -199
- package/src/gir/boxed.ts +0 -94
- package/src/gir/qualified-name.ts +0 -55
- package/src/gir/qualify.ts +0 -64
- package/src/gir/repository.ts +0 -149
- package/src/gir/signal.ts +0 -36
- package/src/jsx-store.ts +0 -53
- package/src/react/compounds-meta.ts +0 -99
- package/src/react/compounds.ts +0 -204
- package/src/react/internal.ts +0 -91
- package/src/react/jsx.ts +0 -155
- package/src/react/pipeline.ts +0 -29
- package/src/react/props.ts +0 -307
- package/src/react/slot-props.ts +0 -57
- package/src/react/widgets.ts +0 -185
- package/src/store-fs.ts +0 -157
- package/src/transpile.ts +0 -80
- package/src/typecheck-store.ts +0 -136
- package/src/writers/alias.ts +0 -19
- package/src/writers/async.ts +0 -44
- package/src/writers/boxed-constructor.ts +0 -105
- package/src/writers/boxed-field-accessor.ts +0 -306
- package/src/writers/boxed-layout.ts +0 -166
- package/src/writers/boxed.ts +0 -77
- package/src/writers/callables.ts +0 -339
- package/src/writers/callback.ts +0 -40
- package/src/writers/class-struct-record.ts +0 -75
- package/src/writers/class-struct.ts +0 -96
- package/src/writers/class.ts +0 -384
- package/src/writers/constant.ts +0 -29
- package/src/writers/constructor-props.ts +0 -130
- package/src/writers/enum.ts +0 -53
- package/src/writers/function.ts +0 -136
- package/src/writers/gtype-binding.ts +0 -48
- package/src/writers/inheritance.ts +0 -104
- package/src/writers/interface.ts +0 -168
- package/src/writers/method.ts +0 -678
- package/src/writers/param-classify.ts +0 -178
- package/src/writers/property-accessor.ts +0 -139
- package/src/writers/registration.ts +0 -42
- package/src/writers/return-wrap.ts +0 -180
- package/src/writers/runtime-override.ts +0 -59
- package/src/writers/signal.ts +0 -318
- package/src/writers/ts-type.ts +0 -115
- package/src/writers/value.ts +0 -485
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { buildManifest, subpathExport, writeStore } from "./store-fs.js";
|
|
2
|
+
export const writeJsxStore = (options, namespaces, metadata) => {
|
|
3
|
+
const exportsMap = {
|
|
4
|
+
"./metadata": subpathExport("metadata"),
|
|
5
|
+
};
|
|
6
|
+
const files = [{ fileName: "metadata.ts", source: metadata }];
|
|
7
|
+
for (const { directory, source } of namespaces) {
|
|
8
|
+
files.push({ fileName: `${directory}/${directory}.tsx`, source });
|
|
9
|
+
exportsMap[`./${directory}`] = subpathExport(`${directory}/${directory}`);
|
|
10
|
+
}
|
|
11
|
+
writeStore({
|
|
12
|
+
storeDir: options.storeDir,
|
|
13
|
+
linkDir: options.linkDir,
|
|
14
|
+
files,
|
|
15
|
+
manifest: buildManifest({
|
|
16
|
+
name: "@gtkx/jsx",
|
|
17
|
+
version: options.version,
|
|
18
|
+
exports: exportsMap,
|
|
19
|
+
peerDependencies: { "@gtkx/gi": "*", "@gtkx/react": "*", react: "*" },
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=jsx-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-store.js","sourceRoot":"","sources":["../../src/store/jsx-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAqB,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI5F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAwB,EAAE,UAA8B,EAAE,QAAgB,EAAQ,EAAE;IAC9G,MAAM,UAAU,GAA4B;QACxC,YAAY,EAAE,aAAa,CAAC,UAAU,CAAC;KAC1C,CAAC;IACF,MAAM,KAAK,GAAG,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9D,KAAK,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,UAAU,EAAE,CAAC;QAC7C,KAAK,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,GAAG,SAAS,IAAI,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAClE,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC,GAAG,aAAa,CAAC,GAAG,SAAS,IAAI,SAAS,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,UAAU,CAAC;QACP,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,KAAK;QACL,QAAQ,EAAE,aAAa,CAAC;YACpB,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,OAAO,EAAE,UAAU;YACnB,gBAAgB,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;SACxE,CAAC;KACL,CAAC,CAAC;AACP,CAAC,CAAC","sourcesContent":["import type { JsxNamespaceFile } from \"./react/pipeline.js\";\nimport { buildManifest, type StoreOptions, subpathExport, writeStore } from \"./store-fs.js\";\n\nexport type JsxStoreOptions = StoreOptions;\n\nexport const writeJsxStore = (options: JsxStoreOptions, namespaces: JsxNamespaceFile[], metadata: string): void => {\n const exportsMap: Record<string, unknown> = {\n \"./metadata\": subpathExport(\"metadata\"),\n };\n const files = [{ fileName: \"metadata.ts\", source: metadata }];\n for (const { directory, source } of namespaces) {\n files.push({ fileName: `${directory}/${directory}.tsx`, source });\n exportsMap[`./${directory}`] = subpathExport(`${directory}/${directory}`);\n }\n\n writeStore({\n storeDir: options.storeDir,\n linkDir: options.linkDir,\n files,\n manifest: buildManifest({\n name: \"@gtkx/jsx\",\n version: options.version,\n exports: exportsMap,\n peerDependencies: { \"@gtkx/gi\": \"*\", \"@gtkx/react\": \"*\", react: \"*\" },\n }),\n });\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ElementProp } from "@gtkx/config";
|
|
2
|
+
export type ElementComponent = {
|
|
3
|
+
types: string[];
|
|
4
|
+
module: string;
|
|
5
|
+
export: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const BUILT_IN_ELEMENT_COMPONENTS: ElementComponent[];
|
|
8
|
+
export declare const BUILT_IN_ELEMENT_PROPS: Record<string, ElementProp[]>;
|
|
9
|
+
//# sourceMappingURL=built-ins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-ins.d.ts","sourceRoot":"","sources":["../../../src/store/react/built-ins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuB,WAAW,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AA6DnF,eAAO,MAAM,2BAA2B,EAAE,gBAAgB,EAIzD,CAAC;AAkFF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CA8G/D,CAAC"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
const container = (prop, child, methods) => ({
|
|
2
|
+
kind: "container",
|
|
3
|
+
prop,
|
|
4
|
+
child,
|
|
5
|
+
...methods,
|
|
6
|
+
});
|
|
7
|
+
const nullSetter = (method) => ({ method, args: [{ literal: null }] });
|
|
8
|
+
const singleChild = () => container("children", "GtkWidget", { append: "setChild", remove: nullSetter("setChild") });
|
|
9
|
+
const singleContent = () => container("children", "GtkWidget", { append: "setContent", remove: nullSetter("setContent") });
|
|
10
|
+
const boxChildren = () => container("children", "GtkWidget", {
|
|
11
|
+
append: "append",
|
|
12
|
+
remove: "remove",
|
|
13
|
+
insert: { method: "insertChildAfter", args: ["child", "sibling"] },
|
|
14
|
+
reorder: { method: "reorderChildAfter", args: ["child", "sibling"] },
|
|
15
|
+
});
|
|
16
|
+
const indexedChildren = (append, reorder) => container("children", "GtkWidget", {
|
|
17
|
+
append,
|
|
18
|
+
remove: "remove",
|
|
19
|
+
insert: { method: "insert", args: ["child", "index"] },
|
|
20
|
+
...(reorder !== undefined ? { reorder: { method: reorder, args: ["child", "index"] } } : {}),
|
|
21
|
+
});
|
|
22
|
+
const addRemoveChildren = () => container("children", "GtkWidget", { append: "add", remove: "remove" });
|
|
23
|
+
const prefixSuffixProps = () => [
|
|
24
|
+
container("prefix", "GtkWidget", { append: "addPrefix" }),
|
|
25
|
+
container("suffix", "GtkWidget", { append: "addSuffix" }),
|
|
26
|
+
];
|
|
27
|
+
const packProps = () => [
|
|
28
|
+
container("start", "GtkWidget", { append: "packStart" }),
|
|
29
|
+
container("end", "GtkWidget", { append: "packEnd" }),
|
|
30
|
+
];
|
|
31
|
+
const autowrapProp = (wrapper) => container("children", "GtkWidget", {
|
|
32
|
+
append: "append",
|
|
33
|
+
remove: "remove",
|
|
34
|
+
insert: { method: "insert", args: ["child", "index"] },
|
|
35
|
+
autowrap: wrapper,
|
|
36
|
+
});
|
|
37
|
+
const forEach = (types, build) => Object.fromEntries(types.map((type) => [type, build()]));
|
|
38
|
+
export const BUILT_IN_ELEMENT_COMPONENTS = [
|
|
39
|
+
{ types: ["GtkApplication"], module: "@gtkx/react/internal", export: "createApplicationComponent" },
|
|
40
|
+
{ types: ["GtkWindow"], module: "@gtkx/react/internal", export: "createWindowComponent" },
|
|
41
|
+
{ types: ["AdwDialog"], module: "@gtkx/react/adw", export: "createDialogComponent" },
|
|
42
|
+
];
|
|
43
|
+
const CONTROLLER_METHODS = { append: "addController", remove: "removeController" };
|
|
44
|
+
const SHORTCUT_METHODS = { append: "addShortcut", remove: "removeShortcut" };
|
|
45
|
+
const ACTION_METHODS = {
|
|
46
|
+
append: "addAction",
|
|
47
|
+
remove: { method: "removeAction", args: [{ prop: "name" }] },
|
|
48
|
+
};
|
|
49
|
+
const ACTION_GROUP_METHODS = {
|
|
50
|
+
append: { method: "insertActionGroup", args: [{ prop: "prefix" }, "child"] },
|
|
51
|
+
remove: { method: "insertActionGroup", args: [{ prop: "prefix" }, { literal: null }] },
|
|
52
|
+
};
|
|
53
|
+
const SINGLE_CHILD_TYPES = [
|
|
54
|
+
"AdwBin",
|
|
55
|
+
"AdwBreakpointBin",
|
|
56
|
+
"AdwClamp",
|
|
57
|
+
"AdwClampScrollable",
|
|
58
|
+
"AdwDialog",
|
|
59
|
+
"AdwNavigationPage",
|
|
60
|
+
"AdwSplitButton",
|
|
61
|
+
"AdwStatusPage",
|
|
62
|
+
"AdwTabOverview",
|
|
63
|
+
"AdwToastOverlay",
|
|
64
|
+
"AdwToggle",
|
|
65
|
+
"GtkAspectFrame",
|
|
66
|
+
"GtkButton",
|
|
67
|
+
"GtkCheckButton",
|
|
68
|
+
"GtkComboBox",
|
|
69
|
+
"GtkDragIcon",
|
|
70
|
+
"GtkExpander",
|
|
71
|
+
"GtkFlowBoxChild",
|
|
72
|
+
"GtkFrame",
|
|
73
|
+
"GtkGraphicsOffload",
|
|
74
|
+
"GtkListBoxRow",
|
|
75
|
+
"GtkListHeader",
|
|
76
|
+
"GtkListItem",
|
|
77
|
+
"GtkMenuButton",
|
|
78
|
+
"GtkOverlay",
|
|
79
|
+
"GtkPopover",
|
|
80
|
+
"GtkPopoverBin",
|
|
81
|
+
"GtkRevealer",
|
|
82
|
+
"GtkScrolledWindow",
|
|
83
|
+
"GtkSearchBar",
|
|
84
|
+
"GtkTreeExpander",
|
|
85
|
+
"GtkViewport",
|
|
86
|
+
"GtkWindow",
|
|
87
|
+
"GtkWindowHandle",
|
|
88
|
+
];
|
|
89
|
+
const SINGLE_CONTENT_TYPES = [
|
|
90
|
+
"AdwApplicationWindow",
|
|
91
|
+
"AdwBottomSheet",
|
|
92
|
+
"AdwFlap",
|
|
93
|
+
"AdwNavigationSplitView",
|
|
94
|
+
"AdwOverlaySplitView",
|
|
95
|
+
"AdwWindow",
|
|
96
|
+
];
|
|
97
|
+
const BOX_TYPES = ["AdwLeaflet", "AdwWrapBox", "GtkBox"];
|
|
98
|
+
const ADD_REMOVE_TYPES = [
|
|
99
|
+
"AdwNavigationView",
|
|
100
|
+
"AdwPreferencesDialog",
|
|
101
|
+
"AdwPreferencesGroup",
|
|
102
|
+
"AdwPreferencesWindow",
|
|
103
|
+
"AdwSqueezer",
|
|
104
|
+
];
|
|
105
|
+
const withBreakpoints = (props) => {
|
|
106
|
+
for (const type of ["AdwApplicationWindow", "AdwWindow", "AdwDialog"]) {
|
|
107
|
+
props[type] = [...(props[type] ?? []), container("breakpoints", "AdwBreakpoint", { append: "addBreakpoint" })];
|
|
108
|
+
}
|
|
109
|
+
props.AdwBreakpointBin = [
|
|
110
|
+
...(props.AdwBreakpointBin ?? []),
|
|
111
|
+
container("breakpoints", "AdwBreakpoint", { append: "addBreakpoint", remove: "removeBreakpoint" }),
|
|
112
|
+
];
|
|
113
|
+
return props;
|
|
114
|
+
};
|
|
115
|
+
export const BUILT_IN_ELEMENT_PROPS = withBreakpoints({
|
|
116
|
+
...forEach(SINGLE_CHILD_TYPES, () => [singleChild()]),
|
|
117
|
+
...forEach(SINGLE_CONTENT_TYPES, () => [singleContent()]),
|
|
118
|
+
...forEach(BOX_TYPES, () => [boxChildren()]),
|
|
119
|
+
...forEach(ADD_REMOVE_TYPES, () => [addRemoveChildren()]),
|
|
120
|
+
GtkWidget: [
|
|
121
|
+
container("controllers", "GtkEventController", CONTROLLER_METHODS),
|
|
122
|
+
container("layoutManager", "GtkLayoutManager", {
|
|
123
|
+
append: "setLayoutManager",
|
|
124
|
+
remove: { method: "setLayoutManager", args: [{ literal: null }] },
|
|
125
|
+
}),
|
|
126
|
+
container("actionGroups", "GActionGroup", ACTION_GROUP_METHODS),
|
|
127
|
+
],
|
|
128
|
+
GtkShortcutController: [container("shortcuts", "GtkShortcut", SHORTCUT_METHODS)],
|
|
129
|
+
GtkTextView: [
|
|
130
|
+
container("children", "GtkTextBuffer", {
|
|
131
|
+
append: "setBuffer",
|
|
132
|
+
remove: { method: "setBuffer", args: [{ literal: null }] },
|
|
133
|
+
}),
|
|
134
|
+
container("children", "GtkWidget", { remove: "remove" }),
|
|
135
|
+
],
|
|
136
|
+
GActionMap: [container("actions", "GAction", ACTION_METHODS)],
|
|
137
|
+
GtkColumnView: [
|
|
138
|
+
container("children", "GtkColumnViewColumn", {
|
|
139
|
+
append: "appendColumn",
|
|
140
|
+
remove: "removeColumn",
|
|
141
|
+
insert: { method: "insertColumn", args: ["index", "child"] },
|
|
142
|
+
}),
|
|
143
|
+
],
|
|
144
|
+
AdwShortcutsDialog: [container("children", "AdwShortcutsSection", { append: "add" })],
|
|
145
|
+
AdwShortcutsSection: [container("children", "AdwShortcutsItem", { append: "add" })],
|
|
146
|
+
AdwActionRow: prefixSuffixProps(),
|
|
147
|
+
AdwEntryRow: prefixSuffixProps(),
|
|
148
|
+
AdwExpanderRow: [
|
|
149
|
+
...prefixSuffixProps(),
|
|
150
|
+
container("rows", "GtkWidget", { append: "addRow" }),
|
|
151
|
+
container("actions", "GtkWidget", { append: "addAction" }),
|
|
152
|
+
],
|
|
153
|
+
AdwHeaderBar: packProps(),
|
|
154
|
+
GtkHeaderBar: packProps(),
|
|
155
|
+
GtkActionBar: packProps(),
|
|
156
|
+
AdwToolbarView: [
|
|
157
|
+
container("topBar", "GtkWidget", { append: "addTopBar" }),
|
|
158
|
+
container("bottomBar", "GtkWidget", { append: "addBottomBar" }),
|
|
159
|
+
singleContent(),
|
|
160
|
+
],
|
|
161
|
+
AdwCarousel: [indexedChildren("append", "reorder")],
|
|
162
|
+
AdwPreferencesPage: [indexedChildren("add")],
|
|
163
|
+
AdwTabView: [
|
|
164
|
+
container("children", "GtkWidget", {
|
|
165
|
+
append: "append",
|
|
166
|
+
insert: { method: "insert", args: ["child", "index"] },
|
|
167
|
+
reorder: { method: "reorderPage", args: ["adopted", "index"] },
|
|
168
|
+
remove: { method: "closePage", args: ["adopted"] },
|
|
169
|
+
adopt: "getPage",
|
|
170
|
+
}),
|
|
171
|
+
],
|
|
172
|
+
GtkListBox: [autowrapProp("GtkListBoxRow")],
|
|
173
|
+
GtkFlowBox: [autowrapProp("GtkFlowBoxChild")],
|
|
174
|
+
GtkStack: [
|
|
175
|
+
container("children", "GtkWidget", { append: "addChild", remove: "remove", adopt: true }),
|
|
176
|
+
{ kind: "lazy", prop: "visibleChildName", lookup: "getChildByName" },
|
|
177
|
+
],
|
|
178
|
+
AdwViewStack: [
|
|
179
|
+
container("children", "GtkWidget", { append: "add", remove: "remove", adopt: true }),
|
|
180
|
+
{ kind: "lazy", prop: "visibleChildName", lookup: "getChildByName" },
|
|
181
|
+
],
|
|
182
|
+
GtkNotebook: [
|
|
183
|
+
container("children", "GtkWidget", {
|
|
184
|
+
append: { method: "appendPage", args: ["child", { literal: null }] },
|
|
185
|
+
insert: { method: "insertPage", args: ["child", { literal: null }, "index"] },
|
|
186
|
+
reorder: { method: "reorderChild", args: ["child", "index"] },
|
|
187
|
+
remove: "detachTab",
|
|
188
|
+
adopt: "getPage",
|
|
189
|
+
}),
|
|
190
|
+
],
|
|
191
|
+
AdwToggleGroup: [
|
|
192
|
+
container("children", "AdwToggle", { append: "add", remove: "remove" }),
|
|
193
|
+
{ kind: "lazy", prop: "activeName", lookup: "getToggleByName" },
|
|
194
|
+
{ kind: "lazy", prop: "active" },
|
|
195
|
+
],
|
|
196
|
+
GtkDropTarget: [{ kind: "value", prop: "types", call: "setGtypes" }],
|
|
197
|
+
GtkDrawingArea: [{ kind: "value", prop: "drawFunc", call: "setDrawFunc", after: "queueDraw" }],
|
|
198
|
+
GtkDragSource: [{ kind: "value", prop: "icon", call: "setIcon" }],
|
|
199
|
+
GtkEditable: [{ kind: "controlled-text", prop: "text" }],
|
|
200
|
+
GtkScale: [{ kind: "list", prop: "marks", add: "addMark", clear: "clearMarks" }],
|
|
201
|
+
GtkCalendar: [{ kind: "list", prop: "markedDays", add: "markDay", clear: "clearMarks" }],
|
|
202
|
+
GtkLevelBar: [{ kind: "list", prop: "offsets", add: "addOffsetValue", remove: "removeOffsetValue" }],
|
|
203
|
+
GtkApplication: [
|
|
204
|
+
container("children", "GtkWindow", { append: "addWindow", remove: "removeWindow" }),
|
|
205
|
+
{
|
|
206
|
+
kind: "list",
|
|
207
|
+
prop: "actionAccels",
|
|
208
|
+
add: "setAccelsForAction",
|
|
209
|
+
remove: { method: "setAccelsForAction", args: [{ field: "detailedActionName" }, { literal: [] }] },
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
GtkAboutDialog: [{ kind: "list", prop: "creditSections", add: "addCreditSection" }],
|
|
213
|
+
AdwAlertDialog: [
|
|
214
|
+
{
|
|
215
|
+
kind: "list",
|
|
216
|
+
prop: "responses",
|
|
217
|
+
add: [
|
|
218
|
+
"addResponse",
|
|
219
|
+
{ method: "setResponseAppearance", args: [{ field: "id" }, { field: "appearance", or: 0 }] },
|
|
220
|
+
{ method: "setResponseEnabled", args: [{ field: "id" }, { field: "enabled", or: true }] },
|
|
221
|
+
],
|
|
222
|
+
remove: "removeResponse",
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
});
|
|
226
|
+
//# sourceMappingURL=built-ins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-ins.js","sourceRoot":"","sources":["../../../src/store/react/built-ins.ts"],"names":[],"mappings":"AAKA,MAAM,SAAS,GAAG,CACd,IAAY,EACZ,KAAa,EACb,OAAuD,EAC5C,EAAE,CAAC,CAAC;IACf,IAAI,EAAE,WAAW;IACjB,IAAI;IACJ,KAAK;IACL,GAAG,OAAO;CACb,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,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EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE;SACrG;KACJ;IACD,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,EAAE,kBAAkB,EAAE,CAAC;IACnF,cAAc,EAAE;QACZ;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,WAAW;YACjB,GAAG,EAAE;gBACD,aAAa;gBACb,EAAE,MAAM,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE;gBAC5F,EAAE,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;aAC5F;YACD,MAAM,EAAE,gBAAgB;SAC3B;KACJ;CACJ,CAAC,CAAC","sourcesContent":["import type { Call, ContainerProp, ElementProp } from \"@gtkx/config\";\n\nexport type ElementComponent = { types: string[]; module: string; export: string };\ntype ManyMethods = Pick<ContainerProp, \"append\" | \"remove\">;\n\nconst container = (\n prop: string,\n child: string,\n methods: Omit<ContainerProp, \"kind\" | \"prop\" | \"child\">,\n): ElementProp => ({\n kind: \"container\",\n prop,\n child,\n ...methods,\n});\n\nconst nullSetter = (method: string): Call => ({ method, args: [{ literal: null }] });\n\nconst singleChild = (): ElementProp =>\n container(\"children\", \"GtkWidget\", { append: \"setChild\", remove: nullSetter(\"setChild\") });\n\nconst singleContent = (): ElementProp =>\n container(\"children\", \"GtkWidget\", { append: \"setContent\", remove: nullSetter(\"setContent\") });\n\nconst boxChildren = (): ElementProp =>\n container(\"children\", \"GtkWidget\", {\n append: \"append\",\n remove: \"remove\",\n insert: { method: \"insertChildAfter\", args: [\"child\", \"sibling\"] },\n reorder: { method: \"reorderChildAfter\", args: [\"child\", \"sibling\"] },\n });\n\nconst indexedChildren = (append: string, reorder?: string): ElementProp =>\n container(\"children\", \"GtkWidget\", {\n append,\n remove: \"remove\",\n insert: { method: \"insert\", args: [\"child\", \"index\"] },\n ...(reorder !== undefined ? { reorder: { method: reorder, args: [\"child\", \"index\"] } } : {}),\n });\n\nconst addRemoveChildren = (): ElementProp => container(\"children\", \"GtkWidget\", { append: \"add\", remove: \"remove\" });\n\nconst prefixSuffixProps = (): ElementProp[] => [\n container(\"prefix\", \"GtkWidget\", { append: \"addPrefix\" }),\n container(\"suffix\", \"GtkWidget\", { append: \"addSuffix\" }),\n];\n\nconst packProps = (): ElementProp[] => [\n container(\"start\", \"GtkWidget\", { append: \"packStart\" }),\n container(\"end\", \"GtkWidget\", { append: \"packEnd\" }),\n];\n\nconst autowrapProp = (wrapper: string): ElementProp =>\n container(\"children\", \"GtkWidget\", {\n append: \"append\",\n remove: \"remove\",\n insert: { method: \"insert\", args: [\"child\", \"index\"] },\n autowrap: wrapper,\n });\n\nconst forEach = (types: string[], build: () => ElementProp[]): Record<string, ElementProp[]> =>\n Object.fromEntries(types.map((type) => [type, build()]));\n\nexport const BUILT_IN_ELEMENT_COMPONENTS: ElementComponent[] = [\n { types: [\"GtkApplication\"], module: \"@gtkx/react/internal\", export: \"createApplicationComponent\" },\n { types: [\"GtkWindow\"], module: \"@gtkx/react/internal\", export: \"createWindowComponent\" },\n { types: [\"AdwDialog\"], module: \"@gtkx/react/adw\", export: \"createDialogComponent\" },\n];\n\nconst CONTROLLER_METHODS = { append: \"addController\", remove: \"removeController\" } satisfies ManyMethods;\nconst SHORTCUT_METHODS = { append: \"addShortcut\", remove: \"removeShortcut\" } satisfies ManyMethods;\n\nconst ACTION_METHODS = {\n append: \"addAction\",\n remove: { method: \"removeAction\", args: [{ prop: \"name\" }] },\n} satisfies ManyMethods;\n\nconst ACTION_GROUP_METHODS = {\n append: { method: \"insertActionGroup\", args: [{ prop: \"prefix\" }, \"child\"] },\n remove: { method: \"insertActionGroup\", args: [{ prop: \"prefix\" }, { literal: null }] },\n} satisfies ManyMethods;\n\nconst SINGLE_CHILD_TYPES = [\n \"AdwBin\",\n \"AdwBreakpointBin\",\n \"AdwClamp\",\n \"AdwClampScrollable\",\n \"AdwDialog\",\n \"AdwNavigationPage\",\n \"AdwSplitButton\",\n \"AdwStatusPage\",\n \"AdwTabOverview\",\n \"AdwToastOverlay\",\n \"AdwToggle\",\n \"GtkAspectFrame\",\n \"GtkButton\",\n \"GtkCheckButton\",\n \"GtkComboBox\",\n \"GtkDragIcon\",\n \"GtkExpander\",\n \"GtkFlowBoxChild\",\n \"GtkFrame\",\n \"GtkGraphicsOffload\",\n \"GtkListBoxRow\",\n \"GtkListHeader\",\n \"GtkListItem\",\n \"GtkMenuButton\",\n \"GtkOverlay\",\n \"GtkPopover\",\n \"GtkPopoverBin\",\n \"GtkRevealer\",\n \"GtkScrolledWindow\",\n \"GtkSearchBar\",\n \"GtkTreeExpander\",\n \"GtkViewport\",\n \"GtkWindow\",\n \"GtkWindowHandle\",\n];\n\nconst SINGLE_CONTENT_TYPES = [\n \"AdwApplicationWindow\",\n \"AdwBottomSheet\",\n \"AdwFlap\",\n \"AdwNavigationSplitView\",\n \"AdwOverlaySplitView\",\n \"AdwWindow\",\n];\n\nconst BOX_TYPES = [\"AdwLeaflet\", \"AdwWrapBox\", \"GtkBox\"];\n\nconst ADD_REMOVE_TYPES = [\n \"AdwNavigationView\",\n \"AdwPreferencesDialog\",\n \"AdwPreferencesGroup\",\n \"AdwPreferencesWindow\",\n \"AdwSqueezer\",\n];\n\nconst withBreakpoints = (props: Record<string, ElementProp[]>): Record<string, ElementProp[]> => {\n for (const type of [\"AdwApplicationWindow\", \"AdwWindow\", \"AdwDialog\"]) {\n props[type] = [...(props[type] ?? []), container(\"breakpoints\", \"AdwBreakpoint\", { append: \"addBreakpoint\" })];\n }\n props.AdwBreakpointBin = [\n ...(props.AdwBreakpointBin ?? []),\n container(\"breakpoints\", \"AdwBreakpoint\", { append: \"addBreakpoint\", remove: \"removeBreakpoint\" }),\n ];\n return props;\n};\n\nexport const BUILT_IN_ELEMENT_PROPS: Record<string, ElementProp[]> = withBreakpoints({\n ...forEach(SINGLE_CHILD_TYPES, () => [singleChild()]),\n ...forEach(SINGLE_CONTENT_TYPES, () => [singleContent()]),\n ...forEach(BOX_TYPES, () => [boxChildren()]),\n ...forEach(ADD_REMOVE_TYPES, () => [addRemoveChildren()]),\n GtkWidget: [\n container(\"controllers\", \"GtkEventController\", CONTROLLER_METHODS),\n container(\"layoutManager\", \"GtkLayoutManager\", {\n append: \"setLayoutManager\",\n remove: { method: \"setLayoutManager\", args: [{ literal: null }] },\n }),\n container(\"actionGroups\", \"GActionGroup\", ACTION_GROUP_METHODS),\n ],\n GtkShortcutController: [container(\"shortcuts\", \"GtkShortcut\", SHORTCUT_METHODS)],\n GtkTextView: [\n container(\"children\", \"GtkTextBuffer\", {\n append: \"setBuffer\",\n remove: { method: \"setBuffer\", args: [{ literal: null }] },\n }),\n container(\"children\", \"GtkWidget\", { remove: \"remove\" }),\n ],\n GActionMap: [container(\"actions\", \"GAction\", ACTION_METHODS)],\n GtkColumnView: [\n container(\"children\", \"GtkColumnViewColumn\", {\n append: \"appendColumn\",\n remove: \"removeColumn\",\n insert: { method: \"insertColumn\", args: [\"index\", \"child\"] },\n }),\n ],\n AdwShortcutsDialog: [container(\"children\", \"AdwShortcutsSection\", { append: \"add\" })],\n AdwShortcutsSection: [container(\"children\", \"AdwShortcutsItem\", { append: \"add\" })],\n AdwActionRow: prefixSuffixProps(),\n AdwEntryRow: prefixSuffixProps(),\n AdwExpanderRow: [\n ...prefixSuffixProps(),\n container(\"rows\", \"GtkWidget\", { append: \"addRow\" }),\n container(\"actions\", \"GtkWidget\", { append: \"addAction\" }),\n ],\n AdwHeaderBar: packProps(),\n GtkHeaderBar: packProps(),\n GtkActionBar: packProps(),\n AdwToolbarView: [\n container(\"topBar\", \"GtkWidget\", { append: \"addTopBar\" }),\n container(\"bottomBar\", \"GtkWidget\", { append: \"addBottomBar\" }),\n singleContent(),\n ],\n AdwCarousel: [indexedChildren(\"append\", \"reorder\")],\n AdwPreferencesPage: [indexedChildren(\"add\")],\n AdwTabView: [\n container(\"children\", \"GtkWidget\", {\n append: \"append\",\n insert: { method: \"insert\", args: [\"child\", \"index\"] },\n reorder: { method: \"reorderPage\", args: [\"adopted\", \"index\"] },\n remove: { method: \"closePage\", args: [\"adopted\"] },\n adopt: \"getPage\",\n }),\n ],\n GtkListBox: [autowrapProp(\"GtkListBoxRow\")],\n GtkFlowBox: [autowrapProp(\"GtkFlowBoxChild\")],\n GtkStack: [\n container(\"children\", \"GtkWidget\", { append: \"addChild\", remove: \"remove\", adopt: true }),\n { kind: \"lazy\", prop: \"visibleChildName\", lookup: \"getChildByName\" },\n ],\n AdwViewStack: [\n container(\"children\", \"GtkWidget\", { append: \"add\", remove: \"remove\", adopt: true }),\n { kind: \"lazy\", prop: \"visibleChildName\", lookup: \"getChildByName\" },\n ],\n GtkNotebook: [\n container(\"children\", \"GtkWidget\", {\n append: { method: \"appendPage\", args: [\"child\", { literal: null }] },\n insert: { method: \"insertPage\", args: [\"child\", { literal: null }, \"index\"] },\n reorder: { method: \"reorderChild\", args: [\"child\", \"index\"] },\n remove: \"detachTab\",\n adopt: \"getPage\",\n }),\n ],\n AdwToggleGroup: [\n container(\"children\", \"AdwToggle\", { append: \"add\", remove: \"remove\" }),\n { kind: \"lazy\", prop: \"activeName\", lookup: \"getToggleByName\" },\n { kind: \"lazy\", prop: \"active\" },\n ],\n GtkDropTarget: [{ kind: \"value\", prop: \"types\", call: \"setGtypes\" }],\n GtkDrawingArea: [{ kind: \"value\", prop: \"drawFunc\", call: \"setDrawFunc\", after: \"queueDraw\" }],\n GtkDragSource: [{ kind: \"value\", prop: \"icon\", call: \"setIcon\" }],\n GtkEditable: [{ kind: \"controlled-text\", prop: \"text\" }],\n GtkScale: [{ kind: \"list\", prop: \"marks\", add: \"addMark\", clear: \"clearMarks\" }],\n GtkCalendar: [{ kind: \"list\", prop: \"markedDays\", add: \"markDay\", clear: \"clearMarks\" }],\n GtkLevelBar: [{ kind: \"list\", prop: \"offsets\", add: \"addOffsetValue\", remove: \"removeOffsetValue\" }],\n GtkApplication: [\n container(\"children\", \"GtkWindow\", { append: \"addWindow\", remove: \"removeWindow\" }),\n {\n kind: \"list\",\n prop: \"actionAccels\",\n add: \"setAccelsForAction\",\n remove: { method: \"setAccelsForAction\", args: [{ field: \"detailedActionName\" }, { literal: [] }] },\n },\n ],\n GtkAboutDialog: [{ kind: \"list\", prop: \"creditSections\", add: \"addCreditSection\" }],\n AdwAlertDialog: [\n {\n kind: \"list\",\n prop: \"responses\",\n add: [\n \"addResponse\",\n { method: \"setResponseAppearance\", args: [{ field: \"id\" }, { field: \"appearance\", or: 0 }] },\n { method: \"setResponseEnabled\", args: [{ field: \"id\" }, { field: \"enabled\", or: true }] },\n ],\n remove: \"removeResponse\",\n },\n ],\n});\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Library } from "../../gir/library.js";
|
|
2
|
+
import type { GirNamespace } from "../../gir/namespace.js";
|
|
3
|
+
import type { ImportsBuilder } from "../../writer/imports.js";
|
|
4
|
+
import type { ElementPropTypegen } from "./element-prop-types.js";
|
|
5
|
+
import { type GlibNamedClass } from "./intrinsic-elements.js";
|
|
6
|
+
export declare const generateElementComponentsSection: (targetNamespace: GirNamespace, library: Library, options: {
|
|
7
|
+
imports: ImportsBuilder;
|
|
8
|
+
typegen: ElementPropTypegen;
|
|
9
|
+
intrinsicElements: GlibNamedClass[];
|
|
10
|
+
intrinsicElementByGlibName: Map<string, GlibNamedClass>;
|
|
11
|
+
}) => {
|
|
12
|
+
source: string;
|
|
13
|
+
exportedNames: Set<string>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=element-components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-components.d.ts","sourceRoot":"","sources":["../../../src/store/react/element-components.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,kBAAkB,EAAmB,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAoBjF,eAAO,MAAM,gCAAgC,oBACxB,YAAY,WACpB,OAAO,WACP;IACL,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,kBAAkB,CAAC;IAC5B,iBAAiB,EAAE,cAAc,EAAE,CAAC;IACpC,0BAA0B,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC3D,KACF;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CA2B9C,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { sourceStringLiteral } from "@gtkx/utils";
|
|
2
|
+
import { renderJsDoc } from "../../writer/doc.js";
|
|
3
|
+
import { BUILT_IN_ELEMENT_COMPONENTS } from "./built-ins.js";
|
|
4
|
+
import { ancestorGlibNames } from "./intrinsic-elements.js";
|
|
5
|
+
const TEXT_NODE_ELEMENTS = [
|
|
6
|
+
{ flatName: "GtkTextAnchor", kind: "text-anchor", propsType: "TextAnchorProps", parent: "GtkTextView" },
|
|
7
|
+
{ flatName: "GtkTextPaintable", kind: "text-paintable", propsType: "TextPaintableProps", parent: "GtkTextView" },
|
|
8
|
+
];
|
|
9
|
+
export const generateElementComponentsSection = (targetNamespace, library, options) => {
|
|
10
|
+
const collector = { imports: options.imports, exportedNames: new Set(), exportLines: [] };
|
|
11
|
+
const inTargetNamespace = (parentGlibName) => options.intrinsicElementByGlibName.get(parentGlibName)?.namespace.name === targetNamespace.name;
|
|
12
|
+
const lazyElements = options.typegen.lazyElementExports(targetNamespace.name);
|
|
13
|
+
const textNodes = TEXT_NODE_ELEMENTS.filter((node) => inTargetNamespace(node.parent));
|
|
14
|
+
const virtualNames = new Set([
|
|
15
|
+
...lazyElements.map((entry) => entry.element),
|
|
16
|
+
...textNodes.map((node) => node.flatName),
|
|
17
|
+
]);
|
|
18
|
+
collectCandidateExports(collector, {
|
|
19
|
+
targetNamespace,
|
|
20
|
+
library,
|
|
21
|
+
virtualNames,
|
|
22
|
+
intrinsicElements: options.intrinsicElements,
|
|
23
|
+
});
|
|
24
|
+
collectLazyElementExports(collector, lazyElements);
|
|
25
|
+
collectTextNodeExports(collector, textNodes);
|
|
26
|
+
if (textNodes.length > 0) {
|
|
27
|
+
collector.imports.addNamed("@gtkx/react/internal", "WRAPPER_NODE_ELEMENT", false);
|
|
28
|
+
}
|
|
29
|
+
const source = collector.exportLines.join("\n\n");
|
|
30
|
+
return { source, exportedNames: collector.exportedNames };
|
|
31
|
+
};
|
|
32
|
+
const collectCandidateExports = (collector, { targetNamespace, library, virtualNames, intrinsicElements }) => {
|
|
33
|
+
for (const candidate of intrinsicElements) {
|
|
34
|
+
if (candidate.namespace.name !== targetNamespace.name)
|
|
35
|
+
continue;
|
|
36
|
+
if (virtualNames.has(candidate.glibName))
|
|
37
|
+
continue;
|
|
38
|
+
const line = renderCandidateExport(candidate, library, collector.imports);
|
|
39
|
+
if (line === null)
|
|
40
|
+
continue;
|
|
41
|
+
collector.exportLines.push(line);
|
|
42
|
+
collector.exportedNames.add(candidate.glibName);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const collectLazyElementExports = (collector, lazyElements) => {
|
|
46
|
+
for (const spec of lazyElements) {
|
|
47
|
+
collector.imports.addNamed("@gtkx/react/internal", "createLazyElementComponent", false);
|
|
48
|
+
collector.imports.addNamed("react", "ReactNode", true);
|
|
49
|
+
collector.exportLines.push(renderLazyElementExport(spec));
|
|
50
|
+
collector.exportedNames.add(spec.element);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const collectTextNodeExports = (collector, textNodes) => {
|
|
54
|
+
for (const node of textNodes) {
|
|
55
|
+
collector.imports.addNamed("@gtkx/react", node.propsType, true);
|
|
56
|
+
collector.imports.addNamed("react", "ReactNode", true);
|
|
57
|
+
collector.exportLines.push(renderTextNodeExport(node));
|
|
58
|
+
collector.exportedNames.add(node.flatName);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const renderLazyElementExport = (spec) => {
|
|
62
|
+
const factory = `createLazyElementComponent<${spec.typeName}>()`;
|
|
63
|
+
const component = `export const ${spec.element}: (props: ${spec.typeName}) => ReactNode = ${factory};`;
|
|
64
|
+
return `${spec.typeSource}\n\n${component}`;
|
|
65
|
+
};
|
|
66
|
+
const renderTextNodeExport = (node) => `export const ${node.flatName} = (props: ${node.propsType}): ReactNode => (\n <WRAPPER_NODE_ELEMENT kind=${sourceStringLiteral(node.kind)} {...props} />\n);`;
|
|
67
|
+
const renderCandidateExport = (candidate, library, imports) => {
|
|
68
|
+
const { glibName, klass, namespace } = candidate;
|
|
69
|
+
const ancestry = new Set(ancestorGlibNames(klass, namespace, library));
|
|
70
|
+
const wrapper = resolveElementComponent(ancestry);
|
|
71
|
+
imports.addNamed("@gtkx/react/internal", "createElementComponent", false);
|
|
72
|
+
imports.addNamed("react", "ReactNode", true);
|
|
73
|
+
if (wrapper !== undefined)
|
|
74
|
+
imports.addNamed(wrapper.module, wrapper.export, false);
|
|
75
|
+
return `${renderJsDoc(klass.doc)}${renderElementComponentExport(glibName, wrapper)}`;
|
|
76
|
+
};
|
|
77
|
+
const resolveElementComponent = (types) => {
|
|
78
|
+
for (const entry of BUILT_IN_ELEMENT_COMPONENTS) {
|
|
79
|
+
if (entry.types.some((type) => types.has(type)))
|
|
80
|
+
return entry;
|
|
81
|
+
}
|
|
82
|
+
return undefined;
|
|
83
|
+
};
|
|
84
|
+
const renderElementComponentExport = (glibName, wrapper) => {
|
|
85
|
+
const propsType = `${glibName}Props`;
|
|
86
|
+
if (wrapper === undefined) {
|
|
87
|
+
return `export const ${glibName}: (props: ${propsType}) => ReactNode = createElementComponent(${sourceStringLiteral(glibName)});`;
|
|
88
|
+
}
|
|
89
|
+
const annotation = `(props: ${propsType}) => ReactNode`;
|
|
90
|
+
return `export const ${glibName}: ${annotation} = ${wrapper.export}(createElementComponent(${sourceStringLiteral(glibName)}));`;
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=element-components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-components.js","sourceRoot":"","sources":["../../../src/store/react/element-components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,2BAA2B,EAAyB,MAAM,gBAAgB,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAuB,MAAM,yBAAyB,CAAC;AASjF,MAAM,kBAAkB,GAAsB;IAC1C,EAAE,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,EAAE,aAAa,EAAE;IACvG,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,EAAE,aAAa,EAAE;CACnH,CAAC;AAQF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC5C,eAA6B,EAC7B,OAAgB,EAChB,OAKC,EAC6C,EAAE;IAChD,MAAM,SAAS,GAAoB,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,IAAI,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;IAE3G,MAAM,iBAAiB,GAAG,CAAC,cAAsB,EAAW,EAAE,CAC1D,OAAO,CAAC,0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O,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACnF,OAAO,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,4BAA4B,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC;AACzF,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,KAAkB,EAAgC,EAAE;IACjF,KAAK,MAAM,KAAK,IAAI,2BAA2B,EAAE,CAAC;QAC9C,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IAClE,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,4BAA4B,GAAG,CAAC,QAAgB,EAAE,OAAqC,EAAU,EAAE;IACrG,MAAM,SAAS,GAAG,GAAG,QAAQ,OAAO,CAAC;IACrC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,gBAAgB,QAAQ,aAAa,SAAS,2CAA2C,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC;IACtI,CAAC;IACD,MAAM,UAAU,GAAG,WAAW,SAAS,gBAAgB,CAAC;IACxD,OAAO,gBAAgB,QAAQ,KAAK,UAAU,MAAM,OAAO,CAAC,MAAM,2BAA2B,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC;AACpI,CAAC,CAAC","sourcesContent":["import { sourceStringLiteral } from \"@gtkx/utils\";\nimport type { Library } from \"../../gir/library.js\";\nimport type { GirNamespace } from \"../../gir/namespace.js\";\nimport { renderJsDoc } from \"../../writer/doc.js\";\nimport type { ImportsBuilder } from \"../../writer/imports.js\";\nimport { BUILT_IN_ELEMENT_COMPONENTS, type ElementComponent } from \"./built-ins.js\";\nimport type { ElementPropTypegen, LazyElementSpec } from \"./element-prop-types.js\";\nimport { ancestorGlibNames, type GlibNamedClass } from \"./intrinsic-elements.js\";\n\ntype TextNodeElement = {\n flatName: string;\n kind: string;\n propsType: string;\n parent: string;\n};\n\nconst TEXT_NODE_ELEMENTS: TextNodeElement[] = [\n { flatName: \"GtkTextAnchor\", kind: \"text-anchor\", propsType: \"TextAnchorProps\", parent: \"GtkTextView\" },\n { flatName: \"GtkTextPaintable\", kind: \"text-paintable\", propsType: \"TextPaintableProps\", parent: \"GtkTextView\" },\n];\n\ntype ExportCollector = {\n imports: ImportsBuilder;\n exportedNames: Set<string>;\n exportLines: string[];\n};\n\nexport const generateElementComponentsSection = (\n targetNamespace: GirNamespace,\n library: Library,\n options: {\n imports: ImportsBuilder;\n typegen: ElementPropTypegen;\n intrinsicElements: GlibNamedClass[];\n intrinsicElementByGlibName: Map<string, GlibNamedClass>;\n },\n): { source: string; exportedNames: Set<string> } => {\n const collector: ExportCollector = { imports: options.imports, exportedNames: new Set(), exportLines: [] };\n\n const inTargetNamespace = (parentGlibName: string): boolean =>\n options.intrinsicElementByGlibName.get(parentGlibName)?.namespace.name === targetNamespace.name;\n\n const lazyElements = options.typegen.lazyElementExports(targetNamespace.name);\n const textNodes = TEXT_NODE_ELEMENTS.filter((node) => inTargetNamespace(node.parent));\n const virtualNames = new Set([\n ...lazyElements.map((entry) => entry.element),\n ...textNodes.map((node) => node.flatName),\n ]);\n\n collectCandidateExports(collector, {\n targetNamespace,\n library,\n virtualNames,\n intrinsicElements: options.intrinsicElements,\n });\n collectLazyElementExports(collector, lazyElements);\n collectTextNodeExports(collector, textNodes);\n\n if (textNodes.length > 0) {\n collector.imports.addNamed(\"@gtkx/react/internal\", \"WRAPPER_NODE_ELEMENT\", false);\n }\n const source = collector.exportLines.join(\"\\n\\n\");\n return { source, exportedNames: collector.exportedNames };\n};\n\ntype CandidateExportOptions = {\n targetNamespace: GirNamespace;\n library: Library;\n virtualNames: Set<string>;\n intrinsicElements: GlibNamedClass[];\n};\n\nconst collectCandidateExports = (\n collector: ExportCollector,\n { targetNamespace, library, virtualNames, intrinsicElements }: CandidateExportOptions,\n): void => {\n for (const candidate of intrinsicElements) {\n if (candidate.namespace.name !== targetNamespace.name) continue;\n if (virtualNames.has(candidate.glibName)) continue;\n const line = renderCandidateExport(candidate, library, collector.imports);\n if (line === null) continue;\n collector.exportLines.push(line);\n collector.exportedNames.add(candidate.glibName);\n }\n};\n\nconst collectLazyElementExports = (collector: ExportCollector, lazyElements: LazyElementSpec[]): void => {\n for (const spec of lazyElements) {\n collector.imports.addNamed(\"@gtkx/react/internal\", \"createLazyElementComponent\", false);\n collector.imports.addNamed(\"react\", \"ReactNode\", true);\n collector.exportLines.push(renderLazyElementExport(spec));\n collector.exportedNames.add(spec.element);\n }\n};\n\nconst collectTextNodeExports = (collector: ExportCollector, textNodes: TextNodeElement[]): void => {\n for (const node of textNodes) {\n collector.imports.addNamed(\"@gtkx/react\", node.propsType, true);\n collector.imports.addNamed(\"react\", \"ReactNode\", true);\n collector.exportLines.push(renderTextNodeExport(node));\n collector.exportedNames.add(node.flatName);\n }\n};\n\nconst renderLazyElementExport = (spec: LazyElementSpec): string => {\n const factory = `createLazyElementComponent<${spec.typeName}>()`;\n const component = `export const ${spec.element}: (props: ${spec.typeName}) => ReactNode = ${factory};`;\n return `${spec.typeSource}\\n\\n${component}`;\n};\n\nconst renderTextNodeExport = (node: TextNodeElement): string =>\n `export const ${node.flatName} = (props: ${node.propsType}): ReactNode => (\\n <WRAPPER_NODE_ELEMENT kind=${sourceStringLiteral(node.kind)} {...props} />\\n);`;\n\nconst renderCandidateExport = (candidate: GlibNamedClass, library: Library, imports: ImportsBuilder): string | null => {\n const { glibName, klass, namespace } = candidate;\n const ancestry = new Set(ancestorGlibNames(klass, namespace, library));\n const wrapper = resolveElementComponent(ancestry);\n imports.addNamed(\"@gtkx/react/internal\", \"createElementComponent\", false);\n imports.addNamed(\"react\", \"ReactNode\", true);\n if (wrapper !== undefined) imports.addNamed(wrapper.module, wrapper.export, false);\n return `${renderJsDoc(klass.doc)}${renderElementComponentExport(glibName, wrapper)}`;\n};\n\nconst resolveElementComponent = (types: Set<string>): ElementComponent | undefined => {\n for (const entry of BUILT_IN_ELEMENT_COMPONENTS) {\n if (entry.types.some((type) => types.has(type))) return entry;\n }\n return undefined;\n};\n\nconst renderElementComponentExport = (glibName: string, wrapper: ElementComponent | undefined): string => {\n const propsType = `${glibName}Props`;\n if (wrapper === undefined) {\n return `export const ${glibName}: (props: ${propsType}) => ReactNode = createElementComponent(${sourceStringLiteral(glibName)});`;\n }\n const annotation = `(props: ${propsType}) => ReactNode`;\n return `export const ${glibName}: ${annotation} = ${wrapper.export}(createElementComponent(${sourceStringLiteral(glibName)}));`;\n};\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ElementProp } from "@gtkx/config";
|
|
2
|
+
import type { GirClass } from "../../gir/class.js";
|
|
3
|
+
import type { GirNamespace } from "../../gir/namespace.js";
|
|
4
|
+
import { type GirIndex } from "./gir-index.js";
|
|
5
|
+
type TypeImports = Map<string, string>;
|
|
6
|
+
export type LazyElementSpec = {
|
|
7
|
+
element: string;
|
|
8
|
+
typeName: string;
|
|
9
|
+
typeSource: string;
|
|
10
|
+
};
|
|
11
|
+
export type ElementPropTypegen = {
|
|
12
|
+
classPropLines: (glibName: string, klass: GirClass, namespace: GirNamespace, imports: TypeImports) => string[];
|
|
13
|
+
lazyElementExports: (namespaceName: string) => LazyElementSpec[];
|
|
14
|
+
containerPropNamesFor: (glibName: string) => string[];
|
|
15
|
+
acceptsChildren: (glibName: string) => boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const createElementPropTypegen: (context: GirIndex, elementProps: Record<string, ElementProp[]>) => ElementPropTypegen;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=element-prop-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-prop-types.d.ts","sourceRoot":"","sources":["../../../src/store/react/element-prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoC,WAAW,EAAE,MAAM,cAAc,CAAC;AAGlF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAuB,KAAK,QAAQ,EAAkC,MAAM,gBAAgB,CAAC;AAIpG,KAAK,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAQvC,MAAM,MAAM,eAAe,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,KAAK,MAAM,EAAE,CAAC;IAC/G,kBAAkB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,eAAe,EAAE,CAAC;IACjE,qBAAqB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;IACtD,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;CAClD,CAAC;AA4LF,eAAO,MAAM,wBAAwB,YACxB,QAAQ,gBACH,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,KAC5C,kBA2DF,CAAC"}
|