bard-attachment_field 0.5.3 → 0.5.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.
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
21
  spec.files = Dir.chdir(__dir__) do
22
22
  `git ls-files -z`.split("\x0").reject do |f|
23
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
23
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features|demo|public)/|config\.ru|\.(?:git|travis|circleci)|appveyor)})
24
24
  end
25
25
  end
26
26
  spec.bindir = "exe"
Binary file
@@ -11,6 +11,7 @@
11
11
  "scripts": {
12
12
  "prepublishOnly": "bun run build",
13
13
  "build": "bunx stencil build --docs && bun run bundle",
14
+ "build:dev": "stencil build && esbuild src/entry.js --bundle --format=esm --outfile=dist/input-attachment.esm.js",
14
15
  "bundle": "bunx esbuild src/entry.js --bundle --format=esm --outfile=dist/input-attachment.esm.js",
15
16
  "start": "bunx stencil build --docs --watch --serve",
16
17
  "test": "NODE_OPTIONS=--experimental-vm-modules bunx stencil test --spec --e2e --max-workers=1",
@@ -33,7 +34,7 @@
33
34
  },
34
35
  "dependencies": {
35
36
  "@botandrose/file-drop": "^0.1.1",
36
- "@botandrose/progress-bar": "^0.1.5",
37
+ "@botandrose/progress-bar": "^0.3.0",
37
38
  "@rails/activestorage": "^8.1.0",
38
39
  "@rails/request.js": "0.0.13",
39
40
  "@stencil/core": "^4.43.2",
@@ -43,6 +44,7 @@
43
44
  "devDependencies": {
44
45
  "@types/jest": "^29.5.12",
45
46
  "@types/node": "^24.9.1",
47
+ "esbuild": "^0.28.0",
46
48
  "jest": "^29.7.0",
47
49
  "jest-cli": "^29.7.0",
48
50
  "puppeteer": "^24.26.1"
@@ -17,7 +17,6 @@ figure{
17
17
 
18
18
  progress-bar{
19
19
  flex: 1 0;
20
- padding: 0 10px;
21
20
  }
22
21
 
23
22
  progress-bar.pending{
@@ -131,7 +131,7 @@ export class AttachmentFile {
131
131
  </slot>
132
132
  <figure>
133
133
  <div class="progress-details">
134
- <progress-bar percent={this.percent} class={this.state}>
134
+ <progress-bar percent={this.percent} class={this.state} error={this.state === "error"}>
135
135
  <a class="download-link" href={this.src} download={this.filename} onClick={e => e.stopPropagation()}>
136
136
  {this.filename}
137
137
  </a>
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bard
4
4
  module AttachmentField
5
- VERSION = "0.5.3"
5
+ VERSION = "0.5.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-attachment_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-04-24 00:00:00.000000000 Z
11
+ date: 2026-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage