@haklex/rich-ext-poll 0.36.0 → 0.38.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.
@@ -10,7 +10,7 @@ import { createRendererDecoration } from "@haklex/rich-editor/renderers";
10
10
  */
11
11
  var POLL_NODE_KEY = "Poll";
12
12
  //#endregion
13
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
13
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
14
14
  function _typeof(o) {
15
15
  "@babel/helpers - typeof";
16
16
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -20,7 +20,7 @@ function _typeof(o) {
20
20
  }, _typeof(o);
21
21
  }
22
22
  //#endregion
23
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
23
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
24
24
  function toPrimitive(t, r) {
25
25
  if ("object" != _typeof(t) || !t) return t;
26
26
  var e = t[Symbol.toPrimitive];
@@ -32,13 +32,13 @@ function toPrimitive(t, r) {
32
32
  return ("string" === r ? String : Number)(t);
33
33
  }
34
34
  //#endregion
35
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
35
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
36
36
  function toPropertyKey(t) {
37
37
  var i = toPrimitive(t, "string");
38
38
  return "symbol" == _typeof(i) ? i : i + "";
39
39
  }
40
40
  //#endregion
41
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
41
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
42
42
  function _defineProperty(e, r, t) {
43
43
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
44
44
  value: t,
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import { n as $isPollNode, o as _defineProperty, r as PollNode } from "./PollNode-ZfQ5z-BS.js";
2
+ import { n as $isPollNode, o as _defineProperty, r as PollNode } from "./PollNode-DBG3aeAO.js";
3
3
  import { $getNodeByKey, $insertNodes } from "lexical";
4
4
  import { CalendarClock, ChevronDown, ChevronUp, Plus, Vote, X } from "lucide-react";
5
5
  import { createElement, useCallback, useEffect, useRef, useState } from "react";
package/dist/edit.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as __augmentLoaded_poll } from "./augment-CFugN2li.js";
2
- import { a as pollEditClasses, i as PollEditDecorator, n as $createPollEditNode, r as PollEditNode, t as pollEditNodes } from "./edit-ByhZ-RLd.js";
2
+ import { a as pollEditClasses, i as PollEditDecorator, n as $createPollEditNode, r as PollEditNode, t as pollEditNodes } from "./edit-knCu0bQO.js";
3
3
  export { $createPollEditNode, PollEditDecorator, PollEditNode, __augmentLoaded_poll, pollEditClasses, pollEditNodes };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as __augmentLoaded_poll } from "./augment-CFugN2li.js";
2
- import { a as pollEditClasses, i as PollEditDecorator, n as $createPollEditNode, r as PollEditNode, t as pollEditNodes } from "./edit-ByhZ-RLd.js";
3
- import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-ZfQ5z-BS.js";
4
- import { n as extractPolls, t as pollNodes } from "./node-C_S21zYt.js";
2
+ import { a as pollEditClasses, i as PollEditDecorator, n as $createPollEditNode, r as PollEditNode, t as pollEditNodes } from "./edit-knCu0bQO.js";
3
+ import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-DBG3aeAO.js";
4
+ import { n as extractPolls, t as pollNodes } from "./node-2N09kzGp.js";
5
5
  import { a as usePollDataAdapter, i as useInitialPollState, n as PollRenderer, o as pollClasses, r as PollDataProvider } from "./renderer-Dpuf1V70.js";
6
6
  export { $createPollEditNode, $createPollNode, $isPollNode, POLL_NODE_KEY, PollDataProvider, PollEditDecorator, PollEditNode, PollNode, PollRenderer, __augmentLoaded_poll, createOptionId, createPollId, extractPolls, pollClasses, pollEditClasses, pollEditNodes, pollNodes, useInitialPollState, usePollDataAdapter };
@@ -1,4 +1,4 @@
1
- import { r as PollNode } from "./PollNode-ZfQ5z-BS.js";
1
+ import { r as PollNode } from "./PollNode-DBG3aeAO.js";
2
2
  //#region src/extractPolls.ts
3
3
  function isPollNode(node) {
4
4
  return node.type === "poll";
package/dist/node.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { t as __augmentLoaded_poll } from "./augment-CFugN2li.js";
2
- import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-ZfQ5z-BS.js";
3
- import { n as extractPolls, t as pollNodes } from "./node-C_S21zYt.js";
2
+ import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-DBG3aeAO.js";
3
+ import { n as extractPolls, t as pollNodes } from "./node-2N09kzGp.js";
4
4
  export { $createPollNode, $isPollNode, POLL_NODE_KEY, PollNode, __augmentLoaded_poll, createOptionId, createPollId, extractPolls, pollNodes };
package/dist/static.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __augmentLoaded_poll } from "./augment-CFugN2li.js";
2
- import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-ZfQ5z-BS.js";
3
- import { n as extractPolls, t as pollNodes } from "./node-C_S21zYt.js";
2
+ import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-DBG3aeAO.js";
3
+ import { n as extractPolls, t as pollNodes } from "./node-2N09kzGp.js";
4
4
  import { a as usePollDataAdapter, i as useInitialPollState, n as PollRenderer, o as pollClasses, r as PollDataProvider } from "./renderer-Dpuf1V70.js";
5
5
  export { $createPollNode, $isPollNode, POLL_NODE_KEY, PollDataProvider, PollNode, PollRenderer, __augmentLoaded_poll, createOptionId, createPollId, extractPolls, pollClasses, pollNodes, useInitialPollState, usePollDataAdapter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-ext-poll",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "description": "Reader-facing vote/poll widget extension",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "nanoid": "^6.0.1",
41
- "@haklex/rich-style-token": "0.36.0"
41
+ "@haklex/rich-style-token": "0.38.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@lexical/react": "^0.49.0",
@@ -51,16 +51,16 @@
51
51
  "react-dom": "^19.2.8",
52
52
  "typescript": "^7.0.2",
53
53
  "unplugin-dts": "^1.0.3",
54
- "vite": "^8.2.1",
55
- "@haklex/rich-editor": "0.36.0"
54
+ "vite": "^8.2.2",
55
+ "@haklex/rich-editor": "0.38.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@lexical/react": "^0.49.0",
59
59
  "lexical": "^0.49.0",
60
60
  "lucide-react": "^1.0.0",
61
61
  "react": ">=19",
62
- "@haklex/rich-editor": "^0.36.0",
63
- "@haklex/rich-editor-ui": "^0.36.0"
62
+ "@haklex/rich-editor": "^0.38.0",
63
+ "@haklex/rich-editor-ui": "^0.38.0"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public"