- Update dependencies for security.
- Update core library.
- Bug fix: properly call the
onFailurecallback.
- Update core to fix body serialization bug.
- Pass along
clientNamewith form submission.
- Accept
site+formcombo (in lieu ofid) for identifying forms.
- Release 1.0.0
- Update core to v1.3.1.
- Use
object-assignponyfill instead of global polyfill. - Clean up npm packaging.
- Update StaticKit Core (update base64 polyfill)
- Update StaticKit Core
- Remove
core-jsdependency in favor of simply pulling in specific polyfills.
- [Refactoring] Use the
@statickit/corelibrary.
- [Bug Fix] Multiple forms on a page were not submitting properly.
Since we were not deeply-copying default config attributes, values were colliding during initialization.
- [Feature] New argument structure (backwards compatibility retained)
Previously, the form component was initialized as follows:
sk('form', '#my-form', { ... })
where #my-form is the selector targeting the form node.
There are a few problems with this:
- The positional argument is not self-documenting
idis also a required prop, but it lives in the third object (this is inconsistent)- It's inherently inflexible; what if we want to offer a teardown call, for example?
Now, calls will take the form:
sk(scope, method, config)
So, initializing a form will look like this:
sk('form', 'init', { id: '...', element: '...' })
- [Feature] Pass response
dataas the second argument to theonSuccesshandler.
- [Bug Fix] Initializing with the command queue was broken.
- [Feature] Make it less dangerous to override lifecycle callbacks by re-arranging how default behaviors are run.
- [Bug Fix] Fix argument destructuring that broke after Babel transpiling
- [Feature] Accept a
fieldsobject in form config for customizing field pretty names and overriding default error messages. - [Bug Fix] Install a babel config file to actually enable transpiling.
- [Feature] Accept a
dataobject in form config and append it to the request body.
- Initial release.