nanosplash 4.0.8 → 4.0.17

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.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +23 -25
  3. package/dist/cjs/ns.cjs.js +1 -1
  4. package/dist/es/ns.es.js +24 -27
  5. package/dist/iife/ns.iife.js +1 -1
  6. package/package.json +30 -23
  7. package/{src/types → types}/global.d.ts +1 -1
  8. package/{src/interfaces/INSElement.ts → types/interfaces/INSElement.d.ts} +1 -1
  9. package/{src/interfaces/INanosplash.ts → types/interfaces/INanosplash.d.ts} +2 -2
  10. package/.github/workflows/ci.all.yml +0 -32
  11. package/.github/workflows/ci.prod.pull_request.yml +0 -54
  12. package/.github/workflows/ci.prod.push.yml +0 -61
  13. package/.github/workflows/ci.test.yml +0 -56
  14. package/.github/workflows/reusable.build.yml +0 -42
  15. package/.github/workflows/reusable.format.yml +0 -55
  16. package/.github/workflows/reusable.lint.yml +0 -30
  17. package/.github/workflows/reusable.npm-publish.yml +0 -61
  18. package/.github/workflows/reusable.test.yml +0 -50
  19. package/.prettierrc +0 -11
  20. package/bun.lock +0 -765
  21. package/coverage/lcov-report/base.css +0 -224
  22. package/coverage/lcov-report/block-navigation.js +0 -87
  23. package/coverage/lcov-report/favicon.png +0 -0
  24. package/coverage/lcov-report/index.html +0 -176
  25. package/coverage/lcov-report/prettify.css +0 -1
  26. package/coverage/lcov-report/prettify.js +0 -2
  27. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  28. package/coverage/lcov-report/sorter.js +0 -196
  29. package/coverage/lcov-report/src/composables/index.html +0 -116
  30. package/coverage/lcov-report/src/composables/ns.ts.html +0 -547
  31. package/coverage/lcov-report/src/constants/index.html +0 -116
  32. package/coverage/lcov-report/src/constants/ns.ts.html +0 -124
  33. package/coverage/lcov-report/src/iife.ts.html +0 -100
  34. package/coverage/lcov-report/src/index.html +0 -116
  35. package/coverage/lcov-report/src/interfaces/INSElement.ts.html +0 -100
  36. package/coverage/lcov-report/src/interfaces/INanosplash.ts.html +0 -304
  37. package/coverage/lcov-report/src/interfaces/index.html +0 -131
  38. package/coverage/lcov-report/src/utils/dom-utils.ts.html +0 -289
  39. package/coverage/lcov-report/src/utils/index.html +0 -116
  40. package/coverage/lcov.info +0 -271
  41. package/eslint.config.js +0 -14
  42. package/src/composables/ns.ts +0 -154
  43. package/src/constants/ns.ts +0 -13
  44. package/src/iife.ts +0 -5
  45. package/src/style/ns.css +0 -134
  46. package/src/utils/dom-utils.ts +0 -68
  47. package/src/vite-env.d.ts +0 -1
  48. package/tests/ns.spec.ts +0 -123
  49. package/tsconfig.json +0 -31
  50. package/vite.config.ts +0 -36
  51. package/vitest.config.ts +0 -20
  52. /package/{src/types → types}/dom.d.ts +0 -0
  53. /package/{src/types → types}/generic/function.d.ts +0 -0
  54. /package/{src/types → types}/semantic/number.d.ts +0 -0
  55. /package/{src/types → types}/semantic/string.d.ts +0 -0
@@ -1,55 +0,0 @@
1
- name: Reusable - Prettier Formatting
2
-
3
- on:
4
- workflow_call:
5
- inputs:
6
- persistent:
7
- required: true
8
- type: boolean
9
-
10
- jobs:
11
- run-prettier:
12
- runs-on: ubuntu-latest
13
-
14
- steps:
15
- # Checking out the repository with the latest version
16
- - uses: actions/checkout@v4
17
-
18
- # Setting up the latest Bun.js version
19
- - name: Set up Bun.js
20
- uses: oven-sh/setup-bun@v2
21
- with:
22
- bun-version: 'latest'
23
-
24
- # Installing dependencies using Bun
25
- - name: Install Dependencies
26
- run: bun install
27
-
28
- # Running Prettier using Bun
29
- - name: Run Prettier Format
30
- run: bun run format
31
-
32
- # Committing formatted files to the current branch
33
- - name: Commit Formatted Files
34
- if: ${{ inputs.persistent }}
35
- run: |
36
- git config --global user.name "GitHub Actions"
37
- git config --global user.email "actions@github.com"
38
-
39
- # Stage all changes
40
- git add .
41
-
42
- # Check if there are any staged changes
43
- if ! git diff --cached --quiet; then
44
- echo "There are changes to commit and push."
45
-
46
- # Commit the changes
47
- git commit -m "GitHub Actions: Format using Prettier"
48
-
49
- # Push to the current branch
50
- git push
51
- else
52
- echo "No changes to commit."
53
- fi
54
- env:
55
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,30 +0,0 @@
1
- name: Reusable - ESLint (non-persistent)
2
-
3
- on:
4
- workflow_call:
5
- inputs:
6
- run-linting:
7
- required: true
8
- type: boolean
9
-
10
- jobs:
11
- run-eslint:
12
- runs-on: ubuntu-latest
13
-
14
- steps:
15
- # Checking out the repository with the latest version
16
- - uses: actions/checkout@v4
17
-
18
- # Setting up the latest Bun.js version
19
- - name: Set up Bun.js
20
- uses: oven-sh/setup-bun@v2
21
- with:
22
- bun-version: 'latest'
23
-
24
- # Installing dependencies using Bun
25
- - name: Install Dependencies
26
- run: bun install
27
-
28
- # Running Vitest with coverage using Bun
29
- - name: Run ESLint
30
- run: bun run lint
@@ -1,61 +0,0 @@
1
- name: Reusable - NPM Publish
2
-
3
- on:
4
- workflow_call:
5
- inputs:
6
- persistent:
7
- required: true
8
- type: boolean
9
-
10
- jobs:
11
- npm-publish:
12
- runs-on: ubuntu-latest
13
-
14
- steps:
15
- # Checking out the repository with the latest version
16
- - uses: actions/checkout@v4
17
-
18
- # Setting up the latest Node.js version
19
- - name: Set up Node.js
20
- uses: actions/setup-node@v4
21
- with:
22
- node-version: 'latest'
23
- registry-url: 'https://registry.npmjs.org' # Specify NPM registry
24
-
25
- # Installing dependencies
26
- - name: Install Dependencies
27
- run: npm install --no-package-lock
28
-
29
- # Get the version inside package.json
30
- - name: Get version from package.json
31
- id: get-version
32
- run: |
33
- VERSION=$(node -p "require('./package.json').version")
34
- echo "VERSION=$VERSION" >> $GITHUB_ENV
35
-
36
- # Publishing to NPM (dry-run for testing purposes)
37
- - name: Publish to NPM (dry-run)
38
- run: npm publish --dry-run
39
- env:
40
- NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
41
-
42
- # Commit the version tag made by NPM
43
- - name: Commit version tag
44
- if: ${{ inputs.persist }}
45
- run: |
46
- git config --global user.name "GitHub Actions"
47
- git config --global user.email "actions@github.com"
48
- git add .
49
- git commit -m "GitHub Actions: NPM build ${{ env.VERSION }}" --allow-empty
50
- git push origin
51
- env:
52
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
-
54
- - name: Configure npm for authentication
55
- run: echo "https://registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
56
-
57
- - name: Publish to NPM
58
- if: ${{ inputs.persistent }}
59
- run: npm publish
60
- env:
61
- NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
@@ -1,50 +0,0 @@
1
- name: Reusable - Run Tests
2
-
3
- on:
4
- workflow_call:
5
- inputs:
6
- persistent:
7
- required: true
8
- type: boolean
9
-
10
- jobs:
11
- run-vitest:
12
- runs-on: ubuntu-latest
13
-
14
- steps:
15
- # Checking out the repository with the latest version
16
- - uses: actions/checkout@v4
17
-
18
- # Setting up the latest Bun.js version
19
- - name: Set up Bun.js
20
- uses: oven-sh/setup-bun@v2
21
- with:
22
- bun-version: 'latest'
23
-
24
- # Installing dependencies using Bun
25
- - name: Install Dependencies
26
- run: bun install
27
-
28
- # Running Vitest with coverage using Bun
29
- - name: Run Vitest
30
- run: bunx vitest
31
-
32
- # Committing coverage artifacts to the current branch
33
- - name: Commit Build
34
- if: ${{ inputs.persistent }}
35
- run: |
36
- git config --global user.name "GitHub Actions"
37
- git config --global user.email "actions@github.com"
38
- git add .
39
- git commit -m "GitHub Actions: Create Test Coverage" --allow-empty
40
- git push
41
- env:
42
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43
-
44
- # Uploading coverage to Coveralls
45
- - name: Upload Coverage to Coveralls
46
- if: ${{ inputs.persistent }}
47
- uses: coverallsapp/github-action@v2
48
- with:
49
- github-token: ${{ secrets.GITHUB_TOKEN }}
50
- path-to-lcov: ./coverage/lcov.info
package/.prettierrc DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "tabWidth": 2,
3
- "singleQuote": true,
4
- "bracketSpacing": true,
5
- "jsxSingleQuote": true,
6
- "endOfLine": "lf",
7
- "trailingComma": "es5",
8
- "arrowParens": "avoid",
9
- "semi": false,
10
- "printWidth": 80
11
- }