mirror of https://github.com/sveltejs/svelte
commit
285ed4f446
@ -0,0 +1 @@
|
||||
export * from './dist/animate';
|
@ -0,0 +1 @@
|
||||
export * from './dist/compiler';
|
@ -0,0 +1 @@
|
||||
export * from './dist/easing';
|
@ -0,0 +1 @@
|
||||
export * from './dist/index';
|
@ -1,10 +0,0 @@
|
||||
export {
|
||||
onMount,
|
||||
onDestroy,
|
||||
beforeUpdate,
|
||||
afterUpdate,
|
||||
setContext,
|
||||
getContext,
|
||||
tick,
|
||||
createEventDispatcher
|
||||
} from './internal';
|
@ -0,0 +1 @@
|
||||
export * from './dist/internal';
|
@ -0,0 +1 @@
|
||||
export * from './dist/motion';
|
@ -1,5 +1,5 @@
|
||||
import { cubicOut } from './easing';
|
||||
import { is_function } from './internal';
|
||||
import { cubicOut } from 'svelte/easing';
|
||||
import { is_function } from 'svelte/internal';
|
||||
|
||||
export function flip(node, animation, params) {
|
||||
const style = getComputedStyle(node);
|
@ -0,0 +1,6 @@
|
||||
export { default as compile } from './compile/index';
|
||||
export { default as parse } from './parse/index';
|
||||
export { default as preprocess } from './preprocess/index';
|
||||
export { walk } from 'estree-walker';
|
||||
|
||||
export const VERSION = '__VERSION__';
|
@ -1,6 +1,10 @@
|
||||
export { default as compile } from './compile/index';
|
||||
export { default as parse } from './parse/index';
|
||||
export { default as preprocess } from './preprocess/index';
|
||||
export { walk } from 'estree-walker';
|
||||
|
||||
export const VERSION = '__VERSION__';
|
||||
export {
|
||||
onMount,
|
||||
onDestroy,
|
||||
beforeUpdate,
|
||||
afterUpdate,
|
||||
setContext,
|
||||
getContext,
|
||||
tick,
|
||||
createEventDispatcher
|
||||
} from 'svelte/internal';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { identity as linear, noop, now } from './utils.js';
|
||||
import { loop } from './loop.js';
|
||||
import { create_rule, delete_rule } from './style_manager.js';
|
||||
import { identity as linear, noop, now } from './utils';
|
||||
import { loop } from './loop';
|
||||
import { create_rule, delete_rule } from './style_manager';
|
||||
|
||||
export function create_animation(node, from, fn, params) {
|
||||
if (!from) return noop;
|
@ -1,11 +1,11 @@
|
||||
import { assign, is_promise } from './utils.js';
|
||||
import { check_outros, group_outros, on_outro } from './transitions.js';
|
||||
import { flush } from '../internal/scheduler.js';
|
||||
import { assign, is_promise } from './utils';
|
||||
import { check_outros, group_outros, on_outro } from './transitions';
|
||||
import { flush } from '../internal/scheduler';
|
||||
|
||||
export function handle_promise(promise, info) {
|
||||
const token = info.token = {};
|
||||
|
||||
function update(type, index, key, value) {
|
||||
function update(type, index, key?, value?) {
|
||||
if (info.token !== token) return;
|
||||
|
||||
info.resolved = key && { [key]: value };
|
@ -1,12 +0,0 @@
|
||||
export * from './animations.js';
|
||||
export * from './await-block.js';
|
||||
export * from './dom.js';
|
||||
export * from './keyed-each.js';
|
||||
export * from './lifecycle.js';
|
||||
export * from './loop.js';
|
||||
export * from './scheduler.js';
|
||||
export * from './spread.js';
|
||||
export * from './ssr.js';
|
||||
export * from './transitions.js';
|
||||
export * from './utils.js';
|
||||
export * from './Component.js';
|
@ -0,0 +1,12 @@
|
||||
export * from './animations';
|
||||
export * from './await-block';
|
||||
export * from './dom';
|
||||
export * from './keyed-each';
|
||||
export * from './lifecycle';
|
||||
export * from './loop';
|
||||
export * from './scheduler';
|
||||
export * from './spread';
|
||||
export * from './ssr';
|
||||
export * from './transitions';
|
||||
export * from './utils';
|
||||
export * from './Component';
|
@ -1,4 +1,4 @@
|
||||
import { on_outro } from './transitions.js';
|
||||
import { on_outro } from './transitions';
|
||||
|
||||
export function destroy_block(block, lookup) {
|
||||
block.d(1);
|
@ -1,5 +1,5 @@
|
||||
import { run_all } from './utils.js';
|
||||
import { set_current_component } from './lifecycle.js';
|
||||
import { run_all } from './utils';
|
||||
import { set_current_component } from './lifecycle';
|
||||
|
||||
export const dirty_components = [];
|
||||
export const intros = { enabled: false };
|
@ -1,5 +1,5 @@
|
||||
import { set_current_component, current_component } from './lifecycle.js';
|
||||
import { run_all, blank_object } from './utils.js';
|
||||
import { set_current_component, current_component } from './lifecycle';
|
||||
import { run_all, blank_object } from './utils';
|
||||
|
||||
export const invalid_attribute_name_character = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;
|
||||
// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
|
@ -1,2 +0,0 @@
|
||||
export * from './spring.js';
|
||||
export * from './tweened.js';
|
@ -0,0 +1,2 @@
|
||||
export * from './spring';
|
||||
export * from './tweened';
|
@ -1,7 +1,7 @@
|
||||
import { writable } from 'svelte/store'; // eslint-disable-line import/no-unresolved
|
||||
import { assign, loop, now } from 'svelte/internal'; // eslint-disable-line import/no-unresolved
|
||||
import { linear } from 'svelte/easing'; // eslint-disable-line import/no-unresolved
|
||||
import { is_date } from './utils.js';
|
||||
import { is_date } from './utils';
|
||||
|
||||
function get_interpolator(a, b) {
|
||||
if (a === b || a !== a) return () => a;
|
@ -1,3 +1,3 @@
|
||||
export function is_date(obj) {
|
||||
export function is_date(obj: any) {
|
||||
return Object.prototype.toString.call(obj) === '[object Date]';
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import { cubicOut, cubicInOut } from './easing';
|
||||
import { assign, is_function } from './internal';
|
||||
import { cubicOut, cubicInOut } from 'svelte/easing';
|
||||
import { assign, is_function } from 'svelte/internal';
|
||||
|
||||
export function fade(node, {
|
||||
delay = 0,
|
@ -0,0 +1 @@
|
||||
export * from './dist/store';
|
@ -0,0 +1 @@
|
||||
export * from './dist/transition';
|
@ -1,18 +1,35 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES6",
|
||||
"diagnostics": true,
|
||||
"target": "es2015",
|
||||
"module": "es6",
|
||||
"declarationDir": "./dist",
|
||||
"outDir": "./dist",
|
||||
"declaration": true,
|
||||
"noImplicitThis": true,
|
||||
"noEmitOnError": true,
|
||||
"allowJs": true,
|
||||
"lib": ["es5", "es6", "dom"],
|
||||
"lib": [
|
||||
"es5",
|
||||
"es6",
|
||||
"dom",
|
||||
"es2015"
|
||||
],
|
||||
"importHelpers": true,
|
||||
"moduleResolution": "node"
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"svelte/internal": ["./src/internal"],
|
||||
"svelte/easing": ["./src/easing"],
|
||||
"svelte/motion": ["./src/motion"],
|
||||
"svelte/store": ["./src/store"]
|
||||
},
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
"dist"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in new issue