@prenta/plugin-blocks 1.0.1 → 1.0.3
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 +12 -0
- package/README.md +2 -2
- package/dist/__tests__/test-env-storage.test.d.ts +2 -0
- package/dist/__tests__/test-env-storage.test.d.ts.map +1 -0
- package/dist/__tests__/test-env-storage.test.js +28 -0
- package/dist/__tests__/test-env-storage.test.js.map +1 -0
- package/dist/admin/BlockSelector.d.ts +2 -1
- package/dist/admin/BlockSelector.d.ts.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @actuate-media/plugin-blocks
|
|
2
2
|
|
|
3
|
+
## 1.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9538dec: The published package now includes its LICENSE file. The licence itself is unchanged (MIT); until now the text was only in the repository and never reached npm.
|
|
8
|
+
|
|
9
|
+
## 1.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 5230917: Point repository links at github.com/Prenta-dev/prenta, where the source now lives. The `repository` field on npm, the importer adapters' docs links, the section editor's help link and the docs link `create-prenta` prints all moved from `actuate-media/prenta`. No behaviour changes.
|
|
14
|
+
|
|
3
15
|
## 1.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @prenta/plugin-blocks
|
|
2
2
|
|
|
3
|
-
Reusable content blocks for [Prenta CMS](https://github.com/
|
|
3
|
+
Reusable content blocks for [Prenta CMS](https://github.com/Prenta-dev/prenta)
|
|
4
4
|
— define once, reference across documents.
|
|
5
5
|
|
|
6
6
|
```bash
|
|
@@ -21,7 +21,7 @@ export default defineConfig({
|
|
|
21
21
|
## Release notes
|
|
22
22
|
|
|
23
23
|
See [CHANGELOG.md](./CHANGELOG.md) (shipped with the package) or the
|
|
24
|
-
[GitHub releases](https://github.com/
|
|
24
|
+
[GitHub releases](https://github.com/Prenta-dev/prenta/releases).
|
|
25
25
|
|
|
26
26
|
## License
|
|
27
27
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-env-storage.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/test-env-storage.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// @vitest-environment happy-dom
|
|
2
|
+
/**
|
|
3
|
+
* Guard for the test environment, not for product code.
|
|
4
|
+
*
|
|
5
|
+
* On Node 25+, Node's own `localStorage` global (undefined unless the process
|
|
6
|
+
* gets --localstorage-file) shadows happy-dom's Storage, so every storage test
|
|
7
|
+
* silently runs against nothing. vitest.config.ts turns Node's implementation
|
|
8
|
+
* off with `execArgv: ['--no-experimental-webstorage']`. If that stops
|
|
9
|
+
* working, this file fails first, instead of a storage test passing for the
|
|
10
|
+
* wrong reason or failing somewhere unrelated.
|
|
11
|
+
*/
|
|
12
|
+
import { describe, expect, it } from 'vitest';
|
|
13
|
+
describe.each([
|
|
14
|
+
['localStorage', () => globalThis.localStorage],
|
|
15
|
+
['sessionStorage', () => globalThis.sessionStorage],
|
|
16
|
+
])('%s in a happy-dom test', (name, getStorage) => {
|
|
17
|
+
it('is happy-dom’s working Storage', () => {
|
|
18
|
+
const storage = getStorage();
|
|
19
|
+
expect(storage).toBeDefined();
|
|
20
|
+
expect(storage).toBe(window[name]);
|
|
21
|
+
storage.setItem('prenta:test-env-guard', 'ok');
|
|
22
|
+
expect(storage.getItem('prenta:test-env-guard')).toBe('ok');
|
|
23
|
+
expect(storage.length).toBeGreaterThan(0);
|
|
24
|
+
storage.removeItem('prenta:test-env-guard');
|
|
25
|
+
expect(storage.getItem('prenta:test-env-guard')).toBeNull();
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=test-env-storage.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-env-storage.test.js","sourceRoot":"","sources":["../../src/__tests__/test-env-storage.test.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC;;;;;;;;;GASG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,QAAQ,CAAC,IAAI,CAAC;IACZ,CAAC,cAAc,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC/C,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;CAC3C,CAAC,CAAC,wBAAwB,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE;IACzD,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAA;QAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;QAC7B,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;QAClC,OAAO,CAAC,OAAO,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAA;QAC9C,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3D,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;QACzC,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAA;QAC3C,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAA;IAC7D,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface BlockSelectorProps {
|
|
2
3
|
onSelect: (blockType: string) => void;
|
|
3
4
|
enabledBlocks?: string[];
|
|
4
5
|
}
|
|
5
6
|
/** Grid-based selector for choosing a block type to insert. */
|
|
6
|
-
export declare function BlockSelector({ onSelect, enabledBlocks }: BlockSelectorProps):
|
|
7
|
+
export declare function BlockSelector({ onSelect, enabledBlocks }: BlockSelectorProps): React.JSX.Element;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=BlockSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockSelector.d.ts","sourceRoot":"","sources":["../../src/admin/BlockSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockSelector.d.ts","sourceRoot":"","sources":["../../src/admin/BlockSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAGhD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,kBAAkB,qBAsD5E"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prenta/plugin-blocks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/
|
|
7
|
+
"url": "https://github.com/Prenta-dev/prenta.git",
|
|
8
8
|
"directory": "packages/plugin-blocks"
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@testing-library/react": "^16.1.0",
|
|
34
|
-
"@types/react": "^19.
|
|
35
|
-
"@types/react-dom": "^19.
|
|
36
|
-
"happy-dom": "^
|
|
37
|
-
"react": "^19.
|
|
38
|
-
"react-dom": "^19.
|
|
34
|
+
"@types/react": "^19.3.3",
|
|
35
|
+
"@types/react-dom": "^19.3.0",
|
|
36
|
+
"happy-dom": "^21.0.4",
|
|
37
|
+
"react": "^19.3.1",
|
|
38
|
+
"react-dom": "^19.3.1",
|
|
39
39
|
"typescript": "^5.7.0",
|
|
40
|
-
"vitest": "^
|
|
41
|
-
"@prenta/core": "8.
|
|
40
|
+
"vitest": "^5.1.2",
|
|
41
|
+
"@prenta/core": "8.26.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsc --project tsconfig.json",
|