442 Commits

Author SHA1 Message Date
6e2c0b404f docs(README): patch publishing info 2024-02-25 00:25:55 +02:00
8dca45c6a3 build: move to pnpm 2024-02-18 16:54:07 +02:00
a8f9b32afd docs: move package ownership to Resultium v1.0.1 2024-02-18 16:48:46 +02:00
64405981fe docs(readme): replace spare yarn instruction with npm 2024-02-15 21:02:43 +02:00
5121b24802 fix: add export condition for svelte v4 2024-02-15 20:51:13 +02:00
737bc0c1b0 fix: vulnerable package version usage v1.0.0 2024-02-15 20:45:53 +02:00
Vadim
81165fd872 Merge pull request #137 from TomDo1234/main
Fixed Storybook ESM error
2023-04-03 23:57:03 +03:00
Vadim
707b523fed Update docs 2023-04-03 23:54:49 +03:00
Vadim
0f6ade8c14 Bump version 2023-04-03 23:53:56 +03:00
Vadim
3eaf793bec Update dependecies 2023-04-03 23:53:38 +03:00
Tom Do
1a4d87c8c7 Fixed Storybook ESM error 2023-03-29 21:46:24 +11:00
Vadim
433e80272e Update docs 2023-03-24 22:37:04 +03:00
Vadim
68cef5b136 Bump version 2023-03-24 22:36:55 +03:00
Vadim
f2f9319bdf Update lib 2023-02-22 15:51:36 +03:00
Vadim
adffc51ee1 Merge pull request #131 from webspilka/patch-1
Update README.md
2023-02-18 19:34:15 +03:00
Vitaliy Tsymbalyuk
f76c55baed Update README.md
`$app/env` changed to `$app/environment`
2023-02-14 13:22:14 +02:00
Vadim
601d449b68 Bump version 2023-01-26 01:04:07 +03:00
Vadim
32c070c2c1 Update docs 2023-01-26 01:03:25 +03:00
Vadim
c73d1320e7 Merge pull request #128 from oetiker/patch-2
Make svelte-carousel work in svelte-kit build version too
2023-01-26 01:01:25 +03:00
Tobias Oetiker
958aac65b7 make svelte-carousel work in build version too
by adding a svelte property (not sure if this is really the way to go!) we can make the runtime build version in svelte kit make work too. Without this, things end badly when running the build version:

```
0|itis-tng | TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".svelte" for /home/oetiker/checkouts/itis-tng-svelte-tailwind/node_modules/svelte-carousel/src/components/Carousel/Carousel.svelte
0|itis-tng |     at new NodeError (node:internal/errors:387:5)
0|itis-tng |     at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:76:11)
0|itis-tng |     at defaultGetFormat (node:internal/modules/esm/get_format:118:38)
0|itis-tng |     at defaultLoad (node:internal/modules/esm/load:81:20)
0|itis-tng |     at nextLoad (node:internal/modules/esm/loader:165:28)
0|itis-tng |     at ESMLoader.load (node:internal/modules/esm/loader:608:26)
0|itis-tng |     at ESMLoader.moduleProvider (node:internal/modules/esm/loader:464:22)
0|itis-tng |     at new ModuleJob (node:internal/modules/esm/module_job:63:26)
0|itis-tng |     at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:483:17)
0|itis-tng |     at ESMLoader.getModuleJob (node:internal/modules/esm/loader:441:34)
```
2023-01-25 09:45:28 +01:00
Vadim
051845bd69 Bump version 2023-01-21 23:57:47 +03:00
Vadim
1365cf0c8e Update docs 2023-01-21 23:57:26 +03:00
Vadim
efa707a2c3 Merge pull request #126 from aunumever/patch-2
Add `type: module` to package.json
2023-01-21 23:53:40 +03:00
Aunum
4efcfe7a0a Added module param
Module param required for valid package. Causing issues deploying to Netlify.
2023-01-01 16:52:11 -05:00
Aunum
b30885ea02 Add type: module to package.json
Can't deploy to Netlify because package throws an error of not having `type: module` in package.json:

```
Dec 29, 11:07:56 AM: 6be0f3aa ERROR  (node:8) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
Dec 29, 11:07:56 AM: 6be0f3aa ERROR  Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"SyntaxError: Cannot use import statement outside a module","reason":{"errorType":"SyntaxError","errorMessage":"Cannot use import statement outside a module","stack":["/var/task/node_modules/svelte-carousel/src/main.js:1","import Carousel from './components/Carousel/Carousel.svelte'","^^^^^^","","SyntaxError: Cannot use import statement outside a module","    at Object.compileFunction (node:vm:352:18)","    at wrapSafe (node:internal/modules/cjs/loader:1033:15)","    at Module._compile (node:internal/modules/cjs/loader:1069:27)","    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)","    at Module.load (node:internal/modules/cjs/loader:981:32)","    at Function.Module._load (node:internal/modules/cjs/loader:822:12)","    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:163:29)","    at ModuleJob.run (node:internal/modules/esm/module_job:198:25)","    at async Promise.all (index 0)","    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: SyntaxError: Cannot use import statement outside a module","    at process.<anonymous> (file:///var/runtime/index.mjs:1194:17)","    at process.emit (node:events:527:28)","    at emit (node:internal/process/promises:140:20)","    at processPromiseRejections (node:internal/process/promises:274:27)","    at processTicksAndRejections (node:internal/process/task_queues:97:32)"]}
Dec 29, 11:07:56 AM: Unknown application error occurred
Runtime.Unknown
Dec 29, 11:07:56 AM: 6be0f3aa Duration: 634.54 ms	Memory Usage: 58 MB
```
2022-12-29 11:16:38 -05:00
Vadim
311f69d2a7 Upgrade version, compile docs 2022-09-03 13:43:40 +03:00
Vadim
db5ffc41b9 Update docs 2022-09-03 13:32:53 +03:00
Vadim
9b0258ad9d Code cleanup 2022-09-03 13:30:57 +03:00
Vadim
805bc58aad Update readme 2022-09-03 13:20:58 +03:00
Vadim
144d17062d Merge pull request #114 from oetiker/patch-1
make sveltekit look more idiomatic
2022-09-03 13:19:31 +03:00
Vadim
e1b9d63776 Update docs 2022-09-03 13:17:05 +03:00
Vadim
71c34fd7b1 Merge pull request #110 from laazyCmd/main
 allow `currentPageIndex` be used by the contents
2022-09-03 13:04:17 +03:00
Vadim
ef5a1cbbb1 Merge pull request #113 from CoryParsnipson/main
Remove preventDefault from swipeable and tappable.
2022-09-03 12:54:29 +03:00
Tobias Oetiker
57e3c52148 make sveltekit look more idiomatic
Using the `$app/env` we can make this look much more idiomatic. While still ensuring the code only runs in the browser.

The compiler is not entirely happy as it still complains:

```
svelte-carousel doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
```
but the resulting code seems to work fine
2022-06-27 15:42:29 +02:00
Cory Parsnipson
fc2c0e899a Remove preventDefault from swipeable and tappable.
This was prevent carousel particles that contained clickable items from
working properly on mobile devices.

Removing preventDefault from both locations allows these items to
response properly when clicked. No adverse behavior had been observed.
Tested on a Pixel 2 phone monitored with chrome dev tools.
2022-06-23 17:12:04 -07:00
laazyCmd
5ef60898e9 allow currentPageIndex be used by the contents 2022-05-06 19:03:23 +08:00
Vadim
67c227995b Upgrade version, update docs 2022-05-05 18:50:31 +03:00
Vadim
a974cb1f58 Merge pull request #109 from vadimkorr/bugfix/#94_Fix-dispatch-pageChange-event
#94 Fix dispatching pageChange event
2022-05-05 17:48:52 +03:00
Vadim
2268f00bcd Code cleanup 2022-05-04 23:17:14 +03:00
Vadim
086a68c242 #94 : Dispatch pageChange 2022-05-04 23:14:29 +03:00
Vadim
0709dafeaa Upgrade version, update docs 2022-05-04 23:00:10 +03:00
Vadim
6c17b22eca Merge pull request #108 from vadimkorr/feature/#101_Keyboard-control
#101 Keyboard control
2022-05-04 22:52:24 +03:00
Vadim
c6679b52e7 #101 : Update button styles 2022-05-04 22:51:50 +03:00
Vadim
bfa295eb81 Merge pull request #103 from myrdn/main
Accessibility : Add keyboard control using html buttons
2022-05-04 22:31:01 +03:00
Vadim
4aa7a4eebc Merge pull request #107 from vadimkorr/feature/#84_Marquee-mode
#84 Validate autoplay duration value, add marquee demo
2022-05-04 22:25:05 +03:00
Vadim
f505b1a361 #84 : Validate autoplay duration value, add marquee demo 2022-05-04 22:23:51 +03:00
Myrdin
f6b6064954 Add outline on focus 2022-03-28 19:31:39 +02:00
Myrdin
290e9cb9a7 Reset button styles 2022-03-28 19:30:18 +02:00
Myrdin
3aea594f28 Change div to button for dot 2022-03-28 19:29:18 +02:00
Myrdin
573c2b0779 Change div to button for arrows 2022-03-28 19:28:15 +02:00