Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nextcloud-libraries/nextcloud-dialogs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.2.0
Choose a base ref
...
head repository: nextcloud-libraries/nextcloud-dialogs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.0.0
Choose a head ref

Commits on Jul 21, 2022

  1. Add changelog generator workflow action

    Signed-off-by: Vincent Petry <vincent@nextcloud.com>
    PVince81 committed Jul 21, 2022
    Copy the full SHA
    9c95ccf View commit details
  2. Update release instructions to mention changelog generator

    Signed-off-by: Vincent Petry <vincent@nextcloud.com>
    PVince81 committed Jul 21, 2022
    Copy the full SHA
    29fd89d View commit details

Commits on Aug 11, 2022

  1. Translate /l10n/messages.pot in pt_PT

    translation completed for the source file '/l10n/messages.pot'
    on the 'pt_PT' language.
    transifex-integration[bot] authored Aug 11, 2022
    Copy the full SHA
    f93a4eb View commit details
  2. Copy the full SHA
    dbda6df View commit details

Commits on Aug 13, 2022

  1. Bump @nextcloud/browserslist-config from 2.2.0 to 2.3.0

    Bumps [@nextcloud/browserslist-config](https://github.com/nextcloud/browserslist-config) from 2.2.0 to 2.3.0.
    - [Release notes](https://github.com/nextcloud/browserslist-config/releases)
    - [Commits](nextcloud-libraries/browserslist-config@v2.2.0...v2.3.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@nextcloud/browserslist-config"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 13, 2022
    Copy the full SHA
    9e0dc97 View commit details
  2. Merge pull request #646 from nextcloud/dependabot/npm_and_yarn/nextcl…

    …oud/browserslist-config-2.3.0
    dependabot[bot] authored Aug 13, 2022
    Copy the full SHA
    0970fa3 View commit details
  3. Bump rollup from 2.77.2 to 2.77.3

    Bumps [rollup](https://github.com/rollup/rollup) from 2.77.2 to 2.77.3.
    - [Release notes](https://github.com/rollup/rollup/releases)
    - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
    - [Commits](rollup/rollup@v2.77.2...v2.77.3)
    
    ---
    updated-dependencies:
    - dependency-name: rollup
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 13, 2022
    Copy the full SHA
    42b34d4 View commit details
  4. Copy the full SHA
    5c1e69a View commit details

Commits on Aug 20, 2022

  1. Bump rollup from 2.77.3 to 2.78.1

    Bumps [rollup](https://github.com/rollup/rollup) from 2.77.3 to 2.78.1.
    - [Release notes](https://github.com/rollup/rollup/releases)
    - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
    - [Commits](rollup/rollup@v2.77.3...v2.78.1)
    
    ---
    updated-dependencies:
    - dependency-name: rollup
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 20, 2022
    Copy the full SHA
    9084254 View commit details
  2. Bump rollup-plugin-typescript2 from 0.32.1 to 0.33.0

    Bumps [rollup-plugin-typescript2](https://github.com/ezolenko/rollup-plugin-typescript2) from 0.32.1 to 0.33.0.
    - [Release notes](https://github.com/ezolenko/rollup-plugin-typescript2/releases)
    - [Commits](ezolenko/rollup-plugin-typescript2@0.32.1...0.33.0)
    
    ---
    updated-dependencies:
    - dependency-name: rollup-plugin-typescript2
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 20, 2022
    Copy the full SHA
    9530399 View commit details
  3. Copy the full SHA
    dc5b27a View commit details
  4. Merge pull request #650 from nextcloud/dependabot/npm_and_yarn/rollup…

    …-plugin-typescript2-0.33.0
    dependabot[bot] authored Aug 20, 2022
    Copy the full SHA
    4696150 View commit details
  5. Bump gettext-parser from 5.1.2 to 6.0.0

    Bumps [gettext-parser](https://github.com/smhg/gettext-parser) from 5.1.2 to 6.0.0.
    - [Release notes](https://github.com/smhg/gettext-parser/releases)
    - [Changelog](https://github.com/smhg/gettext-parser/blob/master/CHANGELOG.md)
    - [Commits](smhg/gettext-parser@v5.1.2...v6.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: gettext-parser
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 20, 2022
    Copy the full SHA
    55bd68b View commit details

Commits on Aug 22, 2022

  1. Copy the full SHA
    15d01d4 View commit details

Commits on Aug 27, 2022

  1. Bump @babel/core from 7.18.10 to 7.18.13

    Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.18.10 to 7.18.13.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.18.13/packages/babel-core)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/core"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 27, 2022
    Copy the full SHA
    e8c3853 View commit details
  2. Copy the full SHA
    f3eda60 View commit details
  3. Bump typedoc from 0.23.10 to 0.23.11

    Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.10 to 0.23.11.
    - [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
    - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
    - [Commits](TypeStrong/typedoc@v0.23.10...v0.23.11)
    
    ---
    updated-dependencies:
    - dependency-name: typedoc
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 27, 2022
    Copy the full SHA
    c522fbc View commit details
  4. Bump core-js from 3.24.1 to 3.25.0

    Bumps [core-js](https://github.com/zloirock/core-js) from 3.24.1 to 3.25.0.
    - [Release notes](https://github.com/zloirock/core-js/releases)
    - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
    - [Commits](zloirock/core-js@v3.24.1...v3.25.0)
    
    ---
    updated-dependencies:
    - dependency-name: core-js
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 27, 2022
    Copy the full SHA
    c2ef78a View commit details
  5. Copy the full SHA
    9bd1df6 View commit details
  6. Bump typescript from 4.7.4 to 4.8.2

    Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.2.
    - [Release notes](https://github.com/Microsoft/TypeScript/releases)
    - [Commits](microsoft/TypeScript@v4.7.4...v4.8.2)
    
    ---
    updated-dependencies:
    - dependency-name: typescript
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 27, 2022
    Copy the full SHA
    b9cdb38 View commit details
  7. Copy the full SHA
    4fd2eb1 View commit details
  8. Copy the full SHA
    cf39a84 View commit details

Commits on Sep 3, 2022

  1. Bump rollup from 2.78.1 to 2.79.0

    Bumps [rollup](https://github.com/rollup/rollup) from 2.78.1 to 2.79.0.
    - [Release notes](https://github.com/rollup/rollup/releases)
    - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
    - [Commits](rollup/rollup@v2.78.1...v2.79.0)
    
    ---
    updated-dependencies:
    - dependency-name: rollup
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 3, 2022
    Copy the full SHA
    d9c19ab View commit details
  2. Bump typedoc from 0.23.11 to 0.23.13

    Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.11 to 0.23.13.
    - [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
    - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
    - [Commits](TypeStrong/typedoc@v0.23.11...v0.23.13)
    
    ---
    updated-dependencies:
    - dependency-name: typedoc
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 3, 2022
    Copy the full SHA
    e8bc914 View commit details
  3. Copy the full SHA
    a24febc View commit details
  4. Copy the full SHA
    11eab1d View commit details

Commits on Sep 10, 2022

  1. Bump core-js from 3.25.0 to 3.25.1

    Bumps [core-js](https://github.com/zloirock/core-js) from 3.25.0 to 3.25.1.
    - [Release notes](https://github.com/zloirock/core-js/releases)
    - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
    - [Commits](zloirock/core-js@v3.25.0...v3.25.1)
    
    ---
    updated-dependencies:
    - dependency-name: core-js
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 10, 2022
    Copy the full SHA
    20434b5 View commit details
  2. Bump @babel/preset-env from 7.18.10 to 7.19.0

    Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.18.10 to 7.19.0.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.19.0/packages/babel-preset-env)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/preset-env"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 10, 2022
    Copy the full SHA
    23eb1cf View commit details
  3. Copy the full SHA
    0491ad1 View commit details
  4. Copy the full SHA
    bfdc7d6 View commit details
  5. Bump @babel/core from 7.18.13 to 7.19.0

    Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.18.13 to 7.19.0.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.19.0/packages/babel-core)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/core"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 10, 2022
    Copy the full SHA
    5f7a3d8 View commit details
  6. Bump typedoc from 0.23.13 to 0.23.14

    Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.13 to 0.23.14.
    - [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
    - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
    - [Commits](TypeStrong/typedoc@v0.23.13...v0.23.14)
    
    ---
    updated-dependencies:
    - dependency-name: typedoc
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 10, 2022
    Copy the full SHA
    5911521 View commit details
  7. Copy the full SHA
    5903725 View commit details
  8. Copy the full SHA
    f8fd7d6 View commit details
  9. Bump typescript from 4.8.2 to 4.8.3

    Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.2 to 4.8.3.
    - [Release notes](https://github.com/Microsoft/TypeScript/releases)
    - [Commits](microsoft/TypeScript@v4.8.2...v4.8.3)
    
    ---
    updated-dependencies:
    - dependency-name: typescript
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 10, 2022
    Copy the full SHA
    25e938c View commit details
  10. Copy the full SHA
    d355605 View commit details

Commits on Sep 17, 2022

  1. Bump @babel/core from 7.19.0 to 7.19.1

    Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.19.0 to 7.19.1.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.19.1/packages/babel-core)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/core"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 17, 2022
    Copy the full SHA
    54bd510 View commit details
  2. Bump @babel/preset-env from 7.19.0 to 7.19.1

    Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.19.0 to 7.19.1.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.19.1/packages/babel-preset-env)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/preset-env"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 17, 2022
    Copy the full SHA
    ffef0a1 View commit details
  3. Copy the full SHA
    881b4ac View commit details
  4. Copy the full SHA
    71509c9 View commit details
  5. Bump rollup-plugin-typescript2 from 0.33.0 to 0.34.0

    Bumps [rollup-plugin-typescript2](https://github.com/ezolenko/rollup-plugin-typescript2) from 0.33.0 to 0.34.0.
    - [Release notes](https://github.com/ezolenko/rollup-plugin-typescript2/releases)
    - [Changelog](https://github.com/ezolenko/rollup-plugin-typescript2/blob/master/CHANGELOG.md)
    - [Commits](ezolenko/rollup-plugin-typescript2@0.33.0...0.34.0)
    
    ---
    updated-dependencies:
    - dependency-name: rollup-plugin-typescript2
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 17, 2022
    Copy the full SHA
    8f150e5 View commit details
  6. Merge pull request #666 from nextcloud/dependabot/npm_and_yarn/rollup…

    …-plugin-typescript2-0.34.0
    dependabot[bot] authored Sep 17, 2022
    Copy the full SHA
    9e153ee View commit details

Commits on Sep 19, 2022

  1. Translate /l10n/messages.pot in pt_PT

    translation completed updated for the source file '/l10n/messages.pot'
    on the 'pt_PT' language.
    transifex-integration[bot] authored Sep 19, 2022
    Copy the full SHA
    fea0d7b View commit details
  2. Copy the full SHA
    9348399 View commit details

Commits on Sep 24, 2022

  1. Bump rollup from 2.79.0 to 2.79.1

    Bumps [rollup](https://github.com/rollup/rollup) from 2.79.0 to 2.79.1.
    - [Release notes](https://github.com/rollup/rollup/releases)
    - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
    - [Commits](rollup/rollup@v2.79.0...v2.79.1)
    
    ---
    updated-dependencies:
    - dependency-name: rollup
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 24, 2022
    Copy the full SHA
    79b5c9b View commit details
  2. Bump core-js from 3.25.1 to 3.25.2

    Bumps [core-js](https://github.com/zloirock/core-js) from 3.25.1 to 3.25.2.
    - [Release notes](https://github.com/zloirock/core-js/releases)
    - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
    - [Commits](zloirock/core-js@v3.25.1...v3.25.2)
    
    ---
    updated-dependencies:
    - dependency-name: core-js
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 24, 2022
    Copy the full SHA
    3758ae3 View commit details
  3. Bump typedoc from 0.23.14 to 0.23.15

    Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.14 to 0.23.15.
    - [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
    - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
    - [Commits](TypeStrong/typedoc@v0.23.14...v0.23.15)
    
    ---
    updated-dependencies:
    - dependency-name: typedoc
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 24, 2022
    Copy the full SHA
    d4bb6a8 View commit details
  4. Copy the full SHA
    d51a217 View commit details
  5. Copy the full SHA
    e57248c View commit details
  6. Copy the full SHA
    5d3f572 View commit details
59 changes: 59 additions & 0 deletions .github/workflows/changelog-generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Changelog

on:
pull_request:
paths:
- 'package.json'

jobs:
build:
name: Auto generation
runs-on: ubuntu-latest
steps:
- name: Check-out
uses: actions/checkout@v2

- name: Get last released tag
id: last_version
uses: InsonusK/get-latest-release@v1.0.1
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
exclude_types: draft
view_top: 1

- name: Get new version
id: future_version
uses: Saionaro/extract-package-version@v1.0.6

- name: Generate changelog between ${{ steps.last_version.outputs.tag_name }} and v${{ steps.future_version.outputs.version }}
uses: docker://ferrarimarco/github-changelog-generator
# If we have a version change
if: contains(steps.last_version.outputs.tag_name, steps.future_version.outputs.version) == false
with:
args: >
-t ${{ secrets.GITHUB_TOKEN }}
--user nextcloud
--project nextcloud-dialogs
--no-issues
--no-issues-wo-labels
--max-issues 0
--exclude-labels "duplicate,question,invalid,wontfix,dependencies"
--since-tag ${{ steps.last_version.outputs.tag_name }}
--future-release v${{ steps.future_version.outputs.version }}
--breaking-label "### :boom: Breaking changes"
--enhancement-label "### :rocket: Enhancements"
--bugs-label "### :bug: Fixed bugs"
--deprecated-label "### Deprecated"
--removed-label "### Removed"
--security-label "### Security fixes"
--issues-label "### Closed issues"
--pr-label "### Closed pull requests"
- name: Print changelog to console
run: cat CHANGELOG.md

- name: Upload changelog
uses: actions/upload-artifact@v2
with:
name: Changelog
path: CHANGELOG.md
4 changes: 4 additions & 0 deletions .github/workflows/dependabot-approve-merge.yml
Original file line number Diff line number Diff line change
@@ -15,6 +15,10 @@ on:
permissions:
contents: read

concurrency:
group: dependabot-approve-merge-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
auto-approve-merge:
if: github.actor == 'dependabot[bot]'
65 changes: 65 additions & 0 deletions .github/workflows/static-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@v1.2
id: versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@v3
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Install dependencies & build
run: |
npm ci
npm run build:doc --if-present
- name: Setup Pages
uses: actions/configure-pages@v2

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: './dist/doc'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
1 change: 0 additions & 1 deletion .npmignore

This file was deleted.

46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,52 @@

All notable changes to this project will be documented in this file.

## v4.0.0 (2023-02-13)

### :boom: Breaking changes

Styles need to be imported differently compared to v3.2.0. Make sure to import them from `dist/index.css`:

import '@nextcloud/dialogs/dist/index.css'


### :rocket: Enhancement
* [#577](https://github.com/nextcloud/nextcloud-dialogs/pull/577) Add filepicker filter ([@Pytal](https://github.com/Pytal))

### Committers: 2
- Ferdinand Thiessen ([@susnux](https://github.com/susnux))
- [@Pytal](https://github.com/Pytal)


## [v4.0.0-beta.2](https://github.com/nextcloud/nextcloud-dialogs/tree/v4.0.0-beta.2) (2022-11-02)

[Full Changelog](https://github.com/nextcloud/nextcloud-dialogs/compare/v4.0.0-beta.1...v4.0.0-beta.2)

### :bug: Fixed bugs

- Fix exports [\#699](https://github.com/nextcloud/nextcloud-dialogs/pull/699) ([skjnldsv](https://github.com/skjnldsv))

## [v4.0.0-beta.1](https://github.com/nextcloud/nextcloud-dialogs/tree/v4.0.0-beta.1) (2022-11-02)

[Full Changelog](https://github.com/nextcloud/nextcloud-dialogs/compare/v4.0.0-beta.0...v4.0.0-beta.1)

### :bug: Fixed bugs

- Do not change css class names when building [\#694](https://github.com/nextcloud/nextcloud-dialogs/pull/694) ([skjnldsv](https://github.com/skjnldsv))

## [v4.0.0-beta.0](https://github.com/nextcloud/nextcloud-dialogs/tree/v4.0.0-beta.0) (2022-10-28)

[Full Changelog](https://github.com/nextcloud/nextcloud-dialogs/compare/v3.2.0...v4.0.0-beta.0)

### :bug: Fixed bugs

- Url encode svg and ship it [\#691](https://github.com/nextcloud/nextcloud-dialogs/pull/691) ([skjnldsv](https://github.com/skjnldsv))

### Changed

- Translation updates
- Dependency updates

## [v3.2.0](https://github.com/nextcloud/nextcloud-dialogs/tree/v3.2.0) - 2022-08-10

[Full Changelog](https://github.com/nextcloud/nextcloud-dialogs/compare/v3.1.4...v3.2.0)
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @nextcloud/dialogs

[![npm](https://img.shields.io/npm/v/@nextcloud/dialogs?style=for-the-badge)](https://www.npmjs.com/package/@nextcloud/dialogs)

Nextcloud dialog helpers

## Installation
@@ -14,12 +16,12 @@ npm i -S @nextcloud/dialogs

```js
import { showMessage, showInfo, showSuccess, showWarning, showError } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/styles/toast.scss'
import '@nextcloud/dialogs/dist/index.css'
```

Make sure that the `@nextcloud/dialogs/styles/toast.scss` file is included in your app to make sure that the toasts have a proper styling applied.
Make sure that the `@nextcloud/dialogs/dist/index.css` file is included in your app to make sure that the toasts have a proper styling applied.

If you using `@nextcloud/dialogs >= 2.0` you must configure svg loader in your project.
If you using `@nextcloud/dialogs >= 4.0` you don't need any svg or scss loader in you projects anymore.

There are different toast styles available, that are exposed in separate functions:

@@ -41,13 +43,13 @@ A full list of available options can be found in the [documentation](https://nex

## Releasing a new version

- Checkout latest master (pull);
- Edit CHANGELOG.md and add new entries there for the new version, then create a commit;
- Run `npm version patch` (`npm version minor` if minor). This will return a new version name, make sure it matches what was added in the CHANGELOG.md;
- Push the tag and the master branch `git push origin master [printed-version-name]`;
- Make the tag a release on github and add the changelog (https://github.com/nextcloud/nextcloud-dialogs/releases);
- Click edit on a previous release and copy the body of the changelog;
- Go back, click on your release and paste the copied text;
- Edit all the version numbers;
- Click on preview and click on view full changelog, this will show you all the prs that have been; added since the previous version;
- Copy them in the changelog with the same format as previous ones;
- Pull the latest changes from `master` or `stableX`;
- Checkout a new branch with the tag name (e.g `v4.0.1`): `git checkout -b v<version>`;
- Run `npm version patch --no-git-tag-version` (`npm version minor --no-git-tag-version` if minor). This will return a new version name, make sure it matches what you expect;
- Commit, push and create PR;
- Add the change log content from the 'Changelog' action on Github to `CHANGELOG.md`;
- Commit and push;
- Get your PR reviewed and merged;
- Create [a release on github](https://github.com/nextcloud/nextcloud-dialogs/releases) with the version as tag (e.g `v4.0.1`) and add the changelog content as description

![image](https://user-images.githubusercontent.com/14975046/124442568-2a952500-dd7d-11eb-82a2-402f9170231a.png)
2 changes: 1 addition & 1 deletion babel.config.js → babel.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
presets: [
"@babel/typescript",
[
30 changes: 15 additions & 15 deletions build/extract-l10n.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
const { GettextExtractor, JsExtractors } = require('gettext-extractor');
import { GettextExtractor, JsExtractors } from 'gettext-extractor'

let extractor = new GettextExtractor();

extractor
.createJsParser([
JsExtractors.callExpression('t', {
arguments: {
text: 0,
}
}),
JsExtractors.callExpression('n', {
arguments: {
text: 1,
textPlural: 2,
}
}),
])
.parseFilesGlob('./lib/**/*.@(ts|js|vue)');
.createJsParser([
JsExtractors.callExpression('t', {
arguments: {
text: 0,
}
}),
JsExtractors.callExpression('n', {
arguments: {
text: 1,
textPlural: 2,
}
}),
])
.parseFilesGlob('./lib/**/*.@(ts|js|vue)');

extractor.savePotFile('./l10n/messages.pot');

15 changes: 15 additions & 0 deletions l10n/es_MX.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Luis Francisco Castro, 2022
#
msgid ""
msgstr ""
"Last-Translator: Luis Francisco Castro, 2022\n"
"Language-Team: Spanish (Mexico) (https://www.transifex.com/nextcloud/teams/64236/es_MX/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: es_MX\n"
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"

#: lib/toast.ts:223
msgid "Undo"
msgstr "Deshacer"
15 changes: 15 additions & 0 deletions l10n/pt_PT.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Manuela Silva <mmsrs@sky.com>, 2022
#
msgid ""
msgstr ""
"Last-Translator: Manuela Silva <mmsrs@sky.com>, 2022\n"
"Language-Team: Portuguese (Portugal) (https://www.transifex.com/nextcloud/teams/64236/pt_PT/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: pt_PT\n"
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"

#: lib/toast.ts:223
msgid "Undo"
msgstr "Anular"
21 changes: 16 additions & 5 deletions lib/filepicker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="@nextcloud/typings" />

declare const OC: Nextcloud.v16.OC | Nextcloud.v17.OC | Nextcloud.v18.OC | Nextcloud.v19.OC | Nextcloud.v20.OC;
declare const OC: Nextcloud.v23.OC | Nextcloud.v24.OC;

export enum FilePickerType {
Choose = 1,
@@ -17,21 +17,24 @@ export class FilePicker {
private type: FilePickerType
private directoriesAllowed: boolean
private path?: string
private filter?: Nextcloud.v24.FilePickerFilter

public constructor(title: string,
multiSelect: boolean,
mimeTypeFilter: string[],
modal: boolean,
type: FilePickerType,
directoriesAllowed: boolean,
path?: string) {
path?: string,
filter?: Nextcloud.v24.FilePickerFilter) {
this.title = title
this.multiSelect = multiSelect
this.mimeTypeFiler = mimeTypeFilter
this.modal = modal
this.type = type
this.directoriesAllowed = directoriesAllowed
this.path = path
this.filter = filter
}

public pick(): Promise<string> {
@@ -45,8 +48,9 @@ export class FilePicker {
this.type,
this.path,
{
allowDirectoryChooser: this.directoriesAllowed
}
allowDirectoryChooser: this.directoriesAllowed,
filter: this.filter,
},
)
})
}
@@ -60,6 +64,7 @@ export class FilePickerBuilder {
private type: FilePickerType = FilePickerType.Choose
private directoriesAllowed: boolean = false
private path?: string
private filter?: Nextcloud.v24.FilePickerFilter

public constructor(title: string) {
this.title = title
@@ -100,6 +105,11 @@ export class FilePickerBuilder {
return this
}

public setFilter(filter: Nextcloud.v24.FilePickerFilter): FilePickerBuilder {
this.filter = filter
return this
}

public build(): FilePicker {
return new FilePicker(
this.title,
@@ -108,7 +118,8 @@ export class FilePickerBuilder {
this.modal,
this.type,
this.directoriesAllowed,
this.path
this.path,
this.filter,
)
}

1 change: 1 addition & 0 deletions lib/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare const __TRANSLATIONS__: {locale: string, json: any}[]
Loading