@txstate-mws/svelte-components 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # create-svelte
2
-
3
- Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
4
-
5
- ## Creating a project
6
-
7
- If you're seeing this, you've probably already done this step. Congrats!
8
-
9
- ```bash
10
- # create a new project in the current directory
11
- npm init svelte@next
12
-
13
- # create a new project in my-app
14
- npm init svelte@next my-app
15
- ```
16
-
17
- > Note: the `@next` is temporary
1
+ # svelte-components
2
+ A set of generically useful components for svelte.
3
+
4
+ ## Components
5
+ - [CollapsingTable](/docs/CollapsingTable.md)
6
+ - [ConditionalWrapper](/docs/ConditionalWrapper.md)
7
+ - [FocusLock](/docs/Modal.md#FocusLock)
8
+ - [Modal](/docs/Modal.md#Modal)
9
+ - [PopupMenu](/docs/PopupMenu.md)
10
+ - [ScreenReaderOnly](/docs/ScreenReaderOnly.md)
11
+
12
+ ## Actions
13
+ - [use:buttonify](/docs/actions.md#use:buttonify)
14
+ - [use:glue](/docs/actions.md#use:glue)
15
+ - [use:offset](/docs/actions.md#use:offset)
16
+ - [use:portal](/docs/actions.md#use:portal)
17
+ - [use:resize](/docs/actions.md#use:resize)
18
18
 
19
19
  ## Developing
20
20
 
21
- Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
21
+ Installed dependencies with `npm install`, then start the development server:
22
22
 
23
23
  ```bash
24
24
  npm run dev
@@ -27,14 +27,10 @@ npm run dev
27
27
  npm run dev -- --open
28
28
  ```
29
29
 
30
- ## Building
31
-
32
- To create a production version of your app:
30
+ ## Publishing to npm
33
31
 
34
32
  ```bash
35
- npm run build
33
+ npm run package
34
+ cd package
35
+ npm publish
36
36
  ```
37
-
38
- You can preview the production build with `npm run preview`.
39
-
40
- > To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@txstate-mws/svelte-components",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Svelte components that are generically useful.",
5
5
  "dependencies": {
6
- "@txstate-mws/svelte-store": "^1.0.2",
6
+ "@txstate-mws/svelte-store": "^1.0.3",
7
7
  "tabbable": "^5.2.1",
8
8
  "txstate-utils": "^1.6.0"
9
9
  },
@@ -1,5 +1,4 @@
1
- import equal from 'fast-deep-equal';
2
- import { isNotNull, randomid, toArray } from 'txstate-utils';
1
+ import { equal, isNotNull, randomid, toArray } from 'txstate-utils';
3
2
  import { bodyOffset, targetOffset } from './bodyoffset.js';
4
3
  const observers = new Map();
5
4
  let mutationobserver;