Commit Graph

155 Commits (00877e8ebd339c67fa9a8f9509c5c969c1a3a58b)

Author SHA1 Message Date
Rich Harris 4f1d48c4a6 more readable each block values
8 years ago
Rich Harris 5cd76be290 various fixes
8 years ago
Rich Harris abea37af71 wrap ES modules in an IIFE
8 years ago
Rich Harris 6f0961ed5a remove oldState from recompute
8 years ago
Rich Harris 955354739f Merge branch 'master' into remove-is-initial
8 years ago
Rich Harris 9f19121b65 remove isInitial check on recompute
8 years ago
Rich Harris 33dbc18a10 merge master -> shared-init
8 years ago
Rich Harris bd002f94bc extract some shared init logic
8 years ago
Rich Harris 1d34bd886e put version comment above imports
8 years ago
Rich Harris 6e57fa3ced add debugging comments
8 years ago
Rich Harris fbbaff5404 typo
8 years ago
Rich Harris 770c14955d escape shadow DOM CSS - fixes #840
8 years ago
Rich Harris 5f2ea34d84 always attach fragment to shadow root (fixes #821)
8 years ago
Rich Harris 5ca6893f58 Merge branch 'master' into gh-781
8 years ago
Rich Harris e993ae0748 more consistent style for generated code
8 years ago
Rich Harris 75651bb070 use component name in runtime dev warnings - fixes #781
8 years ago
Rich Harris 2380109f15 handly directly instantiated custom elements, and slots
8 years ago
Rich Harris 118988c16b append host element, not contents, when component is nested
8 years ago
Rich Harris 71bd8e3008 use template strings to prevent sourcemaps breaking the code
8 years ago
Rich Harris f5f35b5a50 scoped styles
8 years ago
Rich Harris 30e58c4a73 validate props, auto-generate props if unspecified
8 years ago
Rich Harris afe3e2e669 basic custom element generation (#797)
8 years ago
Rich Harris d8269b3e7f attach options to component (#550)
8 years ago
Rich Harris 6fad3cbf9c Merge pull request #787 from sveltejs/gh-763
8 years ago
Rich Harris a469b560d8 only add this._slotted if necessary
8 years ago
Rich Harris 41026341d8 populate component.slots
8 years ago
Rich Harris efe25555cf client-side named slots
8 years ago
Rich Harris 7a8c8fd577 replace {{yield}} with <slot/>
8 years ago
Andrew Worcester 9dbc571f57 allow an anchor element to be passed for initial component bootstrap
8 years ago
Rich Harris f7b829820f add legacy option, use it for setInputType (#773)
8 years ago
Rich Harris 6366a4f55e update component bindings together. WIP
8 years ago
Rich Harris 3daa7aa6b3 we can now do changed.foo instead of "foo" in changed - is faster and smaller
8 years ago
Rich Harris 9053e95460 rename addConditionalLine to addConditional
8 years ago
Rich Harris 0f7e87c804 do dirty check in _set, so we can easily skip unnecessary computations later (#768)
8 years ago
Rich Harris fd3792bd60 replace destroy with noop on destroy
8 years ago
Rich Harris faf1eeea2f no need to bind destroy, event handlers are called with the component as context
8 years ago
Rich Harris 86fb0e4ced handle set after destroy, and move destroy into shared helpers
8 years ago
Rich Harris f3f85841a5 Merge pull request #751 from sveltejs/hoist-if-block-selectors
8 years ago
Hunter Perrin ba74297a19 Changed from this keyword to argument in setup method.
8 years ago
Hunter Perrin 59d01f737d Added setup function which can supply static methods/properties. Closes #480. Closes #578.
8 years ago
Rich Harris c84f120e4b Merge branch 'master' into hoist-if-block-selectors
8 years ago
Rich Harris 177e7d09c3 hoist if block selectors
8 years ago
Conduitry db4f148025 actually, we don't want to escape @ or # in sharedPath at all
8 years ago
Conduitry 0e9f16b589 don't over-escape '#' in sharedPath
8 years ago
Conduitry b869e48bff saner escaping/unescaping of `@` and `#` sigils
8 years ago
Rich Harris a524ab273e fix escaping/unescaping — closes #741
8 years ago
Rich Harris ae060cfa3b Merge pull request #737 from sveltejs/update-deps
8 years ago
Rich Harris f7738fe42d Merge pull request #735 from sveltejs/gh-643
8 years ago
Rich Harris e2d63d1b34 add dev mode warning for double destroy
8 years ago
Rich Harris 65e484b6ae remove reify
8 years ago
Rich Harris aa59dafb81 more TS fixes
8 years ago
Rich Harris 962f04f4bf dont throw error if component is destroyed twice (closes #643)
8 years ago
Rich Harris 70a99925a9 use helper to encapsulate styles, rather than being repetitious (fixes #375)
8 years ago
Rich Harris b701bf24b4 unescape hash character (#722)
8 years ago
Rich Harris 5f09421a18 Merge pull request #719 from sveltejs/gh-712
8 years ago
Rich Harris 197c7e70d0 rename _block to _lock
8 years ago
Rich Harris 7b3c69b348 correctly unescape @ symbols (#712)
8 years ago
Rich Harris 0a806585b3 enforce order of operations
8 years ago
Rich Harris 1733966d18 tidy up
8 years ago
Rich Harris 3f65b8b38f rename postcreate to aftercreate
8 years ago
Rich Harris 2d2c68c26b NAILED IT
8 years ago
Rich Harris 192d6e40b0 almost all tests passing again
8 years ago
Rich Harris 16aaf157a0 sketch of a solution to #708
8 years ago
Rich Harris 02ea3e7a44 Merge branch 'master' into gh-691
8 years ago
Rich Harris 84e6d0c5b7 remove _flush in favour of callAll
8 years ago
Rich Harris e9f17f34ff fire intro.start and outro.start events (#702)
8 years ago
Rich Harris f2db3ea828 tidy up, add sourcemaps to add_css function
8 years ago
Rich Harris 45039e9612 move Stylesheet
8 years ago
Rich Harris 65e27c98a0 reduce duplication by moving validation into stylesheet
8 years ago
Rich Harris 4639b8d349 move css logic into new Stylesheet class, add CSS sourcemap support
8 years ago
Rich Harris d89d70e7a3 rename _renderHooks to _oncreate, since thats all its used for
8 years ago
Rich Harris d707f6a3b2 call oncreate functions before bindings
8 years ago
Rich Harris 205bcfac7e warn on unused selectors
8 years ago
Rich Harris 72f39fd7f9 Merge branch 'master' into gh-679
8 years ago
Rich Harris fae9036ce6 only apply svelte-123xyz attributes where necessary (WIP)
8 years ago
Rich Harris 263a34d35c Merge branch 'master' into codegen
8 years ago
Rich Harris 2fa784ecc3 handle @foo and #foo edge cases
8 years ago
Rich Harris 7eb4f2d1c0 add dev mode hydration error (closes #664)
8 years ago
Rich Harris acf889d8b5 Merge branch 'master' into codegen
8 years ago
Rich Harris ee5a60fd71 Merge pull request #675 from sveltejs/gh-651
8 years ago
Rich Harris d08c04d313 merge master -> codegen
8 years ago
Rich Harris 4ef2299cbd run intro transitions on initial render (#651)
8 years ago
Rich Harris 7ad4befd25 deconflict name with imports (#655)
8 years ago
Rich Harris ebae9f9c28 run prettier
8 years ago
Rich Harris b757444484 remove unused regex
8 years ago
Rich Harris 334772a11d use #foo instead of block.alias("foo")
8 years ago
Rich Harris 9feee3a0bf use @foo for generator.alias("foo")
8 years ago
Rich Harris c8e396730b remove unnecessary codebuilder
8 years ago
Rich Harris 078f3ad8b6 simplify helpers
8 years ago
Rich Harris b47e2527b3 test with hydratable: true and hydratable: false
8 years ago
Rich Harris 0bbd917442 more hydration
8 years ago
Rich Harris 14fe89eae8 hydration working with elements, text nodes, tags and if blocks
8 years ago
Rich Harris dceb2b533b first, very incorrect stab at hydration
8 years ago
Conduitry 051534eeae correctly handle empty <style> tag (#634)
8 years ago
Rich Harris 4b1f1e8392 TS-ify spaces.js and deindent.js, so they get included in prettier task
8 years ago
Rich Harris b0a1616e31 add trailing commas to prettier config, only run on .ts files
8 years ago
Rich Harris 84595fb381 run prettier on src, update tests
8 years ago
Rich Harris c4b68ca8cb remove TODO
9 years ago
Rich Harris 5c055a9f0c separate unmount from destroy
9 years ago
Rich-Harris 4486b93d88 more TS
9 years ago