@lblod/ember-rdfa-editor-lblod-plugins 23.0.0 → 23.1.0
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/CHANGELOG.md +6 -0
- package/addon/plugins/template-comments-plugin/node.ts +10 -0
- package/package.json +2 -1
- package/pnpm-lock.yaml +27 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lblod/ember-rdfa-editor-lblod-plugins
|
|
2
2
|
|
|
3
|
+
## 23.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#483](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/483) [`2ac7d9a`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/2ac7d9ae70a885fa7747df6e3a18eece2b06e910) Thanks [@piemonkey](https://github.com/piemonkey)! - Add property to hide template comments while publishing
|
|
8
|
+
|
|
3
9
|
## 23.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -7,6 +7,15 @@ import {
|
|
|
7
7
|
createEmberNodeView,
|
|
8
8
|
EmberNodeConfig,
|
|
9
9
|
} from '@lblod/ember-rdfa-editor/utils/ember-node';
|
|
10
|
+
import { dependencySatisfies, macroCondition } from '@embroider/macros';
|
|
11
|
+
import { importSync } from '@embroider/macros';
|
|
12
|
+
const HIDE_FOR_PUBLISH_ATTR = macroCondition(
|
|
13
|
+
dependencySatisfies('@lblod/ember-rdfa-editor', '>=10.6.0'),
|
|
14
|
+
)
|
|
15
|
+
? // @ts-expect-error TS/glint doesn't seem to treat this as an import
|
|
16
|
+
importSync('@lblod/ember-rdfa-editor/utils/strip-html-for-publish')
|
|
17
|
+
.HIDE_FOR_PUBLISH_ATTR
|
|
18
|
+
: 'data-say-hide-for-publish';
|
|
10
19
|
import { getTranslationFunction } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/translation';
|
|
11
20
|
|
|
12
21
|
export const emberNodeConfig: () => EmberNodeConfig = () => {
|
|
@@ -30,6 +39,7 @@ export const emberNodeConfig: () => EmberNodeConfig = () => {
|
|
|
30
39
|
{
|
|
31
40
|
typeof: EXT('TemplateComment').prefixed,
|
|
32
41
|
class: 'say-template-comment',
|
|
42
|
+
[HIDE_FOR_PUBLISH_ATTR]: true,
|
|
33
43
|
},
|
|
34
44
|
['p', {}, ['strong', {}, heading]],
|
|
35
45
|
['div', { property: EXT('content').prefixed }, 0],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.1.0",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"@codemirror/state": "^6.4.1",
|
|
56
56
|
"@codemirror/view": "^6.28.3",
|
|
57
57
|
"@curvenote/prosemirror-utils": "^1.0.5",
|
|
58
|
+
"@embroider/macros": "^1.16.5",
|
|
58
59
|
"@lblod/marawa": "0.8.0-beta.6",
|
|
59
60
|
"@rdfjs/data-model": "^2.0.2",
|
|
60
61
|
"@rdfjs/dataset": "^2.0.2",
|
package/pnpm-lock.yaml
CHANGED
|
@@ -23,6 +23,9 @@ importers:
|
|
|
23
23
|
'@curvenote/prosemirror-utils':
|
|
24
24
|
specifier: ^1.0.5
|
|
25
25
|
version: 1.0.5(prosemirror-model@1.21.3)(prosemirror-state@1.4.3)
|
|
26
|
+
'@embroider/macros':
|
|
27
|
+
specifier: ^1.16.5
|
|
28
|
+
version: 1.16.5(@glint/template@1.4.0)
|
|
26
29
|
'@lblod/marawa':
|
|
27
30
|
specifier: 0.8.0-beta.6
|
|
28
31
|
version: 0.8.0-beta.6
|
|
@@ -2602,8 +2605,8 @@ packages:
|
|
|
2602
2605
|
async@2.6.4:
|
|
2603
2606
|
resolution: {integrity: sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==}
|
|
2604
2607
|
|
|
2605
|
-
async@3.2.
|
|
2606
|
-
resolution: {integrity: sha512-
|
|
2608
|
+
async@3.2.6:
|
|
2609
|
+
resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==}
|
|
2607
2610
|
|
|
2608
2611
|
at-least-node@1.0.0:
|
|
2609
2612
|
resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==}
|
|
@@ -3891,8 +3894,8 @@ packages:
|
|
|
3891
3894
|
resolution: {integrity: sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==}
|
|
3892
3895
|
engines: {node: '>=0.4', npm: '>=1.2'}
|
|
3893
3896
|
|
|
3894
|
-
dompurify@3.1.
|
|
3895
|
-
resolution: {integrity: sha512-
|
|
3897
|
+
dompurify@3.1.7:
|
|
3898
|
+
resolution: {integrity: sha512-VaTstWtsneJY8xzy7DekmYWEOZcmzIe3Qb3zPd4STve1OBTa+e+WmS1ITQec1fZYXI3HCsOZZiSMpG6oxoWMWQ==}
|
|
3896
3899
|
|
|
3897
3900
|
dot-case@3.0.4:
|
|
3898
3901
|
resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}
|
|
@@ -7267,8 +7270,8 @@ packages:
|
|
|
7267
7270
|
property-expr@2.0.6:
|
|
7268
7271
|
resolution: {integrity: sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==}
|
|
7269
7272
|
|
|
7270
|
-
prosemirror-commands@1.
|
|
7271
|
-
resolution: {integrity: sha512-
|
|
7273
|
+
prosemirror-commands@1.6.0:
|
|
7274
|
+
resolution: {integrity: sha512-xn1U/g36OqXn2tn5nGmvnnimAj/g1pUx2ypJJIe8WkVX83WyJVC5LTARaxZa2AtQRwntu9Jc5zXs9gL9svp/mg==}
|
|
7272
7275
|
|
|
7273
7276
|
prosemirror-dev-tools@4.1.0:
|
|
7274
7277
|
resolution: {integrity: sha512-TqMyXLiY8EUoq4f4LV+8dQVuRejwGfeOJdJWjrHNXR9ttKy3MVYBCqmiu3CDULgjv8gtLsqoZY6+ab6BZRmr1g==}
|
|
@@ -7280,8 +7283,8 @@ packages:
|
|
|
7280
7283
|
prosemirror-dropcursor@1.8.1:
|
|
7281
7284
|
resolution: {integrity: sha512-M30WJdJZLyXHi3N8vxN6Zh5O8ZBbQCz0gURTfPmTIBNQ5pxrdU7A58QkNqfa98YEjSAL1HUyyU34f6Pm5xBSGw==}
|
|
7282
7285
|
|
|
7283
|
-
prosemirror-history@1.4.
|
|
7284
|
-
resolution: {integrity: sha512-
|
|
7286
|
+
prosemirror-history@1.4.1:
|
|
7287
|
+
resolution: {integrity: sha512-2JZD8z2JviJrboD9cPuX/Sv/1ChFng+xh2tChQ2X4bB2HeK+rra/bmJ3xGntCcjhOqIzSDG6Id7e8RJ9QPXLEQ==}
|
|
7285
7288
|
|
|
7286
7289
|
prosemirror-inputrules@1.4.0:
|
|
7287
7290
|
resolution: {integrity: sha512-6ygpPRuTJ2lcOXs9JkefieMst63wVJBgHZGl5QOytN7oSZs3Co/BYbc3Yx9zm9H37Bxw8kVzCnDsihsVsL4yEg==}
|
|
@@ -7292,11 +7295,11 @@ packages:
|
|
|
7292
7295
|
prosemirror-model@1.21.3:
|
|
7293
7296
|
resolution: {integrity: sha512-nt2Xs/RNGepD9hrrkzXvtCm1mpGJoQfFSPktGa0BF/aav6XsnmVGZ9sTXNWRLupAz5SCLa3EyKlFeK7zJWROKg==}
|
|
7294
7297
|
|
|
7295
|
-
prosemirror-schema-basic@1.2.
|
|
7296
|
-
resolution: {integrity: sha512
|
|
7298
|
+
prosemirror-schema-basic@1.2.3:
|
|
7299
|
+
resolution: {integrity: sha512-h+H0OQwZVqMon1PNn0AG9cTfx513zgIG2DY00eJ00Yvgb3UD+GQ/VlWW5rcaxacpCGT1Yx8nuhwXk4+QbXUfJA==}
|
|
7297
7300
|
|
|
7298
|
-
prosemirror-schema-list@1.4.
|
|
7299
|
-
resolution: {integrity: sha512-
|
|
7301
|
+
prosemirror-schema-list@1.4.1:
|
|
7302
|
+
resolution: {integrity: sha512-jbDyaP/6AFfDfu70VzySsD75Om2t3sXTOdl5+31Wlxlg62td1haUpty/ybajSfJ1pkGadlOfwQq9kgW5IMo1Rg==}
|
|
7300
7303
|
|
|
7301
7304
|
prosemirror-state@1.4.3:
|
|
7302
7305
|
resolution: {integrity: sha512-goFKORVbvPuAQaXhpbemJFRKJ2aixr+AZMGiquiqKxaucC6hlpHNZHWgz5R7dS4roHiwq9vDctE//CZ++o0W1Q==}
|
|
@@ -10749,7 +10752,7 @@ snapshots:
|
|
|
10749
10752
|
common-tags: 1.8.2
|
|
10750
10753
|
crypto-browserify: 3.12.0
|
|
10751
10754
|
debug: 4.3.5
|
|
10752
|
-
dompurify: 3.1.
|
|
10755
|
+
dompurify: 3.1.7
|
|
10753
10756
|
ember-auto-import: 2.7.4(@glint/template@1.4.0)(webpack@5.92.1)
|
|
10754
10757
|
ember-changeset: 4.1.2(@glint/template@1.4.0)(webpack@5.92.1)
|
|
10755
10758
|
ember-cli-babel: 8.2.0(@babel/core@7.24.7)
|
|
@@ -10769,14 +10772,14 @@ snapshots:
|
|
|
10769
10772
|
linkifyjs: 4.1.3
|
|
10770
10773
|
mdn-polyfills: 5.20.0
|
|
10771
10774
|
process: 0.11.10
|
|
10772
|
-
prosemirror-commands: 1.
|
|
10775
|
+
prosemirror-commands: 1.6.0
|
|
10773
10776
|
prosemirror-dropcursor: 1.8.1
|
|
10774
|
-
prosemirror-history: 1.4.
|
|
10777
|
+
prosemirror-history: 1.4.1
|
|
10775
10778
|
prosemirror-inputrules: 1.4.0
|
|
10776
10779
|
prosemirror-keymap: 1.2.2
|
|
10777
10780
|
prosemirror-model: 1.21.3
|
|
10778
|
-
prosemirror-schema-basic: 1.2.
|
|
10779
|
-
prosemirror-schema-list: 1.4.
|
|
10781
|
+
prosemirror-schema-basic: 1.2.3
|
|
10782
|
+
prosemirror-schema-list: 1.4.1
|
|
10780
10783
|
prosemirror-state: 1.4.3
|
|
10781
10784
|
prosemirror-transform: 1.9.0
|
|
10782
10785
|
prosemirror-view: 1.33.8
|
|
@@ -12105,7 +12108,7 @@ snapshots:
|
|
|
12105
12108
|
dependencies:
|
|
12106
12109
|
lodash: 4.17.21
|
|
12107
12110
|
|
|
12108
|
-
async@3.2.
|
|
12111
|
+
async@3.2.6: {}
|
|
12109
12112
|
|
|
12110
12113
|
at-least-node@1.0.0: {}
|
|
12111
12114
|
|
|
@@ -13778,7 +13781,7 @@ snapshots:
|
|
|
13778
13781
|
|
|
13779
13782
|
domain-browser@1.2.0: {}
|
|
13780
13783
|
|
|
13781
|
-
dompurify@3.1.
|
|
13784
|
+
dompurify@3.1.7: {}
|
|
13782
13785
|
|
|
13783
13786
|
dot-case@3.0.4:
|
|
13784
13787
|
dependencies:
|
|
@@ -16134,7 +16137,7 @@ snapshots:
|
|
|
16134
16137
|
|
|
16135
16138
|
handlebars-loader@1.7.3(handlebars@4.7.8):
|
|
16136
16139
|
dependencies:
|
|
16137
|
-
async: 3.2.
|
|
16140
|
+
async: 3.2.6
|
|
16138
16141
|
fastparse: 1.1.2
|
|
16139
16142
|
handlebars: 4.7.8
|
|
16140
16143
|
loader-utils: 1.4.2
|
|
@@ -18253,7 +18256,7 @@ snapshots:
|
|
|
18253
18256
|
|
|
18254
18257
|
property-expr@2.0.6: {}
|
|
18255
18258
|
|
|
18256
|
-
prosemirror-commands@1.
|
|
18259
|
+
prosemirror-commands@1.6.0:
|
|
18257
18260
|
dependencies:
|
|
18258
18261
|
prosemirror-model: 1.21.3
|
|
18259
18262
|
prosemirror-state: 1.4.3
|
|
@@ -18293,7 +18296,7 @@ snapshots:
|
|
|
18293
18296
|
prosemirror-transform: 1.9.0
|
|
18294
18297
|
prosemirror-view: 1.33.8
|
|
18295
18298
|
|
|
18296
|
-
prosemirror-history@1.4.
|
|
18299
|
+
prosemirror-history@1.4.1:
|
|
18297
18300
|
dependencies:
|
|
18298
18301
|
prosemirror-state: 1.4.3
|
|
18299
18302
|
prosemirror-transform: 1.9.0
|
|
@@ -18314,11 +18317,11 @@ snapshots:
|
|
|
18314
18317
|
dependencies:
|
|
18315
18318
|
orderedmap: 2.1.1
|
|
18316
18319
|
|
|
18317
|
-
prosemirror-schema-basic@1.2.
|
|
18320
|
+
prosemirror-schema-basic@1.2.3:
|
|
18318
18321
|
dependencies:
|
|
18319
18322
|
prosemirror-model: 1.21.3
|
|
18320
18323
|
|
|
18321
|
-
prosemirror-schema-list@1.4.
|
|
18324
|
+
prosemirror-schema-list@1.4.1:
|
|
18322
18325
|
dependencies:
|
|
18323
18326
|
prosemirror-model: 1.21.3
|
|
18324
18327
|
prosemirror-state: 1.4.3
|