Commit Graph

950 Commits (dba32df84e7ee41c8a3699ce347a7b272a2a2ee1)

Author SHA1 Message Date
Rich Harris e2ef1fdb96 dont update components with only static bindings
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 b1cbffece6 remove excess parentheses
8 years ago
Rich Harris 33dbc18a10 merge master -> shared-init
8 years ago
Rich Harris 9d8f2c466f Merge pull request #853 from sveltejs/gh-823
8 years ago
Rich Harris ef3cf34367 tighten up a bit more
8 years ago
Rich Harris bd002f94bc extract some shared init logic
8 years ago
Rich Harris 6ad8c38663 Merge pull request #852 from sveltejs/gh-849
8 years ago
Rich Harris 14463380f7 Merge pull request #851 from sveltejs/gh-850
8 years ago
Rich Harris 58cc7f8ed1 allow console.* calls in event handlers. fixes #782
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 9b505de3a0 compile time error on slotted content inside if/each blocks. closes #849
8 years ago
Rich Harris 0a0f474e43 use anchor.parentNode as target instead of slot document fragment - fixes #850
8 years ago
Rich Harris fbbaff5404 typo
8 years ago
Rich Harris 049fe59082 Merge pull request #847 from sveltejs/gh-827
8 years ago
Rich Harris 3879d52616 dont slot elements inside custom elements - fixes #827
8 years ago
Rich Harris 770c14955d escape shadow DOM CSS - fixes #840
8 years ago
Rich Harris 61476048c8 dont use skipped text nodes as anchors - fixes #843
8 years ago
martinandert 37f5a626b3 Add parenthesis around or'd expression
8 years ago
Rich Harris 1bdd624b35 prevent accidentally reintroducing ES6 into shared helpers
8 years ago
P 072f541855 Change let -> var, solves #838
8 years ago
Rich Harris 975a974578 use anchors for slotted content - fixes #822
8 years ago
Rich Harris bf3afe955c Merge pull request #833 from sveltejs/nightmare
8 years ago
Rich Harris 5f2ea34d84 always attach fragment to shadow root (fixes #821)
8 years ago
Rich Harris d75ab8544e remove requestAnimationFrame stuff, convert time ranges to {start, end} objects
8 years ago
Rich Harris 35637d8da8 Merge branch 'martinandert-bind-buffered-played-seekable-of-media'
8 years ago
Jacob Mischka 91e04da952
Check legacy, quote all reserved names
8 years ago
Jacob Mischka b367cdac40
Quote `class` property name in attributes.
8 years ago
Conduitry 88048188ae update to css-tree@1.0.0-alpha22
8 years ago
jpsc 8639359aa7 feat(a11y): add warning missing lang on html tag
8 years ago
Rich Harris d1482f0541 Merge branch 'bind-buffered-played-seekable-of-media' of https://github.com/martinandert/svelte into martinandert-bind-buffered-played-seekable-of-media
8 years ago
martinandert db0b6d712f Make buffered/played/seekable attributes of media element bindable
8 years ago
Rich Harris 7c6ea13689 reenable all tests, fix some failures
8 years ago
Rich Harris 85e9ed9a81 tabindex-no-positive
8 years ago
Rich Harris 915c1835a4 scope
8 years ago
Rich Harris b3409ad405 no-distracting-elements
8 years ago
Rich Harris 81c5a1fb3b no-autofocus
8 years ago
Rich Harris d5b8d2fd48 no-access-key
8 years ago
Rich Harris 2364f6a04d heading-has-content
8 years ago
Rich Harris c62a74e8ae aria-role
8 years ago
Rich Harris 125191a843 aria-props
8 years ago
Rich Harris a90e072086 alt-text
8 years ago
Rich Harris 6133976fec anchor-is-valid
8 years ago
Rich Harris bacbaef868 anchor-has-content
8 years ago
Rich Harris 51c2e0581b a11y checks (#374)
8 years ago
Rich Harris 66c382acae Merge branch 'master' of github.com:sveltejs/svelte
8 years ago
Rich Harris c2352fe140 Merge pull request #814 from sveltejs/gh-645
8 years ago
Rich Harris 822f070d7e missed a few
8 years ago
Rich Harris 5e325d5a87 remove redundant input blowback guard - closes #645
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 7401590fba Merge branch 'master' into gh-797
8 years ago
Rich Harris 2380109f15 handly directly instantiated custom elements, and slots
8 years ago
Rich Harris 186b770ef4 use helper for setting styles
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 af618ba93f render <slot> elements
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 d54d00cac1 handle url(...) and quoted values
8 years ago
Rich Harris 228a7808ac optimize style attributes
8 years ago
Rich Harris fb972566a4 prevent mutation bug from incorrectly calling observer (fixes #804)
8 years ago
Rich Harris f5958584d9 dont noop set/get until after component is destroyed (fixes #788)
8 years ago
Rich Harris a68f7e103f stack up append targets so that slotted content in nested components works in SSR mode (fixes #801)
8 years ago
Rich Harris c682e365f6 optimise case where we can use innerHTML
8 years ago
Rich Harris d1a6f9c11e only use comments around <slot> as necessary
8 years ago
Rich Harris 6e9f9633b0 set all node.var names in preprocess
8 years ago
Rich Harris 370327cccd more tidying up
8 years ago
Rich Harris 4603d7700f more refactoring
8 years ago
Rich Harris 9fae7671a4 refactor node._state stuff
8 years ago
Rich Harris 6499d4714d only use noscript if necessary
8 years ago
Rich Harris 457f0189d4 determine needsAnchor lazily
8 years ago
Rich Harris 5c88b6c864 usedAsAnchor is not used
8 years ago
Rich Harris 587d1f8994 remove some unused code
8 years ago
Rich Harris 39681565e3 handle unquoted attribute values (fixes #798)
8 years ago
Rich Harris 0efa2ac7d7 Merge pull request #796 from sveltejs/gh-757
8 years ago
Rich Harris ce109f0eb3 Merge pull request #794 from sveltejs/gh-550
8 years ago
Rich Harris 502f6b6d14 Merge pull request #793 from sveltejs/gh-791
8 years ago
Rich Harris ff2e169b75 handle css vars in <style> tags (fixes #757)
8 years ago
Rich Harris d8269b3e7f attach options to component (#550)
8 years ago
Rich Harris cb92f3028e error if component has transition (fixes #791)
8 years ago
Rich Harris 5b3e8cd88f support nested <slot> elements
8 years ago
Rich Harris 6fad3cbf9c Merge pull request #787 from sveltejs/gh-763
8 years ago
Rich Harris 143d0ea753 dont actually render <slot> elements
8 years ago
Rich Harris a469b560d8 only add this._slotted if necessary
8 years ago
Rich Harris 361a19df17 wrap fallback hydration code in conditional
8 years ago
Rich Harris a023346c91 validation
8 years ago
Rich Harris aa183df289 fallback content
8 years ago
Rich Harris 41026341d8 populate component.slots
8 years ago
Rich Harris 1ae3ab7bf9 server-side named slots
8 years ago
Rich Harris efe25555cf client-side named slots
8 years ago
Rich Harris 7a8c8fd577 replace {{yield}} with <slot/>
8 years ago
Rich Harris b43bc83cd9 Merge pull request #786 from sveltejs/gh-783
8 years ago
Rich Harris 71f9940f17 remove leading selectors safely - fixes #783
8 years ago
Rich Harris d734a6b823 start work on <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 3e94650397 Merge pull request #775 from sveltejs/gh-774
8 years ago
Rich Harris a339d3f6e5 order statements more logically
8 years ago
Rich Harris 6f28f25a68 consolidate everything in Component.ts - much cleaner
8 years ago
Rich Harris 507d6a4062 move event handlers and refs inside Component.ts
8 years ago
Rich Harris ee5a4b3d0b tidy up a bit
8 years ago
Rich Harris bf4e6ef6b1 smarter handling of keyframes - fixes #774
8 years ago
Rich Harris 8818357fc4 tidy up
8 years ago
Rich Harris e8b151cfee all tests passing
8 years ago
Rich Harris 12e9a9276c almost working
8 years ago
Rich Harris 6366a4f55e update component bindings together. WIP
8 years ago
Rich Harris b2a81fbe46 rename function
8 years ago
Rich Harris c135d0cfab apply encapsulating attributes to correct elements and selector parts (#767)
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 6222198017 add note to self
8 years ago
Rich Harris f31c206b73 tidy up, dedupe a bit
8 years ago
Rich Harris 4dd5fc5594 apply optimisation to raw tags
8 years ago
Rich Harris 5070219218 fix select edge case
8 years ago
Rich Harris 531354fc39 only cache values when it makes sense
8 years ago
Rich Harris 136a2fd31c only cache values if necessary
8 years ago
Rich Harris bfc940f396 handle funky edge case around outroing blocks
8 years ago
Rich Harris caffcd5f79 pass updated state to observers
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 3757e75d51 Merge pull request #766 from sveltejs/gh-740
8 years ago
Rich Harris 2b41b83752 Merge pull request #765 from sveltejs/gh-759
8 years ago
Rich Harris da6b08ccc7 bind to change events for range inputs, as well as input events (#740)
8 years ago
Rich Harris 9d8f4d341d preserve space before non-parenthesized media query expression - fixes #759
8 years ago
Rich Harris 1f5f9604a8 call create() on new iterations of static each blocks (#762)
8 years ago
Rich Harris fd3792bd60 replace destroy with noop on destroy
8 years ago
Rich Harris 44b73191c7 update tests
8 years ago
Rich Harris 85f5ebdec1 replace set with noop instead of checking _destroyed
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 fef2367c11 rename to select_block_type and current_block_type
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 b99e9207ac reuse helper
8 years ago
Rich Harris a524ab273e fix escaping/unescaping — closes #741
8 years ago
Rich Harris bdb34a243c avoid string manipulation bugs by not minifying combinators if cascade: true (#743)
8 years ago
Rich Harris 778a03e2c6 Merge branch 'master' into gh-693
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