- remove filter control from docs and deprecate it
- update resource item with new content
- remove case study from resource list
- add children example to filters
- use inline label for resource list sort
- Stop publishing css files to sdks.shopifycdn.com
- Update docs to use unpkg link for CCSS files
- Make it clear that we sugggest downloading these files and hosting
them yourself rather than using unpkg directly
There is no value in having individual files per component in the styles
folder. It is unneeded overhead and people shouldn't be digging into
that folder trying to include a single component's styles in the first place.
Where styles/components.scss previously was a list imports to
per-component files, instead inline the contents of the per-component scss
into styles/components.scss. The listing of the contents is preserved so
the computed css out the other end will be idential.
At this point global.scss and components.scss both contain pure css.
They are only distributed as scss files for the sake of convinience,
ease of `@import`ing, and because sewing-kit expects these named scss files.
This helps protect us against people overriding our variables / mixins /
functions and thus causing problematic output.
Do the sass build as part of the rollup styles plugin instead of a
separate step. This saves us having to generate a file in the rollup
plugin that we then pass on to a second step.
Merge src/styles/global into a single file, it's pretty small and it's
easier to deal with a single file
The css-modules spec says to use this format, and we transform our
imports as part of the build to use this format so we should use this
style initially to save that indirection
* Stop ignoring /tests and /playground as plugins no longer crash on
those files
* Remove folder-specific eslint files as they don't do anything
* Use `eslint-ignore no-console` at the top of scripts to avoid having
to add it to every line
* Add an override targeting the playground to avoid needing to include
the eslint-disable in the file (and thus in the PR template)
* add appBridge to polaris context
* implement app bridge for loading and update tests
* add tests
* use appBridge in toast
* update tests
* update prop with default value, set to dismissable, and unmount safely
* render page components with app bridge
* add callback support, move to private methods
* add lifecycle handlers
* bump app-bridge version and update isDismissible option
* generate redirect callbacks based on url
* add target type to actions, remove logic to infer target
* add tests
* dev up
* [Modal] App Bridge (#2320)
* stop exporting embedded modal and export normal modal with modal props instead
* get a working app bridge modal
* better type for size and pull title
* get all props working, needs refactor with page
* easdk action is already part of the complex action type
* move modal app bridge transforms into shared utility
* refactor page to use shared transformers
* rebase off beta/app-bridge, respond to feedback, and fix modal typing
* add tests
* refactor transforms
* add transformer tests, refactor transformer to use overload, and subsequent refactors of page and modal and their tests
* add test for modal not opening on mount
* respond to feedback
* [Resource picker] App bridge (#2443)
* upgrade resource picker to use app bridge
* refactor toast and loading based on app bridge version bump
* change close callback to cancel callback, fix subscribed select action
* tweak docs
* set defaults to keep them in sync with our docs, add showVariants
* add tests
* fix tests
* not true is also known as false
* cast action as Action.ADMIN_PATH to avoid casting as any
* use enum instead of string for argument to subscribe
* The EASDK is dead, long live the Shopify App Bridge
* fix tests
* replace type cast with overload function
* safe guard against calls to set unless something has changed
* add tests for safe guards to set
* support the danger button
* document all the changes
* ignore tophat examples if hidePlayground is true
* burn handle warning from Modal
* use default toast duration in tests
* stop typing as any in overloaded transformer function
* add note about shopOrigin to not have https://
* update history example
* dynamically generate types for target and modal size
* update prop docs for shopOrigin
* no no no
- don't run clean after build tests as its is pointless. a clean
already happens as part of the prebuild so we know we're coming from a
good place
- fix deprecation notice in ts-jest config
* adds src as a module directory and makes it work with the rollup
* fixes types imports
* restricts imports to node_modules and /src
* fixes ts lint
* fixes config and types import
* Format various files
* Wider reaching lint/format
The autoformat tools should format the same files you should run into in
your editor. Previously we weren't catching js files, json files and any
ts files outside the src folder.
Update lint:js command to include the whole folder, not just src
Update format:prettier command to include json files.
Fix linting issues raised by checking more files.