Skip to content

Latest commit

 

History

History
76 lines (60 loc) · 3.29 KB

CHANGELOG.md

File metadata and controls

76 lines (60 loc) · 3.29 KB

Changelog

v0.1.1 (2020-11-28)

  • Add explicit props for the main opts of Checkbox, Select, MultipleSelect, FileInput and Form (#215).
  • Add new slot_assigned?/1 macro to check if a slot has been filled in (#211).
  • Fix attribute value encoding

v0.1.0 (2020-11-23)

  • Update liveview to v0.15
  • Add new Surface.Components.Form.ErrorTag to render error messages in forms (#199).
  • Disable validation for required props if :props is passed (#204)

v0.1.0-rc.2 (2020-11-04)

  • Update liveview to latest v0.15-dev (f986171)
  • New wrapper components Surface.Components.{For, If} for when the :for and :if directives aren't sufficient (#184)
  • Allow double braces within interpolation (#171)
  • Add new Surface.Components.FieldContext to support form fields without wrapping divs (#172)
  • Improve error message for unloaded modules (#174)
  • Fix issue with :for modifiers on components (#176)
  • Expose form instance as slot prop on Surface.Components.Form (#183)
  • Don't initialize data assigns without default value (#195)

v0.1.0-rc.1 (2020-10-21)

  • Fix support for Elixir >= v1.11
  • Update liveview to latest v0.15-dev (597c5dd)
  • Add undefined assign check for Surface.{LiveComponent,Component,LiveView}
  • New form controls wrappers: <DateTimeSelect> and <TimeSelect>.
  • Force recompilation of the parent component after fixing errors on any of its children.

v0.1.0-rc.0 (2020-10-06)

  • Update LiveView to v0.15-dev (0f592a4).
  • Make <slot> mandatory instead of inner_content.
  • Add attribute index to <slot> to allow rendering individual named slot items.
  • Rename macro property to prop.
  • Remove macro context and add a <Context> component to be used instead.
  • Rename directives :on-phx-[event] to :on-[event].
  • Add support for co-located template files using .sface suffix.
  • Add Surface.init/1 to initialize internal assigns when not using Surface.LiveView.
  • Add :props directive to pass dynamic props to a component.
  • Add :attrs directive to pass dynamic attributes to a tag.
  • Add new modifiers index and with_index for :for.
  • Update html tag generation to remove the tag if it's value computes to nil.
  • Add support for a transform/1 callback to allow components to manipulate its own node at compile-time.
  • New form controls: <Inputs>, <Checkbox>, <Select>, <MultipleSelect>, <HiddenInputs>, <FileInput> and <OptionsForSelect>.

v0.1.0-alpha.2 (2020-06-09)

  • New Markdown component
  • New Link component
  • New form components Form, Field, TextArea, Label, TextInput, RadioButton, HiddenInput, ColorInput, DateInput, DateTimeLocalInput, EmailInput, NumberInput, PasswordInput, RangeInput, SearchInput, TelephoneInput, TimeInput, UrlInput, Reset and Submit.
  • Automatically define a required :id property for live components that implement handle_event/3
  • New config API for components
  • Update LiveView to v0.13

v0.1.0-alpha.1 (2020-04-13)

  • Add support for slots
  • Add built-in LivePath and LiveRedirect components
  • Drop automatic camel-to-kebab conversion for CSS class name
  • Drop support for inner_content.(). Use inner_content.([]) instead
  • Update LiveView to v0.11.1

v0.1.0-alpha.0 (2020-02-26)

  • Initial alpha release