Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
3659907
chore(license): restore upstream copyright headers
juliusknorr Nov 11, 2026
286ad8b
chore(license): update LICENSE with restructured AGPLv3 additional terms
trofim24 May 14, 2026
8d7f10b
chore(license): update copyright header
May 14, 2026
7538847
fix(tools): emit upstream's 9.4 header from the header generators
juliusknorr Nov 11, 2026
9d9fda9
chore(license): add REUSE.toml annotations
juliusknorr Nov 20, 2026
5115cbe
chore(license): fix headers the stamp can't decide
juliusknorr Nov 20, 2026
22cf67b
ci: check the licence notices on pull requests
juliusknorr Nov 21, 2026
ece3dc2
docs(agents): describe the licence headers for new and changed files
juliusknorr Nov 21, 2026
ea5ac56
docs(agents): name the function that skips the LV-1050 check
juliusknorr Nov 21, 2026
7bf96cf
ci(licence): drop the removed token input
juliusknorr Nov 21, 2026
63c7c67
docs(license): ship the third-party licence texts
juliusknorr Nov 21, 2026
d8a4f38
docs: name the ONLYOFFICE origin and the licence terms in the README
juliusknorr Dec 3, 2026
31f2ae0
chore(license): add Euro-Office notices to files we changed
juliusknorr Dec 3, 2026
e576e8e
chore(license): add MODIFICATIONS.txt
juliusknorr Dec 3, 2026
06c473f
ci(licence): run the licence gate on GitHub-hosted runners
juliusknorr Dec 3, 2026
b7936e4
chore(license): restore upstream headers on files outside the 9.4 pin
juliusknorr Dec 4, 2026
ff31ef4
chore(license): drop our notice from files identical to upstream
juliusknorr Dec 4, 2026
624893e
chore(license): mark the slide links test page as our new file
juliusknorr Dec 4, 2026
7498d36
docs: drop the licence badge from the README
juliusknorr Dec 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Euro-Office contributors
# Modified by Euro-Office contributors, see MODIFICATIONS.txt

name: Check sdkjs

permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Euro-Office contributors
# Modified by Euro-Office contributors, see MODIFICATIONS.txt

name: "CodeQL"

on:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: Euro-Office contributors

name: E2E (overlay on nightly)

# Builds sdkjs, overlays the fresh build onto the published
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/licence.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow is provided via the organization template repository
#
# https://github.com/Euro-Office/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# Checks the ONLYOFFICE licence notices (upstream headers, our block on
# upstream files we changed, the SPDX pair on new files, the licence files)
# with the header gates of licence-modification-tooling, on pull requests to
# and pushes of the default branch only (older stable branches predate the
# notices), forks included. Only for the component repositories listed in its
# relicence.conf.
# Details:
# https://github.com/Euro-Office/.github/blob/main/actions/licence/action.yml
#
# SPDX-FileCopyrightText: 2026 Euro-Office contributors
# SPDX-License-Identifier: MIT

name: Licence notices

on:
pull_request:
branches: [main]
push:
branches: [main]

permissions:
contents: read

concurrency:
group: licence-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
licence:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: Euro-Office/.github/actions/licence@main # zizmor: ignore[unpinned-uses] organization action, pins the tooling itself
10 changes: 5 additions & 5 deletions 3DPARTY.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Third-party

- jQuery 1.7.1 in `common/Native/jquery_native.js`, server-side doctrenderer only ([MIT](https://raw.githubusercontent.com/jquery/jquery/main/LICENSE.txt))
Each entry names the licence, its text in `LICENSES/` (taken from the library's source at the version the build uses) and that source.

Vendored copies in `vendor/`, built into the editors. Not tracked by Renovate, update by hand:

- delta.js: Myers LCS from [node-delta](https://github.com/znerol/node-delta), version unknown ([MIT](https://github.com/znerol/node-delta/blob/master/LICENSE))
- easysax.js: [EasySAX](https://github.com/vflash/easysax), version unknown, heavily extended (StaxParser, XML reader/writer contexts) ([MIT](https://github.com/vflash/easysax/blob/master/LICENSE))
- iscroll.js: [iScroll](https://github.com/cubiq/iscroll) 5.2.0 ([MIT](https://github.com/cubiq/iscroll/blob/master/LICENSE))
- gifuct-js/: [gifuct-js](https://github.com/matt-way/gifuct-js), modified (IIFE, `GIFUCT` namespace) ([MIT](https://github.com/matt-way/gifuct-js/blob/master/LICENSE))
- delta.js ([MIT](LICENSES/LicenseRef-delta.txt), [8511c61](https://github.com/znerol/node-delta/blob/8511c614787d/LICENSE), Myers LCS from node-delta, version unknown; the licence file is unchanged since that commit)
- easysax.js ([MIT](LICENSES/LicenseRef-easysax.txt), [0aad5dd](https://github.com/vflash/easysax/blob/0aad5dd15e1f/LICENSE), EasySAX, version unknown, vendored in 2017 and heavily extended (StaxParser, XML reader/writer contexts); the licence file as it stood from 2014 to 2025)
- iscroll.js ([MIT](LICENSES/LicenseRef-iscroll.txt), [v5.2.0](https://github.com/cubiq/iscroll/blob/v5.2.0/LICENSE), iScroll)
- gifuct-js/ ([MIT](LICENSES/LicenseRef-gifuct-js.txt), [1e2d583](https://github.com/matt-way/gifuct-js/blob/1e2d583c3430/LICENSE), gifuct-js, version unknown, modified (IIFE, `GIFUCT` namespace); the only version of the licence file)
34 changes: 26 additions & 8 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,36 @@ not:

1. contain either the AGPL header string `Copyright Ascensio System` **or** an
`SPDX-License-Identifier` header (the new build-tooling files use SPDX headers only),
2. contain the literal `LV-1050`,
2. contain the literal `LV-1050` (dormant, see below),
3. use LF line endings (no CRLF), and
4. end with a trailing newline.

⚠️ **Known divergence:** the Euro-Office fork removed the `LV-1050` Latvian address from *every*
header. `check.py`'s Latvian-address check (`check_file_without_latvian_address`) still exists
in the script but its call in `main()` is commented out, so **`check.py` does not fail on a
clean checkout** — the address requirement is dormant, not enforced. Don't "fix" this by
re-adding `LV-1050` to files; match the existing header (which omits it), and don't
uncomment the call either, since that would fail every file in the repo.
The `LV-1050` check (`check_file_without_latvian_address`) is commented out in `check_code_style()`, so
it is dormant: upstream's 9.4 headers carry the address, but our new files carry only the SPDX
pair. Don't uncomment it.

Every source file starts with the AGPL block (copy an existing file's header verbatim), then:
Licence headers (the 9.4 additional terms require keeping upstream's notices):

- **New files** get only the SPDX pair, never Ascensio's header:

```js
/*
* SPDX-FileCopyrightText: Euro-Office contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
```

- **Changed upstream files** keep upstream's header exactly as it is (don't remove, reword or
re-date it) and get our block right after it, once:

```js
/*
* SPDX-FileCopyrightText: Euro-Office contributors
* Modified by Euro-Office contributors, see MODIFICATIONS.txt
*/
```

The module body then follows:

```js
"use strict";
Expand Down
73 changes: 70 additions & 3 deletions LICENSE.txt → LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -643,7 +643,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -658,4 +658,71 @@ specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.

Copyright (C) 2009-2026 Ascensio System SIA

This Program is licensed under the GNU Affero General Public
License v3.0 (AGPLv3), as supplemented by the terms set forth below. These
terms form an integral part of this License and shall be included in all
copies and distributions of the Program. They define conditions for the
exercise of rights granted under the License, including use, modification,
and distribution of the Program.
Pursuant to Section 7 of the License, the following terms supplement and
clarify the application of these conditions. Failure to comply with these
terms constitutes a violation of the License and may result in termination
of rights under Section 8 of the License.

Additional Terms

1. Retention of Notices and Attribution.
Pursuant to Sections 4, 5, and 7(b) of the License, you must retain all
applicable copyright notices, license notices, warranty disclaimers, and
attribution or origin notices included in the Program.

2. Modification Notice Requirement.

Modified versions of the Program must carry prominent notices stating that
they have been modified, including the date (or dates) of such modification,
and must clearly indicate that they are based on the original ONLYOFFICE
software developed by Ascensio System SIA.

3. Appropriate Legal Notices in User Interfaces.
Where the Program, or any modified version thereof, includes interactive
user interfaces, the required notices shall be displayed through a clearly
accessible and prominently visible user interface feature, in accordance
with the requirement to present Appropriate Legal Notices under Section 5
of the License. Such notices must enable users to:

(i) identify ONLYOFFICE as the original developer;

(ii) understand that the version in use may be a modified version; and

(iii) access the applicable license information.

4. No Trademark License.

In accordance with Section 7(e) this License does not grant any rights to
use the trademarks, service marks, trade names, logos, or branding of the
Licensor. Any use of such trademarks is governed by the Licensor's
Trademark Policy, available at:
<https://www.onlyoffice.com/trademark-policy>

5. Non-Code Content Licensing.

Certain non-code elements included in the Program or its distribution,
including but not limited to illustrations, icon sets, and technical writing
or documentation content, are licensed under the Creative Commons
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0). For the
avoidance of doubt, this license applies solely to such non-code content
and does not modify or replace the licensing terms applicable to the
Program's source code, which remains subject to the GNU Affero General
Public License v3.0 (AGPLv3). Nothing in this section limits any
obligation to retain copyright notices, attribution, origin information, or
Appropriate Legal Notices under the AGPLv3 and the additional terms
applicable to the Program. The full license text is available at:
<https://creativecommons.org/licenses/by-sa/4.0/legalcode>

You can contact Ascensio System SIA by electronic mail at:
info@onlyoffice.com and by postal mail at: 20A-6 Ernesta Birznieka-Upisha
Street, Riga, LV-1050, Latvia, European Union.
19 changes: 19 additions & 0 deletions LICENSES/LicenseRef-delta.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2011 Lorenz Schori <lo@znerol.ch>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
20 changes: 20 additions & 0 deletions LICENSES/LicenseRef-easysax.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2012 Vopilovskii Konstantin <flash.vkv@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 22 additions & 0 deletions LICENSES/LicenseRef-gifuct-js.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015 Matt Way

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

22 changes: 22 additions & 0 deletions LICENSES/LicenseRef-iscroll.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2008-2013 Matteo Spinelli, http://cubiq.org

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
7 changes: 7 additions & 0 deletions MODIFICATIONS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This program is based on the original ONLYOFFICE software developed by Ascensio System SIA.
See LICENSE for the licence terms.

Modifications to sdkjs
The modifications made by the Euro-Office contributors are listed, with their dates, in the
git history: https://github.com/Euro-Office/sdkjs/commits
Release packages ship the full dated record as MODIFICATIONS.txt.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Euro-Office contributors
# Modified by Euro-Office contributors, see MODIFICATIONS.txt

GRUNT = grunt
GRUNT_FLAGS = --no-color -v
SDK_PLATFORM ?=
Expand Down
13 changes: 13 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: Euro-Office contributors

version = 1

# Files that can't hold our notice (.ps1, .hcl, .cfg, .m4, .spec, .iss, bake Dockerfiles): ours
[[annotations]]
path = [
".docker/sdkjs.bake.Dockerfile",
]
SPDX-FileCopyrightText = "Euro-Office contributors"
SPDX-License-Identifier = "AGPL-3.0-only"

6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![License](https://img.shields.io/badge/License-GNU%20AGPL%20V3-green.svg?style=flat)](https://www.gnu.org/licenses/agpl-3.0.en.html)

# 🧩 Euro-Office JavaScript SDK (SDKJS)

SDKJS is the official JavaScript Software Development Kit (SDK) for Euro-Office document editing components.
Expand Down Expand Up @@ -53,4 +51,6 @@ Suites that cannot pass in the standard build yet are listed (with reasons) in

## 📜 License

**SDKJS** is licensed under the **GNU Affero General Public License (AGPL) v3.0**. For full details, refer to the [LICENSE](https://github.com/Euro-Office/sdkjs/blob/main/LICENSE.txt) file.
SDKJS is based on the original ONLYOFFICE software developed by Ascensio System SIA ([ONLYOFFICE/sdkjs](https://github.com/ONLYOFFICE/sdkjs)). Euro-Office is not affiliated with, endorsed by, or sponsored by Ascensio System SIA. ONLYOFFICE is a trademark of Ascensio System SIA.

SDKJS is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only) with the additional terms under its Section 7 in [LICENSE](LICENSE): retention of notices and attribution, modification notices, legal notices in user interfaces, no trademark licence, and CC BY-SA 4.0 for non-code content. The changes made by the Euro-Office contributors are tracked in the git history, see `MODIFICATIONS.txt`.
3 changes: 3 additions & 0 deletions build/build-develop-addons-sdk-advanced.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python
# SPDX-FileCopyrightText: Euro-Office contributors
# Modified by Euro-Office contributors, see MODIFICATIONS.txt

import os
import sys
sys.path.append('../../build_tools/scripts')
Expand Down
3 changes: 3 additions & 0 deletions build/build-develop-addons-sdk-whitespace.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python
# SPDX-FileCopyrightText: Euro-Office contributors
# Modified by Euro-Office contributors, see MODIFICATIONS.txt

import os
import sys
sys.path.append('../../build_tools/scripts')
Expand Down
3 changes: 3 additions & 0 deletions build/build-develop-addons.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python
# SPDX-FileCopyrightText: Euro-Office contributors
# Modified by Euro-Office contributors, see MODIFICATIONS.txt

import os
import sys
sys.path.append('../../build_tools/scripts')
Expand Down
16 changes: 3 additions & 13 deletions build/dummy.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
/**
* (c) Copyright Ascensio System SIA 2010-2024
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
/*
* SPDX-License-Identifier: AGPL-3.0-only
* SPDX-FileCopyrightText: Euro-Office contributors
*/

// Webpack entry resource for sdk-concat-loader.
Expand Down
Loading
Loading